I'm not sure why this code is needed as the tweaks appears to work perfectly without it.
ios 13 support!