UIView

  • The function to get current snapshot of the view i.e. to convert view to image.

    Usage Example

    @IBOutlet weak var profileContainerView :UIView?
    
    let anImage :UIImage? = self.profileContainerView!.toImage()
    

    Declaration

    Swift

    public func toImage() -> UIImage?
  • The function to get current first responder within the view (subviews or the view itself).

    Usage Example

    @IBOutlet weak var profileContainerView :UIView?
    
    let aView :UIView? = self.profileContainerView!.firstResponder()
    

    Declaration

    Swift

    public func firstResponder() -> UIView?