How to use custom alignment?

Generated on 8/2/2024

1 search

To use custom alignment in your app, you can refer to the following sessions and segments from WWDC 2024:

  1. Customize spatial Persona templates in SharePlay:

    • You can align seats with an orthogonal axis of the app, such as the x or z axis. For example, to place a row of seats in a line all facing directly forwards perpendicular to your app's plane, you would align with the z axis. You can also rotate the seat by a given value in degrees or radians. Customize spatial Persona templates in SharePlay (31:36).
  2. What’s new in SF Symbols 6:

    • When working with SF Symbols, you can use the "snap to points" button to align vectors of the path and anchor points. This is useful for centering the anchor point precisely. What’s new in SF Symbols 6 (14:42).
  3. Dive deep into volumes and immersive spaces:

    • You can control how volumes present themselves within the world using world alignment. This can be either gravity-aligned or adaptive tilting behavior. The volume world alignment modifier allows overriding the adaptive alignment, keeping the volume aligned with the floor. Dive deep into volumes and immersive spaces (15:34).

These sessions provide detailed guidance on how to implement custom alignment in different contexts within your app.

Get started with Dynamic Type

Get started with Dynamic Type

Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.

Customize spatial Persona templates in SharePlay

Customize spatial Persona templates in SharePlay

Learn how to use custom spatial Persona templates in your visionOS SharePlay experience to fine-tune the placement of Personas relative to your app. We’ll show you how to adopt custom spatial Persona templates in a sample app with SharePlay, move participants between seats, and test your changes in Simulator. We’ll also share best practices for designing custom spatial templates that will make your experience shine.

What’s new in UIKit

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.

Build multilingual-ready apps

Build multilingual-ready apps

Ensure your app works properly and effectively for multilingual users. Learn best practices for text input, display, search, and formatting. Get details on typing in multiple languages without switching between keyboards. And find out how the latest advances in the String Catalog can make localization even easier.

What’s new in SF Symbols 6

What’s new in SF Symbols 6

Explore the latest updates to SF Symbols, Apple’s library of iconography designed to integrate seamlessly with San Francisco, the system font for all Apple platforms. Learn how the new Wiggle, Rotate, and Breathe animation presets can bring vitality to your interface. To get the most out of this session, we recommend first watching “What’s new in SF Symbols 5” from WWDC23.

Bring expression to your app with Genmoji

Bring expression to your app with Genmoji

Discover how to bring Genmoji to life in your app. We’ll go over how to render, store, and communicate text that includes Genmoji. If your app features a custom text engine, we’ll also cover techniques for adding support for Genmoji.

Dive deep into volumes and immersive spaces

Dive deep into volumes and immersive spaces

Discover powerful new ways to customize volumes and immersive spaces in visionOS. Learn to fine-tune how volumes resize and respond to people moving around them. Make volumes and immersive spaces interact through the power of coordinate conversions. Find out how to make your app react when people adjust immersion with the Digital Crown, and use a surrounding effect to dynamically customize the passthrough tint in your immersive space experience.