Swift – Enumerations
This topic is about Swift - Enumerations. An enumeration is a user-defined data type which consists of set of related values. Keyword enum is used to defined enumerated data type. Enumeration Functionality…
This topic is about Swift - Enumerations. An enumeration is a user-defined data type which consists of set of related values. Keyword enum is used to defined enumerated data type. Enumeration Functionality…
This topic is about Swift - Closures. Closures in Swift 4 are similar to that of self-contained functions organized as blocks and called anywhere like C and Objective C languages.…
This topic is about Swift - Functions. A function is a set of statements organized together to perform a specific task. A Swift 4 function can be as simple as…
This topic is about Swift - Dictionaries. Swift 4 dictionaries are used to store unordered lists of values of the same type. Swift 4 puts strict checking which does not allow you…
In this topic we learned about Swift - Sets. Swift 4 sets are used to store distinct values of same types but they don’t have definite ordering as arrays have. You can…
This topic is about Swift - Arrays. Swift 4 arrays are used to store ordered lists of values of the same type. Swift 4 puts strict checking which does not…
This chapter is about Swift - Characters. A character in Swift is a single character String literal, addressed by the data type Character. Take a look at the following example. It uses two…
This topic about Swift - Strings. Strings in Swift 4 are an ordered collection of characters, such as "Hello, World!" and they are represented by the Swift 4 data type String,…
This topic is about Swift - Loops. There may be a situation when you need to execute a block of code several number of times. In general, statements are executed…
This topic is about Swift - Decision Making. Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, along with…