Deep linking #5
Comments
@MP0w after brief discussion w/ @markushi & @ChristianOrgler we agreed on some features for this to be accomplished:
For the deeplink id, not sure if this should be an optional associated value of each |
Sorry no time these days because I'm still relocating |
Do we want to do the deep linking within Matrioska or do we want to give the developers the freedom to use their own maybe already existing deeplinking system? So either we just provide a property(-ies) so each Because on the time of the deeplink is happening the UI is already built and we don't have the |
@ChristianOrgler I think providing the ability to each |
@joanromano If I am correct, then we have the |
@AndreasThenn yup, was aware of that. Since Matrioska only provides I am afraid the only thing Matrioska can do is to, given a deeplink id, give a |
@joanromano we need the component meta data during run-time. So we can handle the deep link according to some outside factors as well. We have two options IMO:
|
@ChristianOrgler I agree, how the app identifies a target |
So my suggestion would be to keep the addition we do to Matrioska as little as possible in terms of deep linking support. |
I agree with @ChristianOrgler we should provide some APIs that make it possible to implement deep linking with the standard & custom components. Otherwise everyone would have to use Matrioska's implementation and implement the same in every custom Component. |
@MP0w @ChristianOrgler yup, I think that's been basically the idea since the beginning 😄 |
I created a branch, to allow the StackViewController to scroll a child ViewController into the view. For the tabBar we can directly call selectedViewController. The selection of the targetViewController happens in the app itself, by using the meta information. |
@AndreasThenn replied there, do we have to recursively try to select a component? |
Thx @MP0w for the reply. For now its enough to be able to scroll to a specific child ViewController. |
I don't think that we should mess up with the views produced by the Components so they shouldn't be public, as we discussed in the other issue needs to be something that enable the use of the library to implement deep linking or focusing on one view. If we add stuff to that cluster (stack) like ability to scroll to another component, it shouldn't be an hacked solution I guess. |
Regarding #17 I don't completely see how it can help with deep linking, the only thing I see is that it would enable a sort of selectedChild setting. |
The plan is to keep DeepLinking out of Matrioska. ChildSelection is just a step that has to be done before handling the deep link navigation. |
Matrioska lets you build dynamic UI, this can make deep linking complicated since every
Component
doesn't have a fixed place and depends on the current structure defined by nestedComponent
s.We want to support deep linking, defined in the model (and JSON #3) trying to not add logic for deep linking to the views or their ancestors (clusters, wrappers)...
The text was updated successfully, but these errors were encountered: