2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

fix: index out bounds issue. resolve #255

This commit is contained in:
CMK 2021-08-05 15:24:54 +08:00
parent da1d146465
commit 09f77c3876

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 []
}