Sixten Otto

@sfko
9 Followers
25 Following
64 Posts
@schwa xcb? I assume it’s some sort of wrapper around xcodebuild, but I’m not having much luck googling it…

@amyworrall Two examples I can think of that are trying to do similar things:
- StackOverflow when you’re asking a question
- eBay when you’re posting an item

I’m not sure that either of them is a good model to follow, but maybe they might spark some ideas?

@obrhoff did I misread the docs, or am I misunderstanding your need? It looked to me like that API provides a binding to both read and set a concrete offset (as well as IDs).
@obrhoff iOS 18 added a whole pile of new scroll-related API, including this, which might do what you need: https://developer.apple.com/documentation/swiftui/view/scrollposition(_:anchor:)
scrollPosition(_:anchor:) | Apple Developer Documentation

Associates a binding to a scroll position with a scroll view within this view.

Apple Developer Documentation
@SJohnRoss nothing said “up real late on a Saturday night” when I was a kid quite like that music.

SwiftUI Tip: I see this in PRs and production code all the time (even AI gets it wrong!) 👀

Instead of nesting Image in a Button's label, just use .labelStyle(.iconOnly)

✅ More accessible
✅ More readable
✅ Fewer lines
✅ Better SwiftUI

Stop fighting the framework!
#SwiftUI #iOSDev #FlineDevSnippets

How in the world I did not know about this until today 😅 #SwiftUI

TIL you can link directly to text content in a web page without using an ID attribute

#WebDevelopment

https://alfy.blog/2024/10/19/linking-directly-to-web-page-content.html

Smarter than 'Ctrl+F': Linking Directly to Web Page Content

Discover how text fragments revolutionize web navigation. Learn to link directly to specific text on any web page, surpassing traditional 'Ctrl+F' searches. Explore this powerful, user-friendly feature for precise content sharing and improved web experiences.

Ahmad Alfy's Blog
@MarcoEidinger I really hope I retire before Quinn does.
@pylapp which is great, and I’ve used it a lot in the past, but it hasn’t been updated yet with anything released in 2024…