RouterParameters
public extension RouterParameters
-
将路由参数转为字典集合
Declaration
Swift
func toDictionary() -> [String : String]
-
获取
Declaration
Swift
func get<T>(_ name: String, as _: T.Type = T.self) -> T? where T : LosslessStringConvertible
Parameters
name
参数名称
Return Value
返回找到的参数,不存在返回 nil
-
添加参数
Declaration
Swift
mutating func set<T>(_ value: T?, to name: String) where T : CustomStringConvertible
Parameters
value
参数
name
名称