navaid
swiftui-router
navaid | swiftui-router | |
---|---|---|
1 | 2 | |
755 | 833 | |
- | - | |
3.4 | 0.0 | |
3 months ago | 6 months ago | |
JavaScript | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
navaid
-
What is a Relay EntryPoint
let routes = { '/:owner/:repo': RepositoryViewEntryPoint, }; const matchRoute = (url: string) => routes[url]; const initialPage = loadEntryPoint(matchRoute(location.href)); const App = () => { const { entrypoint, setEntryPoint } = useState(initialPage); useEffect(() => { // Please use something like https://github.com/lukeed/navaid window.addEventListener('pushstate', () => { setEntryPoint(matchRoute(location.href)); }); }, []); return Suspense>; };
swiftui-router
-
How can I access that navigation history stack on a NavigationView?
It’s kind of hard in native SwiftUI, but this might help: https://github.com/frzi/SwiftUIRouter
-
SwiftUI and Generics: A learning barrier?
The magic is definitely weird. The base views with Body == Never are what get me, they feel impossible to replicate. There's like a few projects around navigation in SwiftUI like SwiftUI Router (Federica Zanetello had this cool blog post on using NavigationLink) but yeah navigation is very magical too. I honestly wish Apple would open up the SwiftUI framework a little, there are efforts to recreate Combine in an open source way, but SwiftUI seems tougher. This early on in SwiftUI it's super frustrating to wait between WWDCs for updates and fixes.
What are some alternatives?
page.js - Micro client-side router inspired by the Express router
RouteComposer - Protocol oriented, Cocoa UI abstractions based library that helps to handle view controllers composition, navigation and deep linking tasks in the iOS application. Can be used as the universal replacement for the Coordinator pattern.
interfy - A Javascript library for robust web front-end routing.
Helm - A graph-based SwiftUI router
crossroads - JavaScript Routes
LightRoute - LiteRoute is easy transition for your app. Written on Swift 4
frontexpress - An Express.js-Style router for the front-end
swift-url-routing - A bidirectional router with more type safety and less fuss.
pathjs - Simple, lightweight routing for web browsers
swift - The Swift Programming Language
director - a tiny and isomorphic URL router for JavaScript
SwiftCurrent - A library for managing complex workflows in Swift