This is a sample code of how to write enum and enum.
Here, we created a class called “person” and registered Kabigon's name and hometown using enum.
Enumerated Type
- How to learn how to program iPhone apps
- Using UserDefaults to save parameters
- Selecting values using the UIPickerView
- Repeating at a certain time
- Create a collection view with custom layouts
- UDP communication in Swift and sending a string
- Removing @objc inference warnings when migrating from Swift3 to Swift4