Skip to content

Commit 28dd526

Browse files
OdNairypersidskiy
authored andcommitted
Update examples to the iOS 16+ (#2377)
1 parent 5201160 commit 28dd526

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+14
-149
lines changed

Apps/Examples/Examples.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@
990990
APPLICATION_EXTENSION_API_ONLY = NO;
991991
BUNDLE_LOADER = "$(TEST_HOST)";
992992
GENERATE_INFOPLIST_FILE = YES;
993+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
993994
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(PROJECT_DIR)/../lib";
994995
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.MapboxTests;
995996
SDKROOT = auto;
@@ -1099,6 +1100,7 @@
10991100
APPLICATION_EXTENSION_API_ONLY = NO;
11001101
BUNDLE_LOADER = "$(TEST_HOST)";
11011102
GENERATE_INFOPLIST_FILE = YES;
1103+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
11021104
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(PROJECT_DIR)/../lib";
11031105
PRODUCT_BUNDLE_IDENTIFIER = mapbox.ExamplesUITests;
11041106
SDKROOT = auto;
@@ -1123,6 +1125,7 @@
11231125
INFOPLIST_FILE = Examples/Info.plist;
11241126
INFOPLIST_PREFIX_HEADER = "$(DERIVED_FILE_DIR)/InfoPlist.Prefix.h";
11251127
INFOPLIST_PREPROCESS = YES;
1128+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
11261129
LD_RUNPATH_SEARCH_PATHS = (
11271130
"$(inherited)",
11281131
"@executable_path/Frameworks",
@@ -1238,6 +1241,7 @@
12381241
INFOPLIST_FILE = Examples/Info.plist;
12391242
INFOPLIST_PREFIX_HEADER = "$(DERIVED_FILE_DIR)/InfoPlist.Prefix.h";
12401243
INFOPLIST_PREPROCESS = YES;
1244+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
12411245
LD_RUNPATH_SEARCH_PATHS = (
12421246
"$(inherited)",
12431247
"@executable_path/Frameworks",
@@ -1262,6 +1266,7 @@
12621266
APPLICATION_EXTENSION_API_ONLY = NO;
12631267
BUNDLE_LOADER = "$(TEST_HOST)";
12641268
GENERATE_INFOPLIST_FILE = YES;
1269+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
12651270
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(PROJECT_DIR)/../lib";
12661271
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.MapboxTests;
12671272
SDKROOT = auto;
@@ -1280,6 +1285,7 @@
12801285
APPLICATION_EXTENSION_API_ONLY = NO;
12811286
BUNDLE_LOADER = "$(TEST_HOST)";
12821287
GENERATE_INFOPLIST_FILE = YES;
1288+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
12831289
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(PROJECT_DIR)/../lib";
12841290
PRODUCT_BUNDLE_IDENTIFIER = mapbox.ExamplesUITests;
12851291
SDKROOT = auto;

Apps/Examples/Examples/All Examples/BasicLocationPulsingExample.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ final class BasicLocationPulsingExample: UIViewController, ExampleProtocol {
105105
present(controller, animated: true)
106106
}
107107

108-
@available(iOS 14.0, *)
109108
private func updateMenu() {
110109
let state = mapView.location.options.puckType.map { type -> PuckCircle? in
111110
if case PuckType.puck2D(let config) = type {

Apps/Examples/Examples/All Examples/CameraForExample.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import UIKit
22
import MapboxMaps
33

4-
@available(iOS 13.0, *)
54
final class CameraForExample: UIViewController, ExampleProtocol {
65
private var mapView: MapView!
76
private var cancelables = Set<AnyCancelable>()

Apps/Examples/Examples/All Examples/CarPlay/ApplicationCarPlaySceneDelegage.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import CarPlay
22

3-
@available(iOS 13.0, *)
43
class ApplicationCarPlaySceneDelegage: NSObject, CPTemplateApplicationSceneDelegate {
54
let applicationVC = CarPlayRootVC()
65

@@ -19,7 +18,7 @@ class ApplicationCarPlaySceneDelegage: NSObject, CPTemplateApplicationSceneDeleg
1918
}
2019
]
2120
}
22-
interfaceController.setRootTemplate(mapTemplate, animated: false)
21+
interfaceController.setRootTemplate(mapTemplate, animated: false, completion: nil)
2322
}
2423

2524
func sceneWillEnterForeground(_ scene: UIScene) {

Apps/Examples/Examples/All Examples/CarPlay/DashboardCarPlaySceneDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import CarPlay
22

3-
@available(iOS 13.4, *)
43
class DashboardCarPlaySceneDelegate: NSObject, CPTemplateApplicationSceneDelegate, CPTemplateApplicationDashboardSceneDelegate {
54
let dashboardVC = CarPlayRootVC()
65

Apps/Examples/Examples/All Examples/CarPlay/InstrumentClusterCarPlaySceneDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import CarPlay
22
import MapboxMaps
33

4-
@available(iOS 15.4, *)
54
class InstrumentClusterCarPlaySceneDelegate: NSObject,
65
CPTemplateApplicationInstrumentClusterSceneDelegate,
76
CPInstrumentClusterControllerDelegate {

Apps/Examples/Examples/All Examples/GeofencingExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ extension GeofencingExample {
296296

297297
private func showSpinnerIfNeeded() {
298298
if geofencingSpinner == nil {
299-
let spinner = UIActivityIndicatorView(style: .whiteLarge)
299+
let spinner = UIActivityIndicatorView(style: .large)
300300

301301
spinner.translatesAutoresizingMaskIntoConstraints = false
302302
spinner.startAnimating()

Apps/Examples/Examples/All Examples/Lab/CombineExample.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import MapboxMaps
33
import Combine
44

55
/// This examples shows how to use Map events with Combine framework.
6-
@available(iOS 13.0, *)
76
final class CombineExample: UIViewController, ExampleProtocol {
87
private var mapView: MapView!
98
private var tokens = Set<AnyCancellable>()

Apps/Examples/Examples/All Examples/Lab/CombineLocationExample.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Combine
44
import Turf
55

66
/// This examples shows how to use Combine framework to drive the Puck's location and heading.
7-
@available(iOS 13.0, *)
87
final class CombineLocationExample: UIViewController, ExampleProtocol {
98
@Published
109
private var location = Location(coordinate: CLLocationCoordinate2D(latitude: 60.17195694011002, longitude: 24.945389069265598))

Apps/Examples/Examples/All Examples/OfflineManagerExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ final class OfflineManagerExample: UIViewController, NonMapViewExampleProtocol {
311311
private func resetUI() {
312312
logger?.reset()
313313
logView.textContainerInset.bottom = view.safeAreaInsets.bottom
314-
logView.scrollIndicatorInsets.bottom = view.safeAreaInsets.bottom
314+
logView.verticalScrollIndicatorInsets.bottom = view.safeAreaInsets.bottom
315315

316316
progressContainer.isHidden = false
317317
stylePackProgressView.progress = 0.0

0 commit comments

Comments
 (0)