removed code
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8242cbd9de
commit
43ca3ded26
@ -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
|
||||||
|
|
||||||
@ -29,10 +28,6 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init
|
|||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
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()}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user