Skip to content

refactor: drop orphan Savely/ContentView.swift template stub#27

Merged
Ivan-LB merged 1 commit into
devfrom
refactor/dedupe-contentview
Apr 25, 2026
Merged

refactor: drop orphan Savely/ContentView.swift template stub#27
Ivan-LB merged 1 commit into
devfrom
refactor/dedupe-contentview

Conversation

@Ivan-LB
Copy link
Copy Markdown
Owner

@Ivan-LB Ivan-LB commented Apr 25, 2026

Summary

  • Delete Savely/ContentView.swift — the orphan SwiftUI template stub ("Hello, world!") created on 16/10/24.

Why

Two ContentView.swift files existed on disk but only one was wired into the Xcode target. Savely.xcodeproj/project.pbxproj line 505 references the file inside the Views group, which resolves to Savely/Views/ContentView.swift — that's the canonical one with the real AppViewModel routing (loading / loggedOut / onboarding / main). The root-level copy was the original SwiftUI template that the project moved past months ago; it was never compiled (Xcode doesn't even know it exists), so deleting it is a pure cleanup with zero blast radius.

This is Task 1 of docs/plans/maintenance-cleanup.md.

Test plan

  • xcodebuild build -scheme Savely -destination 'platform=iOS Simulator,name=iPhone 17 Pro' — passes
  • xcodebuild test -scheme Savely -destination 'platform=iOS Simulator,name=iPhone 17 Pro' -skip-testing:SavelyUITests — passes
  • swiftlint lint — no new warnings introduced (the 10 preexisting force_unwrapping warnings are Task 3 of the plan)
  • No project.pbxproj edit needed — the orphan was never referenced
  • Savely/Views/ContentView.swift and SplashScreenView.swift:25 (only consumer) untouched

Risks

None material. The deleted file:

  • Is not in project.pbxproj (verified by grep; only one ContentView.swift PBXFileReference exists, and it's inside the Views group)
  • Defines a ContentView symbol identical in name to the canonical one — Swift was not compiling it, so no symbol collision existed at build time

Notes for reviewer

Local builds were validated on iPhone 17 Pro rather than iPhone 16 Pro (per CLAUDE.md / ci.yml) because Xcode 26 no longer ships the 16 Pro simulator locally. CI's macos-15 runner still has it, so CI runs unchanged. Updating the documented destination is a separate small chore — flagged for follow-up.

🤖 Generated with Claude Code

The file was the original SwiftUI template scaffolding. It's not
referenced by Savely.xcodeproj — the canonical ContentView lives at
Savely/Views/ContentView.swift and is the one wired into the target.
Removing the stale copy to avoid confusion in future searches.
@Ivan-LB Ivan-LB merged commit 59d664c into dev Apr 25, 2026
1 check passed
@Ivan-LB Ivan-LB deleted the refactor/dedupe-contentview branch April 25, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant