alexaubry / alexaubry/BulletinBoard

assertIsPrepared() being called randomly

未关闭
#113 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
Swift
星标
5.3k
派生
301
PR 合并指标
30 天内没有已合并 PR

描述

**Problem Description:**
My app would randomly crash due to assertIsPrepared() being called. Is this a known bug or am I doing something wrong?

```
fileprivate func assertIsPrepared() {
precondition(isPrepared, "You must call the `prepare` function before interacting with the bulletin.")
}
```

**Steps to reproduce:**
This is what I call when a button is pressed:

```
bulletinManager.backgroundViewStyle = .none
bulletinManager.backgroundColor = UIColor(red:0.30, green:0.69, blue:0.94, alpha:1.00)
bulletinManager.showBulletin(above: self)
```

The crash seems random.

**Environment:**
- Device: N/A
- OS: iOS12
- Version of BulletinBoard: 2.0.2

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。