Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
protocol Describable { func describe() -> String } extension Describable { func describe() -> String { "(no description)" } } struct User: Describable { let name: String } struct Car: Describable { let model: String func describe() -> String { "Car: \(model)" } } let u = User(name: "Morgan") let c = Car(model: "SwiftMobile") print(u.describe()) print(c.describe())