Skip to content

Commit 99afeb4

Browse files
committed
Fix Demo
1 parent 1c5ade7 commit 99afeb4

File tree

8 files changed

+61
-85
lines changed

8 files changed

+61
-85
lines changed

Demo/ImagePickerDemo/ImagePickerDemo.xcodeproj/project.pbxproj

Lines changed: 41 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
29D699DF1B70ABFC0021FA73 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29D699DE1B70ABFC0021FA73 /* AppDelegate.swift */; };
1111
29D699E61B70ABFC0021FA73 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29D699E51B70ABFC0021FA73 /* Images.xcassets */; };
1212
29D699E91B70ABFC0021FA73 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 29D699E71B70ABFC0021FA73 /* LaunchScreen.xib */; };
13-
A23836048FD18F274FB629F2 /* Pods_ImagePickerDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E0B31E77EFE064C4E63D017 /* Pods_ImagePickerDemo.framework */; };
13+
C8F4D55202BE019B86A4E77D /* Pods_ImagePickerDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FFC61735F9A2B4D6548267F9 /* Pods_ImagePickerDemo.framework */; };
1414
D20AA8A51D5330100085FF5B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20AA8A41D5330100085FF5B /* ViewController.swift */; };
1515
/* End PBXBuildFile section */
1616

@@ -20,19 +20,19 @@
2020
29D699DE1B70ABFC0021FA73 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
2121
29D699E51B70ABFC0021FA73 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
2222
29D699E81B70ABFC0021FA73 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
23-
2A8853E2BE3B43C6DC7CF614 /* Pods-ImagePickerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ImagePickerDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo.debug.xcconfig"; sourceTree = "<group>"; };
24-
3E0B31E77EFE064C4E63D017 /* Pods_ImagePickerDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ImagePickerDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2523
733A7AD0105A657A80502E72 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
26-
7F1C1FC700491641CD7DB2C1 /* Pods-ImagePickerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ImagePickerDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo.release.xcconfig"; sourceTree = "<group>"; };
24+
B395016097341D865EDC2786 /* Pods-ImagePickerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ImagePickerDemo.debug.xcconfig"; path = "Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo.debug.xcconfig"; sourceTree = "<group>"; };
25+
C44A895B3EB7319444A79C21 /* Pods-ImagePickerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ImagePickerDemo.release.xcconfig"; path = "Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo.release.xcconfig"; sourceTree = "<group>"; };
2726
D20AA8A41D5330100085FF5B /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
27+
FFC61735F9A2B4D6548267F9 /* Pods_ImagePickerDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ImagePickerDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2828
/* End PBXFileReference section */
2929

