UIKit is Apple's framework for app interfaces on iPhone, iPad and Apple TV, available since iOS 2.0. Starting in iOS 27, an app built with the latest SDK must use the UIScene life cycle or it fails to launch.
What UIKit is
UIKit gives an app its window and view hierarchy, delivers Multi-Touch and other input, and runs the main event loop between the person, the system and the app (UIKit documentation). Screens are built from view controllers (UIViewController) and views (UIView), and you update them yourself when data changes. That's the main difference from SwiftUI, where you describe the screen and the system handles redrawing.
Per Apple's documentation UIKit runs on iOS and iPadOS 2.0, tvOS 9.0 and visionOS 1.0, and reaches the Mac through Mac Catalyst from version 13.0. Apple allows UIKit classes to be used only from the main thread unless a class's documentation says otherwise.
Where UIKit lives in Xcode
A new UIKit project starts with File › New › Project › App, with Storyboard chosen under Interface (as in Xcode 26). Xcode adds AppDelegate.swift, SceneDelegate.swift, ViewController.swift and Main.storyboard. You can lay out screens in Interface Builder or build them in code without a storyboard.
Scene settings live in Info.plist under the UIApplicationSceneManifest key. If it's missing, TN3187 says to open the app target, the General tab, the Deployment Info section, and tick Scene manifest. Since June 2023 you can add the #Preview macro to a view controller and see a UIKit screen on the canvas next to your code.
Apple's versions and deadlines
| What | Since |
|---|---|
| UIKit | iOS and iPadOS 2.0, tvOS 9.0, visionOS 1.0, Mac Catalyst 13.0 |
| UIHostingController, SwiftUI inside UIKit | iOS 13.0 |
| UIViewRepresentable, UIKit inside SwiftUI | iOS 13.0 |
| Log warning without scenes | iOS 18.4, stronger wording in iOS 26 |
| UIGlassEffect, glass for your own views | iOS 26.0 |
| Observable objects in layoutSubviews | since June 2025, iOS 26 |
| Scene life cycle required | iOS 27 when building with the latest SDK |
Per UIKit updates, TN3187 and the SwiftUI documentation, checked October 17, 2026.
UIKit and SwiftUI in one app
You don't have to rewrite everything at once. UIHostingController is a regular UIKit view controller that hosts a SwiftUI screen. You present it, push it onto a navigation stack or embed it as a child, and swap the screen inside through its rootView property. New screens get written in SwiftUI while old ones stay as they are.
The way back is UIViewRepresentable for a view and UIViewControllerRepresentable for a controller. It creates the UIKit view, updates it when data changes and tears it down. The view doesn't tell SwiftUI about its own events, so you add a Coordinator that forwards delegate calls and actions. The full comparison is on the SwiftUI page, and since June 2024 UIKit gestures move into SwiftUI through UIGestureRecognizerRepresentable.
Liquid Glass in UIKit
Standard UIKit bars and buttons turn to glass on their own once you build with Xcode 26, and the material itself is covered on the Liquid Glass page. For custom elements, UIKit has its own tools since iOS 26. UIGlassEffect is an effect for UIVisualEffectView, UIGlassContainerEffect groups neighboring views so they morph into each other, and button configurations gained glass() and prominentGlass().
The scroll edge under glass bars is tuned with UIScrollEdgeEffect. All of this is listed in Apple's June 2025 UIKit updates.
How to move to scenes, step by step
- Check the two signs TN3187 lists. Info.plist has no UIApplicationSceneManifest key, or AppDelegate has no application(_:configurationForConnecting:options:) method. Either one means you need to migrate.
- Open the app target, General › Deployment Info, and tick Scene manifest.
- Create a SceneDelegate class adopting UIWindowSceneDelegate and name it in the scene configuration.
- Move window creation from application(_:didFinishLaunchingWithOptions:) to scene(_:willConnectTo:options:), since each window now belongs to its scene.
- Split event handling. Going to the background and coming back now reach the scene, while process launch stays with AppDelegate.
- Build with Xcode 27 and run on iOS 27. The UIScene warning should be gone from the log.
Common mistakes
- An old app without scenes on the new SDK. Apple says that from iOS 27 such an app won't launch. The log warning has been there since iOS 18.4, and it's easy to miss.
- Turning on multiple windows without a reason. Only the scene life cycle is required, and supporting several scenes may mean restructuring your data model.
- Setting frame on a view inside UIViewRepresentable. SwiftUI owns that view's position and size, and setting center, bounds, frame or transform by hand leads to undefined behavior.
- Updating the screen from a background thread. UIKit expects the main thread, and touching the interface from another thread causes rare crashes.
Appto writes new apps in SwiftUI in a regular Xcode project, walks through every screen in the simulator itself and fixes what it finds. You can check the result by hand in the simulator, on your iPhone or through TestFlight, more on the code page.
Questions
Should I use SwiftUI or UIKit?
For a new app, usually SwiftUI, with UIKit brought in where needed through UIViewRepresentable. An existing UIKit app can add SwiftUI screens through UIHostingController, and both have been available since iOS 13.
Is UIKit deprecated?
No. Apple keeps extending it, and in September 2026 UIKit gained new view controller arrangements and hinge support for iPhone Duo.
What happens if I don't adopt UIScene?
Per Apple's June 2026 UIKit updates, from iOS 27 an app built with the latest SDK without the scene life cycle fails to launch.
How do I show a SwiftUI view in UIKit?
Create a UIHostingController with your SwiftUI view and show it like any view controller, presented, pushed or embedded as a child.
Does #Preview work with UIKit?
Yes. Since Xcode 15 in 2023 the #Preview macro shows UIView and UIViewController on the canvas, though only on iOS 17 and later.
Build your own app in Appto
Appto checks the niche on fresh App Store data, designs the screens, writes the code, builds the App Store page and submits to Apple from your account or shows you what to press in App Store Connect. Runs on your own Claude Code or Codex.
Download for Mac