We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e404f3 commit 004df77Copy full SHA for 004df77
Sources/ModuleRoute/MRModule.swift
@@ -9,7 +9,7 @@ import UIKit
9
10
// 路由处理结果枚举
11
public enum RouteResult {
12
- case viewController(UIViewController) // 返回控制器
+ case navigator(UIViewController) // 返回控制器
13
case handler(() -> Void) // 执行闭包
14
case service(Any) // 返回服务实例
15
case value(Any) // 返回值
@@ -27,7 +27,7 @@ extension MRModule {
27
// 如果路由处理结果为 .viewController,则返回构造的目标控制器,否则返回 nil
28
func build(from route: MRRoute) -> UIViewController? {
29
switch handle(route: route) {
30
- case .viewController(let vc):
+ case .navigator(let vc):
31
return vc
32
default:
33
return nil
0 commit comments