AKPlaygroundView

open class AKPlaygroundView: UIView

UIView for playgrounds allowing live views to be generated easily

  • Default standard element height (buttons, text)

    Declaration

    Swift

    open var elementHeight: CGFloat = 30
  • Current Y position

    Declaration

    Swift

    open var yPosition: Int = 25
  • Spacing height between elements

    Declaration

    Swift

    open var spacing = 25
  • Initialize the playground view

    Declaration

    Swift

    public override init(frame frameRect: CGRect)
  • Initialize with default size

    Declaration

    Swift

    public convenience init()
  • Override this function in subclasses

    Declaration

    Swift

    open func setup()
  • Add a title to the playground view

    Declaration

    Swift

    open func addTitle(_ text: String) -> UILabel
  • Add label text

    Declaration

    Swift

    open func addLabel(_ text: String) -> UILabel
  • Add the subview, and move the Y Position down

    Declaration

    Swift

    open override func addSubview(_ potentialView: UIView?)
  • Initialization within Interface Builder

    Declaration

    Swift

    public required init?(coder: NSCoder)