Check out example codes for "array length swift". It will help you in understanding the concepts better.
Code Example 1
let arr = [1, 2, 3]
print(arr.count) // 3
Code Example 2
// Initialize the Array
var a = [1,2,3]
// Get the size of the array
let size = a.count
print(size)
Learn ReactJs, React Native from akashmittal.com