fix: improve native web tap (strict) and support iOS 15 #1352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please ignore reviewing until I update the description and unit test.
iOS < 15.x or iOS ≥ 15.x but Tab Bar is
Top
:iPhone PORTRAIT:
NORMAL, with NOTCH:
x = 0
y = availHeight - innerHeight - 3 (OFFSET WITH ACTUAL) - 49 (FIXED BOTTOM) - 30 (FIXED INDICATOR)
NORMAL, without NOTCH:
x = 0
y = availHeight - innerHeight + 1 (OFFSET WITH ACTUAL) - 44 (FIXED BOTTOM)
COLLAPSED, all devices:
x = 0
y = availHeight - innerHeight + 1 (OFFSET WITH ACTUAL)
iOS < 15.x:
iPhone LANDSCAPE:
NORMAL, with NOTCH:
x = (availWidth - innerWidth) / 2
y = availHeight - innerHeight + 1 (OFFSET WITH ACTUAL)
NORMAL, without NOTCH:
x = 0
y = availHeight - innerHeight + 1 (OFFSET WITH ACTUAL)
COLLAPSED, with NOTCH:
x = (availWidth - innerWidth) / 2
y = 0
COLLAPSED, without NOTCH:
x = 0
y = 0
iPad PORTRAIT & LANDSCAPE, NORMAL & COLLAPSED:
x = 0
y = availHeight - innerHeight + 1 (OFFSET WITH ACTUAL)
iOS ≥ 15.x
iPhone PORTRAIT, NORMAL & COLLAPSED
with NOTCH:
x = 0
y = 47 (FIXED TOP)
without NOTCH:
x = 0
y = 20 (FIXED TOP (status bar))
iPhone LANDSCAPE
NORMAL, with NOTCH:
x = (availWidth - innerWidth) / 2
y = 48 (FIXED TOP)
COLLAPSED, with NOTCH:
x = (availWidth - innerWidth) / 2
y = 0
NORMAL, without NOTCH:
x = 0
y = 60 (FIXED TOP)
COLLAPSED, without NOTCH:
x = 0
y = 0
iPad PORTRAIT & LANDSCAPE, NORMAL & COLLAPSED:
x = 0
y = availHeight - innerHeight
How to recognize the top bar collapsed or not?