iOS 10 compat

This commit is contained in:
2026-02-27 02:48:47 +01:00
parent aa5ba0f79e
commit 3489b6e8c8
2 changed files with 4 additions and 4 deletions

View File

@@ -185,7 +185,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@@ -240,7 +240,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;

View File

@@ -427,7 +427,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
do {
let encoder = JSONEncoder()
encoder.outputFormatting = [.prettyPrinted, .sortedKeys]
encoder.outputFormatting = [.prettyPrinted]
encoder.keyEncodingStrategy = .useDefaultKeys
try encoder.encode(
newMetadata
@@ -718,7 +718,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
readerView.addSubview(bottomBarView)
NSLayoutConstraint.activate([
topBarView.topAnchor.constraint(equalTo: readerView.safeAreaLayoutGuide.topAnchor),
topBarView.topAnchor.constraint(equalTo: readerView.topAnchor),
topBarView.leadingAnchor.constraint(equalTo: readerView.leadingAnchor),
topBarView.trailingAnchor.constraint(equalTo: readerView.trailingAnchor),
topBarView.heightAnchor.constraint(equalToConstant: 64),