Can I use text effects in iOS 17?
Generated on 8/3/2024
1 search
Yes, you can use text effects in iOS 17. There are several new features and improvements related to text effects across different sessions at WWDC 2024:
-
SwiftUI Enhancements:
- You can extend SwiftUI text views with custom rendering effects and interaction behaviors. For example, you can build a word highlighting effect for karaoke lyrics, making the text look like it's glowing purple. This is demonstrated in the session What’s new in SwiftUI.
-
Custom Visual Effects with SwiftUI:
- The new text attribute protocol introduced alongside text renderer in iOS 18 allows for creating custom visual effects. By implementing this protocol, you can pass data from your text to your text renderer and apply custom attributes to specific ranges of text. This is covered in the session Create custom visual effects with SwiftUI.
-
UIKit Text Improvements:
- iOS 18 introduces a new text formatting panel that provides a consistent and customizable experience for apps that offer text formatting options. This includes a new text highlight feature that works by applying two new
texthighlightstyle
attributes. This is detailed in the session What’s new in UIKit.
- iOS 18 introduces a new text formatting panel that provides a consistent and customizable experience for apps that offer text formatting options. This includes a new text highlight feature that works by applying two new
-
AppKit Text Highlighting:
- macOS Sequoia introduces new text highlighting features controlled by attributed string attributes. The
texthighlight
attribute corresponds to atexthighlightstyle
, which can be set to system default to indicate that a range of text should be highlighted. This is explained in the session What’s new in AppKit.
- macOS Sequoia introduces new text highlighting features controlled by attributed string attributes. The
These sessions provide comprehensive insights into how you can leverage new text effects and formatting capabilities in iOS 17 and other aligned releases.
What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.
Create custom visual effects with SwiftUI
Discover how to create stunning visual effects in SwiftUI. Learn to build unique scroll effects, rich color treatments, and custom transitions. We’ll also explore advanced graphic effects using Metal shaders and custom text rendering.
What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.
What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and more.