Hello! Here's a snapshot of who I am:
struct Profile: Introducible {
let name: String
let position: String
let education: String
let specialties: [String]
let hobbies: [String]
}
let myProfile = Profile(
name: "Reeen",
position: "iOS Engineer at Yumemi Inc.",
education: "Majored in International Politics",
specialties: [
"Swift",
"UIKit",
"SwiftUI",
"MapKit",
"Firebase",
"Swift Package Manager",
"MVVM Architecture",
"Flux Architecture",
"... and more!"
],
hobbies: [
"Traveling",
"Playing darts",
"Skiing",
"Watching movies (especially the 007 series)",
"Brewing coffee"
]
)
func introduce(profile: Profile) {
while true {
print("Name: \(profile.name)")
print("Position: \(profile.position)")
print("Education: \(profile.education)")
print("Specialties: \(profile.specialties.joined(separator: ", "))")
print("Hobbies: \(profile.hobbies.joined(separator: ", "))")
}
}
introduce(profile: myProfile)