#ScrollPosition
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps: nilcoalescing.com/blog/ModernS...
#iOSDev #SwiftUI
Modern SwiftUI APIs for programmatic scrolling
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps.
nilcoalescing.com
May 26, 2026 at 10:28 PM
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps: nilcoalescing.com/blog/ModernS...
#iOSDev #SwiftUI
Modern SwiftUI APIs for programmatic scrolling
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps.
nilcoalescing.com
August 8, 2026 at 9:41 PM
I've just published a post covering the modern SwiftUI APIs for programmatic scrolling, including defaultScrollAnchor(), scrollPosition(), and others, also highlighting some nuances that are easy to miss: nilcoalescing.com/blog/ModernS...
#iOSDev #SwiftUI
Modern SwiftUI APIs for programmatic scrolling
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps.
nilcoalescing.com
May 19, 2026 at 8:44 AM
To programmatically scroll to an edge, a raw offset, or a view with a provided identity in SwiftUI, we can use the scrollPosition(_:anchor:) modifier. It takes a binding to a ScrollPosition, available from iOS 18: nilcoalescing.com/blog/ModernS...
#iOSDev #SwiftUI
May 22, 2026 at 6:50 AM
The ability for ChatGPT (o3-mini-high in this case) to one-shot explanations for bugs that I spent hours debugging is a marvel, but is also a bit degrading.
January 31, 2025 at 11:38 PM
bevy_debug_log 0.5.0 adds support to scroll the log on device using touch input (using ScrollPosition shipped with #bevy 0.15). https://github.com/rustunit/bevy_debug_log #rustlang #gamedev 🦀🎮 @bevy.bsky.social
January 7, 2025 at 4:00 PM
Neben Bookmarks, Merken der Scrollposition auf dem Homescreen, Speichern von Drafts, usw. ein weiteres tolles Feature von Skywalker. 👍
Skywalker makes posting threads easy.
Write all posts in your thread and post with a single button click.

Insert and remove posts in your thread while writing.

Auto number posts.

Auto cut a long text into multiple posts.

Continuous typing: posts are auto added when needed.
April 30, 2024 at 4:50 PM
Wenn sich die Bluesky-App doch nur die Scrollposition merken würde …
September 25, 2023 at 5:06 PM
20. github.com/bevyengin...

A little cleanup PR for UI, making `ScrollPosition` wrap a `Vec2` rather than just having two `f32` to allow for better methods. Great :) It even comes with improved docs! Merging, after ickshonpe fixed my rustfmt-noncompliant suggestion.
Newtyped `ScrollPosition` by ickshonpe · Pull Request #19881 · bevyengine/bevy
Objective Change ScrollPosition to newtype Vec2. It's easier to work with a Vec2 wrapper than individual fields. I'm not sure why this wasn't newtyped to start with. Maybe t...
github.com
July 1, 2025 at 12:03 AM
Sometimes I just do #SwiftUI components because I like the challenge without any clear purpose.

Here’s a marquee that also supports manual scrolling. That last part in particular was tricky than I expected given that for some reason `.scrollPosition` does not report user scrolls.

#BuildInPublic
March 16, 2025 at 7:01 PM
ScrollPositionのドキュメントの$scrolledIDはどこから来たの?
developer.apple.com/documentatio...
September 17, 2025 at 10:53 PM
Ich wollte es eigentlich so wie in Twitter / Threads bauen. Die Scrollposition bleibt immer erhalten. Beim Öffnen wird automatisch neu geladen und dann gibt’s am oberen Rand diese Face-Bubbles, die dir anzeigen, dass es neuen Content gibt.
October 12, 2023 at 10:56 AM
❓How do I track the currently visible item in a SwiftUI ScrollView?
💡Create a property to track the current item, then use the scrollPosition modifier to assign the visible item to that property. This makes it easy to programmatically scroll to specific items.
July 3, 2025 at 2:00 PM
I’m using a horizontal ScrollView and loading the array of weeks in via a foreach with an id on each view inside. I even made the struct inside the array conform to identifiable and am using a scrollPosition on the ScrollView #iosdev #buildinpublic #swiftui
April 12, 2025 at 3:39 PM
Thanks for sharing. So yes, it doesn’t work with List unfortunately, like all the other scroll methods added in iOS 17 (scrollPosition etc.)… 😢
April 12, 2025 at 10:40 AM
Ich finde es blöd, dass ein Algorythmus eine Pause wegen Griff zur E-Zig (oder sich einfach nur wo kratzen) als Interesse am Thema der aktuellen Scrollposition wertet. 🥳
March 27, 2025 at 9:56 PM
Why does scrollPosition(id:) and presumably scrollTargetLayout() not work in SwiftUI's List type? 🙃
Is there still no easy (iOS 17) way to identify the end of a list?
#swiftlang #iosdev
November 25, 2024 at 2:46 PM
Nur mal so zur Info, archive.ph /.is ist auf russischsen Servern gehostet, voller Tracker und telefoniert lustig nach Hause, wer wielang was ansieht, auch so Sachen wie Scrollposition etc.
archive.ph
November 15, 2024 at 10:13 PM
SwiftUI ScrollView APIs make huge steps forward in the last years and added capabilities for data-driven position handling and animation control. The new ScrollPosition type allows us to programmatically scroll to a position using IDs, points, and edges.
swiftwithmajid.com/2024/06/17/m...
May 27, 2025 at 9:44 AM
Is it just me or did the behavior of the scrollPosition(id:anchor:) modifier change recently? It used to be that you could have it anchored to, say, the center and scrolling manually wouldn't update the scroll position binding, but now it does. Is this expected behavior or a bug?
December 18, 2024 at 12:00 PM
Actually scrollPosition(initialAnchor:)’s functionality is now named developer.apple.com/documentatio...

And yes, it changed during the betas.
defaultScrollAnchor(_:) | Apple Developer Documentation
Associates an anchor to control which part of the scroll view’s content should be rendered by default.
developer.apple.com
December 15, 2023 at 3:30 AM
Hey @bsky.app, can I get the possibility to follow someone right from my feed? Right now I need to open their profile, follow, and then go back. And depending on my browsers mood at the time, I may or may not be on the same scrollposition in my feed...
November 18, 2024 at 10:14 AM
Du behöver hitta en mer ergonomisk scrollposition!
June 28, 2026 at 10:55 PM