Why am I receiving an incorrect array count when using “.count” to return a Swift subscript count?

its probably because you always have a fallback of [""] which is exactly 1 record (an empty string)… i suggest to remove this and see how it crashes, it should not crash if the array is empty btw

1 Like