Here's an example of creating a basic UIView in Swift:
main.swift30 chars4 lines
init(frame:)
initializer to customize your view:main.swift266 chars13 lines
init(frame:)
method:main.swift638 chars24 lines
main.swift605 chars20 lines
Note that this is just a basic example, and you can add as much customization and complexity as you need for your specific use case.
gistlibby LogSnag