Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unable to disable distance handling for UIHostingControllers

Open
#2,182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the existing disabledDistanceHandlingClasses property and the distance-handling logic that matches classes. Trace how UIHostingControllers and SwiftUI view types are identified, then determine where the requested disabledDistanceForUIHostingViewControllers option belongs. Done means callers can disable distance handling for UIHostingControllers without disabling it for unrelated views.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
There's disabledDistanceHandlingClasses property but it cannot be used for UIHostingControllers because of the class matching, you cannot add any kind of exception that would exclude UIHostingControllers for specific view type or even for all of SwiftUI types

Describe the solution you'd like
Add a property disabledDistanceForUIHostingViewControllers.

Describe alternatives you've considered
I'm not sure if other ways are stable enough, seems like disabling the distance handling for all SwiftUI views is the only way to fix it.

Additional context
Nope

Dominant language
Swift
Stars
16.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from hackiftekhar/IQKeyboardManager

All issues in hackiftekhar/IQKeyboardManager

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.