UIViewController
extension UIViewController
-
Bloc消费者,初始值也会触发,子视图可使用blocConsumer(of:)读取父视图Bloc对象
Declaration
Swift
@MainActor public func blocConsumer<B: BlocBase<S>, S: Equatable>( bloc: B, builder: @escaping (B, S) -> Void, listener: ((B) -> Void)? = nil )
-
自定义侧滑返回手势VC开关,enablePopProxy启用后生效,仅处理边缘返回手势,优先级低,自动调用fw.allowsPopGesture,默认true
Declaration
Swift
@MainActor open var allowsPopGesture: Bool { get }
-
自定义控制器返回VC开关,enablePopProxy启用后生效,统一处理返回按钮点击和边缘返回手势,优先级高,自动调用fw.shouldPopController,默认true
Declaration
Swift
@MainActor open var shouldPopController: Bool { get }