electrode-ios / elrouter Goto Github PK
View Code? Open in Web Editor NEW(DEPRECATED) URL router for UIKit.
License: MIT License
(DEPRECATED) URL router for UIKit.
License: MIT License
I would like to do the equivalent of this in code:
Router.sharedInstance.evaluateURLString("walmart://search/(escapedSearchText)", animated: true)
but using RouteEnums instead of passing a URL string. Don't see how this is possible with the current implementation.
There are times when the code that needs to invoke a route would like to pass along a completion block, and that is currently not possible.
Routes with 2 or more consecutive variables don't seem to be supported such as: walmart://search-department/dept_number/search_text
Doing something like this doesn't work:
case .SearchDepartment: return (name: "search-department", type: .Push, example: "walmart://search-department/dept_number/search_text")
...
let itemBrowseDeptRoute = Route(ItemBrowseRoutes.SearchDepartment) { (variable, _) in
// need to access both variables here to set up the VC and return it for the push
}.variable().variable()
Router.sharedInstance.register(itemBrowseDeptRoute)
Consider replacing the objectionable language with a substantive description:
https://github.com/Electrode-iOS/ELRouter/blob/master/ELRouter/Route.swift#L195
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.