Make your Chart Scrollable with SwiftUI Charts (iOS 17)
Finally with Xcode 15 and iOS 17 you can make your SwiftUI Charts scrollable. Apple introduced some new APIs that make this process easy and customisable. APIs Scroll direction func chartScrollableAxes(_ axes: Axis.Set) Here you can choose whether to scroll your chart vertically or horizontally….
What’s New In SwiftUI 3.0?
SwiftUI is Apple’s declarative UI framework . It helps you build great apps across all Apple platforms with the power of Swift and minor code. At WWDC 2021 , SwiftUI was updated with new enhancements and features. SwiftUI 3.0 is available on iOS 15, iPadOS…
Combine CoreData and SwiftUI | SwiftyLion
Recently I had to build an app using SwiftUI and CoreData. I thought CoreData was used almost as you would use it with UIKit, but apparently there are some differences. This guide is intended as a summary of my experience using CoreData combined with SwiftUI….
How To Use Markdown in SwiftUI
The markdown feature of the Text element is a great feature! You can just type your markdown string and SwiftUI will render the text formatted. Let’s see different ways to use it. Usage You can use a string literal Text(“This will be bold”) Or you…
ContentUnavailableView Handle Empty States in SwiftUI
With iOS 17 Apple introduced in SwiftUI a new View to handle empty states or even errors. It’s called ContentUnavailableView, of course it’s design it’s very “Apple” but it has some degree of customisation. Usage ContentUnavailableView provides a ready-to-use configuration and inits to let you…
How to Let User Paste Data Into your App in SwiftUI
With iOS 16, SwiftUI has a new dedicated PasteButton that lets user paste any kind of objects. It let us receive any object that conforms to the Transferable protocol. Some examples are: String, URL, Data and Image. Implementation To let the user paste an image,…
SwiftData the Successor of CoreData Explained with SwiftUI
SwiftData is a framework for data modelling and management. It’s built on top of CoreData’s persistence layer, but with an API completely redesigned and reimagined for Swift. SwiftData provides also support for undo and redo automatically. And if your app have shared container enabled, SwiftData…
Create Menus with Palette Picker in SwiftUI and UIKit
Menus are really useful in iOS and iPadOS, they allow to pack many option in a single button in an easy way. Now, they are even more powerful. There is a new way to display options in Menu. It is called Palette and allows you…