Swiftgram/submodules/GraphCore/Sources/Helpers/UIView+Extensions.swift
2024-06-13 17:59:31 -03:00

26 lines
421 B
Swift

//
// GView+Extensions.swift
// GraphTest
//
// Created by Andrei Salavei on 4/10/19.
// Copyright © 2019 Andrei Salavei. All rights reserved.
//
import Foundation
#if os(macOS)
import Cocoa
#else
import UIKit
#endif
#if os(macOS)
public typealias GView = NSView
#else
public typealias GView = UIView
#endif
public extension GView {
static let oneDevicePixel: CGFloat = (1.0 / max(2, min(1, deviceScale)))
}