Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

check enumatted arrray last item swift

    for (idx, element) in array.enumerated() {
      if idx == array.endIndex-1 {
        // handling the last element
       }
     }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #enumatted #arrray #item #swift
ADD COMMENT
Topic
Name
7+8 =