Router

1.3.1

dhardiman/Router

What's New

Fix imports

2019-09-26T11:21:33Z

A set of protocols that can be used to describe navigational architecture for an iOS app.

Consists on 3 primary components:

  • Destination: This is a simple protocol that describes something that can create a view controller. Implementations should be able to construct a view controller with all its dependencies, so should be passed in initialisers. A Destination can also describe how it would prefer to be presented.
  • Route: This is a protocol that indicates how a URL (via URLRoute) or a model object (via ObjectRoute) can be converted in to a Destination. Route implementations may do this conversion asynchronously if they need to look up data for the information. For example if a network API call needs to take place.
  • Router: This protocol describes a simple set of methods that allow components in your app to route to new screens. Any implementation should use the methods as a chance to encapsulate things like showing new view controllers in tabs, modally or in navigation controllers.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Mar 12 2024 03:13:26 GMT-0900 (Hawaii-Aleutian Daylight Time)