diff --git a/Aurum.podspec b/Aurum.podspec index 6f72d57..bcdf052 100644 --- a/Aurum.podspec +++ b/Aurum.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Aurum' - s.version = '0.4.0' + s.version = '0.5.0' s.summary = 'Evolution of Amber architecture' # This description is used to generate tags and improve search results. diff --git a/Aurum/Classes/AurumActor.swift b/Aurum/Classes/AurumActor.swift index 13c7916..2637211 100644 --- a/Aurum/Classes/AurumActor.swift +++ b/Aurum/Classes/AurumActor.swift @@ -40,8 +40,8 @@ public enum AurumRouteCloseType{ } public class AurumModuleData{ - let controller: UIViewController - let inputActionListener: (A) -> Void + public let controller: UIViewController + public let inputActionListener: (A) -> Void init(controller: UIViewController, inputActionListener: @escaping (A) -> Void) { self.controller = controller @@ -70,15 +70,15 @@ public class AurumActor(module: Module.Type, data: Module.RequiredData, type: AurumRouteType = .show, animated: Bool = true, outputListener: ((Module.OutputAction) -> Void)? = nil) -> AurumModuleData{ + @discardableResult public func route(module: Module.Type, data: Module.RequiredData, type: AurumRouteType = .show, animated: Bool = true, outputListener: ((Module.OutputAction) -> Void)? = nil) -> AurumModuleData{ let config = Module() let data = config.create(data: data, rootController: type.isEmbedding ? rootController : nil, outputListener: outputListener) route(to: data.controller, type: type, animated: animated) return data } - @discardableResult func route(module: Module.Type, type: AurumRouteType = .show, animated: Bool = true, outputListener: ((Module.OutputAction) -> Void)? = nil) -> AurumModuleData where Module.RequiredData == Void{ + @discardableResult public func route(module: Module.Type, type: AurumRouteType = .show, animated: Bool = true, outputListener: ((Module.OutputAction) -> Void)? = nil) -> AurumModuleData where Module.RequiredData == Void{ return route(module: module, data: (), type: type, animated: animated, outputListener: outputListener) } - func close(type: AurumRouteCloseType = .close, animated: Bool = true){ + public func close(type: AurumRouteCloseType = .close, animated: Bool = true){ switch type { case .close: controller?.close(animated: animated) case .dismiss: controller?.dismiss(animated: animated) diff --git a/Aurum/Classes/AurumController.swift b/Aurum/Classes/AurumController.swift index c90011b..cb719fa 100644 --- a/Aurum/Classes/AurumController.swift +++ b/Aurum/Classes/AurumController.swift @@ -36,7 +36,7 @@ extension UIView{ } } - func unembedAll(){ + public func unembedAll(){ embedded.forEach { $0.unembed(shouldModifyEmbedArray: false) } embedded = [] }