RQRouter.h 613 B

12345678910111213141516171819202122232425
  1. //
  2. // RQRouter.h
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/16.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RQBaseViewController;
  10. @class RQBaseViewModel;
  11. @interface RQRouter : NSObject
  12. /// Retrieves the shared router instance.
  13. ///
  14. /// Returns the shared router instance.
  15. + (instancetype)sharedInstance;
  16. /// Retrieves the view corresponding to the given view model.
  17. ///
  18. /// viewModel - The view model
  19. ///
  20. /// Returns the view corresponding to the given view model.
  21. - (RQBaseViewController *)viewControllerForViewModel:(RQBaseViewModel *)viewModel;
  22. @end