AKTelephoneView

open class AKTelephoneView: UIView

This is primarily for the telephone page in the Synthesis playground

  • Handle new touches

    Declaration

    Swift

    override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
  • Handle new touches

    Declaration

    Swift

    override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
  • Initialize the telephone view

    Declaration

    Swift

    public init(frame: CGRect = CGRect(x: 0, y: 0, width: 440, height: 782),
                    callback: @escaping (String, String) -> Void)
  • Initialize within Interface Builder

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Draw the telephone view

    Declaration

    Swift

    override open func draw(_ rect: CGRect)
  • Draw one key

    Declaration

    Swift

    open class func drawKey(text: String = "A B C", numeral: String = "1", isPressed: Bool = true)
  • Draw one key

    Declaration

    Swift

    open class func drawCenteredKey(numeral: String = "1", isPressed: Bool = true)