Here's an example of creating a basic UIView in Swift:
main.swift30 chars4 linesinit(frame:) initializer to customize your view:main.swift266 chars13 linesinit(frame:) method:main.swift638 chars24 linesmain.swift605 chars20 linesNote 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