Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 188.8.131.52 release ready!
Owner and Founder. Opencart
Nowadays we feel much comfortable using Enum when apple gives CaseIterable protocol through which we can iterate enum cases like an Array. How to use CaseIterable protocol with a raw value:-
Get an array of all cases:-
Many of the times we needed to use the raw value as display strings on labels and buttons etc. If the app contains localization it makes difficult to deal with actual localized string in enum cases and for we write multiple strings lines of code again and again. if we directly localized the raw value then gets an error “Raw value for enum case must be a literal”
so have just take a look deal with localized raw value:-
How to use them:-
I hope from this, it will make you more comfortable dealing with Localized String of enum. Thanks for tuning in once again!
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.