restore PageBehaviorHandlerProtocol createBehaviors
This commit is contained in:
parent
664d90a713
commit
9cefb94bff
@ -31,7 +31,6 @@ import Foundation
|
||||
public var tabBarHidden: Bool = false
|
||||
public var tabBarIndex: Int?
|
||||
|
||||
// By default we mask until the server unlocks the page.
|
||||
public var shouldMaskScreenWhileRecording: Bool?
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
@ -13,9 +13,10 @@ public protocol PageBehaviorHandlerProtocol {
|
||||
|
||||
public extension PageBehaviorHandlerProtocol {
|
||||
/// Creates the behaviors and sets the variable.
|
||||
func createBehaviors(for model: PageBehaviorHandlerModelProtocol, delegateObject: MVMCoreUIDelegateObject?) -> [PageBehaviorProtocol] {
|
||||
mutating func createBehaviors(for model: PageBehaviorHandlerModelProtocol, delegateObject: MVMCoreUIDelegateObject?) {
|
||||
guard let behaviorModels = model.behaviors else {
|
||||
return []
|
||||
behaviors = nil
|
||||
return
|
||||
}
|
||||
|
||||
var behaviors: [PageBehaviorProtocol] = []
|
||||
@ -31,8 +32,7 @@ public extension PageBehaviorHandlerProtocol {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return behaviors
|
||||
self.behaviors = behaviors.count > 0 ? behaviors : nil
|
||||
}
|
||||
|
||||
/// Executes all behaviors of type.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user