Merge pull request #269 from mastodon/fix/issue-255

Fix issue #255
This commit is contained in:
CMK 2021-08-05 15:38:23 +08:00 committed by GitHub
commit e1a22ae01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ extension MosaicImageViewContainer {
func setupImageViews(count: Int, maxSize: CGSize) -> [ConfigurableMosaic] {
reset()
let count = min(4, max(0, count))
guard count > 1 else {
return []
}