When switching on an enum, we are required to either explicitly handle all of its cases, or provide a default case that’ll act as a fallback for cases that weren’t matched by any previous case statement. For example like this: struct Article { enum State { case draft case published case removed } var state: […]
In the 1950s, many in the elite running community had begun to believe it wasn’t possible to run a mile in less than four minutes. Runners had been attempting it since the late 19th century and were beginning to draw the conclusion that the human body simply wasn’t built for the task. Article Continues Below […]
Best Buy and Amazon are both offering great deals on numerous models of the MacBook Pro and MacBook Air today, including a handful of record low deals on the latest Apple notebooks. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive […]
Jordan Morgan returns to the show to discuss some of the key new APIs and frameworks that were announced at WWDC21, and how they can be integrated into the apps that we build, now that about two months have passed since the conference took place. Bitrise: Rock-solid continuous integration for your Swift project, which now […]
A record low discount has returned to Apple’s 512GB M1 Mac mini today on Amazon. You can get this model for $799.00, down from its original price of $899.00. Note: MacRumors is an affiliate partner with Amazon. When you click a link and make a purchase, we may receive a small payment, which helps us […]
When testing your app with VoiceOver or Switch Control, a common test is to ensure you can reach every interactive element on screen. If these assistive technologies can’t focus all of your buttons how will your customers be able to interact fully with your app? Except there are times when hiding buttons from your assistive […]
We’ve partnered with Walmart for our summer essentials! They have a new section that features curated trend forward home-goods at really great price points so you can refresh your home from season to season. And the best part: delivery is super quick! We picked a few items to spruce up our new outdoor patio. This […]
We’ve been having conversations for thousands of years. Whether to convey information, conduct transactions, or simply to check in on one another, people have yammered away, chattering and gesticulating, through spoken conversation for countless generations. Only in the last few millennia have we begun to commit our conversations to writing, and only in the last […]
Swift 5.5 introduces a new concept called “effectful read-only properties”, which essentially means that computed properties can now utilize control flow mechanisms like errors and async operations when computing their values. Let’s start by taking a look at how computed properties can now throw errors using Swift’s standard error handling mechanism. As an example, let’s […]
For the past few years, I had the opportunity to mentor new joiners through different roles. In some aspects, I could see myself in them the same way I started years back: eager to prove themselves, jumping on the code and hacking around. I tried to think about what I learnt the hard way since […]