-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only offset bottom tab on iOS. fixes #8642
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d979dfd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I know what is the reason of subtracting 4 in iOS? what is the purpose of it?
d979dfd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbaoNg97 to match how native iOS bottom tabs look
d979dfd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satya164 but then according to design kit from apple https://www.figma.com/design/1bCJ0Gnx7hYtuT6j94SHVy/iOS-17-and-iPadOS-17-(Community)?node-id=0-3402&t=2o0GNuVRcn9RgZYI-0, the total height is 83, so assuming tab bar itself is 49, then the safe area should be 34
from the current code, i got bottom value of 34 from safe area inset, but then it subtracted 4, is this outdated?
Another reference
https://www.figma.com/design/C3YnALHr99GZ8aL9KEVOMM/iOS-14-UI-Kit-for-Figma-(Community)?node-id=362-16073&t=mKKDzpWl5Imiue31-0
d979dfd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbaoNg97 maybe it changed. feel free to send a PR if it doesn't match anymore