At WWWDC 2022, Apple introduced SwiftUI Charts, which makes it easy to create
various charts within SwiftUI views. This article demonstrates how to quickly create
a bar chart and customise the chart containing multiple sets of data.
SwiftUI Charts introduced in iOS 16, can present data in an intuitive visual format
and can be created quickly using SwiftUI Charts. This article demonstrates a couple
of ways to customise a line chart and combine with an area chart to present data.
Apple introduced SwiftUI Charts at WWWDC 2022, which makes it incredibly easy to
create charts within SwiftUI views. Charts are a great way of presenting visual data
in a rich format that is easy to understand. This article shows how to easily create
a line chart with so much less code than was previously used to …
SwiftUI does not have a control to present an open/save dialog to the user to allow
saving files to the macOS filesystem. One could build such a view from scratch, but
it is easier to use NSSavePanel from AppKit. This article demonstrates how to use
NSSavePanel to get the URL for the file to be saved and use …
Swift provides a number of map methods to transform elements in Swift collections and
return the transformed data in a new Array. The transform is supplied in a trailing
closure to the map function. This article looks at Map, FlatMap and CompactMap on
collections in Swift as well as MapValues in Dictionary.