Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds public where necessary. #44

Merged
merged 1 commit into from
Oct 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Source/BottomView/BottomContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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] {
Expand All @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion Source/ImageGallery/ImageGalleryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/ImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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

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
Expand Down