added @objc() class name to keep collisions from occurring

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-10-21 10:42:24 -05:00
parent 1e046fa336
commit 46d0bb3047
14 changed files with 25 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import Foundation
import UIKit
import Combine
@objc(VDSControl)
open class Control: UIControl, Handlerable, ViewProtocol, Resettable {
//--------------------------------------------------

View File

@ -10,6 +10,7 @@ import UIKit
import Combine
@objc(VDSView)
open class View: UIView, Handlerable, ViewProtocol, Resettable {
//--------------------------------------------------

View File

@ -15,6 +15,7 @@ public enum BadgeFillColor: String, Codable, CaseIterable {
case red, yellow, green, orange, blue, black, white
}
@objc(VDSBadge)
public class Badge: View, Accessable {
private var label = Label()

View File

@ -16,6 +16,7 @@ public enum ButtonSize: String, Codable, CaseIterable {
case small
}
@objc(VDSButton)
open class Button: UIButton, Handlerable, ViewProtocol, Resettable, Useable {
//--------------------------------------------------

View File

@ -11,8 +11,10 @@ import VDSColorTokens
import VDSFormControlsTokens
import Combine
@objc(VDSCheckbox)
public class Checkbox: CheckboxBase{}
@objc(VDSSoloCheckbox)
public class SoloCheckbox: CheckboxBase{
public override func initialSetup() {
super.initialSetup()
@ -23,6 +25,7 @@ public class SoloCheckbox: CheckboxBase{
}
}
@objc(VDSCheckboxBase)
open class CheckboxBase: Control, Accessable, DataTrackable, BinaryColorable, Errorable {
//--------------------------------------------------
// MARK: - Initializers

View File

@ -8,6 +8,7 @@
import Foundation
import UIKit
@objc(VDSCheckboxGroup)
public class CheckboxGroup: CheckboxGroupBase<Checkbox> {
public override func didSelect(_ selectedControl: Checkbox) {
selectedControl.toggle()

View File

@ -10,8 +10,10 @@ import UIKit
import VDSColorTokens
import Combine
@objc(VDSLabel)
public class Label: LabelBase {}
@objc(VDSLabelBase)
open class LabelBase: UILabel, Handlerable, ViewProtocol, Resettable {
//--------------------------------------------------

View File

@ -11,9 +11,11 @@ import VDSColorTokens
import VDSFormControlsTokens
import Combine
@objc(VDSRadioBox)
public class RadioBox: RadioBoxBase{}
public class SolorRadioBox: RadioBoxBase{
@objc(VDSSoloRadioBox)
public class SoloRadioBox: RadioBoxBase{
public override func initialSetup() {
super.initialSetup()
@ -24,6 +26,7 @@ public class SolorRadioBox: RadioBoxBase{
}
}
@objc(VDSRadioBoxBase)
open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{
//--------------------------------------------------
// MARK: - Initializers

View File

@ -8,6 +8,7 @@
import Foundation
import UIKit
@objc(VDSRadioBoxGroup)
public class RadioBoxGroup: RadioBoxGroupBase<RadioBox> {
public override func didSelect(_ selectedControl: RadioBox) {

View File

@ -10,6 +10,7 @@ import UIKit
import VDSColorTokens
import VDSFormControlsTokens
@objc(VDSRadioButton)
public class RadioButton: RadioButtonBase {
//for groups allows "toggle"
open override func toggle() {
@ -21,6 +22,7 @@ public class RadioButton: RadioButtonBase {
}
}
@objc(VDSSoloRadioButton)
public class SoloRadioButton: RadioButtonBase {
public override func initialSetup() {
super.initialSetup()
@ -31,6 +33,7 @@ public class SoloRadioButton: RadioButtonBase {
}
}
@objc(VDSRadioButtonBase)
open class RadioButtonBase: Control, Accessable, DataTrackable, BinaryColorable, Errorable {
//--------------------------------------------------
// MARK: - Initializers

View File

@ -8,6 +8,7 @@
import Foundation
import UIKit
@objc(VDSRadioButtonGroup)
public class RadioButtonGroup: RadioButtonGroupBase<RadioButton> {
public override func didSelect(_ selectedControl: RadioButton) {

View File

@ -11,6 +11,7 @@ import VDSColorTokens
import VDSFormControlsTokens
import Combine
@objc(VDSRadioSwatch)
public class RadioSwatch: RadioSwatchBase{
public override func initialSetup() {
super.initialSetup()
@ -21,6 +22,7 @@ public class RadioSwatch: RadioSwatchBase{
}
}
@objc(VDSRadioSwatchBase)
open class RadioSwatchBase: Control, Accessable, DataTrackable, BinaryColorable {
//--------------------------------------------------

View File

@ -9,6 +9,7 @@ import Foundation
import UIKit
import Combine
@objc(VDSRadioSwatchGroup)
public class RadioSwatchGroup: RadioSwatchGroupBase<RadioSwatch> {
public override func didSelect(selector: RadioSwatch) {
@ -177,6 +178,7 @@ public class RadioSwatchGroupBase<HandlerType: RadioSwatchBase>: SelectorGroupSe
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "collectionViewCell", for: indexPath)
let handler = selectorViews[indexPath.row]
handler.isUserInteractionEnabled = false
cell.subviews.forEach { $0.removeFromSuperview() }
cell.addSubview(handler)
handler.topAnchor.constraint(equalTo: cell.topAnchor).isActive = true
handler.leadingAnchor.constraint(equalTo: cell.leadingAnchor).isActive = true

View File

@ -30,6 +30,7 @@ public enum ToggleTextPosition: String, CaseIterable {
Container: The background of the toggle control.
Knob: The circular indicator that slides on the container.
*/
@objc(VDSToggle)
public class Toggle: ToggleBase{
public override func initialSetup() {
super.initialSetup()
@ -40,6 +41,7 @@ public class Toggle: ToggleBase{
}
}
@objc(VDSToggleBase)
open class ToggleBase: Control, Accessable, DataTrackable, BinaryColorable {
//--------------------------------------------------