微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

SwiftEntryKit存在时返回错误线程1:EXC_BAD_ACCESS代码= 1,地址= 0x1e0

如何解决SwiftEntryKit存在时返回错误线程1:EXC_BAD_ACCESS代码= 1,地址= 0x1e0

     public func displayCustomAttributes() {
        // Create a basic toast that appears at the top
        var attributes = EKAttributes.topToast

        // Set its background to white
        attributes.entryBackground = .color(color: .white)

        // Animate in and out using default translation
        attributes.entranceAnimation = .translation
        attributes.exitAnimation = .translation

        let customView = UIView()
        /*
        ... Customize the view as you like ...
        */

        // display the view with the configuration
        SwiftEntryKit.display(entry: customView,using: attributes)
    }

我在上面的基本示例中尝试使用SwiftEntryKit显示Toast视图,但是它返回了无法识别的错误。问题出在哪里?

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。