Skip to content

An overview of new APIs, just for SwiftUI, added in iOS 18.

License

Notifications You must be signed in to change notification settings

superwall/iOS18-SwiftUI-Tour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUI iOS 18 Tour

rocket

Getting Started

Use this companion app to tour the major additions to the SwiftUI framework which were added in iOS 18. Just clone or download this repo, and then open the Xcode project. From there, you can either run the app on your phone to reference it whenever you need, or you can view the entire experience using Xcode Previews. Either way!

This project requires Xcode 16 or later.

What's Included

The project is setup like a book with a table of contents. Just pick which API you're interested in learning more about, and you'll get interactive examples, complete with code:

Demo tour

Scrollview

  • Controlling scroll positions.
  • Detecting when a view is visible or not based on scrolling.
  • Detecting when a scroll view's geometry changes.

Zoom Transitions

  • How to use zoom transitions for views.
  • Customizing the configuration of the presented view.
  • How to use it outside of NavigationStack and for modal presentations.

SF Symbols

  • New animations for wiggle, rotation and breathe.
  • Customization options for animations.
  • Smart replace examples.

Handling Geometry Changes

  • How .onGeomtryChange works, and when to use it.
  • Understanding the transformation closure.

Text Effects

  • How to manipulate glyphs of text and animate them.
  • Introduction to the TextRenderer API.

Mesh Gradients

  • Understanding the makeup of a mesh gradient.
  • Animating mesh gradients.

Sizing Sheets

  • iPadOS demonstration of sizing modal views in different ways.

Contributing

We welcome any additions or APIs you'd like to see added. Simply open a pull request and we'd love to add your enhancements.

Superwall on iOS

Feel free to check out the Superwall blog for articles and tips over iOS development.

About

An overview of new APIs, just for SwiftUI, added in iOS 18.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages