appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.2k stars 377 forks source link

fix: set appearance in iOS 17+ #818

Closed KazuCocoa closed 10 months ago

KazuCocoa commented 10 months ago

It looks like iOS 17 needs to set appearance via below API.

/*!
 * Get or set the UI style of the device. Uses the `XCUIDeviceAppearance` enum to describe the UI style.
 */
@property (nonatomic) XCUIDeviceAppearance appearance API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);

In my testing, iOS 16.7 worked with setAppearanceMode so it would be safe to check setAppearanceMode first, then appearance

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 5.15.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: