Found 25 articles tagged with #swift

What's New in Swift 5.7

Swift 5.7, included in Xcode 14 Beta, introduces a whole spectrum of changes, from smaller syntax improvements to larger generics and concurrency updates.

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.

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#swift#paradigms

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

CocoaPods - Centralized Dependency Manager

CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.

iOS Dependency Formats

When you add a dependency to Xcode projects you have the options to add Swift packages, XCFrameworks, frameworks or libraries.

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.