This commit is contained in:
DDIsFriend
2023-08-24 11:55:03 +08:00
parent 976a905872
commit 8e1c1e732e
9 changed files with 76 additions and 41 deletions

View File

@@ -16,6 +16,7 @@ open class Entry {
public func showRefuseOrderEntry(view:UIView,name:String? = nil){
var attributes = EKAttributes()
attributes.positionConstraints.rotation.isEnabled = false
attributes = .centerFloat
attributes.name = name
attributes.precedence = .override(priority: .normal, dropEnqueuedEntries: false)
@@ -59,6 +60,7 @@ open class Entry {
func showAppUpdateEntry(view:UIView,name:String? = nil) {
var attributes = EKAttributes()
attributes.positionConstraints.rotation.isEnabled = false
attributes = .centerFloat
attributes.name = name
attributes.precedence = .override(priority: .high, dropEnqueuedEntries: false)
@@ -102,6 +104,7 @@ open class Entry {
func showNotificationAuthEntry(view:UIView,name:String? = nil) {
var attributes = EKAttributes()
attributes.positionConstraints.rotation.isEnabled = false
attributes = .centerFloat
attributes.name = name
attributes.precedence = .override(priority: .low, dropEnqueuedEntries: false)