@gernot@mas.to
@gernot@mas.to avatar

gernot

@gernot@mas.to

iOS and Mac developer, focused on SwiftUI. Working on Matter/HomeKit stuff. Founder of nxtbgthng.

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

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

This promises to be an awesome thread. If you’re building any App that does navigation in SwiftUI, here’s some tips from the guy who helped create it. Thanks! https://hachyderm.io/@teissler/112476974255668785

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

@BarbNerdy Absolutely.

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

No idea if it’s the new Wi-Fi or some software update, but the PlayStation Portal started working extremely well. No perceivable lag, no artefacts, just like it should.

jsq, to random
@jsq@mastodon.social avatar

I guess no one who works at Apple has ever used git branches with Xcode and SwiftPM.

This 4 year old bug is still not fixed.

https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041

gernot,
@gernot@mas.to avatar

@jsq Nothing related to SwiftPM works reliably. Since years. It’s infuriating.

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

So I went to the AppleStore to see the new iPads: Fomo is healed. iPad, iPad Air, iPad Pro stand all next to each other: There’s a weight difference and they have different pencils and keyboards. That’s it. My 2019 iPad pro still plays in the same league. They’re all just iPads. Maybe changes that, maybe not.

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

Checking and formatting phone numbers for app signup in . How hard can it be?

(Turns out: Hard. And I suspected that… Still sucks though.)

gernot,
@gernot@mas.to avatar

@uliwitness I don’t need String <-> Beautiful String. I need String <-> Structured Phone Number Data, and I need this done in a way that let’s the user edit the country prefix in a separate SwiftUI Picker. And did I mention that we only support a subset of all country prefixes?

gernot,
@gernot@mas.to avatar

@uliwitness Oh, and we need it foolproof, so someone entering a number who’s never heard of country prefixes can cope.

I am currently playing around with „PhoneNumberKit“, https://github.com/marmelroy/PhoneNumberKit but as good as their parsing is: They have never heard of SwiftUI.

gernot,
@gernot@mas.to avatar

@ctietze @uliwitness Nope. Because I cannot generate the structured data with anything but the parser…

gernot,
@gernot@mas.to avatar

@ctietze @uliwitness Say a User has +49 123 1234. Changes the prefix to +43. What to do then? (PhoneNumber.countrycode is not mutable, PhoneNumber has no initializers exept being returned from a formatter)

gernot,
@gernot@mas.to avatar

@ctietze @uliwitness Replacing the +49 with +43 on the String is NOT what I want, because avoiding this stuff is why I want to use PhoneNumberKit in the first place.

gernot,
@gernot@mas.to avatar

@ctietze @uliwitness Yeah, mutating the stuct via codable is giving me severe headaches.

gernot,
@gernot@mas.to avatar

@ctietze @uliwitness There are other super crazy design decisions. PartialFormatter class that doesn’t conform to the Formatter protocol. The fact that their actual PhoneNumberFormatter does, but needs a „generatedPhoneNumber = true“, because its default mode is NOT doing formatting to PhoneNumber (and it silently fails in SwiftUI Textfields). And there is a Class called „Formatter“ in the framework that is not Foundations’ Formatter. (1/2)

gernot,
@gernot@mas.to avatar

And yeah, you can format using an instance of the PhoneNumberKit class.

It’s a madhouse. (2/2)

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

In theory, an M4 iPad with 16GB ram and the Magic Keyboard can completely replace my mac, and it is more versatile because it’s an iPad. It needs to run Xcode with at least all the SwiftUI related components, Instruments, and a terminal for git, and have some means of real filesystem based apps so that something like „Tower for iPad“ is possible. It shouldn’t be overwhelmend with outlandish tasks like „using some program to create graphical assets for use in an Xcode project“.

gernot,
@gernot@mas.to avatar

It is totally possible we see this at , because for the first time the hardware is 100% where it needs to be. It's only Apple who needs to want it, too.

gernot,
@gernot@mas.to avatar

I see the likelihood of this happening at around 40%. Before the M4 iPad reveal I would have placed it at 10%.

gernot,
@gernot@mas.to avatar

@krzyzanowskim Three things:

  • Too little RAM for Xcode/Instruments compared to a Mac
  • No Keyboard with Function Rows and Escape Key, arguably inferior Trackpad to a Mac
  • Overall form factor not on par with the Mac: Too Heavy with Magic Keyboard, and weird weight distribution when used on the lap.

All these things are gone with the M4.

gernot,
@gernot@mas.to avatar

@drewolbrich They are quite far with Playgrounds already. Also I am not so sure if this would mean bringing Xcode to a touch interface, or embracing pointer-only apps on iPad. Their latest devices point to the latter…

gernot,
@gernot@mas.to avatar

@drewolbrich I don’t agree on the „zero gain“. Short term maybe, but long term they need to balance their portfolio by strenghtening their non-iPhone Platforms. I don’t expect them to introduce new platforms any time soon anymore, so that leaves us with Mac/iPad/Watch/Vision,TV (and homeOS, maybe). Services/AI is where growth is
and that too needs diverse platform support, and can’t live on iPhone alone. So strengthening Mac/iPad, even at the cost of each other, is a net gain.

gernot,
@gernot@mas.to avatar

@krzyzanowskim Because, so far I have an iPad Pro 2019, and the iPad Pro M2 did not yet reach the „At least as good as my current MacBook Air“ level of goodness. (Which is the M3 15“)

gernot,
@gernot@mas.to avatar

@krzyzanowskim It does. But My point was not „it works“, but „it works good enough to replace my MacBook“. Which it needs to do, when it’s as expensive.

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

Wow, if this works, this would be big for some people I know :-) https://mastodon.social/@macrumors/112445632349763589

gernot,
@gernot@mas.to avatar

@timo Is illegal in Österreich, müssen wir immer mitbringen wenn wir da sind :-)

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