The Awesome Swift feed

The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
Today

Throttler

One Line to throttle, debounce and delay: Say Goodbye to Reactive Programming such as RxSwift and Combine.
Featured Library // Category Concurrency

Parsing JSON in Swift: The Complete Guide [With Examples]

Parsing JSON data is fundamental to any iOS app that performs remote REST API calls.

Thanks to the Codable protocols introduced in Swift 4, Swift has a native and idiomatic way to parse JSON data.

Paired with the JSONDecoder class, the Decodable protocol allows straightforward JSON decoding in a few lines of code and more sophisticated techniques to handle all the possible data formats and edge cases.
Article Added by: Matteo // matteomanferdini.com

Supabase Swift now officially supported

Article Popular Story // supabase.com

Yesterday

HorizonCalendar

A declarative, performant, iOS calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-featured calendar apps.
Featured Library // Category Calendar

Last 7 Days

UIPilot

The missing typesafe SwiftUI navigation library
Featured Library // Category UI

Kanna

Kanna(鉋) is an XML/HTML parser for Swift.
Featured Library // Category HTML

DockProgress

Show progress in your app's Dock icon
Featured Library // Category UI

Swift for C++ Practitioners

Article Popular Story // sfba.social

Awesome Swift Weekly » 409

Top Stories
  • Distributed SQLite: Paradigm shift or hype?
  • ReAMP, a Winamp Remake in Swift
  • England Limits Youth Gender Medications, Part of Big Shift in Europe

Actor reentrancy in Swift explained – Donny Wals

Article Popular Story // www.donnywals.com

Zip Foundation

Effortless ZIP Handling in Swift
Featured Library // Category ZIP

Swift-Sodium

Safe and easy to use crypto for iOS and macOS
Featured Library // Category Cryptography

Apple presents Ferret-UI

Article Popular Story // x.com

Last 30 Days

Scaling Header Scroll View

A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.
Featured Library // Category UI

Fatbobman's Swift Weekly #026 - Swift, Beyond the Apple Ecosystem!

Article Popular Story // fatbobman.substack.com

Is there an easy way to do this?

Article Popular Story // www.reddit.com

Distributed SQLite: Paradigm shift or hype?

Article Popular Story // kerkour.com

JSQCoreDataKit

A swifter Core Data stack
Featured Library // Category Core Data

ReAMP, a Winamp Remake in Swift

Article Popular Story // re-amp.ru

BetterSafariView

A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.
Featured Library // Category Utility

SwiftySound

SwiftySound is a simple library that lets you play sounds with a single line of code.
Featured Library // Category Audio

SwiftPlantUML

A command-line tool and Swift Package for generating class diagrams powered by PlantUML
Featured Library // Category Utility

Decoding JSON with Dynamic Types in Swift [With Codable]

JSON data is not always homogenous. There are instances in which a JSON object field can contain objects containing different information.

In such cases, the Swift type for the decoding must be determined dynamically.
Article Added by: Matteo // matteomanferdini.com

Awesome Swift Weekly » 408

Top Stories
  • Writing Gnome Apps with Swift
  • Plunging Pickup Truck Sales Threaten Detroit's Profit Engine
  • Calling Haskell from Swift

Decoding and Flattening Nested JSON with Codable

JSON data is rarely flat and often contains nested objects.

Nested JSON data can be decoded in Swift using the `Decodable` protocol and the `JSONDecoder` class.

However, how you decode nested JSON objects depends on the final result you want to obtain.
Article Added by: Matteo // matteomanferdini.com

Decode JSON with Dynamic Keys in Swift [Dictionaries and Arrays]

JSON object with dynamic keys presents a specific challenge when decoding data in Swift because stored properties cannot represent dynamic keys.

However, it’s still possible to decode JSON with dynamic keys using the Decodable protocol into dictionaries or arrays by implementing structures that conform to the CodingKey protocol.
Article Added by: Matteo // matteomanferdini.com

ObjectBox embedded database

Swift database - fast, simple and lightweight (iOS, macOS)
Featured Library // Category Data Management

Plunging Pickup Truck Sales Threaten Detroit's Profit Engine

Article Popular Story // www.bloomberg.com