diff --git a/Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift b/Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift index 19fc945b63b2495f5823af11fb21de205f538d85..d25db4581f5c5dbd3083515b1828433494631e45 100644 --- a/Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift +++ b/Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift @@ -1,9 +1,9 @@ import HUD -import DrawerFeature import Theme import UIKit import Shared import Combine +import DrawerFeature import DependencyInjection import ScrollViewController diff --git a/Sources/SFTPFeature/SFTPController.swift b/Sources/SFTPFeature/SFTPController.swift index 1fe7f4c469b77b3e30d8439fa870def7dfd00e9c..0a8c8d38ed8dbd9d802d58962b468b11f4c57431 100644 --- a/Sources/SFTPFeature/SFTPController.swift +++ b/Sources/SFTPFeature/SFTPController.swift @@ -2,11 +2,13 @@ import HUD import UIKit import Combine import DependencyInjection +import ScrollViewController public final class SFTPController: UIViewController { @Dependency private var hud: HUDType lazy private var screenView = SFTPView() + lazy private var scrollViewController = ScrollViewController() private let completion: () -> Void private let viewModel = SFTPViewModel() @@ -19,16 +21,23 @@ public final class SFTPController: UIViewController { required init?(coder: NSCoder) { nil } - public override func loadView() { - view = screenView - } - public override func viewDidLoad() { super.viewDidLoad() + setupScrollView() setupNavigationBar() setupBindings() } + private func setupScrollView() { + scrollViewController.scrollView.backgroundColor = .white + + addChild(scrollViewController) + view.addSubview(scrollViewController.view) + scrollViewController.view.snp.makeConstraints { $0.edges.equalToSuperview() } + scrollViewController.didMove(toParent: self) + scrollViewController.contentView = screenView + } + private func setupNavigationBar() { navigationItem.backButtonTitle = ""