Skip to content

Commit 1c5ade7

Browse files
authored
Merge pull request hyperoslo#448 from frodo10messi/master
updated to swift 5
2 parents 883e6ce + fcdf7a7 commit 1c5ade7

10 files changed

Lines changed: 58 additions & 155 deletions

File tree

ImagePicker.xcodeproj/project.pbxproj

Lines changed: 15 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
D5D370C31C44FD1600690C0A /* OFF@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D5D370BD1C44FD1600690C0A /* OFF@3x.png */; };
1919
D5D370C41C44FD1600690C0A /* ON@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D5D370BE1C44FD1600690C0A /* ON@3x.png */; };
2020
D5D370C51C44FD1600690C0A /* selectedImageGallery@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D5D370BF1C44FD1600690C0A /* selectedImageGallery@3x.png */; };
21-
D5DC59961C201BE1003BD79B /* ImagePicker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5DC598B1C201BE1003BD79B /* ImagePicker.framework */; };
2221
D5DC59C21C201CC4003BD79B /* BottomContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59AD1C201CC4003BD79B /* BottomContainerView.swift */; };
2322
D5DC59C31C201CC4003BD79B /* ButtonPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59AE1C201CC4003BD79B /* ButtonPicker.swift */; };
2423
D5DC59C41C201CC4003BD79B /* ImageStack.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59AF1C201CC4003BD79B /* ImageStack.swift */; };
@@ -31,21 +30,10 @@
3130
D5DC59CB1C201CC4003BD79B /* ImageGalleryViewDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59B91C201CC4003BD79B /* ImageGalleryViewDataSource.swift */; };
3231
D5DC59CC1C201CC4003BD79B /* ImagePickerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59BA1C201CC4003BD79B /* ImagePickerController.swift */; };
3332
D5DC59CE1C201CC4003BD79B /* TopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59BD1C201CC4003BD79B /* TopView.swift */; };
34-
D5DC59CF1C201CCC003BD79B /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5DC59A71C201CC4003BD79B /* Tests.swift */; };
3533
DC197E381E945FA500F2A7D1 /* video@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DC197E371E945FA500F2A7D1 /* video@3x.png */; };
3634
DC197E3C1E94DA5600F2A7D1 /* VideoInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC197E3B1E94DA5600F2A7D1 /* VideoInfoView.swift */; };
3735
/* End PBXBuildFile section */
3836

39-
/* Begin PBXContainerItemProxy section */
40-
D5DC59971C201BE1003BD79B /* PBXContainerItemProxy */ = {
41-
isa = PBXContainerItemProxy;
42-
containerPortal = D5DC59821C201BE1003BD79B /* Project object */;
43-
proxyType = 1;
44-
remoteGlobalIDString = D5DC598A1C201BE1003BD79B;
45-
remoteInfo = ImagePicker;
46-
};
47-
/* End PBXContainerItemProxy section */
48-
4937
/* Begin PBXFileReference section */
5038
39D1340F1CAC4B4E00EA2ECE /* AssetManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssetManager.swift; sourceTree = "<group>"; };
5139
39E3C3301CAFD79200340DAD /* LocationManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocationManager.swift; sourceTree = "<group>"; };
@@ -59,9 +47,6 @@
5947
D5D370BE1C44FD1600690C0A /* ON@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ON@3x.png"; sourceTree = "<group>"; };
6048
D5D370BF1C44FD1600690C0A /* selectedImageGallery@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "selectedImageGallery@3x.png"; sourceTree = "<group>"; };
6149
D5DC598B1C201BE1003BD79B /* ImagePicker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ImagePicker.framework; sourceTree = BUILT_PRODUCTS_DIR; };
62-
D5DC59951C201BE1003BD79B /* ImagePicker-iOS-Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ImagePicker-iOS-Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
63-
D5DC59A61C201CC4003BD79B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
64-
D5DC59A71C201CC4003BD79B /* Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
6550
D5DC59A91C201CC4003BD79B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
6651
D5DC59AD1C201CC4003BD79B /* BottomContainerView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BottomContainerView.swift; sourceTree = "<group>"; };
6752
D5DC59AE1C201CC4003BD79B /* ButtonPicker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ButtonPicker.swift; sourceTree = "<group>"; };
@@ -87,14 +72,6 @@
8772
);
8873
runOnlyForDeploymentPostprocessing = 0;
8974
};
90-
D5DC59921C201BE1003BD79B /* Frameworks */ = {
91-
isa = PBXFrameworksBuildPhase;
92-
buildActionMask = 2147483647;
93-
files = (
94-
D5DC59961C201BE1003BD79B /* ImagePicker.framework in Frameworks */,
95-
);
96-
runOnlyForDeploymentPostprocessing = 0;
97-
};
9875
/* End PBXFrameworksBuildPhase section */
9976

