layoutSubviews swizzling causes an infinite loop
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 12.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Description
layoutSubviews swizzling causes issues for UIKit.
What type of issue is this? (place an x in one of the [ ])
- bug
- enhancement (feature request)
- question
- documentation related
- discussion
Requirements (place an x in each of the [ ])
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
SkeletonView Environment:
SkeletonView version: 1.29.2
Xcode version: 13.2.1
Swift version: 5
Steps to reproduce:
- Setup the floating keyboard on iPad
- Open app in a slide over mode
- Show a skeleton animation
- Focus on a textfield with a toolbar
Expected result:
Keyboard is shown
Actual result:
App freezes in the infinite loop
Attachments:
Logs, screenshots, sample project, funny gif, etc.
Contributor guide
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 with the linked SkeletonSwizzlingFailure.zip sample project and reproduce the freeze using the listed iPad floating-keyboard, Slide Over, skeleton-animation, and text-field-toolbar steps. Trace the layoutSubviews swizzling during that scenario and verify that the app no longer enters an infinite loop and the keyboard appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100