macOSisthebestOS's user avatar
macOSisthebestOS's user avatar
macOSisthebestOS's user avatar
macOSisthebestOS
  • Member for 9 months
  • Last seen more than a week ago
Stats
969
reputation
0
reached
1
answer
0
questions
Loading…
About
import Foundation

struct User {
   let username: String
   let favoriteLanguage: (String, link: URL)
   let leastFavoriteLanguage: String
   let bio: String
   let prefersAppleProducts: Bool,
   let favoriteAppleProducts: [AppleProduct]
}

enum AppleProduct {
   case mac
   case iPhone, iPad
   case watch, tv, homePod, airPods
   case vision
}

let me = User(
   username: "macOSisthebestOS",
   favoriteLanguage: ("Swift", link: URL("www.swift.org")!),
   leastFavoriteLanguage: "JavaScript",
   bio: """
   I golf Swift code, and I dare say I'm pretty good at it.
   I've got a bit of experience with some other languages,
   too, though.
   """,
   prefersAppleProducts: true,
   favoriteAppleProducts: [.mac, .iPhone]
)
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
4
bronze badges
Top tags
2
Score
1
Posts
100
Posts %
2
Score
1
Posts
100
Posts %
Top posts