iOS 10 compat
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user