Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Add enhanced code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
msaps committed Jul 6, 2016
1 parent 0c5c6ee commit 68d49a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/Layouts/CocoaBarActionLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import UIKit

public class CocoaBarActionLayout: CocoaBarLayout {

// MARK: Properties

@IBOutlet public weak var titleLabel: UILabel?
@IBOutlet public weak var activityIndicator: UIActivityIndicatorView?

Expand Down
20 changes: 19 additions & 1 deletion Sources/Layouts/CocoaBarDefaultLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ import UIKit

public class CocoaBarDefaultLayout: CocoaBarLayout {

// MARK: Properties

@IBOutlet public weak var titleLabel: UILabel?

public override func updateLayoutForBackgroundStyle(newStyle: BackgroundStyle, backgroundView: UIView?) {
// MARK: Lifecycle

public override func updateLayoutForBackgroundStyle(newStyle: BackgroundStyle,
backgroundView: UIView?) {

switch newStyle {
case .BlurDark:
self.titleLabel?.textColor = UIColor.whiteColor()
Expand All @@ -22,4 +28,16 @@ public class CocoaBarDefaultLayout: CocoaBarLayout {
self.dismissButton?.setTitleColor(self.tintColor, forState: UIControlState.Normal)
}
}

public override func prepareLayoutForShowing() {
super.prepareLayoutForShowing()

// prepare the layout for being shown in a CocoaBar
}

public override func prepareLayoutForHiding() {
super.prepareLayoutForHiding()

// prepare the layout for being hidden from a CocoaBar
}
}

0 comments on commit 68d49a8

Please sign in to comment.