Become a member
Sign in
पवन शर्मा
पवन शर्मा

पवन शर्मा

93 Following
2 Followers
  • Profile
  • Claps
  • Highlights
  • Responses

Latest

पवन शर्मा
पवन शर्मा
Jul 14, 2018 · 1 min read

Enum Vs Bool in Swift

When you intend to use a Bool in your code, stop and think if you can use an enum instead.

enum has 2 very neat advantages over Bool

  1. It provides better readability
  2. Easy to add more cases if you need to add more…

1