97.1% of iOS users can use this modifier
iOS 14+ required
.toolbar() Basic toolbar modifier
Apply the .toolbar() modifier to a view
Text("Hello, World!")
.toolbar()If your app supports iOS versions older than 14, you can use #available to conditionally apply this modifier:
if #available(iOS 14, *) {
myView.toolbar()
} else {
// Fallback for older iOS versions
myView
}Check the code examples above for specific #available patterns with this modifier.
The .toolbar() modifier requires iOS 14 or later. This means 97.1% of current iOS users can use this modifier.
Yes! Use #available(iOS 14, *) to conditionally apply this modifier only on devices running iOS 14 or later, with a fallback for older versions.
Apply the .toolbar() modifier to any SwiftUI view. Check the code examples above for usage patterns.
Visit the official Apple documentation for detailed information.