View

public class View: NSObject

Class representing the view that was touched by a user

  • The subclass name of the touched UIView

    Declaration

    Swift

    public var className: String
  • x

    X coordinates

    Declaration

    Swift

    public var x: Float
  • y

    Y coordinates

    Declaration

    Swift

    public var y: Float
  • View width

    Declaration

    Swift

    public var width: Float
  • View height

    Declaration

    Swift

    public var height: Float
  • Text in view

    Declaration

    Swift

    public var text: String
  • Visibility of the view

    Declaration

    Swift

    public var visible: Bool
  • position of the element in a list, tabbar…

    Declaration

    Swift

    public var position:Int = -1
  • JSON description

    Declaration

    Swift

    public override var description: String