Swift
92.7K views | +0 today

Using self, weak, and unowned in Combine

From trycombine.com

Series of Combine framework programming related blog posts.
No comment yet.

How to use Alert with SwiftUI

From kristaps.me

Alerts are one of the most crucial building blocks of iOS applications. We can use them to inform users about an error if something takes more time, like downloading a file or ensuring that everything is OK. Another use case with alerts is asking confirmation if our app users want to delete something or make a wire transfer.
No comment yet.

URLSessionConfiguration Quick Guide

From useyourloaf.com

Are you relying on the default URLSession configuration for your network requests? You might want to check what the defaults are and decide if they are right for your app.
No comment yet.

XCFrameworks

From kean.blog

Caveats of using XCFrameworks
No comment yet.

Triple Trouble

From kean.blog

Implementing triple-column navigation in SwiftUI using NavigationView
No comment yet.

Custom @Environment value for share actions —

From blog.artemnovichkov.com

SwiftUI has a lot of modern and useful features. One of my favourite is @Environment property wrapper. It allows you to ge
No comment yet.

SwiftUI keyboard avoidance

From fivestars.blog

One of the things I was most surprised with when starting my iOS career was the lack of a backed-in, system-wide keyboard avoidance: every app needs to show a keyboard at some point, and every app has to either re-invent the wheel or pick one of the de-facto standard open source solutions out there.
No comment yet.

Building type-safe networking in Swift

From swiftwithmajid.com

More than half of the apps I built during my career had networking code. Usually, we build apps for web services. Today we will talk about building the type-safe networking layer using Swift language features like enums, phantom types, and extensions.
No comment yet.

Dependency Inversion as a Driver to Scale Mobile Development | SoundCloud Backstage Blog

From developers.soundcloud.com

As our codebase scales, the need for cleaner architecture becomes more apparent. The dependency inversion principle (DIP) is one tool that helps us build cleaner relationships among our software modules. In this post, DIP is presented using atomic modules and is later applied to frameworks.
No comment yet.

Dynamic Type & In-App Font Scaling

From lickability.com

The Dynamic Type feature allows users to choose the size of textual content displayed on the screen. It helps users who need larger text for better readability. It also accommodates those who can read smaller text, allowing more information to appear on the screen. Apps that support Dynamic Type also provide a more consistent reading experience. From Apple’s Developer Documentation.
No comment yet.

Ignoring invalid JSON elements when using Codable

From www.swiftbysundell.com

How elements containing missing or invalid data can be automatically ignored when using Swift’s Codable API to parse JSON.
No comment yet.

Using Link Presentation in iOS development to make visually-rich links

From martiancraft.com

Giving users previews of links has gotten a lot easier in iOS 14: There’s a new Link Presentation framework that lets you show the same link presentation available to users in the Messages app. Use this framework to get link metadata, or present a nicer preview of links in your apps.
No comment yet.

Advances in XCFrameworks | Inside

From pspdfkit.com

With Xcode 12, Apple improved the XCFramework format, which unlocks great new capabilities.
No comment yet.

Custom Popup in SwiftUI

From www.vadimbulavin.com

Learn how to implement a custom popup, a popover, a sheet, and a snackbar message in SwiftUI with complete code examples.
No comment yet.

How to Reload the Diffable Section Header

From swiftsenpai.com

Learn how to effectively reload the expandable section header of a list constructed using the diffable data source. Sample code included.
No comment yet.

SwiftUI Custom Environment Values

From useyourloaf.com

A quick guide to creating your own custom SwiftUI environment values for things like global app settings.
No comment yet.

Redux-like state container in SwiftUI. Connectors.

From swiftwithmajid.com

During the last year, I totally understood the power of a single source of truth and a state container that holds the whole app state in a single place. I’ve used this approach in a couple of my apps and continue to use it in new projects.
No comment yet.

Custom SwiftUI view styles

From fivestars.blog

When building new SwiftUI components, it’s common to offer variants for different purposes/screens.
No comment yet.

Understanding Proxy Pattern in Swift within 5 minutes

From michaelabadi.com

Understanding Proxy Pattern in Swift within 5 minutes.
No comment yet.

Migrating an iOS app to SwiftUI - Navigation & Storyboards

From benoitpasquier.com

If SwiftUI is great for many things, migrating completely an existing app codebase to it can be really tricky. In a series of blog posts, I’ll share how to migrate an iOS app written in Swift with UIKit to SwiftUI. Today, let’s start with the navigation and the UI components with storyboards.
No comment yet.