removed code

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-10-20 14:06:15 -05:00
parent 8242cbd9de
commit 43ca3ded26
2 changed files with 3 additions and 8 deletions

View File

@ -10,7 +10,7 @@ import UIKit
import Combine import Combine
import VDS import VDS
public class ModelScrollViewController: UIViewController, ModelHandlerable, Initable { public class ModelScrollViewController: UIViewController, Initable {
deinit { deinit {
print("\(Self.self) deinit") print("\(Self.self) deinit")
} }
@ -21,7 +21,6 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Combine Properties // MARK: - Combine Properties
//-------------------------------------------------- //--------------------------------------------------
public var subject = PassthroughSubject<Void, Never>()
public var subscribers = Set<AnyCancellable>() public var subscribers = Set<AnyCancellable>()
public var firstRender: Bool = false public var firstRender: Bool = false
@ -30,10 +29,6 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init
//-------------------------------------------------- //--------------------------------------------------
private var initialSetupPerformed = false private var initialSetupPerformed = false
open var surface: Surface = .light { didSet { subject.send() }}
open var disabled: Bool = false { didSet { subject.send() }}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Initializers // MARK: - Initializers
//-------------------------------------------------- //--------------------------------------------------
@ -59,7 +54,7 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init
public func initialSetup() { public func initialSetup() {
if !initialSetupPerformed { if !initialSetupPerformed {
initialSetupPerformed = true initialSetupPerformed = true
setupUpdateView() //setupUpdateView()
setup() setup()
contentTopView.backgroundColor = Surface.light.color contentTopView.backgroundColor = Surface.light.color
surfacePickerSelectorView.scrollToBottom = { [weak self] in self?.scrollToBottom()} surfacePickerSelectorView.scrollToBottom = { [weak self] in self?.scrollToBottom()}

View File

@ -86,7 +86,7 @@ class RadioButtonViewController: ModelScrollViewController {
radioButtonGroup radioButtonGroup
.publisher(for: .valueChanged) .publisher(for: .valueChanged)
.sink { group in .sink { group in
print("Selected: \(group.selectedModelHandler?.labelText ?? "none")") print("Selected: \(group.selectedHandler?.labelText ?? "none")")
}.store(in: &subscribers) }.store(in: &subscribers)
//set UI values //set UI values