mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 05:23:41 +00:00
Style fix
This commit is contained in:
parent
05b25b65bc
commit
39a109216b
@ -2,7 +2,7 @@ import Defaults
|
|||||||
import Foundation
|
import Foundation
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct Constants {
|
enum Constants {
|
||||||
static let yatteeProtocol = "yattee://"
|
static let yatteeProtocol = "yattee://"
|
||||||
static let overlayAnimation = Animation.linear(duration: 0.2)
|
static let overlayAnimation = Animation.linear(duration: 0.2)
|
||||||
static var isIPhone: Bool {
|
static var isIPhone: Bool {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
struct Delay {
|
enum Delay {
|
||||||
@discardableResult static func by(_ interval: TimeInterval, block: @escaping () -> Void) -> Timer {
|
@discardableResult static func by(_ interval: TimeInterval, block: @escaping () -> Void) -> Timer {
|
||||||
Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in block() }
|
Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in block() }
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ import Defaults
|
|||||||
import Logging
|
import Logging
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
struct Orientation {
|
enum Orientation {
|
||||||
static var logger = Logger(label: "stream.yattee.orientation")
|
static var logger = Logger(label: "stream.yattee.orientation")
|
||||||
|
|
||||||
static func lockOrientation(_ orientation: UIInterfaceOrientationMask) {
|
static func lockOrientation(_ orientation: UIInterfaceOrientationMask) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
struct Power {
|
enum Power {
|
||||||
static var hasInternalBattery: Bool {
|
static var hasInternalBattery: Bool {
|
||||||
let psInfo = IOPSCopyPowerSourcesInfo().takeRetainedValue()
|
let psInfo = IOPSCopyPowerSourcesInfo().takeRetainedValue()
|
||||||
let psList = IOPSCopyPowerSourcesList(psInfo).takeRetainedValue() as [CFTypeRef]
|
let psList = IOPSCopyPowerSourcesList(psInfo).takeRetainedValue() as [CFTypeRef]
|
||||||
|
Loading…
Reference in New Issue
Block a user