ios - How to Declare Global Variable in Swift? -


this question has answer here:

i creating app in have declare constant global. in obj c use pch file don't know how define in swift? example

in obj c .pch file if declare

define red [uicolor redcolor]

then works through out application.

all need create constants.swift (or ever want name it) file , add ever constants need it.

let myvariable = "some value" let myothervariable = "something else" 

they available throughout application.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -