This repository was archived by the owner on Jan 6, 2024. It is now read-only.
File tree 2 files changed +4
-4
lines changed
GBHFacebookImagePicker/Classes/View
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ final class GBHSelectedView: UIView {
69
69
}
70
70
71
71
// Add checkmark image view
72
- if let checkView = self . checkMarkView {
73
- self . prepareCheckMarkView ( )
74
- }
72
+ self . prepareCheckMarkView ( )
75
73
76
74
// Apply checkmark constraint
77
75
self . prepareConstraint ( )
@@ -164,6 +162,7 @@ final class GBHSelectedView: UIView {
164
162
}
165
163
166
164
fileprivate func applyVerticalConstraints( margin: CGFloat ) {
165
+ guard let checkMarkView = self . checkMarkView else { return }
167
166
switch GBHFacebookImagePicker . pickerConfig. uiConfig. placeCheckView {
168
167
case . topLeft, . topRight:
169
168
self . addConstraint ( NSLayoutConstraint ( item: checkMarkView,
@@ -185,6 +184,7 @@ final class GBHSelectedView: UIView {
185
184
}
186
185
187
186
fileprivate func applyHorizontalConstraints( margin: CGFloat ) {
187
+ guard let checkMarkView = self . checkMarkView else { return }
188
188
switch GBHFacebookImagePicker . pickerConfig. uiConfig. placeCheckView {
189
189
case . topLeft, . bottomLeft:
190
190
self . addConstraint ( NSLayoutConstraint ( item: checkMarkView,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import UIKit
10
10
extension UIView {
11
11
12
12
/// Add layout constraint to the passed view to fit the view
13
- func fit( view: UIView ) {
13
+ public func fit( view: UIView ) {
14
14
// Top constraint
15
15
self . addConstraint ( NSLayoutConstraint ( item: view,
16
16
attribute: NSLayoutAttribute . top,
You can’t perform that action at this time.
0 commit comments