diff --git a/Source/BottomView/BottomContainerView.swift b/Source/BottomView/BottomContainerView.swift index 906f12d5..3d6c90fe 100644 --- a/Source/BottomView/BottomContainerView.swift +++ b/Source/BottomView/BottomContainerView.swift @@ -8,7 +8,7 @@ protocol BottomContainerViewDelegate: class { func imageStackViewDidPress() } -class BottomContainerView: UIView { +public class BottomContainerView: UIView { lazy var pickerButton: ButtonPicker = { [unowned self] in let pickerButton = ButtonPicker() @@ -28,7 +28,7 @@ class BottomContainerView: UIView { return view }() - lazy var doneButton: UIButton = { [unowned self] in + public lazy var doneButton: UIButton = { [unowned self] in let button = UIButton() button.setTitle(self.pickerConfiguration.cancelButtonTitle, forState: .Normal) button.titleLabel?.font = self.pickerConfiguration.doneButton @@ -42,8 +42,6 @@ class BottomContainerView: UIView { return view }() - lazy var pickerConfiguration: Configuration = Configuration.sharedInstance - lazy var topSeparator: UIView = { [unowned self] in let view = UIView() view.backgroundColor = self.pickerConfiguration.backgroundColor @@ -58,12 +56,14 @@ class BottomContainerView: UIView { return gesture }() + lazy var pickerConfiguration: Configuration = Configuration.sharedInstance + weak var delegate: BottomContainerViewDelegate? var pastCount = 0 // MARK: Initializers - override init(frame: CGRect) { + public override init(frame: CGRect) { super.init(frame: frame) for view in [borderPickerButton, pickerButton, doneButton, stackView, topSeparator] { @@ -77,7 +77,7 @@ class BottomContainerView: UIView { setupConstraints() } - required init?(coder aDecoder: NSCoder) { + public required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } diff --git a/Source/ImageGallery/ImageGalleryView.swift b/Source/ImageGallery/ImageGalleryView.swift index 7bfe7d1c..11692d60 100644 --- a/Source/ImageGallery/ImageGalleryView.swift +++ b/Source/ImageGallery/ImageGalleryView.swift @@ -73,7 +73,7 @@ public class ImageGalleryView: UIView { lazy var pickerConfiguration: Configuration = Configuration.sharedInstance - lazy var noImagesLabel: UILabel = { [unowned self] in + public lazy var noImagesLabel: UILabel = { [unowned self] in let label = UILabel() label.font = self.pickerConfiguration.noImagesFont label.textColor = self.pickerConfiguration.noImagesColor diff --git a/Source/ImagePickerController.swift b/Source/ImagePickerController.swift index a529441a..b84aec4d 100644 --- a/Source/ImagePickerController.swift +++ b/Source/ImagePickerController.swift @@ -19,7 +19,7 @@ public class ImagePickerController: UIViewController { static let velocity: CGFloat = 100 } - lazy public var galleryView: ImageGalleryView = { [unowned self] in + public lazy var galleryView: ImageGalleryView = { [unowned self] in let galleryView = ImageGalleryView() galleryView.delegate = self galleryView.selectedStack = self.stack @@ -27,7 +27,7 @@ public class ImagePickerController: UIViewController { return galleryView }() - lazy var bottomContainer: BottomContainerView = { [unowned self] in + public lazy var bottomContainer: BottomContainerView = { [unowned self] in let view = BottomContainerView() view.backgroundColor = UIColor(red:0.09, green:0.11, blue:0.13, alpha:1) view.delegate = self