struct UI::NavigationCoordinator::Route

Overview

A single navigation destination. #id identifies the screen; the demo app maps id -> view tree. #params is an opaque per-route string map for things like "which todo am I editing" ({id: "42"}). Kept as String values so the map survives an iOS Swift trampoline round-trip through a C ABI.

Defined in:

ui/navigation_coordinator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Symbol, params : Hash(Symbol, String) = {} of Symbol => String) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(id _id = @id, params _params = @params) #

[View source]
def id : Symbol #

def params : Hash(Symbol, String) #