access modified
This commit is contained in:
parent
f125d55962
commit
752ff76e79
@ -14,10 +14,10 @@ import Foundation
|
|||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
var doughnutChart = DoughnutChart(frame: .zero)
|
public var doughnutChart = DoughnutChart()
|
||||||
var colorLablesStack = ColorViewLabelsStack()
|
var colorLablesStack = ColorViewLabelsStack()
|
||||||
|
|
||||||
var doughnutChartModel: DoughnutChartModel? {
|
public var doughnutChartModel: DoughnutChartModel? {
|
||||||
get { return model as? DoughnutChartModel }
|
get { return model as? DoughnutChartModel }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ import Foundation
|
|||||||
// MARK: - MoleculeViewProtocol
|
// MARK: - MoleculeViewProtocol
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
||||||
super.set(with: model, delegateObject, additionalData)
|
super.set(with: model, delegateObject, additionalData)
|
||||||
|
|
||||||
guard let model = doughnutChartModel else { return }
|
guard let model = doughnutChartModel else { return }
|
||||||
@ -94,6 +94,7 @@ import Foundation
|
|||||||
|
|
||||||
// MARK: - MVMCoreUIViewConstrainingProtocol
|
// MARK: - MVMCoreUIViewConstrainingProtocol
|
||||||
extension DoughnutChartView: MVMCoreUIViewConstrainingProtocol {
|
extension DoughnutChartView: MVMCoreUIViewConstrainingProtocol {
|
||||||
|
|
||||||
open func horizontalAlignment() -> UIStackView.Alignment {
|
open func horizontalAlignment() -> UIStackView.Alignment {
|
||||||
return .leading
|
return .leading
|
||||||
}
|
}
|
||||||
@ -101,7 +102,7 @@ extension DoughnutChartView: MVMCoreUIViewConstrainingProtocol {
|
|||||||
|
|
||||||
class ColorViewLabelsStack: MoleculeStackView {
|
class ColorViewLabelsStack: MoleculeStackView {
|
||||||
|
|
||||||
override func createStackItemsFromModel(_ model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
override func createStackItemsFromModel(_ model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
||||||
guard let stackItemModels = stackModel?.molecules else { return }
|
guard let stackItemModels = stackModel?.molecules else { return }
|
||||||
for model in stackItemModels {
|
for model in stackItemModels {
|
||||||
let view = ColorViewWithLabel()
|
let view = ColorViewWithLabel()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user