Active Compilation Conditions & Other Swift Flags

Hello All,

I have been trying to send a conditional flag via Other Swift Flags. Based on that flag, I need to display an alert to the user. However, setting the flag in Build Settings is not working as expected.

#if ALPHA_WARNING
    let shouldDisplayAlphaWarning = true
  #else
    let shouldDisplayAlphaWarning = false
#endif

Any advice on this would be highly appreciated.

Regards,
Karunakar

My bad, I was trying the flag in a local package. :slight_smile: Checking the condition in SceneDelegate is working and the flag is being passed as a dependency to the screens in the local package.