Add occlusion insets for persistent overlays#614
Merged
Conversation
10eed39 to
d958407
Compare
d958407 to
e56dd5c
Compare
c2bda17 to
3e03dd7
Compare
b6c4f6c to
03de64a
Compare
robmaceachern
commented
May 29, 2026
Comment on lines
+114
to
+119
| list.behavior.occlusionInsets = UIEdgeInsets( | ||
| top: 0.0, | ||
| left: 0.0, | ||
| bottom: self.floatingBarHeight, | ||
| right: 0.0 | ||
| ) |
Member
Author
There was a problem hiding this comment.
This is the key thing in the demo. By specifying the bottom occlusion value, the list will automatically adjust the content insets and scroll indicator insets while also respecting the keyboard adjustments the list already provides.
johnnewman-square
approved these changes
May 29, 2026
Collaborator
johnnewman-square
left a comment
There was a problem hiding this comment.
This is working well and the inset logic looks good. 👍
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds
Behavior.occlusionInsetsso Listable can account for persistent UI that visually covers the list viewport, such as a floating bottom action bar.Key changes:
Behavior.occlusionInsetsas a semantic inset for persistent viewport occlusion.layout.bounds.padding, which continues to control Listable content layout.Why not
customScrollViewInsets?customScrollViewInsetscan model this, but it requires clients to own the full keyboard and overlay inset calculation.occlusionInsetskeeps the common persistent-overlay case on Listable's standard keyboard avoidance path while still leaving.customavailable for screens that need full control.Demo
Simulator.Screen.Recording.-.iPhone.17.-.2026-05-29.at.12.18.14.mov
Validation
git diff --checkmise x -- tuist generate --path Development --no-openxcodebuild build -workspace Development/ListableDevelopment.xcworkspace -scheme Listable -destination 'id=31537917-EB30-47B9-BAF9-DD541083B1DA' -configuration Debug -derivedDataPath /tmp/ListablePR614DerivedData-iOS18Listable PR 614 iPhone 16 Pro.Checklist
Please do the following before merging:
Mainsection.This description was drafted with AI assistance.