mirror of https://github.com/xaoxuu/ProHUD
31 lines
578 B
Swift
31 lines
578 B
Swift
//
|
|
// HUDUtils.swift
|
|
// ProHUD
|
|
//
|
|
// Created by xaoxuu on 2020/6/22.
|
|
// Copyright © 2020 Titan Studio. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import Inspire
|
|
|
|
extension String {
|
|
static let rotateKey = "rotationAnimation"
|
|
}
|
|
|
|
extension ProHUD {
|
|
static var safeAreaInsets: UIEdgeInsets {
|
|
return Inspire.shared.screen.safeAreaInsets
|
|
}
|
|
}
|
|
|
|
|
|
func == (left: ProHUD.Scene, right: ProHUD.Scene) -> Bool {
|
|
return left.identifier == right.identifier
|
|
}
|
|
|
|
|
|
func != (left: ProHUD.Scene, right: ProHUD.Scene) -> Bool {
|
|
return left.identifier != right.identifier
|
|
}
|