We did more testing and perhaps this is not related to the nature of SPM import.
It seems that the issue is related to returning a new instance using the AnyView( ) operator:
struct LibraryViewContent: LibraryContentProvider {
func modifiers(base: AnyView) -> [LibraryItem] {
[
LibraryItem(base.blur(radius: 1),title: "BLUR OK", category: .other),
LibraryItem(AnyView(base.blur(radius: 1)),title: "BLUR FAIL", category: .other),
]
}
}
It would be great if someone can confirm and propose a workaround.
Post
Replies
Boosts
Views
Activity
In addition to this wonderful recommendations,
I would encourage you to play with the Maxwell App and then check the Github repo and the documentation. This SwiftUI SDK allows you yo create Universal Design Systems like Material Design or Bootstrap right from your phone.
We'll be happy to help you get started (There is a link to Discord chat inside the app).
https://apps.apple.com/us/app/id1511215075
https://github.com/maxwelldesign/lux