Swift
92.7K views | +0 today

How I Created a DSL for Diffable Section Snapshot using Result Builders

From swiftsenpai.com

Here's how I created a DSL that can visually represent a diffable section snapshot's hierarchical structure using result builders.
No comment yet.

Understanding the SwiftUI grid layout

From blog.logrocket.com

Improve your app's UI by making grids in Swift using LazyVGrid and LazyHGrid to build vertical and horizontal scrolls.
No comment yet.

Swift Result Builders: The Basics You Need to Know!

From swiftsenpai.com

This article shows you the basic concept of Swift result builders, how it works, and how to use it to create your own custom result builders.
No comment yet.

jegnux/BackedCodable: Powerful property wrapper to back codable properties.

From github.com

Powerful property wrapper to back codable properties. - jegnux/BackedCodable
No comment yet.

Creating a Siri Shortcut

From swiftjectivec.com

Create a basic shortcut that will show in the Shortcuts app.
No comment yet.

Using Combine’s futures and subjects

From www.swiftbysundell.com

How Combine’s Future and subject types enable us to build many different kinds of functionality without having to write custom publisher implementations from scratch.
No comment yet.

SwiftUI read preference helper

From alejandromp.com

SwiftUI's layout system is very nice to get started with. Combining stacks and modifiers you can get very far very quickly, but at some point you will need t
No comment yet.

Mapping Firestore Data in Swift - The Comprehensive Guide

From peterfriese.dev

Learn everything about how to map Firestore documents to Swift and back
No comment yet.

How to show and hide content with DisclosureGroup using SwiftUI

From kristaps.me

Showing and hiding some parts of information is a vital feature in mobile apps, especially considering that phone screens are much smaller than those on laptops or desktop computers. Now with the new SwiftUI capabilities, we can collapse content with `DisclosureGroup`. Let's see how we could use it in various ways.
No comment yet.

Quick guide to using Core Data with SwiftUI | by Natascha Fadeeva

From tanaschita.com

Learn the basics for using the Core Data framework with SwiftUI in iOS
No comment yet.

How to Create iOS 14 Widgets With WidgetKit

From exyte.com

In 2020 Apple came up with an updated vision of widgets and unified their API across platforms. The new WidgetKit framework made widgets more accessible, interactive and increased SwiftUI adoption. Starting with iOS 14, widgets can be presented in multiple sizes and placed on the iOS Home screen, Today View, or macOS Notification Center.
No comment yet.

A better approach to writing a UserDefaults Property Wrapper ·

From www.jessesquires.com

UserDefaults is one of the most misused APIs on Apple platforms. Specifically, most developers do not handle default values correctly. In fact, I have never worked on a single production codebase at a company where this was done accurately
No comment yet.

Scaling Custom SwiftUI Fonts With Dynamic Type

From useyourloaf.com

We've previously seen how to make a custom font scale with dynamic type when using UIKit. How do you do the same with SwiftUI?
No comment yet.

Frameworks: embed or not embed that's the question

From holyswift.app

The importance of knowing how and why embed Frameworks.
No comment yet.

Getting to Know the Simulator Better • Andy Ibanez

From www.andyibanez.com

Learn about the features the Simulator offers to make your Apple App development better.
No comment yet.

UIMenu: Comprehensive guide | Filip Němeček

From nemecek.be

Learn how to use UIMenu to build modern UI. This tutorial shows basic example, how to add separator, how to work with submenus and more.
No comment yet.

Tweaking The iOS System Fonts

From useyourloaf.com

Before you switch to a custom font don't overlook how much you can tweak the appearance of the system fonts. A quick review of some font APIs that work for both UIKit and SwiftUI.
No comment yet.

How to use @autoclosure in Swift to improve performance

From www.avanderlee.com

@autoclosure allows us to delay computing arguments with the same code on the implementation level, while optimising our code for performance.
No comment yet.

Building a Customizable UITextField with Combine

From lickability.com

A detail-obsessed software studio. We design and develop delightful apps for amazing companies.
No comment yet.

Tuist Template: What is it and how to create them

From sarunw.com

The template is a way to group repetitive code structure into a reusable component. You will learn how to create them in this article.
No comment yet.

Code Generating Swift Mocks with Sourcery

From www.vadimbulavin.com

How to code generate mocks in Swift? How to integrate Sourcery to an Xcode project? How to unit test an API service by mocking URLSession in Swift? These are the questions to answer in this article.
No comment yet.

ra1028/SwiftUI-Hooks: A SwiftUI implementation of React Hooks. Enhances reusability of stateful logic and gives state and lifecycle to function view.

From github.com

A SwiftUI implementation of React Hooks. Enhances reusability of stateful logic and gives state and lifecycle to function view. - ra1028/SwiftUI-Hooks
No comment yet.

Statically-typed JSON payload in Swift | by Luis Recuenco | Mar, 2021 | Jobandtalent Engineering

From jobandtalent.engineering

Quite a lot has already been said about creating properly typed API clients on top of URLSession. In fact, two of my favorite blog posts about the topic are: Unlike Android, where Retrofit seems like…
No comment yet.

How Uber Deals with Large iOS App Size

From eng.uber.com

The App Size Problem Uber’s iOS mobile Apps for Rider, Driver, and Eats are large in size. The choice of Swift as our primary programming language, our fast-paced development environment and feature additions, layered software and its dependencies, and statically linked platform libraries result in large app binaries. Reducing application size is critical to our customer experience. Moreover, Apple’s app-download-size limitations prohibit large app downloads over the air.  App-download-size restriction means first-time users cannot download the app when they need it the most, and Uber cannot deliver features, promotions, or security updates to existing users when they are not on
No comment yet.

Exploiting String Interpolation For Fun And For Profit

From davedelong.com

A while ago I was playing around with Swift’s string interpolation functionality and come up with something cool I thought I’d share with you.
No comment yet.