#swift

Found 83 articles tagged with #swift

Swift Platform Compilation Conditions

Swift compiler supports platform compilation conditions on whether to build certain parts of the code. Unlike regular and which execute atā€¦.

Mar 13, 2023#swift#compiler

Swift @main Entry Points

Learning different attributes like @main, @UIApplicationMain, or @NSApplicationMain for designating a type as the entry point for beginning program execution.

Mar 12, 2023#swift

Swift Sendable protocol and @Sendable attribute

We need a way to differentiate between the cases that are safe to transfer between concurrency domains and those that are not.

Mar 11, 2023#swift#concurrency

Swift Continuations

Asynchronous tasks can suspend themselves on continuations which synchronous code can then capture and invoke to resume the task in response to an event.

Mar 10, 2023#swift#concurrency

Swift Async Sequences

The new AsyncSequence protocol enables a natural, simple syntax for iterating over a sequence of values over time as easy as writing a `for` loop.

Mar 08, 2023#swift#concurrency

iOS Modal Presentations

You display a modal presentation, like an alert, popover, sheet, or confirmation dialog to draw attention to an important narrowly scoped task.

Mar 07, 2023#ios#swift#swiftui

Swift @available, #available or #unavailable

To handle API changes, use @available attribute to annotate availability of new declarations, and use #available or #unavailable to conditionalize.

What are protocol associated types in Swift

An associated type gives a placeholder name to a type thatā€™s used as part of the protocol, isnā€™t specified until the protocol is adopted.

Mar 06, 2023#swift#protocols

A complete guide to iOS data persistence

We are going to look at persistence options for iOS, each of these has its own pros and cons, itā€™s up to you to determine which option surpasses the others.

What's New in Swift 5.8

Swift has a formal process for proposing and accepting changes to the language, known as the Swift Evolution Process which covers allā€¦.