From 3489b6e8c826ebab3c83170207822b54431f4c73 Mon Sep 17 00:00:00 2001 From: Vegard Matthey Date: Fri, 27 Feb 2026 02:48:47 +0100 Subject: [PATCH] iOS 10 compat --- ImageViewer.xcodeproj/project.pbxproj | 4 ++-- ImageViewer/ViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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),