Posts covering APIs, tools and techniques for developing macOS apps
Learn how to change the default position of y-axis in Swift Charts by using chartYAxis() modifier.
Visualise data distributions by building a histogram and a 2D density plot with the new Swift Charts framework.
Starting from iOS 16 and macOS 13 we have a SwiftUI API to request App Store reviews. We can read requestReview property from the environment and call it as a function at the appropriate time.
Tap gesture in SwiftUI now provides the tap location and we can request it in local or global coordinate space.
Starting from iOS 16 and macOS 13 SwiftUI List view can automatically generate move and delete operations without the need of onDelete() and onMove() closures.
With enhanced text modifiers in iOS 16 and macOS 13, it's easy to animate changes to text styles such as font size and weight.
Draw a custom SwiftUI view to replace the symbols in a scatter plot in Swift Charts.
New ViewThatFits API introduced at WWDC 2022 lets us create more flexible layouts in constrained space. It can even help us detect if text is truncated and adapt our views accordingly.
Build a custom ridge chart with the new Swift Charts framework to show the distribution of a numeric variable for several groups.
Use the new NavigationSplitView API with a column visibility parameter to programmatically control the visibility of the sidebar in multicolumn navigation in SwiftUI.
Explore the capabilities of the new Swift Charts framework introduced at WWDC 2022 while making a stream graph with custom colour gradient and text labels.
Let's try out the new SwiftUI navigation APIs introduced in beta 1 for iOS 16 and macOS 13: NavigationStack, NavigationSplitView and ways to set up programmatic navigation.
Trigger actions with onChange() modifier in SwiftUI that depend on multiple properties changing by combining the logic in a computed property.
Find out about different ways we can provide feedback about new APIs to Apple engineers, ask questions during WWDC and get help from Apple experts and wider developer community.
Make use of ControlActiveState value in the environment to customize the appearance of key window on macOS in SwiftUI.
Take a closer look at AttributedString type and different attribute scopes it can contain. Explore how Apple system frameworks interpret available attributes and how to create your own.
Learn how to size and scale symbol images in SwiftUI and why we shouldn't use resizable() modifier with SF Symbols.
Add custom encoding and decoding logic for SwiftUI Color that is not Codable by default to be able to save it to disk or remote database.
Hide and show a view based on a setting or state without shifting the layout by using opacity() modifier in SwiftUI.
Look into how to insert images, formatted data, attributed strings etc. inside SwiftUI Text views by leveraging the power of string interpolation in LocalizedStringKey.
SwiftUI Text views can automatically parse Markdown strings when created with LocalizedStringKey. Markdown isn't parsed when created with a String variable or with verbatim initializer.
We have several ways to customize the visual style of links placed inside Text views in SwiftUI: tint() modifier, different Text modifiers and attributes in AttributedString.
Customize actions for links inside Text views in SwiftUI by using openURL environment value.
Set underline and strikethrough styles in AttributedString and display it with SwiftUI Text view.
Set a keypath to your model properties as FocusState value to avoid declaring custom enums to programmatically set focus and respond to focus changes.
Build sidebar navigation for your macOS app with the help of selection binding in List view and use SceneStroage for state restoration.
Allow users to select the contents of SwiftUI Text view, to be able to copy or share it, by applying textSelection() modifier.
Learn how to rapidly evaluate a polynomial function of variable size on the GPU without needing to write C++ Metal shaders.
Make use of the focused scene value API to pass data from the focused scene to the commands section of the app.
Avoid the conflict between the drag gesture and editing of text fields inside list rows and make focusing on text fields easier.
Add custom information and copyright to your app's About window on macOS when using the SwiftUI app lifecycle.
Integrate with UndoManager in SwiftUI by building a reusable UndoProvider view that can be used with any binding.
Provide state restoration for expanded rows in a SwiftUI List view with SceneStorage property wrapper.