Skip to content

Commit

Permalink
added visible property to shadow hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispix committed Jul 3, 2015
1 parent 00e05d8 commit 1c2b1b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Swift Extensions/UIView+TBL.swift
Expand Up @@ -2,6 +2,16 @@ import UIKit

public extension UIView {

public var visible: Bool {
get {
return !hidden
}

set {
hidden = !newValue
}
}

public func top() -> CGFloat {
return frame.origin.y
}
Expand Down

0 comments on commit 1c2b1b8

Please sign in to comment.