Swift
89.9K views | +0 today
Follow

Improving multiplatform SwiftUI code ·

From www.jessesquires.com

For multiplatform projects where I’m using SwiftUI, it certainly makes developing for multiple platforms at once significantly faster. However, each o
No comment yet.

How to Use UIPickerView in Swift 5.7 & Xcode 14

From codewithchris.com

This in-depth tutorial will teach you how to use UIPickerView with Swift 5.7 and Xcode 14. Learn how to use a Picker and add it to a SwiftUI view now.
No comment yet.

Building a Scrollable Custom Tab Bar in SwiftUI

From www.appcoda.com

You may want to build a custom tab bar using SwiftUI to suit your iOS app project. This tutorial walks you through the technique to build an animated tab bar.
No comment yet.

Downloading Data in SwiftUI with URLSession and async/await

From matteomanferdini.com

When you need to download or upload data in iOS apps, use the `URLSession` class to group, pause, resume and cancel network transfers.
No comment yet.

SwiftUI Tables Quick Guide

From useyourloaf.com

SwiftUI tables are available on iOS 16. Here's a quick guide.
No comment yet.

Xcode Tip: filtering debugger output ·

From www.jessesquires.com

When debugging a large project in Xcode that a large team works on, the console can get quite busy. Logs are everywhere! It can be difficult to sift throug
No comment yet.

Customizing SwiftUI Bottom Sheet's Background and Scrolling

From www.appcoda.com

Starting from iOS 16.4, you can customize the SwiftUI Bottom Sheet's background, scrolling behaviour and many more. Let's dive in and see how it works.
No comment yet.

Customizing SwiftUI Bottom Sheet's Background and Scrolling

From www.appcoda.com

Starting from iOS 16.4, you can customize the SwiftUI Bottom Sheet's background, scrolling behaviour and many more. Let's dive in and see how it works.
No comment yet.

Pattern Matching in Swift – Ole Begemann

From oleb.net

One of Swift’s great features is that you can extend the pattern matching system. In this article I show you how to add pattern matching support for inequalities in switch statements.
No comment yet.

Pattern matching on error codes – Ole Begemann

From oleb.net

Foundation overloads the pattern matching operator ~= to enable matching against error codes in catch clauses.
No comment yet.

SwiftUI views versus modifiers

From www.swiftbysundell.com

What’s really the difference between building a piece of UI as a view versus a modifier, and how to choose between those two solutions?
No comment yet.

How to find and fix premature view controller loading on iOS ·

From www.jessesquires.com

While working on a very large iOS client project, I was investigating the causes for our slow app launch time. We had a hypothesis that part of the proble
No comment yet.

“The Swift Programming Language” book now published with DocC

From swift.org

We’re happy to announce that The Swift Programming Language book is now published using Swift-DocC, starting with Swift 5.8. TSPL is now ready to start accepting content contributions, under the direction of the Swift Documentation Workgroup.

jerometonnelier:

Awesome <3

No comment yet.

Using ToggleStyle to Build Custom Toggles in SwiftUI

From www.appcoda.com

You can easily build your own toggles in SwiftUI using the ToggleStyle protocol. In this tutorial, we will walk you through the process with code samples.
No comment yet.

Xcode Multi-Cursor Editing

From useyourloaf.com

Xcode multi-cursor editing (Control-Shift-Click).
No comment yet.

Semantic Colors and Styles — Chris Eidhof

From chris.eidhof.nl

In SwiftUI, most colors are semantic colors that get resolved at runtime. For example, here are a few colors (rendered on macOS) in both light mode and dark mode. It’s a little hard to see, but even colors like .blue and .red are slighly different: Note that the above colors might be influenced by...
No comment yet.

Building a QR Code Scanner App in SwiftUI

From www.appcoda.com

In this tutorial, we will show you how to build QR Code Scanner app using SwiftUI. You will learn how to integrate SwiftUI projects with UIKit and AVFoundation.
No comment yet.

SwiftUI Environment Tips — Chris Eidhof

From chris.eidhof.nl

In our SwiftUI workshop we always include an exercise where you learn about how the environment works. Often, we build some kind of stylesheet that gets passed down the environment, from the root view.
No comment yet.

Observing the content offset of a SwiftUI ScrollView

From www.swiftbysundell.com

How the content offset of a SwiftUI ScrollView can be observed without bridging to UIKit.
No comment yet.

Variadic Views — Chris Eidhof

From chris.eidhof.nl

This week’s post about how the SwiftUI view protocol really represents lists stirred a bit of controversy on Mastodon. But I think we all learned a bit from the discussion that followed (I definitely did). To deal with these lists of views (e.g.
No comment yet.

SwiftUI: Alert

From www.thomashanning.com

Alert is equivalent to UIKit’s UIAlertView in SwiftUI. This post is about creating and presenting an alert in SwiftUI.















Hint: This post has been updated to Swift 5.7 and Xcode 14.2






Creating an alert in SwiftUI





Creating an alert in SwiftUI is very straightforward:





Alert(title: Text(
No comment yet.

SwiftUI Views are Lists — Chris Eidhof

From chris.eidhof.nl

When you write SwiftUI, all your views conform to the View protocol. The name of this protocol is a bit misleading: I it could be called Views or ViewList, or something else that suggests plurals. For example, consider the following view: struct MyView: View { var body: some View { Text("Hello")...
No comment yet.

New Scanning and Text Capabilities with VisionKit | Kodeco, the new raywenderlich.com

From www.kodeco.com

VisionKit comes with new Scanning and Text Capabilities. In this tutorial, you’ll learn how to use Apple’s latest VisionKit update to take advantage of the new capabilities.
No comment yet.

Swift Package String Localization

From useyourloaf.com

How do you localize a string in a Swift Package?
No comment yet.

A possible vision for macros in Swift · GitHub

From gist.github.com

A possible vision for macros in Swift. GitHub Gist: instantly share code, notes, and snippets.
No comment yet.