Skip to content

Commit

Permalink
Change Scenekit break rendering alert
Browse files Browse the repository at this point in the history
  • Loading branch information
DJBen committed Jan 28, 2018
1 parent b1868ba commit 7686285
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Graviton/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
guard Device.isSceneKitBroken && UIApplication.shared.canOpenURL(forumUrl) && OccationalPrompt.shouldShowPrompt(forKey: "sceneKitBrokenWarning", timeInterval: 86400) else {
return
}
let alertController = UIAlertController(title: "iOS SceneKit Bug", message: "There exists a bug on iOS 11.2 that causes transparent textures not to be rendered. As a result, some nodes will appear square-like. I am working around this issue and actively updating Graviton. Thank you for your support!", preferredStyle: .alert)
let alertController = UIAlertController(title: "iOS SceneKit Bug", message: "There exists a bug on iOS 11.2 that causes transparent textures not to be rendered. As a result, some nodes will appear square-like. iOS 11.3 fixed this issue. Please update to latest system version whenever you can.", preferredStyle: .alert)
let openForumAction = UIAlertAction(title: "See Detail", style: .default) { (_) in
UIApplication.shared.open(forumUrl, options: [:], completionHandler: nil)
}
Expand Down
3 changes: 2 additions & 1 deletion Graviton/Common/Utils/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ struct Device {
return appDelegate.window!.safeAreaInsets != UIEdgeInsets.zero
}

/// Starting from `iOS 11.2.*`, the SceneKit seemingly does not render transparent textures.
/// Any version of `iOS 11.2`, breaks the SceneKit transparent texture rendering.
/// `iOS 11.3` or above and `iOS 11.1` are not affected.
///
/// - seealso: [This](https://forums.developer.apple.com/thread/92671) apple forum thread.
static var isSceneKitBroken: Bool {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ That's all you need for bootstrapping! Now you can proceed to open the Xcode pro

**Important**: For best experience, please run with real device, especially so when testing against graphics related features.

### iOS Bug
### iOS 11.2 Bug

There's an [issue](https://forums.developer.apple.com/thread/92671 ) that iOS 11.2 breaks SceneKit transparency texture. The appearance of stars will appear like squares instead of round dots.
There's an [issue](https://forums.developer.apple.com/thread/92671 ) that iOS 11.2 breaks SceneKit transparency texture. The appearance of stars will appear like squares instead of round dots. It has been fixed in iOS 11.3.


### Simulator Limitations
Expand Down

0 comments on commit 7686285

Please sign in to comment.