1. Click on 'Get started with a playground'. Notes: Import UIKit - imports classes needed for interface development. At the right hand side, you will see an eye icon and a rectangular icon - show result. The right hand pane can be very useful.
Add a file (.swift). Type: class ClassName { var property1: String init(prop1: String) { self.property1 = prop1 } } When referring to properties, use self.propertyName
Comments
Post a Comment