adspace


What is use of enum in swift?

Answer Posted / Dheeraj Kumar Jatav

An enumeration, or 'enum' in Swift, is a custom data type that represents a set of related values. Enums are used to define a set of possible cases, each of which can have associated values if necessary. They are useful for defining types with a limited number of valid states.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you define a base class in swift?

931


Explain some biggest changes in usernotifications.

926


Explain the common execution states for a swift ios app (ios application lifecycle).

900