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