This is actually fairly simple…

1. Create a new Swift file and name it say “MyConstants.swift”.

2. Declare your constants like below..

      let NOTIFICATION_ID : String = "NOT_ID"

3. Now you can directly use “NOTIFICATION_ID” in any class, Swift will directly import it for you.

Thats all….


Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.