Skip to content

Commit 3b313d5

Browse files
committed
Fix SwiftFormat violations
1 parent a317f83 commit 3b313d5

File tree

17 files changed

+35
-35
lines changed

17 files changed

+35
-35
lines changed

Cryptomator/AddVault/LocalVault/LocalFileSystemAuthenticationViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LocalFileSystemAuthenticationViewModel: SingleSectionTableViewModel, Local
4040
}
4141
}
4242

43-
public static let iCloudDriveRootDirectory = URL(fileURLWithPath: "\(iCloudDrivePrefix)com~apple~CloudDocs/")
43+
static let iCloudDriveRootDirectory = URL(fileURLWithPath: "\(iCloudDrivePrefix)com~apple~CloudDocs/")
4444
private static let iCloudDrivePrefix = "/private/var/mobile/Library/Mobile Documents/"
4545
let documentPickerButtonText: String
4646
let headerText: String

Cryptomator/Common/DatabaseManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Foundation
1313
import GRDB
1414

1515
class DatabaseManager {
16-
public static var shared: DatabaseManager!
16+
static var shared: DatabaseManager!
1717

1818
@Dependency(\.database) private var database
1919

Cryptomator/Purchase/PurchaseViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enum PurchaseError: LocalizedError {
1616
case paymentCancelled
1717
case unknown
1818

19-
public var errorDescription: String? {
19+
var errorDescription: String? {
2020
switch self {
2121
case .unavailableProduct:
2222
return nil // should never happen

Cryptomator/Settings/SettingsCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class SettingsCoordinator: Coordinator {
8484

8585
func showManageSubscriptions() {
8686
if #available(iOS 15.0, *), let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
87-
Task.init {
87+
Task {
8888
do {
8989
try await AppStore.showManageSubscriptions(in: scene)
9090
} catch {

Cryptomator/VaultDetail/ChangePassword/ChangePasswordViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum ChangePasswordViewModelError: Error {
2828
}
2929

3030
extension ChangePasswordViewModelError: LocalizedError {
31-
public var errorDescription: String? {
31+
var errorDescription: String? {
3232
switch self {
3333
case .emptyPassword:
3434
return LocalizedString.getValue("addVault.createNewVault.password.error.emptyPassword")

CryptomatorCommon/Sources/CryptomatorCommonCore/Hub/HubRepository.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct HubVault: Equatable {
1313
}
1414

1515
private struct HubVaultRow: Codable, Equatable, PersistableRecord, FetchableRecord {
16-
public static let databaseTableName = "hubVaultAccount"
16+
static let databaseTableName = "hubVaultAccount"
1717

1818
let vaultUID: String
1919
let subscriptionState: HubSubscriptionState
@@ -31,7 +31,7 @@ private struct HubVaultRow: Codable, Equatable, PersistableRecord, FetchableReco
3131
case vaultUID, subscriptionState
3232
}
3333

34-
public func encode(to container: inout PersistenceContainer) throws {
34+
func encode(to container: inout PersistenceContainer) throws {
3535
container[Columns.vaultUID] = vaultUID
3636
container[Columns.subscriptionState] = subscriptionState
3737
}

CryptomatorCommon/Sources/CryptomatorCommonCore/Mocks/CloudProviderMock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ final class CloudProviderMock: CloudProvider {
242242
var moveFileFromToReturnValue: Promise<Void>!
243243
var moveFileFromToClosure: ((CloudPath, CloudPath) -> Promise<Void>)?
244244

245-
public func moveFile(from sourceCloudPath: CloudPath, to targetCloudPath: CloudPath) -> Promise<Void> {
245+
func moveFile(from sourceCloudPath: CloudPath, to targetCloudPath: CloudPath) -> Promise<Void> {
246246
if let error = moveFileFromToThrowableError {
247247
return Promise(error)
248248
}

CryptomatorCommon/Sources/CryptomatorCommonCore/SwiftUI/SwiftUI+CustomKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public enum BackportedSubmitLabel {
9393
struct BackportedSubmitLabelModifier: ViewModifier {
9494
let label: BackportedSubmitLabel
9595

96-
public func body(content: Content) -> some View {
96+
func body(content: Content) -> some View {
9797
if #available(iOS 15, *) {
9898
content
9999
.submitLabel(label.submitLabel)

CryptomatorCommon/Sources/CryptomatorCommonCore/SwiftUI/SwiftUI+Focus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct FocusModifier<T: CaseIterable & Hashable>: ViewModifier {
6868
// swiftlint:disable:next weak_delegate
6969
@State var delegate = TextFieldDelegate()
7070

71-
public func body(content: Content) -> some View {
71+
func body(content: Content) -> some View {
7272
content
7373
.introspectTextField { textField in
7474
if !(textField.delegate is TextFieldDelegate) {

CryptomatorCommon/Sources/CryptomatorCommonCore/SwiftUI/SwiftUI+ListBackground.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public extension View {
1010
struct ListBackgroundModifier: ViewModifier {
1111
let color: Color
1212

13-
public func body(content: Content) -> some View {
13+
func body(content: Content) -> some View {
1414
if #available(iOS 16, *) {
1515
content
1616
.scrollContentBackground(.hidden)

0 commit comments

Comments
 (0)