1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-08 14:46:42 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/MastodonUI/Extension/UIScreen.swift
2022-12-15 07:42:10 -05:00

19 lines
278 B
Swift

//
// UIScreen.swift
//
//
// Created by Jed Fox on 2022-12-15.
//
import UIKit
extension UIScreen {
public var pixelSize: CGFloat {
if scale > 0 {
return 1 / scale
}
// should never happen but just in case
return 1
}
}