@chbeer@mastodon.social avatar

chbeer

@chbeer@mastodon.social

Senior app developer for macOS and iOS. DIY enthusiast. Aspiring guitarist. Father of two.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

chbeer, to random
@chbeer@mastodon.social avatar

Nice new toy #findmy #aircard

chbeer,
@chbeer@mastodon.social avatar

@gernot leider wird‘s nicht als AirTag gefunden 🤔

chbeer,
@chbeer@mastodon.social avatar

@gernot gibt keine Anleitung. Ich dachte man fügt das als AirTag hinzu 🤔

chbeer,
@chbeer@mastodon.social avatar

@gernot es ist ein „Anderes Objekt“. Nun klappts

gernot, to random German
@gernot@mas.to avatar

Gibt es eigentlich irgendwelche Artikel dazu, wie diese ganzen Handyshops funktionieren? Wovon leben die? Welche Rolle spielt Geldwäsche? Welche Rolle spielen Ersatzteile aus gestohlenen Smartphones in Reparaturshops? Oder ist das alles echt legitimes Business und Leute ich ich nicht sehe kaufen da Handyhüllen?

chbeer,
@chbeer@mastodon.social avatar

@gernot mein Schwager kauft ständig Geräte bei einem Shop hier in Münster. Kennt den Inhaber inzwischen etwas. Der kauft wohl die Vertrags-Handys von Studenten und verkauft sie dann weiter.

chbeer, to random
@chbeer@mastodon.social avatar

Is it possible to opt out of SwiftUI App lifecycle while also supporting visionOS?

chbeer,
@chbeer@mastodon.social avatar

@gernot I have a document based app. Document based apps have a lot of limitations, at least I hit a lot of walls. I try to use NavigationSplitView as my document view, for example, and SwiftUI adds close buttons everywhere in my views. Also I want to customize the document creation process, which is impossible with DocumentGroup. So I am thinking about ditching it and implement everything myself.

chbeer,
@chbeer@mastodon.social avatar

@gernot tried something like that. But @NSApplicationMain somehow does nothing for me

chbeer, to random
@chbeer@mastodon.social avatar

Does @NSApplicationMain not work anymore in multiplatform Swift app? 🤔

chbeer, to random
@chbeer@mastodon.social avatar

Is it just me or does this sample picker not show the result of the sample code?! https://developer.apple.com/documentation/swiftui/stepper

chbeer,
@chbeer@mastodon.social avatar

@below remind you for what?

chbeer, to random
@chbeer@mastodon.social avatar

A huge reason, why I really don't like many IDEs other than Xcode is the UI design. Or better the lack thereof. Ugh! Never heard about padding?!

phranck, to random German
@phranck@chaos.social avatar

deleted_by_author

  • Loading...
  • chbeer,
    @chbeer@mastodon.social avatar
    chbeer, to random
    @chbeer@mastodon.social avatar

    Vision OS is not part of Xcode 15 RC1? 🤔

    chbeer,
    @chbeer@mastodon.social avatar

    @gernot yeah, it's beta. I ignored that 🙈

    simonbs, to random
    @simonbs@mastodon.social avatar

    So, I attempted to decouple SwiftData from the view layer, and um... Please roast my code 🔥🫣

    I'm not a fan of Apple's recommended approach, where the view and data layers become tightly coupled. Therefore, I've created an example app that utilizes SwiftData in a loosely coupled manner.

    But is this the best approach? Perhaps there are some clever Swift/SwiftUI features I can take advantage of.

    ❤️‍🔥 I would greatly appreciate it if you could review my code: https://github.com/shapehq/SwiftDataDecoupled

    chbeer,
    @chbeer@mastodon.social avatar

    @simonbs I see Core Data and now SwiftData as a View Model layer that spans to the Data layer (includes it, or is like a facade above the data layer). In my experience it was always not a good idea to add a layer in between

    chbeer,
    @chbeer@mastodon.social avatar

    @simonbs yeah, that's what I mean: SwiftData is designed to be a part of the View Model layer to SwiftUI. Adding a facade just breaks this integration

    jamesthomson, to random
    @jamesthomson@mastodon.social avatar

    I would like to buy whoever wrote the new one-click upload dialog in Xcode 15 the beverage of their choice, as it has saved me so much time already.

    chbeer,
    @chbeer@mastodon.social avatar

    @jamesthomson wow! Thank you unknown Xcode developer!!

    below, to swift German
    @below@mastodon.social avatar

    More Swift questions: Why is this index out of bounds?

    import Foundation

    let sampleData = Data([12, 0, 0, 0, 39, 95])

    let a = sampleData[2...5]
    guard a.count > 2 else {
    fatalError("Expected 2, actual (a.count)")
    }
    let b = a[0...1]
    // Swift/Collection.swift:714: Fatal error: Index out of bounds

    chbeer,
    @chbeer@mastodon.social avatar

    @below this is one of the „features“ of Swift where it shows it was designed by C++ nerds and not by the Foundation people.
    The ease of Objective-C and Foundation was what I loved after I switched to it from Java. Swift is way less of that.

    thomasfuchs, to random
    @thomasfuchs@hachyderm.io avatar

    There, I found the hardest to pronounce product name in the German language:

    Schloßsülze süß-sauer

    chbeer,
    @chbeer@mastodon.social avatar
    chbeer, to random
    @chbeer@mastodon.social avatar

    „’any <Protocol-Name>’cannot conform to ‚<Protocol-Name>‘“

    I'm sure there is some reason, but it's puzzling me 🤔

    chbeer, to random
    @chbeer@mastodon.social avatar

    I had high hopes for Table in SwiftUI... but RLY?!

    There is no way to have dynamic columns?!

    • ForEach does not work for columns
    • „Closure containing control flow statement cannot be used with result builder 'TableColumnBuilder‘“
    chbeer,
    @chbeer@mastodon.social avatar

    @gernot no, I'm on iOS 16, still. Didn't yet check iOS 17.

    stroughtonsmith, to random
    @stroughtonsmith@mastodon.social avatar

    I like the idea of Xcode Previews, but in practice I can't see the logic of putting elements in your codebase that will auto-open the canvas and take tens of seconds to render a preview (or an error) every time you open a source file. Even when I'm working with SwiftUI, I have to turn previews off. I don't know how they ever fix this, since it's booting up virtual machines in the background every time and that will just never be fast or reliable

    chbeer,
    @chbeer@mastodon.social avatar

    @stroughtonsmith my trick is to have UI packages with a few dependencies as possible and then switch to the schema for that package to work with previews. Then it‘s working and fast
    (When I‘m not killing it with my old CoreData code)

    chbeer, to random German
    @chbeer@mastodon.social avatar

    Why does Finder.app take 1.17 GB memory?!

    chbeer,
    @chbeer@mastodon.social avatar

    @krzyzanowskim ok. but it shouldn’t, if you ask me 😵‍💫

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • lostlight
  • All magazines