Skip to content

Commit

Permalink
Add workaround for namespace conflict (#118)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
Kyle-Ye and sindresorhus authored Nov 1, 2023
1 parent 3370a7d commit 2f4f65e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Sources/Settings/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ The namespace for this package.
*/
public enum Settings {}

/**
A typealias for this package's namespace to solve the conflict with [SwiftUI.Settings](https://developer.apple.com/documentation/swiftui/settings).

You can also use the following code snippet to solve the conflict:

```swift
import enum Settings.Settings
```
*/
public typealias AppSettings = Settings

// TODO: Remove in the next major version.
// Preserve backwards compatibility.
@available(*, deprecated, renamed: "Settings")
Expand Down

0 comments on commit 2f4f65e

Please sign in to comment.