Skip to content
Snippets Groups Projects
Commit 6d713f7b authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Added scroll view controller to sftp controller

parent b1250380
No related branches found
No related tags found
2 merge requests!54Releasing 1.1.4,!42Adding SFTP as a service to backup/restore
import HUD
import DrawerFeature
import Theme
import UIKit
import Shared
import Combine
import DrawerFeature
import DependencyInjection
import ScrollViewController
......
......@@ -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 = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment