-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The ReownAppKitUI/Modifiers/Conditional.swift View Extension conflicts with my own, this should not happen :)
SDK Version
- Client: Swift
- Version 1.0.2
To Reproduce
Create an application that imports the ReOwn SDK
In the main application target create an extension as follows
@ViewBuilder func `if`(_ condition: @autoclosure () -> Bool, transform: (Self) -> some View) -> some View {
if condition() {
transform(self)
} else {
self
}
}
Add a view that uses the conditional extension
struct BugView: View {
var body: some View {
Color.red
.if(true) { view in
view.padding([.leading, .trailing], -16)
}
}
}
Xcode should throw a build error because if conflicts with the View+Extension in the Sources/ReownAppKitUI/Modifiers folder
Expected behavior
Any extensions in your SDK should be made private / internal to ensure that they do not conflict with clients application
Device (please complete the following information):
- Device: Mac
- OS: MacOS
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
