Explain Enum in Swift?

devquora
devquora

Posted On: Feb 22, 2018

 

An enum in swift is used to defines a common type for a group of related values. It enables you to work with those values in a type-safe way within your code.

Basically, it is a type that contains a group of various related values under the same umbrella.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Swift Interview Questions

    What is IOS Swift?

    iOS swift is an intuitive and stalwart language for the iOS. It is joyful to deal with the writing stuff in Swift. It is very advanced and its syntax is also concise and expressive too...

    Swift Interview Questions

    What is Dictionary in Swift?

    It enables you to store the key-value pairs and access the value by providing the key.It is similar to that of the hash..

    Swift Interview Questions

    How can you make a property optional in Swift?

    Declaring a question mark “?” in the code can make a property optional. If a property doesn’t hold a value, then t..