Swift
92.7K views | +0 today

XCFrameworks — New Format for Packaging Frameworks in iOS | by Roberto Frontado | Dev Jam | Nov, 2020

From medium.com

At WWDC 2019, Apple introduced a new format for packaging frameworks called XCFrameworks, which allows developers to conveniently distribute binary libraries for multiple platforms and architectures…
No comment yet.

Getting the number of days between two dates in Swift

From sarunw.com

There are a few variations when dealing with counting days. You need to ask yourself some questions beforehand.
No comment yet.

Hashable SwiftUI bindings

From fivestars.blog

We’ve previously covered how to add optional bindings to SwiftUI views using DisclosureGroup as an example.
No comment yet.

finestructure/Arena: Command line tool to create an Xcode project with a Playground and an SPM library ready for use

From github.com

Command line tool to create an Xcode project with a Playground and an SPM library ready for use - finestructure/Arena
No comment yet.

emrepun/StickyTabBarViewController: Sticky and Collapsible View on top of tab bar

From github.com

Sticky and Collapsible View on top of tab bar. Contribute to emrepun/StickyTabBarViewController development by creating an account on GitHub.
No comment yet.

benjaminsage/iPages: Quickly implement swipable page views.

From github.com

Quickly implement swipable page views. Contribute to benjaminsage/iPages development by creating an account on GitHub.
No comment yet.

Adaptive SwiftUI views

From fivestars.blog

One of the most powerful aspects of SwiftUI is how it adapts based on the context: this is SwiftUI’s promise, running on all Apple devices, from the 38mm Apple Watch to the 27-inches iMac (without considering external monitors!).
No comment yet.

Understanding Date and DateComponents

From sarunw.com

Date and time might be among your list of the hardest things in programming (It is for me). Today, I'm going to talk about a basic concept of a Date and its companion DateComponents.
No comment yet.

Accessibility in iOS 14 Widgets With SwiftUI | by Rudrank Riyam | Better Programming | Oct, 2020

From medium.com

This summer, Apple announced widgets for iOS 14 that you can have on your home screen alongside your existing apps. Widgets help you to personalise the screen with glanceable relevant data upfront…
No comment yet.

Dependency Injection in SwiftUI

From mokacoding.com

This post shows two ways of achieving dependency injection in SwiftUI: using @EnvironmentObject or a View Model Factory.
No comment yet.

Presenting Popovers from SwiftUI | Inside

From pspdfkit.com

Is there a way to present UIKit popovers from toolbar buttons managed by SwiftUI?
No comment yet.

Quick guide on SwiftUI essentials

From tanaschita.com

This post is a quick guide to get started with SwiftUI. It introduces the basic SwiftUI concepts and terms for view creation and state management.
No comment yet.

Swift KeyPaths under a different optic

From www.47deg.com

KeyPaths are widely used in Swift, and have their grounds in a powerful FP concept: optics.
No comment yet.

Declarative UICollectionView List Header and Footer

From swiftsenpai.com

Learn how to add a header and footer declaratively into a UICollectionView list using SupplementaryRegistration and UICollectionViewListCell.
No comment yet.

Implementing In-App Purchases without Keychain and UserDefaults (Updated for Xcode 12) | by Rostyslav Dovhaliuk

From gist.github.com

One of the In-App purchases implementation steps that every developer eventually faces is a choice of a suitable purchase record persistence strategy which will make possible to give access to paid…
No comment yet.

The Ultimate Guide to the SwiftUI 2 Application Life Cycle - SwiftUI 2 | Peter Friese

From peterfriese.dev

Everything you need to know about the new application life cycle in SwiftUI 2
No comment yet.

How to Create App Clips for iOS 14 2020

From exyte.com

With the iOS 14 release Apple added a new way to experience your app's features called App Clips. Let's discuss how App Clips works and ways to integrate them into an existing app.
No comment yet.

Tap to Navigate. How to systematize interactive labels… | by Linzi Berry | Tap to Dismiss | Oct, 2020

From medium.com

Systemizing a map component has remarkably more constraints than your average button. These seemingly simple interactive labels must stand out against all terrains, densities and fixed buttons. Can…
No comment yet.

Swift deinit is (sometimes) not called for throwing or failable initializers ·

From www.jessesquires.com

I was never a fan of failable initializers in Swift. I do not think this is the correct place to fail and return nil most of the time. Of course, there are exceptions where a failable initializer is appropriate
No comment yet.

Creating generic networking APIs in Swift

From www.swiftbysundell.com

A few different techniques that can help us share common networking logic, while also utilizing Swift’s advanced type system to make that kind of code more robust.
No comment yet.

Transactions in SwiftUI

From swiftwithmajid.com

Animations play a vital role in SwiftUI. We saw a lot of examples of complex animations that we can easily implement in SwiftUI. The guidance for building fluid animations in SwiftUI has the only one step: mutate your state, and SwiftUI will automatically animate changes in your views. Today we will talk about transactions, which is a hidden gem of SwiftUI.
No comment yet.