iOS Dev Weekly highlighted an exceedingly clever, and almost invisible, approach to making your Swift code backwards-compatible.
👉 Simplifying Backwards Compatibility in Swift
Wow, this would be fun to put in practice on a real app.
iOS Dev Weekly highlighted an exceedingly clever, and almost invisible, approach to making your Swift code backwards-compatible.
👉 Simplifying Backwards Compatibility in Swift
Wow, this would be fun to put in practice on a real app.
If you’re struggling with the best way to do dependency injection for an iOS app, then along with this tutorial, some of the built-in tools, or Swinject, you might consider Resolver.
👉 Resolver for iOS Dependency Injection: Getting Started
Via iOS Dev Weekly.
One of the most difficult things about mobile development is asynchronous programming, which means doing different things at the same time. This is not the normal flowchart-style sequence of traditional programming.
Weirdly enough, with Swift completion handlers, an asynchronous function exits before it finishes. Or if you’r not careful, it might never finish at all. 🤯
Oh no! This is entering annoying quantum mechanics territory. 😭
If none of this makes any sense to you, then you’re not alone.
All of this is why I love the following video from WWDC 2021. Nate spends the first eight minutes showing how downloading an image and generating a thumbnail quickly becomes “verbose, complex, and even incorrect” in traditional Swift programming. (Side note: I like how Nate apparently worked hard on his hand gestures as well.)
The payoff: Nate then explains how async/await will let you write asynchronous code basically like “regular code.” 🤩
As MacBreak Weekly celebrated the 14th anniversary of the iPhone’s launch, I was reminded of Steve Jobs’ “redemptive arc.”
Here is Jobs addressing a somewhat hostile question at the 1997 WWDC. At the time, Apple was nearly out of money, and Jobs had just returned after previously being kicked out of the company.
George Bernard Shaw said that “your patience when you have nothing” is one of the two things that define you. It’s interesting to look at Steve Jobs when he is down and see the vision and patience that was brewing at the time.
As we have tried to come up with a strategy and a vision for Apple, it started with what incredible benefits can we give to the customer, where can we take the customer. Not starting with ‘let’s sit down with the engineers and figure out what awesome technology we have and then how are we going to market that’.
And I think that’s the right path to take.
It would be four more years until the iPod launched and ten years until the iPhone launched.
The end of Jobs’ answer also reminded me of Teddy Roosevelt.
Some mistakes will be made a long the way. That’s good, because at least some decisions will be made along the way.
Steve Jobs
Ah yes, patience and decisiveness. Like a good game, they are easy to learn and hard to master.
It looks like I’ll finally be jumping into some real SwiftUI development soon. I feel a little later to the party, but still happy to be here. 🎉
Besides my own SwiftUI posts to date, I’ll be trying the following books, which come personally recommended from a co-worker.
Thinking in SwiftUI | SwiftUI Apprentice
And also this video for the basics, please.