Result builders in Swift allow you to build up a result using ‘build blocks’ lined up after each other. They were introduced in Swift 5.4 and are available in Xcode 12.5 and up. Formerly known as function builders, you’ve probably already used them quite a bit by building a stack of views in SwiftUI. I …
Search Results for: A00-282 Schulungsangebot 🍃 A00-282 Dumps 🆘 A00-282 Echte Fragen 🌕 ➥ www.itzert.com 🡄 ist die beste Webseite um den kostenlosen Download von ➤ A00-282 ⮘ zu erhalten 🛃A00-282 Tests
Getting started with Unit Tests in Swift
Unit tests in programming languages ensure that written code works as expected. Given a particular input, you expect the code to come with a specific output. By testing your code, you’re creating confidence for refactors and releases, as you’ll ensure the code works as expected after running your suite of tests successfully. Many developers do …
Refactoring Swift: Best Practices to succeed
Refactoring code is part of the journey toward building sustainable apps. Whether you’re experienced or not: every developer refactors their code to improve its quality or readability. A refactor can be small enough to make you do it unconsciously, while bigger ones can become intimidating. I’ve been developing apps for over 10+ years in which …
Announcing the SwiftLee Talent Collective
Today I’m excited to introduce you to the SwiftLee Talent Collective — an initiative to connect engineers with exciting companies. One of the most frequently asked questions I get relates to how to find a new job or how to make the next career step. I wrote about Swift Jobs: How to make the right …
Alternate App Icon Configuration in Xcode
Adding alternate app icons to your app allows users to customize their home screen with an app icon that fits their style. An alternative icon could be a dark or light-mode version of the original icon or a collection of completely different styles. iOS 10.3 was the first version to support alternative icons. In the …
Never keyword in Swift: return type explained with code examples
The Never type in Swift allows you to tell the compiler about an exit point in your code. It’s a type with no values that prevents writing unuseful code by creating dead ends. While the type Never on its own might be a little unknown, you might have been using it already in your codebase. …
Side Projects: 10 Tips for being successful
It’s common to have a side project as an engineer since we can build our ideas. At the same time, it’s also trending to start a new project before you’ve finished the previous one. You could say there’s a graveyard of many side projects that didn’t reach the public. While I’m a full-time employee at …
Deadlocks in Swift explained: detecting and solving
Deadlocks in Swift can make your app hang, causing a frustrating situation for both you and your users. Your app becomes unresponsive, and you can often only solve it by restarting the app. While features like actors reduce the number of deadlocks you’ll run into, there’s still a high chance of experiencing deadlocks. Deadlocks can …
Variable WidgetBundle configuration based on conditions
The WidgetBundle protocol inside WidgetKit allows you to configure supported widgets for your apps. Whenever you add one or more widgets, you’ll have to add a @main struct conforming to this protocol. Like SwiftUI views, you’ll return the supported widgets inside the body computed property. You’ll not have issues with a consistent set of supported …
VoiceOver navigation improvement tips for SwiftUI apps
VoiceOver navigation support in your apps comes with the same requirements as navigating through touch controls. When navigating apps with standard touch controls, we tend to dislike apps that feel cluttered or make us do many interactions to achieve something. We’d probably say such an app does not offer a good user experience. The same …