Swift Dev Journal
mastodon 4.7.3I develop Mac and iOS apps (Phel, Bartleby, AM Pages) in Swift using SwiftUI and AppKit. I also write about app development in Swift at Swift Dev Journal.
The following article shows a way to create an infinite scroll view in SwiftUI:
https://livsycode.com/swiftui/infinite-scrollview-in-swiftui/
The following article provides a guide to debugging universal links in iOS apps:
The following article explains why an Observable class's init runs multiple times in SwiftUI:
https://livsycode.com/swiftui/why-your-observable-class-init-runs-multiple-times-in-swiftui/
The following article shows a process to create SwiftUI animations:
https://www.swiftdifferently.com/blog/swiftui/swiftui-animation-with-example
Macshot is a cool tool for developers who need to take screenshots and add things like arrows to the picture. @metin@graphics.social
Wondering how long your app takes to launch? The following article shows how to use Instruments to measure your app's launch time:
I tried using SwiftUI's new support for rich text in TextEditor. It's nowhere near a replacement for NSTextView on Mac.
You have to open the ruler from the Format menu to show rich text formatting controls. The controls are limited compared to NSTextView's inspector.
The worst issue is sidebars block the left side of the formatting controls. You have to hide the sidebar to apply a paragraph style to your text.
The following article shows how to add an Open Recent menu to a SwiftUI app:
The following article shows how to use the new SwiftUI instrument to find the views in your app that update the most:
https://swiftdevjournal.com/posts/swiftui-frequent-view-updates/
The following article shows how to use MapKit to create maps in SwiftUI apps:
https://www.createwithswift.com/creating-maps-in-swiftui-apps-with-mapkit/
The following article shows how to use Dynamic Type to scale images in iOS apps:
The following article shows techniques for highlighting the selected menu item in SwiftUI Mac apps:
Wondering how long your app takes to launch? The following article shows how to measure your app's launch time with Instruments:
If you are seeing a popup button at the top of the navigator and inspector views in Xcode instead of a segmented control with buttons for each navigator/inspector, make the navigator and/or inspector view wider. The segmented control turns into a popup button when the view is too narrow.
If you’re interested in learning the Swift programming language and looking for a guide, the following guide provides a nice introduction to the language: