#swift

Found 83 articles tagged with #swift

Swift Global Actors

Global actors make it possible to safely work with global variables in a concurrent program, as well as modeling other global program constraints.

Swift `if let` Shorthand

Shorthand syntax for optional binding conditions that shadow an existing variable by omitting the right-hand expression.

Jul 26, 2022#swift#swift-5.7

iOS Operation Queues

One way to perform operations concurrently in iOS is with the Operation and OperationQueue classes built on top of GCD.

Common Swift Attributes

You specify an attribute by writing the @ symbol followed by the attributeā€™s name and any arguments that the attribute accepts.

Jul 19, 2022#swift#attributes

Protocol-Oriented Programming in Swift

Swift protocols play a leading role in the structure of standard library and a common method of abstraction, provide a similar experience to interfaces that some other languages have.

Jul 19, 2022#paradigms#swift

Getting Started with Swift Package Manager

The official tool for managing the distribution of Swift code to automate the process of downloading, compiling, and linking dependencies.

Jul 18, 2022#ios#swift#xcode

Swift `async let` Bindings

A simple way, similar to a `let` binding, to create child tasks and await their results using `async let` declarations.

What's New in Swift 5.6

Swift 5.6 includes a number of enhancements to the type system, improved interaction with pointers, and adds the ability to run new pluginā€¦.

Swift Opaque Types

This feature gives you the flexibility to return and preserve the identity of any type, related but different from protocols and generics.

Swift Concurrency Model

Everything you need to build elegant asynchronous apps after concurrency features introduced in Swift 5.5 like async/await, Tasks, and Actors.