Skip to main content

WWDC 2025 Sessions Summary: What's new in SwiftUI ?

This summary covers key updates from WWDC 2025 sessions to build a SwiftUI app with the new design.

1. Liquid Glass
  • Liquid Glass is a new adaptive material inspired by glass and liquid, dynamically changing based on the content underneath. This SwiftUI’s new design system brings a fluid, glassy look across platforms, with tab bars, toolbars, and navigation views adopting Liquid Glass automatically.
  • UI elements like sliders, toggles, and pickers animate fluidly with the new material, enhancing interactivity.
2. Background Extension Effect
  • The NavigationSplitView now features a floating Liquid Glass sidebar and allows for safe-area background extension using backgroundExtensionEffect.
3. Tabbar Minimize Behavior
  • A new tab bar behavior enables it to float above contents and minimize on scroll with tabBarMinimizeBehavior, keeping content in focus.
  • Developers can add bottom accessory views to the tab bar using tabViewBottomAccessory, which adapts to collapse states.
4. Sheets behaviour
  • Sheets now feature a default inset and Liquid Glass background, morphing smoothly during transitions and resizing.
5. Toolbars behaviour
  • Toolbars float over content and adapt visually using automatic grouping and the new ToolbarSpacer for spacing and alignment, giving developers more control over layout clarity.
  • You can badge toolbar items with minimal code using the badge modifier for notifications or attention indicators.
6. Search Experience
  • The updated search experience supports placement within toolbars or as dedicated pages, adapting to platform and layout.
  • Use searchToolbarBehavior and searchable modifiers to customize search field visibility and scope.
7. New shapes for Standard controls
  • Standard controls like buttons, sliders, and menus have updated styles, larger hit areas, and support new shapes like capsules.
  • Tick marks in sliders are now supported and customizable, with ticks and neutralValue parameters for fine control.
8. Corner concentricity
  • This controls align their corner radius to containers using concentric rectangle shapes.
9. Glass Effect & Grouping
  • Use glassEffect to add Liquid Glass visuals to custom views, with vibrant adaptive text and tint colors.
  • Group multiple glass elements with GlassEffectContainer i.e ideal when closer elements and use glassEffectID and Namespace for animated transitions.
10. Smooth Scrolling
  • Scrolling improved frame scheduling, reducing dropped frames during fast scrolls across platforms.
  • Nested lazy stacks in scroll views now delay loading until views are close to appearing, improving memory and rendering performance.
11. Support 3D layout
  • SwiftUI brings support 3D layout with Alignment3D and spatialOverlay, enabling depth-aware UI in visionOS.
12. Scene Bridging
  • Lets UIKit and AppKit apps access SwiftUI scenes like MenuBarExtra, ImmersiveSpace, and AssistiveAccess.
13. WebView in SwiftUI
  • SwiftUI now includes WebView powered by WebKit for native in-app web content rendering with full page model interaction via WebPage.
14. Charts :
  • Now support 3D rendering with Chart3D, complete with Z-axis scaling and sinusoidal plotting support.
15. Rich Text Editing
  • SwiftUI supports rich text editing with TextEditor and AttributedString, enabling formatting options like bold, italic, and custom styles.

Popular posts from this blog

Animating label text update - choosing a better way

Recently I published a countdown app .  At one point of development - I have to show a timer on a UILabel which ticks on each seconds. As usual I started  setting text to a label object - self .timerLabel.text = someString Easy piece of cake right !?   But wait ... it won't take much user attention when timer ticks on every seconds. So I decided to make use of a simple animation while label gets text update. I found there are dozens of ways to animate a label. In this short article, I listed 3 best way you can animate text on a label. ( Spoiler Alert 👀- I decided to go with 3rd option)  1. Fade In - Fade out animation : CATransition class has got transition type `fade`. With timing function of CATransition - I was able to see the below result. let animation: CATransition = CATransition () animation.timingFunction = CAMediaTimingFunction (name: CAMediaTimingFunctionName .easeInEaseOut) animation.type = CATransitionType .fade animation.subtype = C...

Prevent Navigationbar or Tabbar overlapping Subview - solved for Card view

Recently, I started with a Card view added as a subview of UIView in a view-controller. When a view controller created along subviews, it tends to use entire screen bounds and also slips behind Tab bar or Navigation bar. In my current situation, it's second case. Casually new iOS developers will write a patch by additional value for coordinate y and subtracting bar height from its size. A lot of them posted in SO threads too : How to prevent UINavigationBar from covering top of view? View got hidden below UINavigationBar iOS 7 Navigation Bar covers some part of view at Top So, how I got solved ? self.edgesForExtendedLayout = [] This  will avoid all subviews in a view controller get behind any bars. Read full apple  documentation on here. Full Source code below :  //Simple view controller where its view layed-out as a card. class WidgetCardViewController : UIViewController { var containerView = UIView () //MARK:- View Controller Life Cyc...

UICollectionViewCell shows with wrong size on First time - Solved

We commonly use Collection view where its cell size calculated run time. The flow layout delegate is responsible to return individual cell sizes. BUT in most of the cases, delegate method `collectionView: layout sizeForItem:` expects cell size too early. Before generating actual cell size. extension YourViewController : UICollectionViewDelegateFlowLayout { func collectionView ( _ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { return CGSize (width: externalWidth, height: externalHeight) } } For instance, if a cell size depends on external view and its frame is not yet ready - results with wrong (or outdated) cell size. Typically happens for the first time view controller laid out all views. You can find similar queries in StackOverflow community : Collection view sizeForItemNotWorking UICollectionViewCell content wrong size on first load How to refresh UICollec...

Implementing autocompletion OTP field in iOS

Long waiting is over. !!  iOS 12 brings Autofill for OTP text field which is close to Android provided a decade back. Previously in iOS we used to toggle between OTP text screen and message inbox.  Which was hard to remember and time consuming resulting a bad user experience. Personally, I have been asked from the client/customer couple of times to implement autocompletion for OTP field and took me a lot of time to convey that it is not possible in iOS. Why Autofill was not possible previously?  We all know that Apple gives at most care for user privacy. When we see iOS architecture, each individual app is like a separate island. There is no inter-app bridge between apps (exception for Keychain and URLSchemes APIs which gives very limited scope). Thus we cannot read message content from inbox. Where to start Autofilling? First of all, the target SMS need to have the OTP Code with prefix string "Code" or "Passcode"on its message content. Beware of OTP c...

Static variable vs Class variable in Swift

How Static properties differs to usual properties ? Used to create type properties with either let or var. These are shared between all objects of a class.  During class loading time, a single memory location allocated for the property if we declared as static. Static property belongs to a class (or struct) Type rather than Instance of class (or struct). Hence it also called  Type Properties What if we declare "static var" ? Since it's a variable, we can change it in future even after initialised. When we change the value of the static variable property, that property is now changed in all future instances. What if we declare "static let" ? static let instance : Singleton = Singleton() Since it's constant, we cannot change once initialised. Its value will remain same even if we share among all the instance or object of a class or struct. Useful to adopt singleton pattern. How class variables differ static variables ? It dif...