Skip to content

Commit 731ab63

Browse files
committed
Merge branch 'release/2.4.3'
2 parents acb500f + 2853931 commit 731ab63

File tree

7 files changed

+33
-20
lines changed

7 files changed

+33
-20
lines changed

Cryptomator.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@
32543254
GCC_WARN_UNUSED_FUNCTION = YES;
32553255
GCC_WARN_UNUSED_VARIABLE = YES;
32563256
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
3257-
MARKETING_VERSION = 2.4.2;
3257+
MARKETING_VERSION = 2.4.3;
32583258
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
32593259
MTL_FAST_MATH = YES;
32603260
ONLY_ACTIVE_ARCH = YES;
@@ -3316,7 +3316,7 @@
33163316
GCC_WARN_UNUSED_FUNCTION = YES;
33173317
GCC_WARN_UNUSED_VARIABLE = YES;
33183318
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
3319-
MARKETING_VERSION = 2.4.2;
3319+
MARKETING_VERSION = 2.4.3;
33203320
MTL_ENABLE_DEBUG_INFO = NO;
33213321
MTL_FAST_MATH = YES;
33223322
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200";

Cryptomator/S3/S3AuthenticationViewController.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import CryptomatorCommonCore
1111
import SwiftUI
1212
import UIKit
1313

14-
class S3AuthenticationViewController: UIHostingController<S3AuthenticationView> {
14+
class S3AuthenticationViewController: UIViewController {
1515
weak var coordinator: (Coordinator & S3Authenticating)?
1616
let viewModel: S3AuthenticationViewModel
1717
private var subscriptions = Set<AnyCancellable>()
1818

1919
init(viewModel: S3AuthenticationViewModel) {
2020
self.viewModel = viewModel
21-
super.init(rootView: S3AuthenticationView(viewModel: viewModel))
21+
super.init(nibName: nil, bundle: nil)
2222
}
2323

2424
@available(*, unavailable)
@@ -28,6 +28,8 @@ class S3AuthenticationViewController: UIHostingController<S3AuthenticationView>
2828

2929
override func viewDidLoad() {
3030
super.viewDidLoad()
31+
setupSwiftUIView()
32+
3133
let doneButton = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(done))
3234
navigationItem.rightBarButtonItem = doneButton
3335
let cancelButton = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(cancel))
@@ -64,4 +66,13 @@ class S3AuthenticationViewController: UIHostingController<S3AuthenticationView>
6466
@objc func cancel() {
6567
coordinator?.cancel()
6668
}
69+
70+
private func setupSwiftUIView() {
71+
let child = UIHostingController(rootView: S3AuthenticationView(viewModel: viewModel))
72+
addChild(child)
73+
view.addSubview(child.view)
74+
child.didMove(toParent: self)
75+
child.view.translatesAutoresizingMaskIntoConstraints = false
76+
NSLayoutConstraint.activate(child.view.constraints(equalTo: view))
77+
}
6778
}

Cryptomator/WebDAV/WebDAVAuthentication.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct WebDAVAuthentication: View {
2020
@FocusStateLegacy private var focusedField: Fields? = .url
2121

2222
var body: some View {
23-
List {
23+
Form {
2424
TextField(LocalizedString.getValue("common.cells.url"), text: $viewModel.url)
2525
.keyboardType(.URL)
2626
.disableAutocorrection(true)

Cryptomator/WebDAV/WebDAVAuthenticationViewController.swift

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import Promises
1313
import SwiftUI
1414
import UIKit
1515

16-
class WebDAVAuthenticationViewController: UIHostingController<WebDAVAuthentication> {
16+
class WebDAVAuthenticationViewController: UIViewController {
1717
weak var coordinator: (Coordinator & WebDAVAuthenticating)?
18-
private var viewModel: WebDAVAuthenticationViewModel
18+
private let viewModel: WebDAVAuthenticationViewModel
1919
private var cancellables = Set<AnyCancellable>()
2020
private var hud: ProgressHUD?
2121

2222
init(viewModel: WebDAVAuthenticationViewModel) {
2323
self.viewModel = viewModel
24-
super.init(rootView: WebDAVAuthentication(viewModel: viewModel))
24+
super.init(nibName: nil, bundle: nil)
2525
}
2626

2727
@available(*, unavailable)
@@ -31,6 +31,8 @@ class WebDAVAuthenticationViewController: UIHostingController<WebDAVAuthenticati
3131

3232
override func viewDidLoad() {
3333
super.viewDidLoad()
34+
setupSwiftUIView()
35+
3436
title = "WebDAV"
3537
let cancelButton = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(cancel))
3638
navigationItem.leftBarButtonItem = cancelButton
@@ -87,6 +89,15 @@ class WebDAVAuthenticationViewController: UIHostingController<WebDAVAuthenticati
8789
@objc func cancel() {
8890
coordinator?.cancel()
8991
}
92+
93+
private func setupSwiftUIView() {
94+
let child = UIHostingController(rootView: WebDAVAuthentication(viewModel: viewModel))
95+
addChild(child)
96+
view.addSubview(child.view)
97+
child.didMove(toParent: self)
98+
child.view.translatesAutoresizingMaskIntoConstraints = false
99+
NSLayoutConstraint.activate(child.view.constraints(equalTo: view))
100+
}
90101
}
91102

92103
#if DEBUG

fastlane/changelog.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
- Added possibility to edit WebDAV connections (#256)
2-
- Added Danish translation
3-
- Fixed missing files when encrypted files are offloaded in iCloud Drive (#279)
4-
- Fixed flickering when vault list is empty (#257)
1+
- Fixed missing buttons when adding WebDAV/S3 connections on iOS 13/14 (#280, #282)
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
- Möglichkeit zum Bearbeiten von WebDAV-Verbindungen hinzugefügt (#256)
2-
- Dänische Übersetzung hinzugefügt
3-
- Fehlende Dateien behoben, wenn verschlüsselte Dateien in iCloud Drive nicht lokal vorliegen (#279)
4-
- Flackern behoben, wenn die Tresorliste leer ist (#257)
1+
- Fehlende Buttons beim Hinzufügen von WebDAV/S3-Verbindungen unter iOS 13/14 behoben (#280, #282)
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
- Added possibility to edit WebDAV connections (#256)
2-
- Added Danish translation
3-
- Fixed missing files when encrypted files are offloaded in iCloud Drive (#279)
4-
- Fixed flickering when vault list is empty (#257)
1+
- Fixed missing buttons when adding WebDAV/S3 connections on iOS 13/14 (#280, #282)

0 commit comments

Comments
 (0)