Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
06c5d10baf
commit
0abf25c876
@ -544,6 +544,10 @@ Add keys to `Info.plist` that bridge xcconfig values to Swift:
|
|||||||
|
|
||||||
#### Step 5: Create Swift Interface
|
#### Step 5: Create Swift Interface
|
||||||
|
|
||||||
|
**Why this is needed:** Swift code cannot read xcconfig files directly. The xcconfig values flow through Info.plist, and this Swift file provides a clean API to access them at runtime. Without this file, you'd have to call `Bundle.main.object(forInfoDictionaryKey:)` everywhere you need an identifier.
|
||||||
|
|
||||||
|
**When to use:** Any Swift code that needs App Group identifiers, CloudKit containers, custom domains, or other configuration values must use `AppIdentifiers.*` instead of hardcoding strings.
|
||||||
|
|
||||||
Create `Configuration/AppIdentifiers.swift`:
|
Create `Configuration/AppIdentifiers.swift`:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user