AddedLeftPanelAndRightPanelInBaseTemplateModel
AddedLeftPanelAndRightPanelInBaseTemplateModel
This commit is contained in:
parent
5537961ddf
commit
a21bf23d44
@ -32,7 +32,8 @@ import Foundation
|
||||
public var tabBarIndex: Int?
|
||||
|
||||
public var shouldMaskScreenWhileRecording: Bool?
|
||||
|
||||
public var hideLeftPanel: Bool = false
|
||||
public var hideRightPanel: Bool = false
|
||||
//--------------------------------------------------
|
||||
// MARK: - Initializer
|
||||
//--------------------------------------------------
|
||||
@ -56,6 +57,8 @@ import Foundation
|
||||
case tabBarHidden
|
||||
case tabBarIndex
|
||||
case shouldMaskScreenWhileRecording
|
||||
case hideLeftPanel
|
||||
case hideRightPanel
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
@ -79,6 +82,12 @@ import Foundation
|
||||
if let tabBarHidden = try typeContainer.decodeIfPresent(Bool.self, forKey: .tabBarHidden) {
|
||||
self.tabBarHidden = tabBarHidden
|
||||
}
|
||||
if let hideLeftPanel = try typeContainer.decodeIfPresent(Bool.self, forKey: .hideLeftPanel) {
|
||||
self.hideLeftPanel = hideLeftPanel
|
||||
}
|
||||
if let hideRightPanel = try typeContainer.decodeIfPresent(Bool.self, forKey: .hideRightPanel) {
|
||||
self.hideRightPanel = hideRightPanel
|
||||
}
|
||||
tabBarIndex = try typeContainer.decodeIfPresent(Int.self, forKey: .tabBarIndex)
|
||||
shouldMaskScreenWhileRecording = try typeContainer.decodeIfPresent(Bool.self, forKey: .shouldMaskScreenWhileRecording)
|
||||
}
|
||||
@ -92,6 +101,8 @@ import Foundation
|
||||
try container.encodeIfPresent(formRules, forKey: .formRules)
|
||||
try container.encodeModelIfPresent(navigationBar, forKey: .navigationBar)
|
||||
try container.encode(tabBarHidden, forKey: .tabBarHidden)
|
||||
try container.encode(hideLeftPanel, forKey: .hideLeftPanel)
|
||||
try container.encode(hideRightPanel, forKey: .hideRightPanel)
|
||||
try container.encodeIfPresent(tabBarIndex, forKey: .tabBarIndex)
|
||||
try container.encode(shouldMaskScreenWhileRecording, forKey: .shouldMaskScreenWhileRecording)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user