Skip to content

Rename EmptyView to LegacyEmptyView to avoid SwiftUI.EmptyView ambiguity - #1451

Merged
AliPishvaei merged 1 commit into
masterfrom
rename-emptyview-to-legacyemptyview
Jul 1, 2026
Merged

Rename EmptyView to LegacyEmptyView to avoid SwiftUI.EmptyView ambiguity#1451
AliPishvaei merged 1 commit into
masterfrom
rename-emptyview-to-legacyemptyview

Conversation

@AliPishvaei

Copy link
Copy Markdown
Collaborator

Why?

FinniversKit's public (already deprecated) EmptyView shadowed SwiftUI.EmptyView. Any file importing both modules had to disambiguate with explicit FinniversKit.EmptyView /
SwiftUI.EmptyView qualifiers. Renaming removes the name collision.

What?

Renamed the type and its companions:

  • EmptyViewLegacyEmptyView
  • EmptyViewDelegateLegacyEmptyViewDelegate
  • EmptyViewShapeTypeLegacyEmptyViewShapeType

Deprecated typealias declarations for the old names are kept for source compatibility, so downstream consumers won't break. Internal usages (GenericErrorSwiftUIView, demo view,
Xcode project file reference) updated to the new name. The source file was renamed EmptyView.swiftLegacyEmptyView.swift.

Note: because the deprecated typealias keeps the old name in the module, the ambiguity with SwiftUI.EmptyView is only fully removed once consumers migrate off EmptyView. Happy
to drop the typealias for a hard break if preferred.

Version Change

Minor — non-breaking, additive deprecations only.

UI Changes

None. No visual or behavioral changes.

@AliPishvaei AliPishvaei self-assigned this Jul 1, 2026
@AliPishvaei
AliPishvaei requested review from AndreyMomot and dinsen July 1, 2026 13:13
@AliPishvaei
AliPishvaei merged commit fc85598 into master Jul 1, 2026
1 check passed
@AliPishvaei
AliPishvaei deleted the rename-emptyview-to-legacyemptyview branch July 1, 2026 13:22
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.

2 participants