mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix new swiftformat warnings: convert types used for hosting only static members into enums.
This commit is contained in:
committed by
Stefan Ceriu
parent
259baeaf99
commit
a8be8f839b
@@ -21,7 +21,7 @@ import UIKit
|
|||||||
/// is called. The pool contains 3 files.
|
/// is called. The pool contains 3 files.
|
||||||
///
|
///
|
||||||
/// `MXLogger` can track and log uncaught exceptions or crashes.
|
/// `MXLogger` can track and log uncaught exceptions or crashes.
|
||||||
class MXLogger {
|
enum MXLogger {
|
||||||
/// stderr so it can be restored.
|
/// stderr so it can be restored.
|
||||||
static var stderrSave: Int32 = 0
|
static var stderrSave: Int32 = 0
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
/// Standard constants used across the app's UI.
|
/// Standard constants used across the app's UI.
|
||||||
struct UIConstants {
|
enum UIConstants {
|
||||||
static let maxContentHeight: CGFloat = 750
|
static let maxContentHeight: CGFloat = 750
|
||||||
|
|
||||||
/// The padding used between the top of the main content's icon and the navigation bar.
|
/// The padding used between the top of the main content's icon and the navigation bar.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
struct Application {
|
enum Application {
|
||||||
@discardableResult static func launch() -> XCUIApplication {
|
@discardableResult static func launch() -> XCUIApplication {
|
||||||
let app = XCUIApplication()
|
let app = XCUIApplication()
|
||||||
app.launch()
|
app.launch()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
final class DataProtectionManager {
|
enum DataProtectionManager {
|
||||||
/// Detects after reboot, before unlocked state. Does this by trying to write a file to the filesystem (to the Caches directory) and read it back.
|
/// Detects after reboot, before unlocked state. Does this by trying to write a file to the filesystem (to the Caches directory) and read it back.
|
||||||
/// - Parameter containerURL: Container url to write the file.
|
/// - Parameter containerURL: Container url to write the file.
|
||||||
/// - Returns: true if the state detected
|
/// - Returns: true if the state detected
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import MatrixRustSDK
|
import MatrixRustSDK
|
||||||
|
|
||||||
class NSELogger {
|
enum NSELogger {
|
||||||
private static var isConfigured = false
|
private static var isConfigured = false
|
||||||
|
|
||||||
/// Memory formatter, uses exact 2 fraction digits and no grouping
|
/// Memory formatter, uses exact 2 fraction digits and no grouping
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
import SnapshotTesting
|
import SnapshotTesting
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
struct Application {
|
enum Application {
|
||||||
static func launch(_ identifier: UITestsScreenIdentifier, disableTimelineAccessibility: Bool = true) -> XCUIApplication {
|
static func launch(_ identifier: UITestsScreenIdentifier, disableTimelineAccessibility: Bool = true) -> XCUIApplication {
|
||||||
let app = XCUIApplication()
|
let app = XCUIApplication()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user