1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-26 17:52:26 +01:00
metatext-app-ios-iphone-ipad/Shared/Views/Screen.swift

14 lines
267 B
Swift
Raw Normal View History

2020-08-02 02:15:45 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
struct Screen {
static var scale: CGFloat {
#if os(macOS)
return NSScreen.main?.backingScaleFactor ?? 1
#else
return UIScreen.main.scale
#endif
}
}