Skip to content

Commit

Permalink
Updated some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalonunez committed Jan 31, 2018
1 parent f4f2bc7 commit 619fa2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Skeleton/GradientContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import UIKit
public class GradientContainerView: UIView {
fileprivate let gradientView = GradientView(frame: .zero)

/// :nodoc:
override public init(frame: CGRect) {
super.init(frame: frame)
setUpGradientView()
}

/// :nodoc:
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setUpGradientView()
Expand Down
2 changes: 2 additions & 0 deletions Skeleton/GradientsOwner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ public protocol GradientsOwner: class {
}

public extension GradientsOwner {
/// A convenient way to slide the `GradientOwner`'s corresponding `gradientLayers`.
public func slide(to dir: Direction, group: ((CAAnimationGroup) -> Void) = { _ in }) {
gradientLayers.forEach({ $0.slide(to: dir, group: group) })
}

/// A convenient way to stop sliding the `GradientOwner`'s corresponding `gradientLayers`.
public func stopSliding() {
gradientLayers.forEach({ $0.stopSliding() })
}
Expand Down

0 comments on commit 619fa2b

Please sign in to comment.