diff --git a/ImageViewer.xcodeproj/project.pbxproj b/ImageViewer.xcodeproj/project.pbxproj index a450fc8..a54dc11 100644 --- a/ImageViewer.xcodeproj/project.pbxproj +++ b/ImageViewer.xcodeproj/project.pbxproj @@ -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; diff --git a/ImageViewer/ViewController.swift b/ImageViewer/ViewController.swift index f5590e1..734e4ce 100644 --- a/ImageViewer/ViewController.swift +++ b/ImageViewer/ViewController.swift @@ -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),