ios - What would be the most efficient way of implementing a dark mode in my application? -
i have application want shift night mode when button pressed. best way of doing that? thinking of creating class of light vs dark colors use labels notification firing when button pressed notify of app adopt colors. there better way of doing this?
so set color, need set properties tintcolor or bartintcolor or this. think real question of yours is, how can effectifly switch between 2 modes. idea theme manager class fires notification not bad, option observe theme changes. firing notification might better. in case need listen theme-changed-notification inside ui-subclasses , change color if notification fires. , don't forget remove nsnotificationcenter-observer in dealloc :)
Comments
Post a Comment