UIView

class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, 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

    Takes a screenshot 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(scale: CGFloat = 0.0) -> UIImage

    Parameters

    scale

    The scale factor to apply; if you specify a value of 0.0, the scale factor is set to the scale factor of the device’s main screen.