Skip to content

Commit

Permalink
Merge pull request hyperoslo#44 from hyperoslo/feature/public
Browse files Browse the repository at this point in the history
Adds public where necessary.
  • Loading branch information
RamonGilabert committed Oct 5, 2015
2 parents 627f88a + 74b46a6 commit 41a3d9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit 41a3d9e

Please sign in to comment.