Elektrine lite

← Feed

Viktor Rutberg

vrutberg@masto.nu

<p>iOS developer. I press keys in intricate patterns to make screens of pocket computers behave in peculiar ways. Girl dad. I tweet in 🇬🇧 and 🇸🇪.</p>

Posts

  • View post

    The app I have been working on as a solo developer for the past 2½ years has recently been featured in the App Stores of South America, Southeast Asia, and now Canada! Woo! https://apps.apple.com/us/story/id1879808653

  • View post

    Is it just me, or has the quality in Swift/Xcode/Simulator had a terrible streak lately? - Emojis broken on iOS simulator 26.3 runtimes - Release builds broken in Swift 6.3 - Previews are broken on macOS 26.4

  • View post

    @overenginerd@mastodon.social &amp;lt;insert Homer drooling gif&amp;gt;

  • View post

    Trying to fix a bug which seems to be caused by this combination of factors: * I’m presenting a `UIViewController` in a SwiftUI sheet using `UIViewControllerRepresentable` * To get a navbar, the `UIViewControllerRepresentable` wraps the view controller in a UINavigationController * The view controller has a `UITableView` with `contentInsetAdjustmentBehavior = .automatic` The view looks correct when presented, but taps are offset by the height of the safe area, which is… not ideal.

  • View post

    As a solo developer it can be hard to justify taking the time to deep dive into a bug report, but often times I feel like it’s still worth it. If just one user reported the bug, how many users experienced it without reporting it? Even if I don’t manage to fix the bug, maybe I realize that I need more logging to fix it in the future, or I learn something which will help me fix it the next time a similar issue appears.

  • View post

    Whisper these words to an iOS developer in their sleep and they’ll start having nightmares: &amp;quot;SwiftUI, UIViewControllerRepresentable, safe area, UINavigationController, contentInsetAdjustmentBehavior, UIScrollView” #iosdev

  • View post

    I’ve been putting off migrating my Combine stuff to AsyncStream, simply because I know how the Combine stuff works (and it works well), but I thought I would start now. I’m about to replace a CurrentValueSubject having multiple downstream subscribers with an AsyncStream. Am I missing something obvious, or is this difficult with AsyncStreams? #iosdev #swift

  • View post

    @Cyberbeni Of course, you are right! Initially I, somewhat naïvely, thought those two systems were more similar than what they are. The sentiment around Combine tends to be that it’s stagnant, soon-to-be (or even de facto) deprecated, and that one should move away from it ASAP. But maybe that’s not completely right, if it’s successor seemingly doesn’t support all the same use cases.

  • View post

    PSA: There’s seems to be a regression in the Swift 6.3. compiler, causing crashes when running optimized code on device. I stumbled upon it while testing this week’s app update, reverted to building with Xcode 26.3 for now. Links: https://github.com/swiftlang/swift/issues/87481 https://github.com/firebase/firebase-ios-sdk/issues/15974

  • View post

    How are people writing their UI tests for iOS these days? I&amp;#39;ve used KIF earlier with great results, running UI tests in-process greatly simplifies things. It feels dated through, and bringing in KIF now would feel like a risk. Any alternatives? #iosdev #ios