setTheme ios/md for dynamic toggle switch?

I’m wondering if there is a similar method like $f7.setDarkMode() for changing themes ios/md ? Kitchensink is doing it by href=“./?theme=iOS” … but this is not what I’m looking for as I do not want to reload the app…

Are you wanting to set the theme before the page is rendered to the user? Or change it dynamically while it is being viewed?