ios - Swift conditional compilation access control -


i building ios framework , need same framework used in public apps , in internal apps , difference in internal apps need access classes , function want hide public apps , don't want copy paste code framework internal apps ...

is possible use conditional compilation (or other solution without duplicating code) :

#if someflag    public #else    internal #endif    class someclass{        // public when someflag otherwise internal    } 

of course code above not working pseudo code need ( doesn't have macros) .

thanks.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -