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
Screenshots

Device (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
The ReownAppKitUI/Modifiers/Conditional.swift View Extension conflicts with my own, this should not happen :)
SDK Version
To Reproduce
Create an application that imports the ReOwn SDK
In the main application target create an extension as follows
Add a view that uses the conditional extension
Xcode should throw a build error because if conflicts with the View+Extension in the
Sources/ReownAppKitUI/ModifiersfolderExpected behavior
Any extensions in your SDK should be made private / internal to ensure that they do not conflict with clients application
Screenshots

Device (please complete the following information):
Additional context
Add any other context about the problem here.