3030
/* Begin PBXFrameworksBuildPhase section */
3131
29D699D61B70ABFC0021FA73 /* Frameworks */ = {
3232
isa = PBXFrameworksBuildPhase;
3333
buildActionMask = 2147483647;
3434
files = (
35-
A23836048FD18F274FB629F2 /* Pods_ImagePickerDemo.framework in Frameworks */,
35+
C8F4D55202BE019B86A4E77D /* Pods_ImagePickerDemo.framework in Frameworks */,
3636
);
3737
runOnlyForDeploymentPostprocessing = 0;
3838
};
@@ -45,7 +45,7 @@
4545
29D699DB1B70ABFC0021FA73 /* ImagePickerDemo */,
4646
29D699DA1B70ABFC0021FA73 /* Products */,
4747
DD112158CF9886DE925FED5E /* Frameworks */,
48-
388F913CF71E1D89FDE2519A /* Pods */,
48+
83910006B3F12E4B5D35FECA /* Pods */,
4949
);
5050
indentWidth = 2;
5151
sourceTree = "<group>";
@@ -79,20 +79,20 @@
7979
name = "Supporting Files";
8080
sourceTree = "<group>";
8181
};
82-
388F913CF71E1D89FDE2519A /* Pods */ = {
82+
83910006B3F12E4B5D35FECA /* Pods */ = {
8383
isa = PBXGroup;
8484
children = (
85-
2A8853E2BE3B43C6DC7CF614 /* Pods-ImagePickerDemo.debug.xcconfig */,
86-
7F1C1FC700491641CD7DB2C1 /* Pods-ImagePickerDemo.release.xcconfig */,
85+
B395016097341D865EDC2786 /* Pods-ImagePickerDemo.debug.xcconfig */,
86+
C44A895B3EB7319444A79C21 /* Pods-ImagePickerDemo.release.xcconfig */,
8787
);
88-
name = Pods;
88+
path = Pods;
8989
sourceTree = "<group>";
9090
};
9191
DD112158CF9886DE925FED5E /* Frameworks */ = {
9292
isa = PBXGroup;
9393
children = (
9494
733A7AD0105A657A80502E72 /* Pods.framework */,
95-
3E0B31E77EFE064C4E63D017 /* Pods_ImagePickerDemo.framework */,
95+
FFC61735F9A2B4D6548267F9 /* Pods_ImagePickerDemo.framework */,
9696
);
9797
name = Frameworks;
9898
sourceTree = "<group>";
@@ -104,12 +104,11 @@
104104
isa = PBXNativeTarget;
105105
buildConfigurationList = 29D699F81B70ABFC0021FA73 /* Build configuration list for PBXNativeTarget "ImagePickerDemo" */;
106106
buildPhases = (
107-
31B4D2E55A81DB27B864B2A3 /* [CP] Check Pods Manifest.lock */,
107+
83A82AF336A335387958FC7E /* [CP] Check Pods Manifest.lock */,
108108
29D699D51B70ABFC0021FA73 /* Sources */,
109109
29D699D61B70ABFC0021FA73 /* Frameworks */,
110110
29D699D71B70ABFC0021FA73 /* Resources */,
111-
F3EF51BCE509121FBC00640E /* [CP] Embed Pods Frameworks */,
112-
EEE9A1733584FC13190615E2 /* [CP] Copy Pods Resources */,
111+
4A386DDFD23A61E26D0CD500 /* [CP] Embed Pods Frameworks */,
113112
);
114113
buildRules = (
115114
);
@@ -127,18 +126,18 @@
127126
isa = PBXProject;
128127
attributes = {
129128
LastSwiftUpdateCheck = 0700;
130-
LastUpgradeCheck = 0900;
129+
LastUpgradeCheck = 1150;
131130
ORGANIZATIONNAME = "Ramon Gilabert Llop";
132131
TargetAttributes = {
133132
29D699D81B70ABFC0021FA73 = {
134133
CreatedOnToolsVersion = 6.4;
135-
LastSwiftMigration = 0800;
134+
LastSwiftMigration = 1150;
136135
};
137136
};
138137
};
139138
buildConfigurationList = 29D699D41B70ABFC0021FA73 /* Build configuration list for PBXProject "ImagePickerDemo" */;
140139
compatibilityVersion = "Xcode 3.2";
141-
developmentRegion = English;
140+
developmentRegion = en;
142141
hasScannedForEncodings = 0;
143142
knownRegions = (
144143
en,
@@ -167,65 +166,44 @@
167166
/* End PBXResourcesBuildPhase section */
168167

169168
/* Begin PBXShellScriptBuildPhase section */
170-
31B4D2E55A81DB27B864B2A3 /* [CP] Check Pods Manifest.lock */ = {
169+
4A386DDFD23A61E26D0CD500 /* [CP] Embed Pods Frameworks */ = {
171170
isa = PBXShellScriptBuildPhase;
172171
buildActionMask = 2147483647;
173172
files = (
174173
);
175174
inputPaths = (
176-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
177-
"${PODS_ROOT}/Manifest.lock",
175+
"${PODS_ROOT}/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo-frameworks.sh",
176+
"${BUILT_PRODUCTS_DIR}/ImagePicker/ImagePicker.framework",
178177
);
179-
name = "[CP] Check Pods Manifest.lock";
178+
name = "[CP] Embed Pods Frameworks";
180179
outputPaths = (
181-
"$(DERIVED_FILE_DIR)/Pods-ImagePickerDemo-checkManifestLockResult.txt",
180+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ImagePicker.framework",
182181
);
183182
runOnlyForDeploymentPostprocessing = 0;
184183
shellPath = /bin/sh;
185-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
184+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo-frameworks.sh\"\n";
186185
showEnvVarsInLog = 0;
187186
};
188-
EEE9A1733584FC13190615E2 /* [CP] Copy Pods Resources */ = {
187+
83A82AF336A335387958FC7E /* [CP] Check Pods Manifest.lock */ = {
189188
isa = PBXShellScriptBuildPhase;
190189
buildActionMask = 2147483647;
191190
files = (
192191
);
193-
inputPaths = (
194-
);
195-
name = "[CP] Copy Pods Resources";
196-
outputPaths = (
197-
);
198-
runOnlyForDeploymentPostprocessing = 0;
199-
shellPath = /bin/sh;
200-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo-resources.sh\"\n";
201-
showEnvVarsInLog = 0;
202-
};
203-
F3EF51BCE509121FBC00640E /* [CP] Embed Pods Frameworks */ = {
204-
isa = PBXShellScriptBuildPhase;
205-
buildActionMask = 2147483647;
206-
files = (
192+
inputFileListPaths = (
207193
);
208194
inputPaths = (
209-
"${SRCROOT}/Pods/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo-frameworks.sh",
210-
"${BUILT_PRODUCTS_DIR}/Cache/Cache.framework",
211-
"${BUILT_PRODUCTS_DIR}/Hue/Hue.framework",
212-
"${BUILT_PRODUCTS_DIR}/ImagePicker/ImagePicker.framework",
213-
"${BUILT_PRODUCTS_DIR}/Imaginary/Imaginary.framework",
214-
"${BUILT_PRODUCTS_DIR}/Lightbox/Lightbox.framework",
215-
"${BUILT_PRODUCTS_DIR}/SwiftHash/SwiftHash.framework",
195+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
196+
"${PODS_ROOT}/Manifest.lock",
197+
);
198+
name = "[CP] Check Pods Manifest.lock";
199+
outputFileListPaths = (
216200
);
217-
name = "[CP] Embed Pods Frameworks";
218201
outputPaths = (
219-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Cache.framework",
220-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Hue.framework",
221-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ImagePicker.framework",
222-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Imaginary.framework",
223-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Lightbox.framework",
224-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftHash.framework",
202+
"$(DERIVED_FILE_DIR)/Pods-ImagePickerDemo-checkManifestLockResult.txt",
225203
);
226204
runOnlyForDeploymentPostprocessing = 0;
227205
shellPath = /bin/sh;
228-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ImagePickerDemo/Pods-ImagePickerDemo-frameworks.sh\"\n";
206+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
229207
showEnvVarsInLog = 0;
230208
};
231209
/* End PBXShellScriptBuildPhase section */
@@ -258,6 +236,7 @@
258236
isa = XCBuildConfiguration;
259237
buildSettings = {
260238
ALWAYS_SEARCH_USER_PATHS = NO;
239+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
261240
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
262241
CLANG_CXX_LIBRARY = "libc++";
263242
CLANG_ENABLE_MODULES = YES;
@@ -266,12 +245,14 @@
266245
CLANG_WARN_BOOL_CONVERSION = YES;
267246
CLANG_WARN_COMMA = YES;
268247
CLANG_WARN_CONSTANT_CONVERSION = YES;
248+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
269249
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
270250
CLANG_WARN_EMPTY_BODY = YES;
271251
CLANG_WARN_ENUM_CONVERSION = YES;
272252
CLANG_WARN_INFINITE_RECURSION = YES;
273253
CLANG_WARN_INT_CONVERSION = YES;
274254
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
255+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
275256
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
276257
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
277258
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -313,6 +294,7 @@
313294
isa = XCBuildConfiguration;
314295
buildSettings = {
315296
ALWAYS_SEARCH_USER_PATHS = NO;
297+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
316298
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
317299
CLANG_CXX_LIBRARY = "libc++";
318300
CLANG_ENABLE_MODULES = YES;
@@ -321,12 +303,14 @@
321303
CLANG_WARN_BOOL_CONVERSION = YES;
322304
CLANG_WARN_COMMA = YES;
323305
CLANG_WARN_CONSTANT_CONVERSION = YES;
306+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324307
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325308
CLANG_WARN_EMPTY_BODY = YES;
326309
CLANG_WARN_ENUM_CONVERSION = YES;
327310
CLANG_WARN_INFINITE_RECURSION = YES;
328311
CLANG_WARN_INT_CONVERSION = YES;
329312
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
313+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
330314
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
331315
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
332316
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -359,7 +343,7 @@
359343
};
360344
29D699F91B70ABFC0021FA73 /* Debug */ = {
361345
isa = XCBuildConfiguration;
362-
baseConfigurationReference = 2A8853E2BE3B43C6DC7CF614 /* Pods-ImagePickerDemo.debug.xcconfig */;
346+
baseConfigurationReference = B395016097341D865EDC2786 /* Pods-ImagePickerDemo.debug.xcconfig */;
363347
buildSettings = {
364348
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
365349
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
@@ -372,12 +356,13 @@
372356
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePickerDemo2;
373357
PRODUCT_NAME = "$(TARGET_NAME)";
374358
PROVISIONING_PROFILE = "";
359+
SWIFT_VERSION = 5.0;
375360
};
376361
name = Debug;
377362
};
378363
29D699FA1B70ABFC0021FA73 /* Release */ = {
379364
isa = XCBuildConfiguration;
380-
baseConfigurationReference = 7F1C1FC700491641CD7DB2C1 /* Pods-ImagePickerDemo.release.xcconfig */;
365+
baseConfigurationReference = C44A895B3EB7319444A79C21 /* Pods-ImagePickerDemo.release.xcconfig */;
381366
buildSettings = {
382367
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
383368
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
@@ -390,6 +375,7 @@
390375
PRODUCT_BUNDLE_IDENTIFIER = no.hyper.ImagePickerDemo2;
391376
PRODUCT_NAME = "$(TARGET_NAME)";
392377
PROVISIONING_PROFILE = "";
378+
SWIFT_VERSION = 5.0;
393379
};
394380
name = Release;
395381
};
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>

Demo/ImagePickerDemo/ImagePickerDemo/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
77

88
var window: UIWindow?
99

10-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
10+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1111
window = UIWindow()
1212
window?.rootViewController = controller
1313
window?.makeKeyAndVisible()

Demo/ImagePickerDemo/ImagePickerDemo/ViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import UIKit
22
import ImagePicker
3-
import Lightbox
43

54
class ViewController: UIViewController, ImagePickerDelegate {
65

@@ -36,7 +35,7 @@ class ViewController: UIViewController, ImagePickerDelegate {
3635
}
3736

3837
@objc func buttonTouched(button: UIButton) {
39-
var config = Configuration()
38+
let config = Configuration()
4039
config.doneButtonTitle = "Finish"
4140
config.noImagesTitle = "Sorry! There are no images here!"
4241
config.recordLocation = false
@@ -55,6 +54,7 @@ class ViewController: UIViewController, ImagePickerDelegate {
5554
}
5655

5756
func wrapperDidPress(_ imagePicker: ImagePickerController, images: [UIImage]) {
57+
/*
5858
guard images.count > 0 else { return }
5959

6060
let lightboxImages = images.map {
@@ -63,6 +63,7 @@ class ViewController: UIViewController, ImagePickerDelegate {
6363

6464
let lightbox = LightboxController(images: lightboxImages, startIndex: 0)
6565
imagePicker.present(lightbox, animated: true, completion: nil)
66+
*/
6667
}
6768

6869
func doneButtonDidPress(_ imagePicker: ImagePickerController, images: [UIImage]) {

Demo/ImagePickerDemo/Podfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ inhibit_all_warnings!
55

66
target 'ImagePickerDemo' do
77
pod 'ImagePicker', path: '../../'
8-
pod 'Lightbox'
9-
pod 'Hue'
108
end

Demo/ImagePickerDemo/Podfile.lock

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
11
PODS:
2-
- Cache (4.0.2):
3-
- SwiftHash (~> 2.0.0)
4-
- Hue (3.0.0)
5-
- ImagePicker (3.0.0)
6-
- Imaginary (3.0.0):
7-
- Cache (~> 4.0)
8-
- Lightbox (2.0.0):
9-
- Hue (~> 3.0)
10-
- Imaginary (~> 3.0)
11-
- SwiftHash (2.0.0)
2+
- ImagePicker (3.1.0)
123

134
DEPENDENCIES:
14-
- Hue
155
- ImagePicker (from `../../`)
16-
- Lightbox
176

187
EXTERNAL SOURCES:
198
ImagePicker:
20-
:path: ../../
9+
:path: "../../"
2110

2211
SPEC CHECKSUMS:
23-
Cache: 363b6899cee63c82ccbd291e64a6c202abc17a88
24-
Hue: b8fe1e43eef13631331eebecb2198b68e2622f95
25-
ImagePicker: f8a3ce52e587b55f58aef2d83d894ed6f7820f51
26-
Imaginary: 2765d293d425cbed3b07fa11642554cbaebe913d
27-
Lightbox: 83ec9f4aba4c79fc7bb9bcd263386df9969f09bb
28-
SwiftHash: d2e09b13495447178cdfb8e46e54a5c46f15f5a9
12+
ImagePicker: db1fd7626337b2577c523bef5f499bbbe5a37079
2913

30-
PODFILE CHECKSUM: 702c1e0df019fe44ce740e86904dd384d55aefbe
14+
PODFILE CHECKSUM: 23900dc409ff6cf1fd583a459dd91c9db12e588b
3115

32-
COCOAPODS: 1.3.1
16+
COCOAPODS: 1.9.3

Source/Extensions/ConstraintsSetup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ extension ImagePickerController {
112112
}
113113

114114
for attribute: NSLayoutConstraint.Attribute in [.left, .top, .width] {
115-
view.addConstraint(NSLayoutConstraint(item: cameraController.view, attribute: attribute,
115+
view.addConstraint(NSLayoutConstraint(item: cameraController.view!, attribute: attribute,
116116
relatedBy: .equal, toItem: view, attribute: attribute,
117117
multiplier: 1, constant: 0))
118118
}
@@ -154,7 +154,7 @@ extension ImagePickerController {
154154
relatedBy: .equal, toItem: nil, attribute: .notAnAttribute,
155155
multiplier: 1, constant: TopView.Dimensions.height))
156156

157-
view.addConstraint(NSLayoutConstraint(item: cameraController.view, attribute: .height,
157+
view.addConstraint(NSLayoutConstraint(item: cameraController.view!, attribute: .height,
158158
relatedBy: .equal, toItem: view, attribute: .height,
159159
multiplier: 1, constant: -BottomContainerView.Dimensions.height))
160160
}

Source/ImagePickerController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ open class ImagePickerController: UIViewController {
161161

162162
applyOrientationTransforms()
163163

164-
UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged,
165-
argument: bottomContainer);
164+
UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged, argument: bottomContainer)
166165
}
167166

168167
open func resetAssets() {

0 commit comments

Comments
 (0)