// The screens' own resource bundle: the definitions and their synthetic// records, the places, the licences — what only `CottonUI` reads. The look's// pictures, faces, palette and themes are `CottonPaper`'s bundle// (`CottonResources`), and this one is found the same way: `Bundle.module` on// the phone, by path on the Mac (`CottonResources.locate`).importFoundationenumCottonUIResources {/// The SwiftPM resource bundle's name: `<package>_<target>.bundle`.staticlet bundleName = "Cotton_CottonUI.bundle"/// This module's resource bundle, wherever this build put it — or nil/// when this build has none to find.staticlet bundle: Bundle? = { #if canImport(UIKit)returnBundle.module #elsereturn locate(from: Bundle.main) ?? locate(from: Bundle(for: Marker.self)) #endif }()privatefinalclassMarker {}staticfunc locate(from main: Bundle) -> Bundle? {CottonResources.locate(bundleName, from: main) }}