问题描述
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视图,但是它返回了无法识别的错误。问题出在哪里?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)