Merge branch 'feature/minor_clean' into 'develop'
Minor cleaning See merge request BPHV_MIPS/mvm_core_ui!483
This commit is contained in:
commit
da5b0b4c29
@ -21,8 +21,11 @@ import Foundation
|
|||||||
public var contentMode: UIView.ContentMode?
|
public var contentMode: UIView.ContentMode?
|
||||||
public var localBundle: Bundle?
|
public var localBundle: Bundle?
|
||||||
|
|
||||||
public init(image: String) {
|
public init(image: String, imageFormat: String? = nil, width: CGFloat? = nil, height: CGFloat? = nil) {
|
||||||
self.image = image
|
self.image = image
|
||||||
|
self.imageFormat = imageFormat
|
||||||
|
self.width = width
|
||||||
|
self.height = height
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
private enum CodingKeys: String, CodingKey {
|
||||||
|
|||||||
@ -71,6 +71,12 @@ import UIKit
|
|||||||
self.useVerticalLine = false
|
self.useVerticalLine = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public init(verticalLineOf type: Style, backgroundColor: Color? = nil) {
|
||||||
|
self.type = type
|
||||||
|
self.backgroundColor = backgroundColor
|
||||||
|
self.useVerticalLine = true
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Keys
|
// MARK: - Keys
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -263,7 +263,7 @@ import UIKit
|
|||||||
// MARK: - TabBar
|
// MARK: - TabBar
|
||||||
open func updateTabBar() {
|
open func updateTabBar() {
|
||||||
guard MVMCoreUISplitViewController.main()?.getCurrentDetailViewController() == self,
|
guard MVMCoreUISplitViewController.main()?.getCurrentDetailViewController() == self,
|
||||||
var tabModel = pageModel as? TabPageModelProtocol else { return }
|
let tabModel = pageModel as? TabPageModelProtocol else { return }
|
||||||
if let index = tabModel.tabBarIndex {
|
if let index = tabModel.tabBarIndex {
|
||||||
MVMCoreUISplitViewController.main()?.tabBar?.highlightTab(at: index)
|
MVMCoreUISplitViewController.main()?.tabBar?.highlightTab(at: index)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,12 +15,12 @@ import MVMCore
|
|||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
static var defaultGroupName: String = "default"
|
public static var defaultGroupName: String = "default"
|
||||||
var formRules: [FormGroupRule]?
|
public var formRules: [FormGroupRule]?
|
||||||
weak var delegate: FormHolderProtocol?
|
public weak var delegate: FormHolderProtocol?
|
||||||
var fields: [String: FormFieldProtocol] = [:]
|
public var fields: [String: FormFieldProtocol] = [:]
|
||||||
var groupWatchers: [FormGroupWatcherFieldProtocol] = []
|
public var groupWatchers: [FormGroupWatcherFieldProtocol] = []
|
||||||
var radioButtonsModelByGroup: [String: RadioButtonSelectionHelper] = [:]
|
public var radioButtonsModelByGroup: [String: RadioButtonSelectionHelper] = [:]
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializer
|
// MARK: - Initializer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user