UIView
-
Undocumented
Declaration
Swift
func hideBlurEffectWithAnimation()
-
Undocumented
Declaration
Swift
func addBlurEffect()
-
Undocumented
Declaration
Swift
class var nibName: String
-
Undocumented
Declaration
Swift
class var nib: UINib?
-
Undocumented
Declaration
Swift
class func fromNib<T : UIView>(nibNameOrNil: String? = nil, type: T.Type) -> T?
-
Undocumented
Declaration
Swift
class func fromNib<T : UIView>(nibNameOrNil: String? = nil, type: T.Type) -> T
-
Undocumented
Declaration
Swift
class func fromNib(_ nibNameOrNil: String? = nil) -> Self
-
Undocumented
Declaration
Swift
func roundCorners(_ corners: UIRectCorner, radius: CGFloat)
-
Undocumented
Declaration
Swift
public func addTapGesture(tapNumber: Int = 1, action: ((UITapGestureRecognizer) -> Void)?)
-
Undocumented
Declaration
Swift
public func shakeViewForTimes(_ times: Int)
-
Undocumented
Declaration
Swift
public convenience init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat)
-
puts padding around the view
Declaration
Swift
public convenience init(superView: UIView, padding: CGFloat)
-
Copies size of superview
Declaration
Swift
public convenience init(superView: UIView)
-
add multiple subviews
Declaration
Swift
public func addSubviews(_ views: [UIView])
-
resizes this view so it fits the largest subview
Declaration
Swift
public func resizeToFitSubviews()
-
resizes this view so it fits the largest subview
Declaration
Swift
public func resizeToFitSubviews(_ tagsToIgnore: [Int])
-
Undocumented
Declaration
Swift
public func resizeToFitWidth()
-
Undocumented
Declaration
Swift
public func resizeToFitHeight()
-
Undocumented
Declaration
Swift
public var x: CGFloat
-
Undocumented
Declaration
Swift
public var y: CGFloat
-
Undocumented
Declaration
Swift
public var w: CGFloat
-
Undocumented
Declaration
Swift
public var h: CGFloat
-
Undocumented
Declaration
Swift
public var left: CGFloat
-
Undocumented
Declaration
Swift
public var right: CGFloat
-
Undocumented
Declaration
Swift
public var top: CGFloat
-
Undocumented
Declaration
Swift
public var bottom: CGFloat
-
Undocumented
Declaration
Swift
public var origin: CGPoint
-
Undocumented
Declaration
Swift
public var centerX: CGFloat
-
Undocumented
Declaration
Swift
public var centerY: CGFloat
-
Undocumented
Declaration
Swift
public var vsize: CGSize
-
Undocumented
Declaration
Swift
public func leftOffset(_ offset: CGFloat) -> CGFloat
-
Undocumented
Declaration
Swift
public func rightOffset(_ offset: CGFloat) -> CGFloat
-
Undocumented
Declaration
Swift
public func topOffset(_ offset: CGFloat) -> CGFloat
-
Undocumented
Declaration
Swift
public func bottomOffset(_ offset: CGFloat) -> CGFloat
-
Undocumented
Declaration
Swift
public func alignRight(_ offset: CGFloat) -> CGFloat
-
Undocumented
Declaration
Swift
public func reorderSubViews(_ reorder: Bool = false, tagsToIgnore: [Int] = []) -> CGFloat
-
Undocumented
Declaration
Swift
public func removeSubviews()
-
Centers view in superview horizontally
Declaration
Swift
public func centerXInSuperView()
-
Centers view in superview vertically
Declaration
Swift
public func centerYInSuperView()
-
Centers view in superview horizontally & vertically
Declaration
Swift
public func centerInSuperView()
-
Undocumented
Declaration
Swift
public func setRotationX(_ x: CGFloat)
-
Undocumented
Declaration
Swift
public func setRotationY(_ y: CGFloat)
-
Undocumented
Declaration
Swift
public func setRotationZ(_ z: CGFloat)
-
Undocumented
Declaration
Swift
public func setRotation(x: CGFloat, y: CGFloat, z: CGFloat)
-
Undocumented
Declaration
Swift
public func setScale(x: CGFloat, y: CGFloat)
-
Undocumented
Declaration
Swift
public func setCornerRadius(radius: CGFloat)
-
Undocumented
Declaration
Swift
public func addShadow(offset: CGSize, radius: CGFloat, color: UIColor, opacity: Float, cornerRadius: CGFloat? = nil)
-
Undocumented
Declaration
Swift
public func addBorder(width: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func addBorderTop(size: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func addBorderTopWithPadding(size: CGFloat, color: UIColor, padding: CGFloat)
-
Undocumented
Declaration
Swift
public func addBorderBottom(size: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func addBorderLeft(size: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func addBorderRight(size: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func drawCircle(fillColor: UIColor, strokeColor: UIColor, strokeWidth: CGFloat)
-
Undocumented
Declaration
Swift
public func drawStroke(width: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func spring(animations: @escaping (() -> Void), completion: ((Bool) -> Void)? = nil)
-
Undocumented
Declaration
Swift
public func spring(duration: TimeInterval, animations: @escaping (() -> Void), completion: ((Bool) -> Void)? = nil)
-
Undocumented
Declaration
Swift
public func animate(duration: TimeInterval, animations: @escaping (() -> Void), completion: ((Bool) -> Void)? = nil)
-
Undocumented
Declaration
Swift
public func animate(animations: @escaping (() -> Void), completion: ((Bool) -> Void)? = nil)
-
Undocumented
Declaration
Swift
public func pop()
-
Undocumented
Declaration
Swift
public func popBig()
-
Undocumented
Declaration
Swift
public func toImage () -> UIImage
-
Undocumented
Declaration
Swift
public func addTapGesture(tapNumber: Int = 1, target: AnyObject, action: Selector)
-
Undocumented
Declaration
Swift
public func addSwipeGesture(direction: UISwipeGestureRecognizerDirection, numberOfTouches: Int = 1, target: AnyObject, action: Selector)
-
Undocumented
Declaration
Swift
public func addPanGesture(target: AnyObject, action: Selector)
-
Undocumented
Declaration
Swift
public func addPinchGesture(target: AnyObject, action: Selector)
-
Undocumented
Declaration
Swift
public func addLongPressGesture(target: AnyObject, action: Selector)
-
Mask square/rectangle UIView with a circular/capsule cover, with a border of desired color and width around it
Declaration
Swift
public func roundView(withBorderColor color: UIColor? = nil, withBorderWidth width: CGFloat? = nil)
-
Remove all masking around UIView
Declaration
Swift
public func nakedView()
-
Loops until it finds the top root view.
Declaration
Swift
func rootView() -> UIView
-
Fade in with duration, delay and completion block.
Declaration
Swift
public func fadeIn(_ duration: TimeInterval? = UIViewDefaultFadeDuration, delay: TimeInterval? = 0.0, completion: ((Bool) -> Void)? = nil)
-
Undocumented
Declaration
Swift
public func fadeOut(_ duration: TimeInterval? = UIViewDefaultFadeDuration, delay: TimeInterval? = 0.0, completion: ((Bool) -> Void)? = nil)
-
Fade to specific value with duration, delay and completion block.
Declaration
Swift
public func fadeTo(_ value: CGFloat, duration: TimeInterval? = UIViewDefaultFadeDuration, delay: TimeInterval? = 0.0, completion: ((Bool) -> Void)? = nil)