作者:哈哈哈-哈哈哈-哈哈哈 | 来源:互联网 | 2023-09-03 06:05
I am having problem where screen interaction is being disabled when the entry kit is displaying. Once the entry kit is dismissed, the screen interaction is enabled again
Xcode 11, iOS 13, iPad application, Swift Entry Kit 1.1.3
here are my codes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| var attributes = EKAttributes()
attributes = .statusBar
attributes.hapticFeedbackType = .success
attributes.displayDuration = .infinity
attributes.screenInteraction = .forward
attributes.popBehavior = .animated(animation: .translation)
attributes.entryBackground = .color(color: .satCyan)
attributes.shadow = .active(with: .init(color: .chatMessage, opacity: 0.5, radius: 2))
attributes.statusBar = .light
let text = "hello world"
let style = EKProperty.LabelStyle(font: MainFont.light.with(size: 14), color: .white, alignment: .center)
let labelContent = EKProperty.LabelContent(text: text, style: style)
let sequence = (1...4).map { "cloud\($0)" }
let animationDuration: TimeInterval = 1
let animation = EKProperty.ImageContent.TransformAnimation.animate(duration: animationDuration, options: [.curveEaseInOut], transform: .init(scaleX: 1.1, y: 1.1))
let imageContent = EKProperty.ImageContent(imagesNames: sequence, imageSequenceAnimationDuration: animationDuration, animation: animation, size: CGSize(width: 20, height: 20), contentMode: .scaleAspectFit)
let contentView = EKImageNoteMessageView(with: labelContent, imageContent: imageContent)
SwiftEntryKit.display(entry: contentView, using: attributes)` |
### UPDATE
If the sample project is run in ipad simulator, this problem will appear. Any recommendation on this?
该提问来源于开源项目:huri000/SwiftEntryKit
now it works perfectly! thank you so much!