How to create #define Constants in Swift similarly in Objective C ? By James | March 4, 2016 0 Comment This is actually fairly simple… 1. Create a new Swift file and name it say “MyConstants.swift”. 2. Declare your constants like below.. 3. Now you can directly use “NOTIFICATION_ID” in any class, Swift will directly import it for you. Thats all….