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
Post a Comment