#import <UIKit/UIKit.h>

extern "C" {
    float _GetIOSBrightness() {
        return [[UIScreen mainScreen] brightness];
    }

    void _SetIOSBrightness(float brightness) {
        [[UIScreen mainScreen] setBrightness:brightness];
    }
}