UIView
class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, CALayerDelegate
-
Mechanica
A Boolean value that determines whether the view’s autoresizing mask is translated into Auto Layout constraints.
Declaration
Swift
public var usesAutoLayout: Bool { get set }
-
Mechanica
Take sceenshot with the current device’s screen scale. If an animation is running it captures the final frame of the animation.
Declaration
Swift
public func screenshot() -> UIImage