alexaubry / alexaubry/BulletinBoard

assertIsPrepared() being called randomly

Aberta
#113 6 comentários 0 reações 0 responsáveis Ver no GitHub
bug help wanted
Linguagem predominante
Swift
Estrelas
5.3k
Forks
301
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.