Download

UIKit. What it is and what changed in iOS 26 and iOS 27

What UIKit is made of, how to put its screens inside SwiftUI and the other way round, where Liquid Glass fits and why an old app without scenes may stop launching.

In short

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

WhatSince
UIKitiOS and iPadOS 2.0, tvOS 9.0, visionOS 1.0, Mac Catalyst 13.0
UIHostingController, SwiftUI inside UIKitiOS 13.0
UIViewRepresentable, UIKit inside SwiftUIiOS 13.0
Log warning without scenesiOS 18.4, stronger wording in iOS 26
UIGlassEffect, glass for your own viewsiOS 26.0
Observable objects in layoutSubviewssince June 2025, iOS 26
Scene life cycle requirediOS 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

  1. 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.
  2. Open the app target, General › Deployment Info, and tick Scene manifest.
  3. Create a SceneDelegate class adopting UIWindowSceneDelegate and name it in the scene configuration.
  4. Move window creation from application(_:didFinishLaunchingWithOptions:) to scene(_:willConnectTo:options:), since each window now belongs to its scene.
  5. Split event handling. Going to the background and coming back now reach the scene, while process launch stays with AppDelegate.
  6. Build with Xcode 27 and run on iOS 27. The UIScene warning should be gone from the log.
Moving to the UIKit scene-based life cycleSix steps to move a UIKit app to the scene-based life cycle per Apple technote TN3187. Check whether Info.plist has the UIApplicationSceneManifest key. Turn on Scene manifest under General, Deployment Info. Create a SceneDelegate class adopting UIWindowSceneDelegate. Move window creation from AppDelegate into the scene. Split background and foreground events between AppDelegate and SceneDelegate. Build with Xcode 27 for iOS 27, where an app on the latest SDK without a scene fails to launch. UIKit has logged a warning since iOS 18.4. Checked October 17, 2026.Moving to the UIKit scene-based life cyclePer Apple TN3187, required from iOS 27 on the latest SDK, checked October 17, 20261Check Info.plistTarget › Infono UIApplicationSceneManifest2Turn on Scene manifestGeneral › Deployment Infothe key lands in Info.plist3Create a SceneDelegateFile › New › Filea UIWindowSceneDelegate class4Move the windowSceneDelegateUIWindow is created per scene5Split the eventsAppDelegate and SceneDelegatebackground and active move to thescene6Build on the new SDKXcode 27, iOS 27no scene means no launch
One scene is enough, and supporting multiple windows stays optional. Per TN3187 and UIKit updates, checked October 17, 2026.

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