mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-08 14:46:42 +01:00
19 lines
278 B
Swift
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
|
||
|
}
|
||
|
}
|