flipboard.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Welcome to Flipboard on Mastodon. A place for our community of curators and enthusiasts to inform and inspire each other. If you'd like to join please request an invitation via the sign-up page.

Administered by:

Server stats:

1.2K
active users

#swiftlang

25 posts23 participants1 post today

Jumped back on the #100daysOfSwiftUI train 🚅 and completed day 36, a simple expenses app.

Getting back to it after a few months away took some considerable mental effort. Couldn't remember a lot of the specifics of what went before, but there was plenty of residual memory of concepts intact in my brain 🧠 which made it easier than I expected!

Glad I’d been taking copious notes throughout, and thankful the site's search is super useful! hackingwithswift.com/100/swift

For macOS logging I'm trying to use the recommended bundle ID as the OSLog subsystem, so I use the following code snippet. But it seems like I might as well hardcode the subsystem since bundleIdentifier might be nil. Is there a better way to get the bundle ID (or PRODUCT_NAME) in code?

extension Logger {
static let subsystem = Bundle.main.bundleIdentifier ?? "org.foo.MyApp"
}