From 43ca3ded26fdff742989a59313917eb913fe8711 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 20 Oct 2022 14:06:15 -0500 Subject: [PATCH] removed code Signed-off-by: Matt Bruce --- .../ViewControllers/ModelScrollViewController.swift | 9 ++------- .../ViewControllers/RadioButtonViewController.swift | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/VDSSample/ViewControllers/ModelScrollViewController.swift b/VDSSample/ViewControllers/ModelScrollViewController.swift index a6dabdf..5d68f48 100644 --- a/VDSSample/ViewControllers/ModelScrollViewController.swift +++ b/VDSSample/ViewControllers/ModelScrollViewController.swift @@ -10,7 +10,7 @@ import UIKit import Combine import VDS -public class ModelScrollViewController: UIViewController, ModelHandlerable, Initable { +public class ModelScrollViewController: UIViewController, Initable { deinit { print("\(Self.self) deinit") } @@ -21,7 +21,6 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init //-------------------------------------------------- // MARK: - Combine Properties //-------------------------------------------------- - public var subject = PassthroughSubject() public var subscribers = Set() public var firstRender: Bool = false @@ -29,10 +28,6 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init // MARK: - Properties //-------------------------------------------------- private var initialSetupPerformed = false - - open var surface: Surface = .light { didSet { subject.send() }} - - open var disabled: Bool = false { didSet { subject.send() }} //-------------------------------------------------- // MARK: - Initializers @@ -59,7 +54,7 @@ public class ModelScrollViewController: UIViewController, ModelHandlerable, Init public func initialSetup() { if !initialSetupPerformed { initialSetupPerformed = true - setupUpdateView() + //setupUpdateView() setup() contentTopView.backgroundColor = Surface.light.color surfacePickerSelectorView.scrollToBottom = { [weak self] in self?.scrollToBottom()} diff --git a/VDSSample/ViewControllers/RadioButtonViewController.swift b/VDSSample/ViewControllers/RadioButtonViewController.swift index 9d0fed2..2cda1b2 100644 --- a/VDSSample/ViewControllers/RadioButtonViewController.swift +++ b/VDSSample/ViewControllers/RadioButtonViewController.swift @@ -86,7 +86,7 @@ class RadioButtonViewController: ModelScrollViewController { radioButtonGroup .publisher(for: .valueChanged) .sink { group in - print("Selected: \(group.selectedModelHandler?.labelText ?? "none")") + print("Selected: \(group.selectedHandler?.labelText ?? "none")") }.store(in: &subscribers) //set UI values