ProHUD/Source/HUDUtils.swift

31 lines
578 B
Swift
Raw Normal View History

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 {
2020-06-23 10:35:15 +08:00
return 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 {
return left.identifier == right.identifier
}
func != (left: ProHUD.Scene, right: ProHUD.Scene) -> Bool {
return left.identifier != right.identifier
}