SwiftUI Weekly - Issue #241
Backporting SwiftUI APIsUsually, we don’t see many new APIs in intermediate releases like 27.1, but this time is different. Apple introduced several new iPhone Duo-related APIs in the 27.1 release. This week, we will learn how to use all of these new APIs without bumping your project’s target version. ArrangementView: Think Before You ArrangeWhen I first saw the iPhone Duo Group Lab - Q&AThis lab focused on adapting iPhone apps for iPhone Duo: responsive layouts, poses, the vertical bar, size classes, system components, resizability, accessibility, multi-window support, testing, and the new Xcode 27.1 tooling. Adjusting the hinge angle in the iPhone Duo simulatorIn Xcode 27.1, the iPhone Duo simulator has a slider for controlling the hinge angle, but it isn't visible by default. To reveal it, we need to hold the Option (⌥) key while the simulator is focused. iPhone Duo Simulator: Testing and optimizing your SwiftUI appAs soon as the iPhone Duo got announced, we were all waiting for an iPhone Duo Simulator inside Xcode. We eventually got it with the first beta of Xcode 27.1. This Simulator is unlike any other and a lot of fun to explore, allowing you to fold the device into different angles while watching your app adapt.
|