photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

274
active users

#swiftui

42 posts14 participants6 posts today
Replied in thread

Once again got lost in Stripe documentation, but came out of it with a bit more of a plan for how to proceed handling webhooks. Tomorrow let's start recording raw transactions for invoices that come in. See you then!

🔜 Tomorrow’s stream: youtube.com/live/--6lxeIDZ04
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store

Replied in thread

Took a bit of logging, but worked around the issue I noticed that prevented automatic merging of accounts when the app needs to do so (ie. new device gets added). Tomorrow, let's jump back into stripe web hooks. See you then!

🔜 Tomorrow’s stream: youtube.com/live/FWyUxqv8498
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store

Replied in thread

I'm making a seasonal anime guide app, in the open for all to experience and learn from.

I noticed some worrying logs yesterday, so let’s investigate that today!

#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #SwiftLang #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush

Come chill with me: youtube.com/live/WznhpMFlLKo

Question about SwiftUI: a while ago I read somewhere about an API that allows to adjust the kerning as to avoid making the text “shift” when it changes.

Case in point: a text representing a counter that shifts ever so slightly due to the characters in the font not being mono spaced.

Do you know by any chance what API I’m referring to?

I am in need of some SwiftUI help.

Can anyone help me figure out how to make the `List` span the entire width of the sheet, but, at the same time, make it so that an extremely long, unbroken word doesn't cause it to overflow the sheet?

I have tried all sorts of frames, but nothing works

The relevant code:
github.com/buresdv/Cork/blob/8

Starting with iOS 17, foregroundStyle(_:) in #SwiftUI can be used to style fragments of text inside a string. When applied directly to a Text instance, the modifier returns a Text instead of some View, which allows us to use it inside text interpolation: nilcoalescing.com/blog/Foregro

Nil CoalescingInterpolate text with custom foreground style in SwiftUIAdd custom foreground styles, such as gradients, to words inside Text views in SwiftUI.

A ViewModel is a very specific concept. If you think you need a ViewModel in #SwiftUI (probably not necessary because SwiftUI has formatters like AppKit), I'm pretty sure it should be a struct (representing the projection of the actual model to the values required by the View).
Not, ever, a StateObject.

Replied in thread

Finally got everything I need into the pricing table, and started reading up on the web hook docs. Tomorrow let's set up routes for the web hooks, figure out the command-line tool, and verify events. See you then!

🔜 Tomorrow’s stream: youtube.com/live/dJzoMKthGjM
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store

Replied in thread

Started doing what I set out to do, then got distracted fixing how I handle gift memberships 😅 Tomorrow let’s continue getting customer information into the pricing table. See you then!

🔜 Tomorrow’s stream: youtube.com/live/XZx3e3YAQ4I
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store