Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx messenger iOS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Commits
6d713f7b
Commit
6d713f7b
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
Added scroll view controller to sftp controller
parent
b1250380
No related branches found
No related tags found
2 merge requests
!54
Releasing 1.1.4
,
!42
Adding SFTP as a service to backup/restore
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift
+1
-1
1 addition, 1 deletion
...ingFeature/Controllers/OnboardingUsernameController.swift
Sources/SFTPFeature/SFTPController.swift
+13
-4
13 additions, 4 deletions
Sources/SFTPFeature/SFTPController.swift
with
14 additions
and
5 deletions
Sources/OnboardingFeature/Controllers/OnboardingUsernameController.swift
+
1
−
1
View file @
6d713f7b
import
HUD
import
HUD
import
DrawerFeature
import
Theme
import
Theme
import
UIKit
import
UIKit
import
Shared
import
Shared
import
Combine
import
Combine
import
DrawerFeature
import
DependencyInjection
import
DependencyInjection
import
ScrollViewController
import
ScrollViewController
...
...
This diff is collapsed.
Click to expand it.
Sources/SFTPFeature/SFTPController.swift
+
13
−
4
View file @
6d713f7b
...
@@ -2,11 +2,13 @@ import HUD
...
@@ -2,11 +2,13 @@ import HUD
import
UIKit
import
UIKit
import
Combine
import
Combine
import
DependencyInjection
import
DependencyInjection
import
ScrollViewController
public
final
class
SFTPController
:
UIViewController
{
public
final
class
SFTPController
:
UIViewController
{
@Dependency
private
var
hud
:
HUDType
@Dependency
private
var
hud
:
HUDType
lazy
private
var
screenView
=
SFTPView
()
lazy
private
var
screenView
=
SFTPView
()
lazy
private
var
scrollViewController
=
ScrollViewController
()
private
let
completion
:
()
->
Void
private
let
completion
:
()
->
Void
private
let
viewModel
=
SFTPViewModel
()
private
let
viewModel
=
SFTPViewModel
()
...
@@ -19,16 +21,23 @@ public final class SFTPController: UIViewController {
...
@@ -19,16 +21,23 @@ public final class SFTPController: UIViewController {
required
init
?(
coder
:
NSCoder
)
{
nil
}
required
init
?(
coder
:
NSCoder
)
{
nil
}
public
override
func
loadView
()
{
view
=
screenView
}
public
override
func
viewDidLoad
()
{
public
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
setupScrollView
()
setupNavigationBar
()
setupNavigationBar
()
setupBindings
()
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
()
{
private
func
setupNavigationBar
()
{
navigationItem
.
backButtonTitle
=
""
navigationItem
.
backButtonTitle
=
""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment