iOS 17 — What’s New In UIKit

A full list of new APIs available in UIKit in iOS 17

Alessandro Manilii
4 min readJun 11, 2023
Photo by picjumbo.com: https://www.pexels.com/it-it/foto/notebook-accanto-all-iphone-sul-tavolo-196644/

Despite the increasingly widespread use of SwiftUI on Apple platforms, the Cupertino manufacturer has also released several updates for the classic frameworkused to build the UI in our apps: UIKit.

In this article I will show you the complete list of new features.

Please note that the following updates are related to the beta 1 version of iOS 17 and Xcode15.

I remember you that I’m also on Patreon , where you can find the code of my articles, and where you can support me. 👍

General

  • Preview your views and view controllers alongside your code using the new #Preview Swift macro.
  • Take advantage of a new view controller appearance callback, viewIsAppearing(_:), to run code that depends on the view’s initial geometry. The system calls this method when both the view and view controller have an up-to-date trait collection, and after the superview adds the view to the hierarchy and lays it out. This method deploys back to iOS 13.
  • Learn about enhancements to the trait system, which let you define custom traits for your own data, quickly change trait values throughout the view hierarchy, and register for trait changes in more flexible…

--

--

Alessandro Manilii

I’m an Italian professional iOS Developer, iOS Tech Lead at Wakala — Join Medium from the following link: https://medium.com/@alessandromanilii/membership