WWDC23 Release: Swift & Xcode

Alise
3 min readJun 15, 2023

--

Xcode 15. Image and Color

Xcode 15 generates identifiers for images and colors. UIKit has an initializer with “resource”, while in SwiftUI, you can simply use a dot in parentheses followed by “Image” to display an image.

Xcode 15. SFSymbols 5

Animated symbols in SF Symbols 5. Animations are the same for all, but some symbols are animated on layers. You can already download the app, there is a preview of the animations.

SwiftUI. System Paywalls

System paywalls on SwiftUI. Just specify a group of subscriptions. Uses titles and descriptions from Connect.Materials, background, fonts through modifiers can be customized.

Xcode 15. Preview for UIKit

Preview works with UIKit and AppKit. The Preview syntax has also been updated.

TipKit framework. Tooltips

New framework TipKit with ready-made tooltips. It is not only a ready-made UI, you can customize the conditions and how often to show hints. Managed via global TipsCenter.

Swift Macros. New in Swift

Macros eliminate repeated code, providing a more expressive API. They’re included in Swift packages within the SDK. Apple uses them extensively in its frameworks, such as the Swift standard library, Foundation, and Swift Data framework. You can create your own macro package to share with the community!

SwiftData. Beta

Combining Core Data’s proven persistence technology and Swift’s modern concurrency features, SwiftData enables you to add persistence to your app quickly, with minimal code and no external dependencies.

xcdatamodeld is no longer needed, all work is done by code. There is an out-of-the-box migration from CoreData to SwiftData.

Bookmarks. Xcode 15

Bookmark is a new feature designed to help users keep track of their code. It can be added to places in the code where documentation is needed, to serve as a reminder or to-do list.

Bookmarks can be sorted and grouped in various ways, making them easy to manage.

Localization. Xcode 15

New localization format. Now it is a single file with xcstrings extension.

  • New key automatically goes into localization
  • Unused lines are highlighted
  • Pluralisation Support
  • Current string files can be migrated directly to Xcode

.displayAsPalette UIKit

In UIKit, a new view .displayAsPalette has been added to the menu. The selected element is configured via state.

--

--