You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it any neat way to use one view (storyboard/xib/whatever) with multiple modules?
Example:
We've got same, template style overlay view. Let's call it ActionOverlayView.
It has always exactly same construction: header, description, button1, button2 etc. but totally different behaviour.
Once it will redirect to different parts of app, other time it's going to resend verification email, logout user etc.
There is totally no point of copy pasting whole view only for the same of module.
That is why I think it might be useful to move viewIdentifier to ViperItModuleProtocol and allow us to change default viewIdentifier.
VipertitModuleProtocol var viewIdentifier: String? { get }
Module let viewIdentifier = module.viewIdentifier ?? safeString(NSStringFromClass(viewClass).components(separatedBy: ".").last)
In that case we might be able to use one view with multi-purpose modules.
The text was updated successfully, but these errors were encountered:
Is it any neat way to use one view (storyboard/xib/whatever) with multiple modules?
Example:
We've got same, template style overlay view. Let's call it ActionOverlayView.
It has always exactly same construction: header, description, button1, button2 etc. but totally different behaviour.
Once it will redirect to different parts of app, other time it's going to resend verification email, logout user etc.
There is totally no point of copy pasting whole view only for the same of module.
That is why I think it might be useful to move viewIdentifier to ViperItModuleProtocol and allow us to change default viewIdentifier.
VipertitModuleProtocol
var viewIdentifier: String? { get }
Module
let viewIdentifier = module.viewIdentifier ?? safeString(NSStringFromClass(viewClass).components(separatedBy: ".").last)
In that case we might be able to use one view with multi-purpose modules.
The text was updated successfully, but these errors were encountered: