2020-06-22 13:27:54 +08:00
|
|
|
//
|
|
|
|
// 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 {
|
2021-07-20 16:04:39 +08:00
|
|
|
Inspire.shared.screen.safeAreaInsets
|
2020-06-22 13:27:54 +08:00
|
|
|
}
|
|
|
|
}
|
2020-06-23 20:16:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
func == (left: ProHUD.Scene, right: ProHUD.Scene) -> Bool {
|
2021-07-20 16:04:39 +08:00
|
|
|
left.identifier == right.identifier
|
2020-06-23 20:16:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func != (left: ProHUD.Scene, right: ProHUD.Scene) -> Bool {
|
2021-07-20 16:04:39 +08:00
|
|
|
left.identifier != right.identifier
|
2020-06-23 20:16:05 +08:00
|
|
|
}
|