UIView
public extension UIView
extension UIView: CSHasVisibilityProtocol
-
Undocumented
Declaration
Swift
var width: CGFloat { get set }
-
Undocumented
Declaration
Swift
@discardableResult @objc func width(_ value: CGFloat) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func width(as view: UIView) -> Self
-
Undocumented
Declaration
Swift
var height: CGFloat { get set }
-
Undocumented
Declaration
Swift
@discardableResult func height(_ value: CGFloat) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func background(_ color: UIColor?) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func background(_ color: UIColor, opacity: CGFloat) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func background(color: UIColor?, opacity: CGFloat = 1) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func interaction(enabled: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func tint(color: UIColor) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func rotate(angle: CGFloat) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func content(mode: UIView.ContentMode) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func clipsToBounds(_ value: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func asCircular() -> Self
-
Undocumented
Declaration
Swift
@discardableResult func roundedCorners(width: Int = 5) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func clipToBounds() -> Self
-
Undocumented
Declaration
Swift
@discardableResult func border(width: CGFloat = 1, color: UIColor = .darkGray, radius: CGFloat = 3) -> Self
-
Undocumented
Declaration
Swift
func clone() -> Self
-
Undocumented
Declaration
Swift
var firstResponder: UIView? { get }
-
Undocumented
Declaration
Swift
@discardableResult func background(fadeTo color: UIColor?, duration: TimeInterval = .defaultAnimation) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func fadeToggle() -> Self
-
Undocumented
Declaration
Swift
@discardableResult func fadeTo(visible: Bool) -> Self
-
Undocumented
Declaration
Swift
func fadeIn(duration: TimeInterval = .defaultAnimation, onDone: Func? = nil)
-
Undocumented
Declaration
Swift
func fadeOut(duration: TimeInterval = .defaultAnimation, onDone: Func? = nil)
-
Undocumented
Declaration
Swift
@discardableResult func background4(dashed color: UIColor, stroke: NSNumber, gap: NSNumber) -> Self
-
Undocumented
Declaration
Swift
func data(_ value: Any) -> Self
-
Undocumented
Declaration
Swift
func data() -> Any?
-
Undocumented
Declaration
Swift
func addTapRecognizer(numberOfTouches: Int, numberOfTaps: Int, handler: @escaping Func)
-
Undocumented
Declaration
Swift
@objc var isEmpty: Bool { get }
-
Undocumented
Declaration
Swift
var controller: UIViewController? { get }
-
Undocumented
Declaration
Swift
var navigation: UINavigationController? { get }
-
Undocumented
Declaration
Swift
@discardableResult @objc open func onClick(_ block: @escaping Func) -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc open func onTap(_ block: @escaping Func) -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc open func aspectFit() -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc open func aspectFill() -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onLongPress(_ block: @escaping Func) -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc func onTouch(_ block: @escaping ArgFunc<Bool>, noUpAfterChanged: Bool = false) -> Self
-
Undocumented
See moreDeclaration
Swift
class RecognizeSimultaneouslyWithAnyDelegate : NSObject, UIGestureRecognizerDelegate
-
Undocumented
Declaration
Swift
@discardableResult @objc func onTouchUp(_ block: @escaping Func) -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc func onTouchDown(_ block: @escaping Func) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func addTouchEffect(color: UIColor, fade: Bool = true, fadeDuration: TimeInterval = .defaultAnimation) -> Self
-
Undocumented
Declaration
Swift
public var eventVisibilityChange: CSEvent<Bool> { get }
-
Undocumented
Declaration
Swift
public var isVisible: Bool { get set }
-
Undocumented
Declaration
Swift
@discardableResult func shown(if condition: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func hidden(if condition: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc func show() -> Self
-
Undocumented
Declaration
Swift
@discardableResult @objc func hide() -> Self
-
Undocumented
Declaration
Swift
var isVisibleThroughHierarchy: Bool { get }
-
Undocumented
Declaration
Swift
var isHiddenThroughHierarchy: Bool { get }