Giter Site home page Giter Site logo

Use as internal router about deeplinkkit HOT 7 CLOSED

button avatar button commented on May 30, 2024
Use as internal router

from deeplinkkit.

Comments (7)

wessmith avatar wessmith commented on May 30, 2024

@alcarvalho this is a really interesting idea and we've thought about building an app entirely on top of this. @chrismaddern may have already explored this a bit. The matching logic is separate from the router, but the matcher is used internally. Feel free to submit a PR and we'll have a look.

from deeplinkkit.

hiroshihorie avatar hiroshihorie commented on May 30, 2024

+1 The ancient Three20 library invented this concept, but it'll be nice to see a modern version.

from deeplinkkit.

lxcid avatar lxcid commented on May 30, 2024

I have an internal implementation that repurpose deep link to support internal url routing.

My few complains is that the current pattern force you to initialise a view controller with incomplete data because deep link instance is not pass down to the method targetViewController, while we rely on configureDeepLink to make sure the view controller is fully initialise. This felt counter intuitive.

Also, we can also pass deep link instance when doing calling presentation as well. This will enable so much flexibility (for example if I need to push more than 1 controller onto the navigation stack)

from deeplinkkit.

lxcid avatar lxcid commented on May 30, 2024

It actually work out of the box, as long as you hold an instance to the router, you can just call handleURL and it will do the routing for you.

from deeplinkkit.

lxcid avatar lxcid commented on May 30, 2024

A URL to ViewController would be awesome.

from deeplinkkit.

alcarvalho avatar alcarvalho commented on May 30, 2024

I am not sure what you mean about the problem for initializing the view controller with incomplete data, but if you mean passing data on constructor that's true. But it's also a way to have the view controllers instantiated from the Storyboard and then configure it.

A URL to ViewController would be awesome.

That's actually what I have implemented in #61

from deeplinkkit.

wessmith avatar wessmith commented on May 30, 2024

Closing in favor of #62

from deeplinkkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.