ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.8k stars 65 forks source link

fix(webview): `setWantsLayer` selector is not available on iOS #8

Closed lemarier closed 3 years ago

lemarier commented 3 years ago

Prevent panic when running webview on iOS, as setWantsLayer is not a valid selector.

'-[RSTWebView setWantsLayer:]: unrecognized selector
ryanmcgrath commented 3 years ago

Ah, good catch - the webview component is actually the oldest one and predates any iOS work, so hadn't even looked here yet. Appreciate the PR!