-
Swift packages: Resources and localization
Bring your resources along for the ride when you organize and share code using Swift packages. Discover how to include assets like images and storyboards in a package and how to access them from code. And learn how to add localized strings to make your code accessible to people around the world.
To get the most out of this session, you should be familiar with Swift and packaging code. For an overview, watch “Creating Swift Packages” from WWDC19.Ressources
Vidéos connexes
WWDC22
- Build global apps: Localization by example
- Create Swift Package plugins
- Get to know Create ML Components
WWDC20
- Build scalable enterprise app suites
- Distribute binary frameworks as Swift packages
- Explore Packages and Projects with Xcode Playgrounds
- What's new in Swift
WWDC19
-
Rechercher dans cette vidéo…
-
-
4:09 - Package Manifest file
// swift-tools-version:5.3 import PackageDescription let package = Package(name: "MyGame", products: [ .library(name: "GameLogic", targets: ["GameLogic"]) ], targets: [ .target(name: "GameLogic", excludes: [ "Internal Notes.txt", "Artwork Creation"], resources: [ .process("Logo.png"), .copy("Game Data")] ) ] )
-