struct ImDeveloper {
let name: String
let birthdate: Int
let role: String
let location: String
let knowleadges: [String]
func simpleDescription() -> String {
let description = """
My name is \(name). I was born in \(location) in \(birthdate).
I'm an \(role) and my knowleadge is:
\(knowleadges).
"""
return description
}
}
let xavier = ImDeveloper(name: "Xavier",
birthdate: 1988,
role: "iOS Developer",
location: "Barcelona",
knowleadges: ["Swift, Objective-C, UIKit, SwiftUI, Combine"])
print(xavier.simpleDescription())
xaviercamps Goto Github PK
Name: Xavier Camps
Type: User
Bio: iOS Developer
Location: Barcelona