10077
/* Begin PBXGroup section */
@@ -116,7 +93,6 @@
11693
isa = PBXGroup;
11794
children = (
11895
D5D370B91C44FD1600690C0A /* Images */,
119-
D5DC59A51C201CC4003BD79B /* Tests */,
12096
D5DC59A81C201CC4003BD79B /* SupportFiles */,
12197
D5DC59AA1C201CC4003BD79B /* Source */,
12298
D5DC598C1C201BE1003BD79B /* Products */,
@@ -129,20 +105,10 @@
129105
isa = PBXGroup;
130106
children = (
131107
D5DC598B1C201BE1003BD79B /* ImagePicker.framework */,
132-
D5DC59951C201BE1003BD79B /* ImagePicker-iOS-Tests.xctest */,
133108
);
134109
name = Products;
135110
sourceTree = "<group>";
136111
};
137-
D5DC59A51C201CC4003BD79B /* Tests */ = {
138-
isa = PBXGroup;
139-
children = (
140-
D5DC59A61C201CC4003BD79B /* Info.plist */,
141-
D5DC59A71C201CC4003BD79B /* Tests.swift */,
142-
);
143-
path = Tests;
144-
sourceTree = "<group>";
145-
};
146112
D5DC59A81C201CC4003BD79B /* SupportFiles */ = {
147113
isa = PBXGroup;
148114
children = (
@@ -248,58 +214,37 @@
248214
productReference = D5DC598B1C201BE1003BD79B /* ImagePicker.framework */;
249215
productType = "com.apple.product-type.framework";
250216
};
251-
D5DC59941C201BE1003BD79B /* ImagePicker-iOS-Tests */ = {
252-
isa = PBXNativeTarget;
253-
buildConfigurationList = D5DC59A21C201BE1003BD79B /* Build configuration list for PBXNativeTarget "ImagePicker-iOS-Tests" */;
254-
buildPhases = (
255-
D5DC59911C201BE1003BD79B /* Sources */,
256-
D5DC59921C201BE1003BD79B /* Frameworks */,
257-
D5DC59931C201BE1003BD79B /* Resources */,
258-
);
259-
buildRules = (
260-
);
261-
dependencies = (
262-
D5DC59981C201BE1003BD79B /* PBXTargetDependency */,
263-
);
264-
name = "ImagePicker-iOS-Tests";
265-
productName = ImagePickerTests;
266-
productReference = D5DC59951C201BE1003BD79B /* ImagePicker-iOS-Tests.xctest */;
267-
productType = "com.apple.product-type.bundle.unit-test";
268-
};
269217
/* End PBXNativeTarget section */
270218

271219
/* Begin PBXProject section */
272220
D5DC59821C201BE1003BD79B /* Project object */ = {
273221
isa = PBXProject;
274222
attributes = {
275223
LastSwiftUpdateCheck = 0720;
276-
LastUpgradeCheck = 0900;
224+
LastUpgradeCheck = 1020;
277225
ORGANIZATIONNAME = "Hyper Interaktiv AS";
278226
TargetAttributes = {
279227
D5DC598A1C201BE1003BD79B = {
280228
CreatedOnToolsVersion = 7.2;
281-
DevelopmentTeam = 9J5NKKT78R;
282-
LastSwiftMigration = 0800;
283-
};
284-
D5DC59941C201BE1003BD79B = {
285-
DevelopmentTeam = QQJ8AA32HJ;
229+
DevelopmentTeam = ADTR2923N7;
230+
LastSwiftMigration = 1020;
286231
};
287232
};
288233
};
289234
buildConfigurationList = D5DC59851C201BE1003BD79B /* Build configuration list for PBXProject "ImagePicker" */;
290235
compatibilityVersion = "Xcode 3.2";
291-
developmentRegion = English;
236+
developmentRegion = en;
292237
hasScannedForEncodings = 0;
293238
knownRegions = (
294239
en,
240+
Base,
295241
);
296242
mainGroup = D5DC59811C201BE1003BD79B;
297243
productRefGroup = D5DC598C1C201BE1003BD79B /* Products */;
298244
projectDirPath = "";
299245
projectRoot = "";
300246
targets = (
301247
D5DC598A1C201BE1003BD79B /* ImagePicker-iOS */,
302-
D5DC59941C201BE1003BD79B /* ImagePicker-iOS-Tests */,
303248
);
304249
};
305250
/* End PBXProject section */
@@ -319,13 +264,6 @@
319264
);
320265
runOnlyForDeploymentPostprocessing = 0;
321266
};
322-
D5DC59931C201BE1003BD79B /* Resources */ = {
323-
isa = PBXResourcesBuildPhase;
324-
buildActionMask = 2147483647;
325-
files = (
326-
);
327-
runOnlyForDeploymentPostprocessing = 0;
328-
};
329267
/* End PBXResourcesBuildPhase section */
330268

331269
/* Begin PBXShellScriptBuildPhase section */
@@ -370,29 +308,14 @@
370308
);
371309
runOnlyForDeploymentPostprocessing = 0;
372310
};
373-
D5DC59911C201BE1003BD79B /* Sources */ = {
374-
isa = PBXSourcesBuildPhase;
375-
buildActionMask = 2147483647;
376-
files = (
377-
D5DC59CF1C201CCC003BD79B /* Tests.swift in Sources */,
378-
);
379-
runOnlyForDeploymentPostprocessing = 0;
380-
};
381311
/* End PBXSourcesBuildPhase section */
382312

383-
/* Begin PBXTargetDependency section */
384-
D5DC59981C201BE1003BD79B /* PBXTargetDependency */ = {
385-
isa = PBXTargetDependency;
386-
target = D5DC598A1C201BE1003BD79B /* ImagePicker-iOS */;
387-
targetProxy = D5DC59971C201BE1003BD79B /* PBXContainerItemProxy */;
388-
};
389-
/* End PBXTargetDependency section */
390-
391313
/* Begin XCBuildConfiguration section */
392314
D5DC599D1C201BE1003BD79B /* Debug */ = {
393315
isa = XCBuildConfiguration;
394316
buildSettings = {
395317
ALWAYS_SEARCH_USER_PATHS = NO;
318+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
396319
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
397320
CLANG_CXX_LIBRARY = "libc++";
398321
CLANG_ENABLE_MODULES = YES;
@@ -401,12 +324,14 @@
401324
CLANG_WARN_BOOL_CONVERSION = YES;
402325
CLANG_WARN_COMMA = YES;
403326
CLANG_WARN_CONSTANT_CONVERSION = YES;
327+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
404328
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
405329
CLANG_WARN_EMPTY_BODY = YES;
406330
CLANG_WARN_ENUM_CONVERSION = YES;
407331
CLANG_WARN_INFINITE_RECURSION = YES;
408332
CLANG_WARN_INT_CONVERSION = YES;
409333
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
334+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
410335
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411336
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
412337
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -450,6 +375,7 @@
450375
isa = XCBuildConfiguration;
451376
buildSettings = {
452377
ALWAYS_SEARCH_USER_PATHS = NO;
378+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
453379
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
454380
CLANG_CXX_LIBRARY = "libc++";
455381
CLANG_ENABLE_MODULES = YES;
@@ -458,12 +384,14 @@
458384
CLANG_WARN_BOOL_CONVERSION = YES;
459385
CLANG_WARN_COMMA = YES;
460386
CLANG_WARN_CONSTANT_CONVERSION = YES;
387+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
461388
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
462389
CLANG_WARN_EMPTY_BODY = YES;
463390
CLANG_WARN_ENUM_CONVERSION = YES;
464391
CLANG_WARN_INFINITE_RECURSION = YES;
465392
CLANG_WARN_INT_CONVERSION = YES;
466393
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
394+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
467395
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
468396
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
469397
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -502,7 +430,7 @@
502430
buildSettings = {
503431
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
504432
DEFINES_MODULE = YES;
505-
DEVELOPMENT_TEAM = 9J5NKKT78R;
433+
DEVELOPMENT_TEAM = ADTR2923N7;
506434
DYLIB_COMPATIBILITY_VERSION = 1;
507435
DYLIB_CURRENT_VERSION = 1;
508436
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -513,6 +441,7 @@
513441
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePicker;
514442
PRODUCT_NAME = ImagePicker;
515443
SKIP_INSTALL = YES;
444+
SWIFT_VERSION = 5.0;
516445
};
517446
name = Debug;
518447
};
@@ -521,7 +450,7 @@
521450
buildSettings = {
522451
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
523452
DEFINES_MODULE = YES;
524-
DEVELOPMENT_TEAM = 9J5NKKT78R;
453+
DEVELOPMENT_TEAM = ADTR2923N7;
525454
DYLIB_COMPATIBILITY_VERSION = 1;
526455
DYLIB_CURRENT_VERSION = 1;
527456
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -532,30 +461,7 @@
532461
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePicker;
533462
PRODUCT_NAME = ImagePicker;
534463
SKIP_INSTALL = YES;
535-
};
536-
name = Release;
537-
};
538-
D5DC59A31C201BE1003BD79B /* Debug */ = {
539-
isa = XCBuildConfiguration;
540-
buildSettings = {
541-
DEVELOPMENT_TEAM = QQJ8AA32HJ;
542-
INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist";
543-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
544-
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePickerTests;
545-
PRODUCT_NAME = "$(TARGET_NAME)";
546-
SWIFT_VERSION = 3.0;
547-
};
548-
name = Debug;
549-
};
550-
D5DC59A41C201BE1003BD79B /* Release */ = {
551-
isa = XCBuildConfiguration;
552-
buildSettings = {
553-
DEVELOPMENT_TEAM = QQJ8AA32HJ;
554-
INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist";
555-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
556-
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePickerTests;
557-
PRODUCT_NAME = "$(TARGET_NAME)";
558-
SWIFT_VERSION = 3.0;
464+
SWIFT_VERSION = 5.0;
559465
};
560466
name = Release;
561467
};
@@ -580,15 +486,6 @@
580486
defaultConfigurationIsVisible = 0;
581487
defaultConfigurationName = Release;
582488
};
583-
D5DC59A21C201BE1003BD79B /* Build configuration list for PBXNativeTarget "ImagePicker-iOS-Tests" */ = {
584-
isa = XCConfigurationList;
585-
buildConfigurations = (
586-
D5DC59A31C201BE1003BD79B /* Debug */,
587-
D5DC59A41C201BE1003BD79B /* Release */,
588-
);
589-
defaultConfigurationIsVisible = 0;
590-
defaultConfigurationName = Release;
591-
};
592489
/* End XCConfigurationList section */
593490
};
594491
rootObject = D5DC59821C201BE1003BD79B /* Project object */;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

