RxSwiftCommunity / RxSegue

MIT License
80 stars 18 forks source link

Apple internal Segue #14

Open farzadshbfn opened 6 years ago

farzadshbfn commented 6 years ago

Is there a way to support Apple's internal storyboard segue mechanism? I was thinking maybe using swizzling and temporary associatedObject this would be possible to use storyboard's segues... any ideas?

freak4pc commented 6 years ago

You'd have to use swizzling which in general I'd be very against. Swinject does something similar to deal with Storyboard instantiation but I wouldn't personally want to do it in this case.

farzadshbfn commented 6 years ago

I hate swizzling too, and generally i don't like apple's segue mechanism too, but using segues you can take advantage of 3dTouch, and things like that. the thing is, doing the whole process of performSegue and prepareForSegue should be done agnostically to the developer in that case I'm personally a fan of swizzling due to make it flawless for every other part in the project. but that was just an idea...