removed / replaced anything to do with model
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b5314ad879
commit
1e046fa336
@ -9,8 +9,6 @@
|
|||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
5F21D7BF28DCEB3D003E7CD6 /* Useable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F21D7BE28DCEB3D003E7CD6 /* Useable.swift */; };
|
5F21D7BF28DCEB3D003E7CD6 /* Useable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F21D7BE28DCEB3D003E7CD6 /* Useable.swift */; };
|
||||||
5FC35BE328D51405004EBEAC /* Button.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FC35BE228D51405004EBEAC /* Button.swift */; };
|
5FC35BE328D51405004EBEAC /* Button.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FC35BE228D51405004EBEAC /* Button.swift */; };
|
||||||
EA1F265D28B944F00033E859 /* CollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F265B28B944F00033E859 /* CollectionView.swift */; };
|
|
||||||
EA1F265E28B944F00033E859 /* CollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F265C28B944F00033E859 /* CollectionViewCell.swift */; };
|
|
||||||
EA1F266528B945070033E859 /* RadioSwatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F266128B945070033E859 /* RadioSwatch.swift */; };
|
EA1F266528B945070033E859 /* RadioSwatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F266128B945070033E859 /* RadioSwatch.swift */; };
|
||||||
EA1F266628B945070033E859 /* RadioSwatchGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F266228B945070033E859 /* RadioSwatchGroup.swift */; };
|
EA1F266628B945070033E859 /* RadioSwatchGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA1F266228B945070033E859 /* RadioSwatchGroup.swift */; };
|
||||||
EA336171288B19200071C351 /* VDS.docc in Sources */ = {isa = PBXBuildFile; fileRef = EA336170288B19200071C351 /* VDS.docc */; };
|
EA336171288B19200071C351 /* VDS.docc in Sources */ = {isa = PBXBuildFile; fileRef = EA336170288B19200071C351 /* VDS.docc */; };
|
||||||
@ -24,7 +22,7 @@
|
|||||||
EA3361B6288B2A410071C351 /* Control.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361B5288B2A410071C351 /* Control.swift */; };
|
EA3361B6288B2A410071C351 /* Control.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361B5288B2A410071C351 /* Control.swift */; };
|
||||||
EA3361B8288B2AAA0071C351 /* ViewProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */; };
|
EA3361B8288B2AAA0071C351 /* ViewProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */; };
|
||||||
EA3361BD288B2C760071C351 /* TypeAlias.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361BC288B2C760071C351 /* TypeAlias.swift */; };
|
EA3361BD288B2C760071C351 /* TypeAlias.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361BC288B2C760071C351 /* TypeAlias.swift */; };
|
||||||
EA3361BF288B2EA60071C351 /* ModelHandlerable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361BE288B2EA60071C351 /* ModelHandlerable.swift */; };
|
EA3361BF288B2EA60071C351 /* Handlerable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361BE288B2EA60071C351 /* Handlerable.swift */; };
|
||||||
EA3361C328902D960071C351 /* Toggle.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C228902D960071C351 /* Toggle.swift */; };
|
EA3361C328902D960071C351 /* Toggle.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C228902D960071C351 /* Toggle.swift */; };
|
||||||
EA3361C5289030FC0071C351 /* Accessable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C4289030FC0071C351 /* Accessable.swift */; };
|
EA3361C5289030FC0071C351 /* Accessable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C4289030FC0071C351 /* Accessable.swift */; };
|
||||||
EA3361C9289054C50071C351 /* Surfaceable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C8289054C50071C351 /* Surfaceable.swift */; };
|
EA3361C9289054C50071C351 /* Surfaceable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3361C8289054C50071C351 /* Surfaceable.swift */; };
|
||||||
@ -37,17 +35,13 @@
|
|||||||
EA3362302891EB4A0071C351 /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33622F2891EB4A0071C351 /* Fonts.swift */; };
|
EA3362302891EB4A0071C351 /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33622F2891EB4A0071C351 /* Fonts.swift */; };
|
||||||
EA33623E2892EE950071C351 /* UIDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33623D2892EE950071C351 /* UIDevice.swift */; };
|
EA33623E2892EE950071C351 /* UIDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33623D2892EE950071C351 /* UIDevice.swift */; };
|
||||||
EA3362402892EF6C0071C351 /* Label.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33623F2892EF6B0071C351 /* Label.swift */; };
|
EA3362402892EF6C0071C351 /* Label.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33623F2892EF6B0071C351 /* Label.swift */; };
|
||||||
EA3362452892F9130071C351 /* Labelable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3362442892F9130071C351 /* Labelable.swift */; };
|
|
||||||
EA33624728931B050071C351 /* Initable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33624628931B050071C351 /* Initable.swift */; };
|
EA33624728931B050071C351 /* Initable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA33624628931B050071C351 /* Initable.swift */; };
|
||||||
EA3C3B4C2894823E000CA526 /* AnyProxy.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA3C3B4B2894823E000CA526 /* AnyProxy.swift */; };
|
|
||||||
EA4DB18528CA967F00103EE3 /* SelectorGroupHandlerBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB18428CA967F00103EE3 /* SelectorGroupHandlerBase.swift */; };
|
EA4DB18528CA967F00103EE3 /* SelectorGroupHandlerBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB18428CA967F00103EE3 /* SelectorGroupHandlerBase.swift */; };
|
||||||
EA4DB2FD28D3D0CA00103EE3 /* AnyEquatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB2FC28D3D0CA00103EE3 /* AnyEquatable.swift */; };
|
EA4DB2FD28D3D0CA00103EE3 /* AnyEquatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB2FC28D3D0CA00103EE3 /* AnyEquatable.swift */; };
|
||||||
EA4DB30228DCBCA500103EE3 /* Badge.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB30128DCBCA500103EE3 /* Badge.swift */; };
|
EA4DB30228DCBCA500103EE3 /* Badge.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA4DB30128DCBCA500103EE3 /* Badge.swift */; };
|
||||||
EA84F6B128B94A2500D67ABC /* CodableColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA84F6B028B94A2500D67ABC /* CodableColor.swift */; };
|
|
||||||
EA89200228AECF2A006B9984 /* UIButton+Publisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200128AECF2A006B9984 /* UIButton+Publisher.swift */; };
|
EA89200228AECF2A006B9984 /* UIButton+Publisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200128AECF2A006B9984 /* UIButton+Publisher.swift */; };
|
||||||
EA89200428AECF4B006B9984 /* UITextField+Publisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200328AECF4B006B9984 /* UITextField+Publisher.swift */; };
|
EA89200428AECF4B006B9984 /* UITextField+Publisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200328AECF4B006B9984 /* UITextField+Publisher.swift */; };
|
||||||
EA89200628B526D6006B9984 /* CheckboxGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200528B526D6006B9984 /* CheckboxGroup.swift */; };
|
EA89200628B526D6006B9984 /* CheckboxGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200528B526D6006B9984 /* CheckboxGroup.swift */; };
|
||||||
EA89200F28B53921006B9984 /* Selectable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89200E28B53921006B9984 /* Selectable.swift */; };
|
|
||||||
EA89201328B568D8006B9984 /* RadioBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89201228B568D8006B9984 /* RadioBox.swift */; };
|
EA89201328B568D8006B9984 /* RadioBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89201228B568D8006B9984 /* RadioBox.swift */; };
|
||||||
EA89201528B56CF4006B9984 /* RadioBoxGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89201428B56CF4006B9984 /* RadioBoxGroup.swift */; };
|
EA89201528B56CF4006B9984 /* RadioBoxGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA89201428B56CF4006B9984 /* RadioBoxGroup.swift */; };
|
||||||
EAA5EEE228F4C62C003B3210 /* Colorable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAA5EEE128F4C62C003B3210 /* Colorable.swift */; };
|
EAA5EEE228F4C62C003B3210 /* Colorable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAA5EEE128F4C62C003B3210 /* Colorable.swift */; };
|
||||||
@ -58,10 +52,7 @@
|
|||||||
EAA5EEF228F5C909003B3210 /* VDSColorTokens.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEED28F5C908003B3210 /* VDSColorTokens.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
EAA5EEF228F5C909003B3210 /* VDSColorTokens.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEED28F5C908003B3210 /* VDSColorTokens.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
EAA5EEF328F5C909003B3210 /* VDSFormControlsTokens.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */; };
|
EAA5EEF328F5C909003B3210 /* VDSFormControlsTokens.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */; };
|
||||||
EAA5EEF428F5C909003B3210 /* VDSFormControlsTokens.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
EAA5EEF428F5C909003B3210 /* VDSFormControlsTokens.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
EAB1D29A28A5611D00DAE764 /* SelectorGroupModelable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D29928A5611D00DAE764 /* SelectorGroupModelable.swift */; };
|
|
||||||
EAB1D29C28A5618900DAE764 /* RadioButtonGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D29B28A5618900DAE764 /* RadioButtonGroup.swift */; };
|
EAB1D29C28A5618900DAE764 /* RadioButtonGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D29B28A5618900DAE764 /* RadioButtonGroup.swift */; };
|
||||||
EAB1D2A128A598FE00DAE764 /* UsesAutoLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2A028A598FE00DAE764 /* UsesAutoLayout.swift */; };
|
|
||||||
EAB1D2A328A5994800DAE764 /* Debuggable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2A228A5994800DAE764 /* Debuggable.swift */; };
|
|
||||||
EAB1D2CD28ABE76100DAE764 /* Withable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2CC28ABE76000DAE764 /* Withable.swift */; };
|
EAB1D2CD28ABE76100DAE764 /* Withable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2CC28ABE76000DAE764 /* Withable.swift */; };
|
||||||
EAB1D2CF28ABEF2B00DAE764 /* Typography.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2CE28ABEF2B00DAE764 /* Typography.swift */; };
|
EAB1D2CF28ABEF2B00DAE764 /* Typography.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2CE28ABEF2B00DAE764 /* Typography.swift */; };
|
||||||
EAB1D2E628AE842000DAE764 /* Publisher+Bind.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2E328AE842000DAE764 /* Publisher+Bind.swift */; };
|
EAB1D2E628AE842000DAE764 /* Publisher+Bind.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAB1D2E328AE842000DAE764 /* Publisher+Bind.swift */; };
|
||||||
@ -82,7 +73,6 @@
|
|||||||
EAF7F0B5289C126F00B287F5 /* UILabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B4289C126F00B287F5 /* UILabel.swift */; };
|
EAF7F0B5289C126F00B287F5 /* UILabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B4289C126F00B287F5 /* UILabel.swift */; };
|
||||||
EAF7F0B7289C12A600B287F5 /* UITapGestureRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B6289C12A600B287F5 /* UITapGestureRecognizer.swift */; };
|
EAF7F0B7289C12A600B287F5 /* UITapGestureRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B6289C12A600B287F5 /* UITapGestureRecognizer.swift */; };
|
||||||
EAF7F0B9289C139800B287F5 /* ColorConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */; };
|
EAF7F0B9289C139800B287F5 /* ColorConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */; };
|
||||||
EAF7F0BB289D80ED00B287F5 /* Modelable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F0BA289D80ED00B287F5 /* Modelable.swift */; };
|
|
||||||
EAF7F11728A1475A00B287F5 /* RadioButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F11528A1475A00B287F5 /* RadioButton.swift */; };
|
EAF7F11728A1475A00B287F5 /* RadioButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F11528A1475A00B287F5 /* RadioButton.swift */; };
|
||||||
EAF7F13328A2A16500B287F5 /* LabelAttributeAttachment.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F13228A2A16500B287F5 /* LabelAttributeAttachment.swift */; };
|
EAF7F13328A2A16500B287F5 /* LabelAttributeAttachment.swift in Sources */ = {isa = PBXBuildFile; fileRef = EAF7F13228A2A16500B287F5 /* LabelAttributeAttachment.swift */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
@ -116,8 +106,6 @@
|
|||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
5F21D7BE28DCEB3D003E7CD6 /* Useable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Useable.swift; sourceTree = "<group>"; };
|
5F21D7BE28DCEB3D003E7CD6 /* Useable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Useable.swift; sourceTree = "<group>"; };
|
||||||
5FC35BE228D51405004EBEAC /* Button.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Button.swift; sourceTree = "<group>"; };
|
5FC35BE228D51405004EBEAC /* Button.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Button.swift; sourceTree = "<group>"; };
|
||||||
EA1F265B28B944F00033E859 /* CollectionView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionView.swift; sourceTree = "<group>"; };
|
|
||||||
EA1F265C28B944F00033E859 /* CollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewCell.swift; sourceTree = "<group>"; };
|
|
||||||
EA1F266128B945070033E859 /* RadioSwatch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioSwatch.swift; sourceTree = "<group>"; };
|
EA1F266128B945070033E859 /* RadioSwatch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioSwatch.swift; sourceTree = "<group>"; };
|
||||||
EA1F266228B945070033E859 /* RadioSwatchGroup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioSwatchGroup.swift; sourceTree = "<group>"; };
|
EA1F266228B945070033E859 /* RadioSwatchGroup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioSwatchGroup.swift; sourceTree = "<group>"; };
|
||||||
EA33616C288B19200071C351 /* VDS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = VDS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
EA33616C288B19200071C351 /* VDS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = VDS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
@ -132,7 +120,7 @@
|
|||||||
EA3361B5288B2A410071C351 /* Control.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Control.swift; sourceTree = "<group>"; };
|
EA3361B5288B2A410071C351 /* Control.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Control.swift; sourceTree = "<group>"; };
|
||||||
EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewProtocol.swift; sourceTree = "<group>"; };
|
EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewProtocol.swift; sourceTree = "<group>"; };
|
||||||
EA3361BC288B2C760071C351 /* TypeAlias.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypeAlias.swift; sourceTree = "<group>"; };
|
EA3361BC288B2C760071C351 /* TypeAlias.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypeAlias.swift; sourceTree = "<group>"; };
|
||||||
EA3361BE288B2EA60071C351 /* ModelHandlerable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModelHandlerable.swift; sourceTree = "<group>"; };
|
EA3361BE288B2EA60071C351 /* Handlerable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Handlerable.swift; sourceTree = "<group>"; };
|
||||||
EA3361C228902D960071C351 /* Toggle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Toggle.swift; sourceTree = "<group>"; };
|
EA3361C228902D960071C351 /* Toggle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Toggle.swift; sourceTree = "<group>"; };
|
||||||
EA3361C4289030FC0071C351 /* Accessable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Accessable.swift; sourceTree = "<group>"; };
|
EA3361C4289030FC0071C351 /* Accessable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Accessable.swift; sourceTree = "<group>"; };
|
||||||
EA3361C8289054C50071C351 /* Surfaceable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Surfaceable.swift; sourceTree = "<group>"; };
|
EA3361C8289054C50071C351 /* Surfaceable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Surfaceable.swift; sourceTree = "<group>"; };
|
||||||
@ -145,17 +133,13 @@
|
|||||||
EA33622F2891EB4A0071C351 /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = "<group>"; };
|
EA33622F2891EB4A0071C351 /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = "<group>"; };
|
||||||
EA33623D2892EE950071C351 /* UIDevice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDevice.swift; sourceTree = "<group>"; };
|
EA33623D2892EE950071C351 /* UIDevice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDevice.swift; sourceTree = "<group>"; };
|
||||||
EA33623F2892EF6B0071C351 /* Label.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Label.swift; sourceTree = "<group>"; };
|
EA33623F2892EF6B0071C351 /* Label.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Label.swift; sourceTree = "<group>"; };
|
||||||
EA3362442892F9130071C351 /* Labelable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Labelable.swift; sourceTree = "<group>"; };
|
|
||||||
EA33624628931B050071C351 /* Initable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Initable.swift; sourceTree = "<group>"; };
|
EA33624628931B050071C351 /* Initable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Initable.swift; sourceTree = "<group>"; };
|
||||||
EA3C3B4B2894823E000CA526 /* AnyProxy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnyProxy.swift; sourceTree = "<group>"; };
|
|
||||||
EA4DB18428CA967F00103EE3 /* SelectorGroupHandlerBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectorGroupHandlerBase.swift; sourceTree = "<group>"; };
|
EA4DB18428CA967F00103EE3 /* SelectorGroupHandlerBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectorGroupHandlerBase.swift; sourceTree = "<group>"; };
|
||||||
EA4DB2FC28D3D0CA00103EE3 /* AnyEquatable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnyEquatable.swift; sourceTree = "<group>"; };
|
EA4DB2FC28D3D0CA00103EE3 /* AnyEquatable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnyEquatable.swift; sourceTree = "<group>"; };
|
||||||
EA4DB30128DCBCA500103EE3 /* Badge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Badge.swift; sourceTree = "<group>"; };
|
EA4DB30128DCBCA500103EE3 /* Badge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Badge.swift; sourceTree = "<group>"; };
|
||||||
EA84F6B028B94A2500D67ABC /* CodableColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodableColor.swift; sourceTree = "<group>"; };
|
|
||||||
EA89200128AECF2A006B9984 /* UIButton+Publisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIButton+Publisher.swift"; sourceTree = "<group>"; };
|
EA89200128AECF2A006B9984 /* UIButton+Publisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIButton+Publisher.swift"; sourceTree = "<group>"; };
|
||||||
EA89200328AECF4B006B9984 /* UITextField+Publisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextField+Publisher.swift"; sourceTree = "<group>"; };
|
EA89200328AECF4B006B9984 /* UITextField+Publisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextField+Publisher.swift"; sourceTree = "<group>"; };
|
||||||
EA89200528B526D6006B9984 /* CheckboxGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckboxGroup.swift; sourceTree = "<group>"; };
|
EA89200528B526D6006B9984 /* CheckboxGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckboxGroup.swift; sourceTree = "<group>"; };
|
||||||
EA89200E28B53921006B9984 /* Selectable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Selectable.swift; sourceTree = "<group>"; };
|
|
||||||
EA89201228B568D8006B9984 /* RadioBox.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioBox.swift; sourceTree = "<group>"; };
|
EA89201228B568D8006B9984 /* RadioBox.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioBox.swift; sourceTree = "<group>"; };
|
||||||
EA89201428B56CF4006B9984 /* RadioBoxGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioBoxGroup.swift; sourceTree = "<group>"; };
|
EA89201428B56CF4006B9984 /* RadioBoxGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioBoxGroup.swift; sourceTree = "<group>"; };
|
||||||
EAA5EEE128F4C62C003B3210 /* Colorable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Colorable.swift; sourceTree = "<group>"; };
|
EAA5EEE128F4C62C003B3210 /* Colorable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Colorable.swift; sourceTree = "<group>"; };
|
||||||
@ -163,10 +147,7 @@
|
|||||||
EAA5EEEC28F5C908003B3210 /* VDSTypographyTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSTypographyTokens.xcframework; path = ../SharedFrameworks/VDSTypographyTokens.xcframework; sourceTree = "<group>"; };
|
EAA5EEEC28F5C908003B3210 /* VDSTypographyTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSTypographyTokens.xcframework; path = ../SharedFrameworks/VDSTypographyTokens.xcframework; sourceTree = "<group>"; };
|
||||||
EAA5EEED28F5C908003B3210 /* VDSColorTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSColorTokens.xcframework; path = ../SharedFrameworks/VDSColorTokens.xcframework; sourceTree = "<group>"; };
|
EAA5EEED28F5C908003B3210 /* VDSColorTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSColorTokens.xcframework; path = ../SharedFrameworks/VDSColorTokens.xcframework; sourceTree = "<group>"; };
|
||||||
EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSFormControlsTokens.xcframework; path = ../SharedFrameworks/VDSFormControlsTokens.xcframework; sourceTree = "<group>"; };
|
EAA5EEEE28F5C908003B3210 /* VDSFormControlsTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSFormControlsTokens.xcframework; path = ../SharedFrameworks/VDSFormControlsTokens.xcframework; sourceTree = "<group>"; };
|
||||||
EAB1D29928A5611D00DAE764 /* SelectorGroupModelable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectorGroupModelable.swift; sourceTree = "<group>"; };
|
|
||||||
EAB1D29B28A5618900DAE764 /* RadioButtonGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioButtonGroup.swift; sourceTree = "<group>"; };
|
EAB1D29B28A5618900DAE764 /* RadioButtonGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioButtonGroup.swift; sourceTree = "<group>"; };
|
||||||
EAB1D2A028A598FE00DAE764 /* UsesAutoLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UsesAutoLayout.swift; sourceTree = "<group>"; };
|
|
||||||
EAB1D2A228A5994800DAE764 /* Debuggable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Debuggable.swift; sourceTree = "<group>"; };
|
|
||||||
EAB1D2CC28ABE76000DAE764 /* Withable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Withable.swift; sourceTree = "<group>"; };
|
EAB1D2CC28ABE76000DAE764 /* Withable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Withable.swift; sourceTree = "<group>"; };
|
||||||
EAB1D2CE28ABEF2B00DAE764 /* Typography.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Typography.swift; sourceTree = "<group>"; };
|
EAB1D2CE28ABEF2B00DAE764 /* Typography.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Typography.swift; sourceTree = "<group>"; };
|
||||||
EAB1D2E328AE842000DAE764 /* Publisher+Bind.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Publisher+Bind.swift"; sourceTree = "<group>"; };
|
EAB1D2E328AE842000DAE764 /* Publisher+Bind.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Publisher+Bind.swift"; sourceTree = "<group>"; };
|
||||||
@ -187,7 +168,6 @@
|
|||||||
EAF7F0B4289C126F00B287F5 /* UILabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UILabel.swift; sourceTree = "<group>"; };
|
EAF7F0B4289C126F00B287F5 /* UILabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UILabel.swift; sourceTree = "<group>"; };
|
||||||
EAF7F0B6289C12A600B287F5 /* UITapGestureRecognizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITapGestureRecognizer.swift; sourceTree = "<group>"; };
|
EAF7F0B6289C12A600B287F5 /* UITapGestureRecognizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITapGestureRecognizer.swift; sourceTree = "<group>"; };
|
||||||
EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorConfiguration.swift; sourceTree = "<group>"; };
|
EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorConfiguration.swift; sourceTree = "<group>"; };
|
||||||
EAF7F0BA289D80ED00B287F5 /* Modelable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Modelable.swift; sourceTree = "<group>"; };
|
|
||||||
EAF7F11528A1475A00B287F5 /* RadioButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioButton.swift; sourceTree = "<group>"; };
|
EAF7F11528A1475A00B287F5 /* RadioButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RadioButton.swift; sourceTree = "<group>"; };
|
||||||
EAF7F13228A2A16500B287F5 /* LabelAttributeAttachment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LabelAttributeAttachment.swift; sourceTree = "<group>"; };
|
EAF7F13228A2A16500B287F5 /* LabelAttributeAttachment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LabelAttributeAttachment.swift; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
@ -258,7 +238,6 @@
|
|||||||
EA3361A6288B23240071C351 /* Extensions */,
|
EA3361A6288B23240071C351 /* Extensions */,
|
||||||
EA3361DF2891D0F10071C351 /* Fonts */,
|
EA3361DF2891D0F10071C351 /* Fonts */,
|
||||||
EA3361AB288B25EC0071C351 /* Protocols */,
|
EA3361AB288B25EC0071C351 /* Protocols */,
|
||||||
EAB1D29F28A598D000DAE764 /* PropertyWrappers */,
|
|
||||||
EAB1D2E228AE842000DAE764 /* Publishers */,
|
EAB1D2E228AE842000DAE764 /* Publishers */,
|
||||||
EAB1D2D028ABEF3100DAE764 /* Typography */,
|
EAB1D2D028ABEF3100DAE764 /* Typography */,
|
||||||
EA3361B9288B2BE30071C351 /* Utilities */,
|
EA3361B9288B2BE30071C351 /* Utilities */,
|
||||||
@ -333,13 +312,9 @@
|
|||||||
EA3361A9288B25E40071C351 /* Disabling.swift */,
|
EA3361A9288B25E40071C351 /* Disabling.swift */,
|
||||||
EAF7F0A1289AFB3900B287F5 /* Errorable.swift */,
|
EAF7F0A1289AFB3900B287F5 /* Errorable.swift */,
|
||||||
EA3361AE288B26310071C351 /* FormFieldable.swift */,
|
EA3361AE288B26310071C351 /* FormFieldable.swift */,
|
||||||
|
EA3361BE288B2EA60071C351 /* Handlerable.swift */,
|
||||||
EA33624628931B050071C351 /* Initable.swift */,
|
EA33624628931B050071C351 /* Initable.swift */,
|
||||||
EA3362442892F9130071C351 /* Labelable.swift */,
|
|
||||||
EAF7F0BA289D80ED00B287F5 /* Modelable.swift */,
|
|
||||||
EA3361BE288B2EA60071C351 /* ModelHandlerable.swift */,
|
|
||||||
EAF7F0A5289B0CE000B287F5 /* Resetable.swift */,
|
EAF7F0A5289B0CE000B287F5 /* Resetable.swift */,
|
||||||
EA89200E28B53921006B9984 /* Selectable.swift */,
|
|
||||||
EAB1D29928A5611D00DAE764 /* SelectorGroupModelable.swift */,
|
|
||||||
EA3361C8289054C50071C351 /* Surfaceable.swift */,
|
EA3361C8289054C50071C351 /* Surfaceable.swift */,
|
||||||
EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */,
|
EA3361B7288B2AAA0071C351 /* ViewProtocol.swift */,
|
||||||
EAB1D2CC28ABE76000DAE764 /* Withable.swift */,
|
EAB1D2CC28ABE76000DAE764 /* Withable.swift */,
|
||||||
@ -351,8 +326,6 @@
|
|||||||
EA3361B4288B2A360071C351 /* Classes */ = {
|
EA3361B4288B2A360071C351 /* Classes */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
EA1F265B28B944F00033E859 /* CollectionView.swift */,
|
|
||||||
EA1F265C28B944F00033E859 /* CollectionViewCell.swift */,
|
|
||||||
EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */,
|
EAF7F0B8289C139800B287F5 /* ColorConfiguration.swift */,
|
||||||
EAF7F09D289AAEC000B287F5 /* Constants.swift */,
|
EAF7F09D289AAEC000B287F5 /* Constants.swift */,
|
||||||
EA3361B5288B2A410071C351 /* Control.swift */,
|
EA3361B5288B2A410071C351 /* Control.swift */,
|
||||||
@ -425,17 +398,6 @@
|
|||||||
path = RadioBox;
|
path = RadioBox;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
EAB1D29F28A598D000DAE764 /* PropertyWrappers */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
EA3C3B4B2894823E000CA526 /* AnyProxy.swift */,
|
|
||||||
EA84F6B028B94A2500D67ABC /* CodableColor.swift */,
|
|
||||||
EAB1D2A228A5994800DAE764 /* Debuggable.swift */,
|
|
||||||
EAB1D2A028A598FE00DAE764 /* UsesAutoLayout.swift */,
|
|
||||||
);
|
|
||||||
path = PropertyWrappers;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
EAB1D2D028ABEF3100DAE764 /* Typography */ = {
|
EAB1D2D028ABEF3100DAE764 /* Typography */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
@ -609,7 +571,6 @@
|
|||||||
EA3361C328902D960071C351 /* Toggle.swift in Sources */,
|
EA3361C328902D960071C351 /* Toggle.swift in Sources */,
|
||||||
EAF7F0A0289AB7EC00B287F5 /* View.swift in Sources */,
|
EAF7F0A0289AB7EC00B287F5 /* View.swift in Sources */,
|
||||||
EA89201328B568D8006B9984 /* RadioBox.swift in Sources */,
|
EA89201328B568D8006B9984 /* RadioBox.swift in Sources */,
|
||||||
EA84F6B128B94A2500D67ABC /* CodableColor.swift in Sources */,
|
|
||||||
EA3362402892EF6C0071C351 /* Label.swift in Sources */,
|
EA3362402892EF6C0071C351 /* Label.swift in Sources */,
|
||||||
EAF7F0B3289B1ADC00B287F5 /* LabelAttributeAction.swift in Sources */,
|
EAF7F0B3289B1ADC00B287F5 /* LabelAttributeAction.swift in Sources */,
|
||||||
EA33622E2891EA3C0071C351 /* DispatchQueue+Once.swift in Sources */,
|
EA33622E2891EA3C0071C351 /* DispatchQueue+Once.swift in Sources */,
|
||||||
@ -618,11 +579,9 @@
|
|||||||
EA3361C5289030FC0071C351 /* Accessable.swift in Sources */,
|
EA3361C5289030FC0071C351 /* Accessable.swift in Sources */,
|
||||||
EA33622C2891E73B0071C351 /* FontProtocol.swift in Sources */,
|
EA33622C2891E73B0071C351 /* FontProtocol.swift in Sources */,
|
||||||
EAF7F11728A1475A00B287F5 /* RadioButton.swift in Sources */,
|
EAF7F11728A1475A00B287F5 /* RadioButton.swift in Sources */,
|
||||||
EAB1D2A128A598FE00DAE764 /* UsesAutoLayout.swift in Sources */,
|
|
||||||
EAB1D2CD28ABE76100DAE764 /* Withable.swift in Sources */,
|
EAB1D2CD28ABE76100DAE764 /* Withable.swift in Sources */,
|
||||||
EAF7F0952899861000B287F5 /* Checkbox.swift in Sources */,
|
EAF7F0952899861000B287F5 /* Checkbox.swift in Sources */,
|
||||||
EA3361C9289054C50071C351 /* Surfaceable.swift in Sources */,
|
EA3361C9289054C50071C351 /* Surfaceable.swift in Sources */,
|
||||||
EA1F265D28B944F00033E859 /* CollectionView.swift in Sources */,
|
|
||||||
EA4DB30228DCBCA500103EE3 /* Badge.swift in Sources */,
|
EA4DB30228DCBCA500103EE3 /* Badge.swift in Sources */,
|
||||||
EA33624728931B050071C351 /* Initable.swift in Sources */,
|
EA33624728931B050071C351 /* Initable.swift in Sources */,
|
||||||
EAF7F0A4289B017C00B287F5 /* LabelAttributeModel.swift in Sources */,
|
EAF7F0A4289B017C00B287F5 /* LabelAttributeModel.swift in Sources */,
|
||||||
@ -635,12 +594,8 @@
|
|||||||
EA3361BD288B2C760071C351 /* TypeAlias.swift in Sources */,
|
EA3361BD288B2C760071C351 /* TypeAlias.swift in Sources */,
|
||||||
EAB1D2CF28ABEF2B00DAE764 /* Typography.swift in Sources */,
|
EAB1D2CF28ABEF2B00DAE764 /* Typography.swift in Sources */,
|
||||||
EAF7F09A2899B17200B287F5 /* CATransaction.swift in Sources */,
|
EAF7F09A2899B17200B287F5 /* CATransaction.swift in Sources */,
|
||||||
EA89200F28B53921006B9984 /* Selectable.swift in Sources */,
|
|
||||||
EAF7F0A2289AFB3900B287F5 /* Errorable.swift in Sources */,
|
EAF7F0A2289AFB3900B287F5 /* Errorable.swift in Sources */,
|
||||||
EA3C3B4C2894823E000CA526 /* AnyProxy.swift in Sources */,
|
|
||||||
EA3361AF288B26310071C351 /* FormFieldable.swift in Sources */,
|
EA3361AF288B26310071C351 /* FormFieldable.swift in Sources */,
|
||||||
EAB1D29A28A5611D00DAE764 /* SelectorGroupModelable.swift in Sources */,
|
|
||||||
EAF7F0BB289D80ED00B287F5 /* Modelable.swift in Sources */,
|
|
||||||
EA89201528B56CF4006B9984 /* RadioBoxGroup.swift in Sources */,
|
EA89201528B56CF4006B9984 /* RadioBoxGroup.swift in Sources */,
|
||||||
EAF7F09E289AAEC000B287F5 /* Constants.swift in Sources */,
|
EAF7F09E289AAEC000B287F5 /* Constants.swift in Sources */,
|
||||||
EA1F266528B945070033E859 /* RadioSwatch.swift in Sources */,
|
EA1F266528B945070033E859 /* RadioSwatch.swift in Sources */,
|
||||||
@ -652,18 +607,15 @@
|
|||||||
EAB1D2E628AE842000DAE764 /* Publisher+Bind.swift in Sources */,
|
EAB1D2E628AE842000DAE764 /* Publisher+Bind.swift in Sources */,
|
||||||
EA3361AA288B25E40071C351 /* Disabling.swift in Sources */,
|
EA3361AA288B25E40071C351 /* Disabling.swift in Sources */,
|
||||||
EA3361B6288B2A410071C351 /* Control.swift in Sources */,
|
EA3361B6288B2A410071C351 /* Control.swift in Sources */,
|
||||||
EAB1D2A328A5994800DAE764 /* Debuggable.swift in Sources */,
|
|
||||||
5F21D7BF28DCEB3D003E7CD6 /* Useable.swift in Sources */,
|
5F21D7BF28DCEB3D003E7CD6 /* Useable.swift in Sources */,
|
||||||
EAF7F0B7289C12A600B287F5 /* UITapGestureRecognizer.swift in Sources */,
|
EAF7F0B7289C12A600B287F5 /* UITapGestureRecognizer.swift in Sources */,
|
||||||
EA3362452892F9130071C351 /* Labelable.swift in Sources */,
|
|
||||||
EA3361AD288B26190071C351 /* DataTrackable.swift in Sources */,
|
EA3361AD288B26190071C351 /* DataTrackable.swift in Sources */,
|
||||||
EAA5EEE228F4C62C003B3210 /* Colorable.swift in Sources */,
|
EAA5EEE228F4C62C003B3210 /* Colorable.swift in Sources */,
|
||||||
EA33623E2892EE950071C351 /* UIDevice.swift in Sources */,
|
EA33623E2892EE950071C351 /* UIDevice.swift in Sources */,
|
||||||
EA3362302891EB4A0071C351 /* Fonts.swift in Sources */,
|
EA3362302891EB4A0071C351 /* Fonts.swift in Sources */,
|
||||||
EA1F265E28B944F00033E859 /* CollectionViewCell.swift in Sources */,
|
|
||||||
EAF7F0AD289B142900B287F5 /* LabelAttributeStrikeThrough.swift in Sources */,
|
EAF7F0AD289B142900B287F5 /* LabelAttributeStrikeThrough.swift in Sources */,
|
||||||
EA3361B8288B2AAA0071C351 /* ViewProtocol.swift in Sources */,
|
EA3361B8288B2AAA0071C351 /* ViewProtocol.swift in Sources */,
|
||||||
EA3361BF288B2EA60071C351 /* ModelHandlerable.swift in Sources */,
|
EA3361BF288B2EA60071C351 /* Handlerable.swift in Sources */,
|
||||||
EA3361A8288B23300071C351 /* UIColor.swift in Sources */,
|
EA3361A8288B23300071C351 /* UIColor.swift in Sources */,
|
||||||
EA1F266628B945070033E859 /* RadioSwatchGroup.swift in Sources */,
|
EA1F266628B945070033E859 /* RadioSwatchGroup.swift in Sources */,
|
||||||
5FC35BE328D51405004EBEAC /* Button.swift in Sources */,
|
5FC35BE328D51405004EBEAC /* Button.swift in Sources */,
|
||||||
|
|||||||
@ -1,96 +0,0 @@
|
|||||||
//
|
|
||||||
// CollectionView.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/25/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
|
||||||
import Combine
|
|
||||||
|
|
||||||
open class CollectionView: UICollectionView, ModelHandlerable, ViewProtocol, Resettable {
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Combine Properties
|
|
||||||
//--------------------------------------------------
|
|
||||||
public var subject = PassthroughSubject<Void, Never>()
|
|
||||||
public var subscribers = Set<AnyCancellable>()
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Properties
|
|
||||||
//--------------------------------------------------
|
|
||||||
private var initialSetupPerformed = false
|
|
||||||
|
|
||||||
open var surface: Surface = .light { didSet { didChange() }}
|
|
||||||
|
|
||||||
open var disabled: Bool = false { didSet { isEnabled = !disabled } }
|
|
||||||
|
|
||||||
open var isEnabled: Bool {
|
|
||||||
get { !disabled }
|
|
||||||
set {
|
|
||||||
if disabled != !newValue {
|
|
||||||
disabled = !newValue
|
|
||||||
}
|
|
||||||
isUserInteractionEnabled = isEnabled
|
|
||||||
didChange()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Initializers
|
|
||||||
//--------------------------------------------------
|
|
||||||
required public init() {
|
|
||||||
super.init(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
public required init(collectionViewLayout layout: UICollectionViewLayout) {
|
|
||||||
super.init(frame: .zero, collectionViewLayout: layout)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
public override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
|
|
||||||
super.init(frame: frame, collectionViewLayout: layout)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
public required init?(coder: NSCoder) {
|
|
||||||
super.init(coder: coder)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Setup
|
|
||||||
//--------------------------------------------------
|
|
||||||
|
|
||||||
open func initialSetup() {
|
|
||||||
if !initialSetupPerformed {
|
|
||||||
initialSetupPerformed = true
|
|
||||||
setup()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
open override func layoutSubviews() {
|
|
||||||
super.layoutSubviews()
|
|
||||||
updateView()
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Overrides
|
|
||||||
//--------------------------------------------------
|
|
||||||
open func updateView() {}
|
|
||||||
|
|
||||||
open func reset() {
|
|
||||||
backgroundColor = .clear
|
|
||||||
surface = .light
|
|
||||||
disabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - ViewProtocol
|
|
||||||
/// Will be called only once.
|
|
||||||
open func setup() {
|
|
||||||
translatesAutoresizingMaskIntoConstraints = false
|
|
||||||
insetsLayoutMarginsFromSafeArea = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,81 +0,0 @@
|
|||||||
//
|
|
||||||
// CollectionViewCell.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/25/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
|
||||||
import Combine
|
|
||||||
|
|
||||||
open class CollectionViewCell<ModelHandlerType: ModelHandlerable & UIView>: UICollectionViewCell, ViewProtocol {
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Properties
|
|
||||||
//--------------------------------------------------
|
|
||||||
private var initialSetupPerformed = false
|
|
||||||
|
|
||||||
public var modelHandler: ModelHandlerType? {
|
|
||||||
didSet {
|
|
||||||
if let oldValue {
|
|
||||||
oldValue.removeFromSuperview()
|
|
||||||
}
|
|
||||||
if let modelHandler {
|
|
||||||
addSubview(modelHandler)
|
|
||||||
modelHandler.didChange()
|
|
||||||
modelHandler.topAnchor.constraint(equalTo: topAnchor).isActive = true
|
|
||||||
modelHandler.leadingAnchor.constraint(equalTo: leadingAnchor).isActive = true
|
|
||||||
modelHandler.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true
|
|
||||||
modelHandler.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
open var surface: Surface = .light { didSet { modelHandler?.surface = surface } }
|
|
||||||
|
|
||||||
open var disabled: Bool = false { didSet{ modelHandler?.disabled = disabled } }
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Initializers
|
|
||||||
//--------------------------------------------------
|
|
||||||
required public init() {
|
|
||||||
super.init(frame: .zero)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
public override init(frame: CGRect) {
|
|
||||||
super.init(frame: frame)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
public required init?(coder: NSCoder) {
|
|
||||||
super.init(coder: coder)
|
|
||||||
initialSetup()
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Setup
|
|
||||||
//--------------------------------------------------
|
|
||||||
|
|
||||||
open func initialSetup() {
|
|
||||||
if !initialSetupPerformed {
|
|
||||||
initialSetupPerformed = true
|
|
||||||
setup()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - ViewProtocol
|
|
||||||
/// Will be called only once.
|
|
||||||
open func setup() {
|
|
||||||
translatesAutoresizingMaskIntoConstraints = false
|
|
||||||
insetsLayoutMarginsFromSafeArea = false
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
open override func prepareForReuse() {
|
|
||||||
super.prepareForReuse()
|
|
||||||
if let handler = modelHandler as? Resettable {
|
|
||||||
handler.reset()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -23,13 +23,13 @@ public typealias ObjectColorable = Colorable & Initable & ObjectWithable
|
|||||||
///
|
///
|
||||||
/// let textColor = config.getColor(model) //returns .black
|
/// let textColor = config.getColor(model) //returns .black
|
||||||
final public class SurfaceColorConfiguration: ObjectColorable {
|
final public class SurfaceColorConfiguration: ObjectColorable {
|
||||||
public typealias ModelType = Surfaceable
|
public typealias ObjectType = Surfaceable
|
||||||
public var lightColor: UIColor = .clear
|
public var lightColor: UIColor = .clear
|
||||||
public var darkColor: UIColor = .clear
|
public var darkColor: UIColor = .clear
|
||||||
|
|
||||||
required public init(){}
|
required public init(){}
|
||||||
public func getColor(_ viewModel: any ModelType) -> UIColor {
|
public func getColor(_ object: any ObjectType) -> UIColor {
|
||||||
return viewModel.surface == .light ? lightColor : darkColor
|
return object.surface == .light ? lightColor : darkColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ public protocol DisabledSurfaceColorable: ObjectColorable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension DisabledSurfaceColorable {
|
extension DisabledSurfaceColorable {
|
||||||
public func getDisabledColor<M: Surfaceable & Disabling> (_ viewModel: M) -> UIColor {
|
public func getDisabledColor<M: Surfaceable & Disabling> (_ object: M) -> UIColor {
|
||||||
viewModel.disabled ? disabled.getColor(viewModel) : enabled.getColor(viewModel)
|
object.disabled ? disabled.getColor(object) : enabled.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,14 +69,14 @@ extension DisabledSurfaceColorable {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
final public class DisabledSurfaceColorConfiguration: DisabledSurfaceColorable {
|
final public class DisabledSurfaceColorConfiguration: DisabledSurfaceColorable {
|
||||||
public typealias ModelType = Surfaceable & Disabling
|
public typealias ObjectType = Surfaceable & Disabling
|
||||||
public var disabled = SurfaceColorConfiguration()
|
public var disabled = SurfaceColorConfiguration()
|
||||||
public var enabled = SurfaceColorConfiguration()
|
public var enabled = SurfaceColorConfiguration()
|
||||||
|
|
||||||
required public init(){}
|
required public init(){}
|
||||||
|
|
||||||
public func getColor(_ viewModel: any ModelType) -> UIColor {
|
public func getColor(_ object: any ObjectType) -> UIColor {
|
||||||
getDisabledColor(viewModel)
|
getDisabledColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,15 +84,11 @@ final public class DisabledSurfaceColorConfiguration: DisabledSurfaceColorable {
|
|||||||
///MARK -- BinaryColorable
|
///MARK -- BinaryColorable
|
||||||
///-------------------------------------------------------------------
|
///-------------------------------------------------------------------
|
||||||
public protocol BinaryColorable{
|
public protocol BinaryColorable{
|
||||||
var userTrueColor: Bool { get }
|
var useTrueColor: Bool { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
extension BinaryColorable where Self: Control {
|
extension BinaryColorable where Self: Control {
|
||||||
public var userTrueColor: Bool { return isSelected }
|
public var useTrueColor: Bool { return isSelected }
|
||||||
}
|
|
||||||
|
|
||||||
extension BinaryColorable where Self: Selectable {
|
|
||||||
public var userTrueColor: Bool { return selected }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///-------------------------------------------------------------------
|
///-------------------------------------------------------------------
|
||||||
@ -104,8 +100,8 @@ public protocol BinarySurfaceColorable: ObjectColorable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension BinarySurfaceColorable {
|
extension BinarySurfaceColorable {
|
||||||
public func getBinaryColor<M: Surfaceable & BinaryColorable>(_ viewModel: M) -> UIColor {
|
public func getBinaryColor<M: Surfaceable & BinaryColorable>(_ object: M) -> UIColor {
|
||||||
viewModel.userTrueColor ? forTrue.getColor(viewModel) : forFalse.getColor(viewModel)
|
object.useTrueColor ? forTrue.getColor(object) : forFalse.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,14 +126,14 @@ extension BinarySurfaceColorable {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
final public class BinarySurfaceColorConfiguration: BinarySurfaceColorable {
|
final public class BinarySurfaceColorConfiguration: BinarySurfaceColorable {
|
||||||
public typealias ModelType = Surfaceable & BinaryColorable
|
public typealias ObjectType = Surfaceable & BinaryColorable
|
||||||
public var forTrue = SurfaceColorConfiguration()
|
public var forTrue = SurfaceColorConfiguration()
|
||||||
public var forFalse = SurfaceColorConfiguration()
|
public var forFalse = SurfaceColorConfiguration()
|
||||||
|
|
||||||
required public init(){}
|
required public init(){}
|
||||||
|
|
||||||
public func getColor(_ viewModel: any ModelType) -> UIColor {
|
public func getColor(_ object: any ObjectType) -> UIColor {
|
||||||
getBinaryColor(viewModel)
|
getBinaryColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,8 +147,8 @@ public protocol BinaryDisabledSurfaceColorable: ObjectColorable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension BinaryDisabledSurfaceColorable {
|
extension BinaryDisabledSurfaceColorable {
|
||||||
public func getBinaryColor<M: Disabling & Surfaceable & BinaryColorable>(_ viewModel: M) -> UIColor {
|
public func getBinaryColor<M: Disabling & Surfaceable & BinaryColorable>(_ object: M) -> UIColor {
|
||||||
viewModel.userTrueColor ? forTrue.getColor(viewModel) : forFalse.getColor(viewModel)
|
object.useTrueColor ? forTrue.getColor(object) : forFalse.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,13 +179,13 @@ extension BinaryDisabledSurfaceColorable {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
final public class BinaryDisabledSurfaceColorConfiguration: BinaryDisabledSurfaceColorable {
|
final public class BinaryDisabledSurfaceColorConfiguration: BinaryDisabledSurfaceColorable {
|
||||||
public typealias ModelType = Disabling & Surfaceable & BinaryColorable
|
public typealias ObjectType = Disabling & Surfaceable & BinaryColorable
|
||||||
public var forTrue = DisabledSurfaceColorConfiguration()
|
public var forTrue = DisabledSurfaceColorConfiguration()
|
||||||
public var forFalse = DisabledSurfaceColorConfiguration()
|
public var forFalse = DisabledSurfaceColorConfiguration()
|
||||||
|
|
||||||
required public init(){}
|
required public init(){}
|
||||||
|
|
||||||
public func getColor(_ viewModel: any ModelType) -> UIColor {
|
public func getColor(_ object: any ObjectType) -> UIColor {
|
||||||
getBinaryColor(viewModel)
|
getBinaryColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,6 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public struct Constants {
|
public struct Constants {
|
||||||
public static let ModelStateDebounce = 0.0 //.001
|
public static let StateDebounce = 0.0 //.001
|
||||||
public static let PaddingOne = 10.0
|
public static let PaddingOne = 10.0
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
import Combine
|
import Combine
|
||||||
|
|
||||||
|
|
||||||
open class Control: UIControl, ModelHandlerable, ViewProtocol, Resettable {
|
open class Control: UIControl, Handlerable, ViewProtocol, Resettable {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Combine Properties
|
// MARK: - Combine Properties
|
||||||
|
|||||||
@ -8,12 +8,12 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
public class SelectorGroupHandlerBase<ModelHandlerType: Control>: Control {
|
public class SelectorGroupHandlerBase<HandlerType: Control>: Control {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public var selectorViews: [ModelHandlerType] = []
|
public var selectorViews: [HandlerType] = []
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Overrides
|
// MARK: - Overrides
|
||||||
@ -33,36 +33,20 @@ public class SelectorGroupHandlerBase<ModelHandlerType: Control>: Control {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func createModelHandler() -> ModelHandlerType {
|
|
||||||
//create view
|
|
||||||
let newSelectorView = ModelHandlerType()
|
|
||||||
|
|
||||||
//add the selectedPublisher for the change
|
|
||||||
newSelectorView
|
|
||||||
.publisher(for: .touchUpInside)
|
|
||||||
.sink { [weak self] control in
|
|
||||||
self?.didSelect(control)
|
|
||||||
}
|
|
||||||
.store(in: &subscribers)
|
|
||||||
|
|
||||||
return newSelectorView
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
open func didSelect(_ selectedControl: ModelHandlerType) {
|
open func didSelect(_ selectedControl: HandlerType) {
|
||||||
fatalError("Must override didSelect")
|
fatalError("Must override didSelect")
|
||||||
}
|
}
|
||||||
|
|
||||||
public func valueChanged() {
|
public func valueChanged() {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + Constants.ModelStateDebounce) { [weak self] in
|
DispatchQueue.main.asyncAfter(deadline: .now() + Constants.StateDebounce) { [weak self] in
|
||||||
self?.sendActions(for: .valueChanged)
|
self?.sendActions(for: .valueChanged)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SelectorGroupSelectedHandlerBase<ModelHandlerType: Control>: SelectorGroupHandlerBase<ModelHandlerType>{
|
public class SelectorGroupSelectedHandlerBase<HandlerType: Control>: SelectorGroupHandlerBase<HandlerType>{
|
||||||
public var selectedHandler: ModelHandlerType? {
|
public var selectedHandler: HandlerType? {
|
||||||
return selectorViews.filter { $0.isSelected == true }.first
|
return selectorViews.filter { $0.isSelected == true }.first
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
import Combine
|
import Combine
|
||||||
|
|
||||||
|
|
||||||
open class View: UIView, ModelHandlerable, ViewProtocol, Resettable {
|
open class View: UIView, Handlerable, ViewProtocol, Resettable {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Combine Properties
|
// MARK: - Combine Properties
|
||||||
|
|||||||
@ -16,7 +16,7 @@ public enum ButtonSize: String, Codable, CaseIterable {
|
|||||||
case small
|
case small
|
||||||
}
|
}
|
||||||
|
|
||||||
open class Button: UIButton, ModelHandlerable, ViewProtocol, Resettable, Useable {
|
open class Button: UIButton, Handlerable, ViewProtocol, Resettable, Useable {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Combine Properties
|
// MARK: - Combine Properties
|
||||||
@ -197,14 +197,14 @@ open class Button: UIButton, ModelHandlerable, ViewProtocol, Resettable, Useable
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
private class UseableColorConfiguration: ObjectColorable {
|
private class UseableColorConfiguration: ObjectColorable {
|
||||||
typealias ModelType = Disabling & Surfaceable & Useable
|
typealias ObjectType = Disabling & Surfaceable & Useable
|
||||||
public var primary = DisabledSurfaceColorConfiguration()
|
public var primary = DisabledSurfaceColorConfiguration()
|
||||||
public var secondary = DisabledSurfaceColorConfiguration()
|
public var secondary = DisabledSurfaceColorConfiguration()
|
||||||
|
|
||||||
required public init(){}
|
required public init(){}
|
||||||
|
|
||||||
public func getColor(_ viewModel: ModelType) -> UIColor {
|
public func getColor(_ object: ObjectType) -> UIColor {
|
||||||
return viewModel.use == .primary ? primary.getColor(viewModel) : secondary.getColor(viewModel)
|
return object.use == .primary ? primary.getColor(object) : secondary.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ public class SoloCheckbox: CheckboxBase{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open class CheckboxBase: Control, Accessable, BinaryColorable, Errorable {
|
open class CheckboxBase: Control, Accessable, DataTrackable, BinaryColorable, Errorable {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -367,21 +367,21 @@ open class CheckboxBase: Control, Accessable, BinaryColorable, Errorable {
|
|||||||
// MARK: - Color Class Configurations
|
// MARK: - Color Class Configurations
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
internal class ErrorBinaryDisabledSurfaceColorConfiguration: BinaryDisabledSurfaceColorable {
|
internal class ErrorBinaryDisabledSurfaceColorConfiguration: BinaryDisabledSurfaceColorable {
|
||||||
typealias ModelType = Errorable & Disabling & Surfaceable & BinaryColorable
|
typealias ObjectType = Errorable & Disabling & Surfaceable & BinaryColorable
|
||||||
var error = BinarySurfaceColorConfiguration()
|
var error = BinarySurfaceColorConfiguration()
|
||||||
var forTrue = DisabledSurfaceColorConfiguration()
|
var forTrue = DisabledSurfaceColorConfiguration()
|
||||||
var forFalse = DisabledSurfaceColorConfiguration()
|
var forFalse = DisabledSurfaceColorConfiguration()
|
||||||
|
|
||||||
required init() {}
|
required init() {}
|
||||||
|
|
||||||
func getColor(_ viewModel: ModelType) -> UIColor {
|
func getColor(_ object: ObjectType) -> UIColor {
|
||||||
//only show error is enabled and showError == true
|
//only show error is enabled and showError == true
|
||||||
let showErrorColor = !viewModel.disabled && viewModel.showError
|
let showErrorColor = !object.disabled && object.showError
|
||||||
|
|
||||||
if showErrorColor {
|
if showErrorColor {
|
||||||
return error.getColor(viewModel)
|
return error.getColor(object)
|
||||||
} else {
|
} else {
|
||||||
return getBinaryColor(viewModel)
|
return getBinaryColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,13 +18,13 @@ public class CheckboxGroup: CheckboxGroupBase<Checkbox> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CheckboxGroupBase<ModelHandlerType: CheckboxBase>: SelectorGroupHandlerBase<ModelHandlerType> {
|
public class CheckboxGroupBase<HandlerType: CheckboxBase>: SelectorGroupHandlerBase<HandlerType> {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public override var selectorViews: [ModelHandlerType] {
|
public override var selectorViews: [HandlerType] {
|
||||||
didSet {
|
didSet {
|
||||||
for selector in selectorViews {
|
for selector in selectorViews {
|
||||||
if !mainStackView.arrangedSubviews.contains(selector) {
|
if !mainStackView.arrangedSubviews.contains(selector) {
|
||||||
@ -84,7 +84,7 @@ public class CheckboxGroupBase<ModelHandlerType: CheckboxBase>: SelectorGroupHan
|
|||||||
mainStackView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
mainStackView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
public var selectedModelHandlers: [ModelHandlerType]? {
|
public var selectedHandlers: [HandlerType]? {
|
||||||
let selected = selectorViews.filter{ $0.isSelected == true }
|
let selected = selectorViews.filter{ $0.isSelected == true }
|
||||||
guard selected.count > 0 else { return nil }
|
guard selected.count > 0 else { return nil }
|
||||||
return selected
|
return selected
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import Combine
|
|||||||
|
|
||||||
public class Label: LabelBase {}
|
public class Label: LabelBase {}
|
||||||
|
|
||||||
open class LabelBase: UILabel, ModelHandlerable, ViewProtocol, Resettable {
|
open class LabelBase: UILabel, Handlerable, ViewProtocol, Resettable {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Combine Properties
|
// MARK: - Combine Properties
|
||||||
|
|||||||
@ -24,7 +24,7 @@ public class SolorRadioBox: RadioBoxBase{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open class RadioBoxBase: Control, BinaryColorable, Accessable {
|
open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -18,12 +18,12 @@ public class RadioBoxGroup: RadioBoxGroupBase<RadioBox> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class RadioBoxGroupBase<ModelHandlerType: RadioBoxBase>: SelectorGroupSelectedHandlerBase<ModelHandlerType> {
|
public class RadioBoxGroupBase<HandlerType: RadioBoxBase>: SelectorGroupSelectedHandlerBase<HandlerType> {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public override var selectorViews: [ModelHandlerType] {
|
public override var selectorViews: [HandlerType] {
|
||||||
didSet {
|
didSet {
|
||||||
for selector in selectorViews {
|
for selector in selectorViews {
|
||||||
if !mainStackView.arrangedSubviews.contains(selector) {
|
if !mainStackView.arrangedSubviews.contains(selector) {
|
||||||
@ -86,15 +86,4 @@ public class RadioBoxGroupBase<ModelHandlerType: RadioBoxBase>: SelectorGroupSel
|
|||||||
}
|
}
|
||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
}
|
}
|
||||||
|
|
||||||
public var selectedModelHandler: ModelHandlerType? {
|
|
||||||
if let index = selectorViews.firstIndex(where: { element in
|
|
||||||
return element.isSelected == true
|
|
||||||
}) {
|
|
||||||
return selectorViews[index]
|
|
||||||
} else {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@ public class SoloRadioButton: RadioButtonBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open class RadioButtonBase: Control, Accessable, BinaryColorable, Errorable {
|
open class RadioButtonBase: Control, Accessable, DataTrackable, BinaryColorable, Errorable {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -20,12 +20,12 @@ public class RadioButtonGroup: RadioButtonGroupBase<RadioButton> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class RadioButtonGroupBase<ModelHandlerType: RadioButtonBase>: SelectorGroupSelectedHandlerBase<ModelHandlerType> {
|
public class RadioButtonGroupBase<HandlerType: RadioButtonBase>: SelectorGroupSelectedHandlerBase<HandlerType> {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public override var selectorViews: [ModelHandlerType] {
|
public override var selectorViews: [HandlerType] {
|
||||||
didSet {
|
didSet {
|
||||||
for selector in selectorViews {
|
for selector in selectorViews {
|
||||||
if !mainStackView.arrangedSubviews.contains(selector) {
|
if !mainStackView.arrangedSubviews.contains(selector) {
|
||||||
|
|||||||
@ -20,12 +20,12 @@ public class RadioSwatchGroup: RadioSwatchGroupBase<RadioSwatch> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class RadioSwatchGroupBase<ModelHandlerType: RadioSwatchBase>: SelectorGroupSelectedHandlerBase<ModelHandlerType>, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UICollectionViewDelegate {
|
public class RadioSwatchGroupBase<HandlerType: RadioSwatchBase>: SelectorGroupSelectedHandlerBase<HandlerType>, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UICollectionViewDelegate {
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public override var selectorViews: [ModelHandlerType] {
|
public override var selectorViews: [HandlerType] {
|
||||||
didSet {
|
didSet {
|
||||||
collectionView.reloadData()
|
collectionView.reloadData()
|
||||||
}
|
}
|
||||||
@ -185,7 +185,7 @@ public class RadioSwatchGroupBase<ModelHandlerType: RadioSwatchBase>: SelectorGr
|
|||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
||||||
open func didSelect(selector: ModelHandlerType) {
|
open func didSelect(selector: HandlerType) {
|
||||||
fatalError("Must override didSelect")
|
fatalError("Must override didSelect")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,45 +0,0 @@
|
|||||||
//
|
|
||||||
// ProxPropertyWrapper.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 7/29/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
//https://www.swiftbysundell.com/articles/accessing-a-swift-property-wrappers-enclosing-instance/
|
|
||||||
@propertyWrapper
|
|
||||||
public struct AnyProxy<EnclosingSelf, Value> {
|
|
||||||
private let keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>
|
|
||||||
|
|
||||||
public init(_ keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>) {
|
|
||||||
self.keyPath = keyPath
|
|
||||||
}
|
|
||||||
|
|
||||||
@available(*, unavailable, message: "The wrapped value must be accessed from the enclosing instance property.")
|
|
||||||
public var wrappedValue: Value {
|
|
||||||
get { fatalError() }
|
|
||||||
set { fatalError() }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static subscript(
|
|
||||||
_enclosingInstance observed: EnclosingSelf,
|
|
||||||
wrapped wrappedKeyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>,
|
|
||||||
storage storageKeyPath: ReferenceWritableKeyPath<EnclosingSelf, Self>
|
|
||||||
) -> Value {
|
|
||||||
get {
|
|
||||||
let storageValue = observed[keyPath: storageKeyPath]
|
|
||||||
let value = observed[keyPath: storageValue.keyPath]
|
|
||||||
return value
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
let storageValue = observed[keyPath: storageKeyPath]
|
|
||||||
observed[keyPath: storageValue.keyPath] = newValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension NSObject: ProxyContainer {}
|
|
||||||
public protocol ProxyContainer {
|
|
||||||
typealias Proxy<T> = AnyProxy<Self, T>
|
|
||||||
}
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
//
|
|
||||||
// CodableColor.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/26/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
@propertyWrapper
|
|
||||||
public struct CodableColor {
|
|
||||||
public var wrappedValue: UIColor
|
|
||||||
|
|
||||||
public init(wrappedValue: UIColor) {
|
|
||||||
self.wrappedValue = wrappedValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension CodableColor: Codable {
|
|
||||||
public init(from decoder: Decoder) throws {
|
|
||||||
let container = try decoder.singleValueContainer()
|
|
||||||
let colorString = try container.decode(String.self)
|
|
||||||
wrappedValue = UIColor(hexString: colorString)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func encode(to encoder: Encoder) throws {
|
|
||||||
var container = encoder.singleValueContainer()
|
|
||||||
try container.encode(wrappedValue.hexString)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@propertyWrapper
|
|
||||||
public struct OptionalCodableColor {
|
|
||||||
public var wrappedValue: UIColor?
|
|
||||||
|
|
||||||
public init(wrappedValue: UIColor?) {
|
|
||||||
self.wrappedValue = wrappedValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension OptionalCodableColor: Codable {
|
|
||||||
public init(from decoder: Decoder) throws {
|
|
||||||
let container = try decoder.singleValueContainer()
|
|
||||||
if container.decodeNil() {
|
|
||||||
wrappedValue = nil
|
|
||||||
} else {
|
|
||||||
let colorString = try container.decode(String.self)
|
|
||||||
wrappedValue = UIColor(hexString: colorString)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public func encode(to encoder: Encoder) throws {
|
|
||||||
var container = encoder.singleValueContainer()
|
|
||||||
try container.encode(wrappedValue?.hexString)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
//
|
|
||||||
// File.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/11/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
@propertyWrapper
|
|
||||||
public struct Debuggable<Value> {
|
|
||||||
private var value: Value
|
|
||||||
private let description: String
|
|
||||||
|
|
||||||
public init(wrappedValue: Value, description: String = "") {
|
|
||||||
print("Initialized '\(description)' with value \(wrappedValue)")
|
|
||||||
self.value = wrappedValue
|
|
||||||
self.description = description
|
|
||||||
}
|
|
||||||
|
|
||||||
public var wrappedValue: Value {
|
|
||||||
get {
|
|
||||||
print("Accessing '\(description)', returning: \(value)")
|
|
||||||
return value
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
print("Updating '\(description)', newValue: \(newValue)")
|
|
||||||
value = newValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
//
|
|
||||||
// UseAutoLayout.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/11/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
@propertyWrapper
|
|
||||||
public struct UsesAutoLayout<T: UIView> {
|
|
||||||
public var wrappedValue: T {
|
|
||||||
didSet {
|
|
||||||
wrappedValue.translatesAutoresizingMaskIntoConstraints = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public init(wrappedValue: T) {
|
|
||||||
self.wrappedValue = wrappedValue
|
|
||||||
wrappedValue.translatesAutoresizingMaskIntoConstraints = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -18,7 +18,7 @@ public protocol Accessable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Configurations to set within the UIControl
|
//Configurations to set within the UIControl
|
||||||
extension ModelHandlerable where Self: UIView, Self: Accessable {
|
extension Handlerable where Self: UIView, Self: Accessable {
|
||||||
|
|
||||||
public func setAccessibilityHint(_ override: Bool? = nil) {
|
public func setAccessibilityHint(_ override: Bool? = nil) {
|
||||||
let check = override ?? !disabled
|
let check = override ?? !disabled
|
||||||
|
|||||||
@ -8,15 +8,15 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
public protocol Colorable<ModelType> {
|
public protocol Colorable<ObjectType> {
|
||||||
associatedtype ModelType
|
associatedtype ObjectType
|
||||||
func getColor(_ viewModel: ModelType) -> UIColor
|
func getColor(_ object: ObjectType) -> UIColor
|
||||||
}
|
}
|
||||||
|
|
||||||
extension Colorable {
|
extension Colorable {
|
||||||
fileprivate func getColor(_ viewModel: Any) -> UIColor {
|
fileprivate func getColor(_ object: Any) -> UIColor {
|
||||||
guard let model = viewModel as? ModelType else {
|
guard let model = object as? ObjectType else {
|
||||||
assertionFailure("Invalid ModelType, Expecting type \(ModelType.self), received \(viewModel) ")
|
assertionFailure("Invalid ObjectType, Expecting type \(ObjectType.self), received \(object) ")
|
||||||
return .black
|
return .black
|
||||||
}
|
}
|
||||||
return getColor(model)
|
return getColor(model)
|
||||||
@ -25,15 +25,15 @@ extension Colorable {
|
|||||||
public func eraseToAnyColorable() -> AnyColorable { AnyColorable(self) }
|
public func eraseToAnyColorable() -> AnyColorable { AnyColorable(self) }
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct GenericColorable<ModelType>: Colorable, Withable {
|
public struct GenericColorable<ObjectType>: Colorable, Withable {
|
||||||
private var wrapped: any Colorable<ModelType>
|
private var wrapped: any Colorable<ObjectType>
|
||||||
|
|
||||||
public init<C: Colorable>(colorable: C) where C.ModelType == ModelType {
|
public init<C: Colorable>(colorable: C) where C.ObjectType == ObjectType {
|
||||||
wrapped = colorable
|
wrapped = colorable
|
||||||
}
|
}
|
||||||
|
|
||||||
public func getColor(_ viewModel: ModelType) -> UIColor {
|
public func getColor(_ object: ObjectType) -> UIColor {
|
||||||
wrapped.getColor(viewModel)
|
wrapped.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ public struct AnyColorable: Colorable, Withable {
|
|||||||
wrapped = colorable
|
wrapped = colorable
|
||||||
}
|
}
|
||||||
|
|
||||||
public func getColor(_ viewModel: Any) -> UIColor {
|
public func getColor(_ object: Any) -> UIColor {
|
||||||
wrapped.getColor(viewModel)
|
wrapped.getColor(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// Modelable.swift
|
// Handlerable.swift
|
||||||
// VDS
|
// VDS
|
||||||
//
|
//
|
||||||
// Created by Matt Bruce on 7/22/22.
|
// Created by Matt Bruce on 7/22/22.
|
||||||
@ -9,23 +9,23 @@ import Foundation
|
|||||||
import Combine
|
import Combine
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
public protocol ModelHandlerable: AnyObject, Initable, Disabling, Surfaceable {
|
public protocol Handlerable: AnyObject, Initable, Disabling, Surfaceable {
|
||||||
var subject: PassthroughSubject<Void, Never> { get set }
|
var subject: PassthroughSubject<Void, Never> { get set }
|
||||||
var subscribers: Set<AnyCancellable> { get set }
|
var subscribers: Set<AnyCancellable> { get set }
|
||||||
func updateView()
|
func updateView()
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ModelHandlerable {
|
extension Handlerable {
|
||||||
|
|
||||||
public func handlerPublisher() -> AnyPublisher<Void, Never> {
|
public func handlerPublisher() -> AnyPublisher<Void, Never> {
|
||||||
subject
|
subject
|
||||||
.eraseToAnyPublisher()
|
.eraseToAnyPublisher()
|
||||||
.debounce(for: .seconds(Constants.ModelStateDebounce), scheduler: RunLoop.main)
|
.debounce(for: .seconds(Constants.StateDebounce), scheduler: RunLoop.main)
|
||||||
.eraseToAnyPublisher()
|
.eraseToAnyPublisher()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ModelHandlerable where Self: UIView {
|
extension Handlerable where Self: UIView {
|
||||||
public func didChange() {
|
public func didChange() {
|
||||||
subject.send()
|
subject.send()
|
||||||
setNeedsLayout()
|
setNeedsLayout()
|
||||||
@ -1,20 +0,0 @@
|
|||||||
//
|
|
||||||
// LabelModelable.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 7/28/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
public protocol Labelable {
|
|
||||||
var typograpicalStyle: TypographicalStyle { get set }
|
|
||||||
var textPosition: TextPosition { get set }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension Labelable {
|
|
||||||
public var font: UIFont? {
|
|
||||||
return typograpicalStyle.font
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
//
|
|
||||||
// Modelable.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/5/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
public protocol Modelable: Surfaceable, Disabling, Initable, Withable, Identifiable, Equatable, CustomDebugStringConvertible where ID == UUID {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
extension Modelable {
|
|
||||||
public var debugDescription: String {
|
|
||||||
return "\(id.uuidString)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
//
|
|
||||||
// Selectable.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/23/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
public protocol Selectable {
|
|
||||||
var selected: Bool { get set }
|
|
||||||
}
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
//
|
|
||||||
// SelectorGroupModel.swift
|
|
||||||
// VDS
|
|
||||||
//
|
|
||||||
// Created by Matt Bruce on 8/11/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
///MARK: Groups that allow anything selected
|
|
||||||
public protocol SelectorGroupModelable: Modelable, FormFieldable {
|
|
||||||
associatedtype SelectorModelType: Modelable where SelectorModelType: FormFieldable & Selectable
|
|
||||||
var selectors: [SelectorModelType] { get set }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension SelectorGroupModelable {
|
|
||||||
public var debugDescription: String {
|
|
||||||
"group id: \(id.uuidString)\r\(selectors.compactMap{"id: \($0.debugDescription) \($0.selected ? "*" : "")"}.joined(separator: "\r"))"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
///MARK: Groups that allow single selections
|
|
||||||
public protocol SelectorGroupSelectedModelable: SelectorGroupModelable {
|
|
||||||
var selectedModel: SelectorModelType? { get }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension SelectorGroupSelectedModelable {
|
|
||||||
public var selectedModel: SelectorModelType? {
|
|
||||||
if let index = selectors.firstIndex(where: { element in
|
|
||||||
return element.selected == true
|
|
||||||
}) {
|
|
||||||
return selectors[index]
|
|
||||||
} else {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user