ImagePicker.xcodeproj/xcshareddata/xcschemes/ImagePicker-iOS.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,7 +40,6 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
4544
<Testables>
4645
<TestableReference
@@ -70,7 +69,6 @@
7069
buildConfiguration = "Debug"
7170
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7271
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7472
launchStyle = "0"
7573
useCustomWorkingDirectory = "NO"
7674
ignoresPersistentStateOnLaunch = "NO"

Source/AssetManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Photos
44

55
open class AssetManager {
66

7-
open static func getImage(_ name: String) -> UIImage {
7+
public static func getImage(_ name: String) -> UIImage {
88
let traitCollection = UITraitCollection(displayScale: 3)
99
var bundle = Bundle(for: AssetManager.self)
1010

@@ -15,7 +15,7 @@ open class AssetManager {
1515
return UIImage(named: name, in: bundle, compatibleWith: traitCollection) ?? UIImage()
1616
}
1717

18-
open static func fetch(withConfiguration configuration: Configuration, _ completion: @escaping (_ assets: [PHAsset]) -> Void) {
18+
public static func fetch(withConfiguration configuration: Configuration, _ completion: @escaping (_ assets: [PHAsset]) -> Void) {
1919
guard PHPhotoLibrary.authorizationStatus() == .authorized else { return }
2020

2121
DispatchQueue.global(qos: .background).async {
@@ -36,7 +36,7 @@ open class AssetManager {
3636
}
3737
}
3838

39-
open static func resolveAsset(_ asset: PHAsset, size: CGSize = CGSize(width: 720, height: 1280), shouldPreferLowRes: Bool = false, completion: @escaping (_ image: UIImage?) -> Void) {
39+
public static func resolveAsset(_ asset: PHAsset, size: CGSize = CGSize(width: 720, height: 1280), shouldPreferLowRes: Bool = false, completion: @escaping (_ image: UIImage?) -> Void) {
4040
let imageManager = PHImageManager.default()
4141
let requestOptions = PHImageRequestOptions()
4242
requestOptions.deliveryMode = shouldPreferLowRes ? .fastFormat : .highQualityFormat
@@ -51,7 +51,7 @@ open class AssetManager {
5151
}
5252
}
5353

54-
open static func resolveAssets(_ assets: [PHAsset], size: CGSize = CGSize(width: 720, height: 1280)) -> [UIImage] {
54+
public static func resolveAssets(_ assets: [PHAsset], size: CGSize = CGSize(width: 720, height: 1280)) -> [UIImage] {
5555
let imageManager = PHImageManager.default()
5656
let requestOptions = PHImageRequestOptions()
5757
requestOptions.isSynchronous = true

Source/BottomView/BottomContainerView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ open class BottomContainerView: UIView {
1818

1919
lazy var pickerButton: ButtonPicker = { [unowned self] in
2020
let pickerButton = ButtonPicker(configuration: self.configuration)
21-
pickerButton.setTitleColor(UIColor.white, for: UIControlState())
21+
pickerButton.setTitleColor(UIColor.white, for: UIControl.State())
2222
pickerButton.delegate = self
2323
pickerButton.numberLabel.isHidden = !self.configuration.showsImageCountLabel
2424

@@ -37,7 +37,7 @@ open class BottomContainerView: UIView {
3737

3838
open lazy var doneButton: UIButton = { [unowned self] in
3939
let button = UIButton()
40-
button.setTitle(self.configuration.cancelButtonTitle, for: UIControlState())
40+
button.setTitle(self.configuration.cancelButtonTitle, for: UIControl.State())
4141
button.titleLabel?.font = self.configuration.doneButton
4242
button.addTarget(self, action: #selector(doneButtonDidPress(_:)), for: .touchUpInside)
4343

0 commit comments

Comments
 (0)