Webview is not rendered on iOS
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Webview is not rendered on iOS if its visibility is initially set to false (reproduced on iPhone 6S 13.6, iPhone XR 14.1, iPad 7gen 14.3 and iPhone SE 14.4).
Steps to reproduce:
- Init webview
- Set its visibility to false
- Load HTML
- After loaded, set webview visibility to true.
Actual result:
Changing visibility has no effect, but webview plays sound and catches user input. Triggering UI update (eg. pressing volume buttons, using gestures, unlocking, etc.) makes webview visibile. Not reproduced if visibility set before page loaded - probably, it forces UI update in some way.
Not sure how iOS UI works, but, I guess, visibility change is applied outside of UI thread and it's not visible until another UI update is triggered.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the four steps on the listed iPhone and iPad versions, focusing on the iOS webview visibility transition after HTML loading. Trace the webview initialization, visibility change, and UI-update path. Done means the webview renders immediately when visibility changes to true, without requiring an external UI event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, unity
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100