About the Screen Brightness
The following sample program does not processed. Please repair.
SCRIPT LIBRARY -> This iPhone -> Examples -> ObjC -> Screen Brightness.py
My device: iPhone 8 Plus
Program: Pythonista ver.3.3(330025)
@ki-ya. Sine iOS 13 and V3.3, a lot of objectivec functions need to be run in main thread,
Thus add line
@on_main_thread def main():
In this case, the _objc_exception.txt file in root contains
The app was terminated due to an Objective-C exception. Details below: 2020-03-01 07:42:30.297708 threading violation: expected the main thread
@cvp Thank you. The program has been repaired with your advice.