adspace


Can enum conform to swift protocol?

Answer Posted / Amar Bahadur Yadav

Yes, an enum can conform to a Swift protocol by adopting it after the enum declaration. The enum should then implement any required methods or properties as defined in the protocol.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

900


How can you define a base class in swift?

931


Explain some biggest changes in usernotifications.

926