yysskk / yysskk/SwipeMenuViewController

TabView is not centered on iPhone X

Open
#88 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.3k
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Sliding tabView is out of place when initially launching the application for the very 1st time. Clicking on the tabView will fix the error by itself. This error only seems to persist on iPhone X.

To Reproduce
Steps to reproduce the behavior:

  1. Running the application on iPhone X

Expected behavior
It should display tabView frame right below the navigation bar but instead you can see the screenshot below. tabView frame is out of place. Text and additional View window are not centered in the frame.

Screenshots
![image] (https://i.imgur.com/qca9nOw.png)

iPhone

  • Device: [iPhoneX]
  • OS: [iOS 12.0]
  • Version [3.0.0]

Additional context
Only happens on iPhone X.
XR, XS seems be working as it is supposed to.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the initial launch on an iPhone X running iOS 12.0 and inspect the tabView layout relative to the navigation bar. Done means the tabView, its text, and its additional view are centered correctly on first launch without requiring a tap.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.