jevonmao / PermissionsSwiftUI

A SwiftUI package to beautifully display and handle permissions.

Home Page:https://jevonmao.github.io/PermissionsSwiftUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - incompatible with recent versions of SwiftUI-Introspect

jonasrichardrichter opened this issue · comments

Describe the bug

The current version does not work if the project uses a recent version of SwiftUI-Introspect

Failed to resolve dependencies Dependencies could not be resolved because root depends on 'permissionsswiftui' 1.5.10..<2.0.0 and root depends on 'swiftui-introspect' 1.1.1..<2.0.0.
'permissionsswiftui' >= 1.5.10 practically depends on 'swiftui-introspect' 0.0.0..<1.0.0 because 'permissionsswiftui' 1.5.10 depends on 'swiftui-introspect' 0.0.0..<1.0.0 and no versions of 'permissionsswiftui' match the requirement 1.5.11..<2.0.0.

To Reproduce

  1. Add SwiftUI-Introspect above version 1.0.0 to your Xcode project
  2. Add PermissionsSwiftUIin the current version to your Xcode project.

Expected behavior

Should work with a stable version of SwiftUI-Introspect

I made the customizations I saw in a fork, but I don't know if everything works as I got some Xcode errors. Can be adopted if everything is functional.

Link to the commit in my fork