Open razvanrujoiu opened 2 years ago
This is simply fixed in https://github.com/rundfunk47/stinsen/pull/75
As @LePips says, this is temporary fixed with a namespace. However, this item should still be open - a long term solution should be to rename it completely. Any suggestions? I'm not a huge fan of adding a "Stinsen"-prefix...
Maybe just Stack
would be fine?
I think Stack
would be problematic both in usage and in context. It would conflict with a basic Stack
if a developer ever had one since NavigationStack
is already public. For context, it's usually better to have the name indicate its domain or purpose, especially since it's for navigation.
I totally agree with @LePips , naming it just Stack would certainly create confusion
With the release of Xcode 14 at time of writing, this is become an immediate "issue". I'm not bothered too much by my single usage of Stinsen.NavigationStack
but something should be decided.
@rundfunk47 Have you been able to work on anything in regards to the latest comment in https://github.com/rundfunk47/stinsen/issues/29? If not, that's completely fine.
A more pressing issue is that the navigation title styles (.inline, .large
) are no longer consistent on push with Stinsen when targeting iOS 16. They will default to .large
.
I'm using
MacOS Ventura Beta with SwiftUI 4
. The problem is that Apple introducedNavigationStack
in SwiftUI 4 and it conflicts with theNavigationStack<T: NavigationCoordinatable>
fromstinsen
library. Hence i'm getting the following error:Generic type 'NavigationStack' specialized with too few type parameters (got 1, but expected 2)
As a quick fix i think you could renameNavigationStack
toSNavigationStack
orStinsenNavigationStack