Open in app
Home
Notifications
Lists
Stories

Write
Natascha Fadeeva
Natascha Fadeeva

Home

Apr 6

How to use async/await in synchronous Swift code with tasks

Learn how to use tasks to call async/await methods from synchronous code. — The async/await feature introduced in Swift 5.5 allows us to write asynchronous code in a shorter and safer way. For a recap on async/await, check out this quick guide on async/await in Swift. In some situations, we need to call async/await methods or properties from synchronous context. How can we…

Swift Programming

2 min read

How to use async/await in synchronous Swift code with tasks
How to use async/await in synchronous Swift code with tasks

Published in Level Up Coding

·Mar 8

How to avoid using AnyView in SwiftUI

SwiftUI provides the type-erased view AnyView that can be used as a wrapper for any other SwiftUI view, for example to be able to return multiple view types from a function. While using AnyView might be a good choice in some cases, Apple recommends using alternatives when possible. That’s because…

Swift

3 min read

How to avoid using AnyView in SwiftUI
How to avoid using AnyView in SwiftUI

Nov 7, 2021

Quick guide to SwiftUI localization

Learn how to support multiple languages in your SwiftUI iOS app. — Supporting multiple languages is a common task when developing iOS applications. Xcode and SwiftUI make it easy for us to implement localization. Adding localization to the SwiftUI project To add localization to a SwiftUI project, perform the following steps: Create a new empty file called Localizable.strings in the project. Select the Localizable.strings file and open the…

I OS

2 min read

Quick guide to SwiftUI localization
Quick guide to SwiftUI localization

Sep 15, 2021

Understanding actors in Swift

Learn how to use Swift actors to prevent data races when working with concurrency. — At the WWDC 2021, Apple introduced Swift actors as a new synchronization tool to prevent data races when working with concurrent code. This feature is part of other concurrency developments like Swift’s async/await syntax. Let’s take a look on how Swift actors work to prevent data races. How do Swift actors prevent data races?

Swift Programming

3 min read

Understanding actors in Swift
Understanding actors in Swift

Published in CodeX

·Jul 2, 2021

Quick guide on async/await in Swift

Learn how use async/await for asynchronous tasks. — During the WWDC21, Apple introduced the new async/await syntax in Swift version 5.5, allowing us to write asynchronous code in a shorter and safer way. Let’s directly jump into an example and look at a scenario where we are creating a view model that depends on two API requests. The callback solution To…

Swift Programming

4 min read

Quick guide on async/await in Swift
Quick guide on async/await in Swift

May 17, 2021

Quick Guide on Swift Package Manager for iOS

Learn how to use the Swift Package Manager with Xcode to add dependencies to your iOS project — It was exciting to hear Apple’s announcement of the Swift Package Manager in 2015, entering the world of dependency managers like CocoaPods and Carthage. However, it was not until the release of Xcode 11 in 2019 that Swift Package Manager became a first class citizen for iOS projects by finally…

I OS

3 min read

Quick Guide on Swift Package Manager for iOS
Quick Guide on Swift Package Manager for iOS

Mar 21, 2021

Quick guide to using Core Data with SwiftUI

Learn the basics for using the Core Data framework with SwiftUI in iOS — When it comes to persisting complex data structures in iOS, Apple provides us with the Core Data framework. With Core Data, we can model entities and their relationships, save data for offline use, add undo functionality and more. The easiest way to see how Core Data works with SwiftUI is…

Swiftui

3 min read

Quick guide to using Core Data with SwiftUI
Quick guide to using Core Data with SwiftUI

Published in Level Up Coding

·Feb 22, 2021

Objective-C basics for Swift developers

Quick reference and cheatsheet for Swift developers learning Objective-C — Swift is a powerful programming language that was released at the WWDC 2014 as a replacement for Objective-C. But with many existing apps written in Objective-C still out there, knowing or at least having a basic understanding of Objective-C can be useful. This post serves as a quick reference on…

Swift Programming

5 min read

Objective-C basics for Swift developers
Objective-C basics for Swift developers

Published in The Startup

·Jan 16, 2021

iOS Interview Questions and Answers for Senior Developers Part 6 — Testing

Check your knowledge on automated tests in Swift and iOS — I recently got into the position of leading the technical interviews when my client was searching for a new senior iOS developer. It’s a challenging task to evaluate the skills and knowledge of another developer. In this post, I share my results of the most useful iOS and Swift questions…

I OS

5 min read

iOS Interview Questions and Answers for Senior Developers Part 6 — Testing
iOS Interview Questions and Answers for Senior Developers Part 6 — Testing

Published in Level Up Coding

·Dec 15, 2020

How to solve problems with bitwise operators in Swift

Learn to use the power of bitwise operations and option sets in iOS. — Recently, I had to solve the following task at work. The server sends an integer value between 0 and 127 that represents the state of a weekdays selection. When the server sends a 0, no checkbox should be selected. For a 127, all check boxes should be selected. The numbers…

Swift Programming

6 min read

How to solve problems with bitwise operators in Swift
How to solve problems with bitwise operators in Swift
Natascha Fadeeva

Natascha Fadeeva

Writing articles about iOS and Swift programming.

Following
  • Sarah

    Sarah

  • Domenico Nicoli

    Domenico Nicoli

  • Christopher Truman

    Christopher Truman

  • Sascha Klatt

    Sascha Klatt

See all (9)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable