fix: index out bounds issue. resolve #255
This commit is contained in:
parent
da1d146465
commit
09f77c3876
|
@ -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 []
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue