artemnovichkov / swift-project-template

🍪 Easily generate Swift projects with Cookiecutter
MIT License
88 stars 18 forks source link

Add DEBUG and ADHOC flags #38

Closed artemnovichkov closed 6 years ago

artemnovichkov commented 6 years ago

Sometimes it's needed to add logic for all debug schemes, for instance:

#if DEBUG || ADHOC

        let fingerTipWindow = MBFingerTipWindow(frame: UIScreen.main.bounds)
        fingerTipWindow.alwaysShowTouches = UserDefaults.standard.isFingertipsEnabled
        window = fingerTipWindow
        Deboogger.configure(with: MeasurementPlugin(), HeightPlugin(), WeightPlugin(), FingertipsPlugin())

        #else

        window = UIWindow(frame: UIScreen.main.bounds)

        #endif

I would like to add common flags for those scheme types.

artemnovichkov commented 6 years ago

Added