+ Bike
This commit is contained in:
parent
9db2af36bf
commit
7d33f7849f
3 changed files with 10 additions and 1 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
|
@ -1,8 +1,17 @@
|
|||
// https://carrascomolina.com
|
||||
import Playgrounds
|
||||
|
||||
struct Bike {
|
||||
var name: String
|
||||
var color: String
|
||||
|
||||
static let trek = Bike(name: "Trek", color: "red" )
|
||||
}
|
||||
|
||||
#Playground {
|
||||
let greeting = "Hallo Playground"
|
||||
var greeting = "Hallo Playground"
|
||||
let bike = Bike.trek
|
||||
bike.color
|
||||
|
||||
// write code here
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue