Style fix

This commit is contained in:
Arkadiusz Fal 2024-02-01 23:51:41 +01:00
parent 05b25b65bc
commit 39a109216b
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import Defaults
import Foundation
import SwiftUI
struct Constants {
enum Constants {
static let yatteeProtocol = "yattee://"
static let overlayAnimation = Animation.linear(duration: 0.2)
static var isIPhone: Bool {

View File

@ -1,6 +1,6 @@
import Foundation
struct Delay {
enum Delay {
@discardableResult static func by(_ interval: TimeInterval, block: @escaping () -> Void) -> Timer {
Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in block() }
}

View File

@ -3,7 +3,7 @@ import Defaults
import Logging
import UIKit
struct Orientation {
enum Orientation {
static var logger = Logger(label: "stream.yattee.orientation")
static func lockOrientation(_ orientation: UIInterfaceOrientationMask) {

View File

@ -1,6 +1,6 @@
import Foundation
struct Power {
enum Power {
static var hasInternalBattery: Bool {
let psInfo = IOPSCopyPowerSourcesInfo().takeRetainedValue()
let psList = IOPSCopyPowerSourcesList(psInfo).takeRetainedValue() as [CFTypeRef]