1.5 KiB
1.5 KiB
iOS Project Setup Instructions
Adding New Subview Files to Xcode
Four new Swift files containing reusable subviews have been created but need to be added to the Xcode project:
CommonSubviews.swift- Error viewsAuthSubviews.swift- Login/Register headersResidenceSubviews.swift- Property-related viewsTaskSubviews.swift- Task-related views
Steps to Add Files (30 seconds):
- Open
iosApp.xcodeprojin Xcode - Right-click on the
iosAppfolder in the Project Navigator - Select "Add Files to 'iosApp'..."
- Navigate to the
iosApp/iosApp/directory - Select all 4
*Subviews.swiftfiles:AuthSubviews.swiftCommonSubviews.swiftResidenceSubviews.swiftTaskSubviews.swift
- Make sure "Copy items if needed" is UNchecked (files are already in the project)
- Make sure "Add to targets: iosApp" is checked
- Click "Add"
Verify
Build the project (Cmd+B). All errors should be resolved.
File Locations
All files are located in: /Users/treyt/Desktop/code/myCrib/MyCribKMM/iosApp/iosApp/
iosApp/
└── iosApp/
├── AuthSubviews.swift ← Add this
├── CommonSubviews.swift ← Add this
├── ResidenceSubviews.swift ← Add this
├── TaskSubviews.swift ← Add this
├── Login/
├── Register/
├── Residence/
└── Task/
That's it! The project should now compile without errors.