mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-08 06:42:04 +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
|
|
}
|
|
}
|