Jugi
jukkajukka.bsky.social
Jugi
@jukkajukka.bsky.social
Professional token burner

+20 yrs in web development
Thanks! If Date is just a Double, sounds like it is capable of storing the milliseconds, too. So more like a JSON encoder/decoder problem..

Would be great to get the correct behaviour out of the box e.g. by using some other type than Date:

struct Foo: Codable {
let createdAt: BetterDateType
}
February 2, 2025 at 1:22 PM
👍

www.swiftbysundell.com/tips/adding-...

Didn’t know it can be applied to other cases. Some of those examples are a bit footgun’ish for sure.. Maybe I’ll stick to using it like the React’s children prop. Makes it easier to re-use views when you can pass stuff from a parent.
Adding SwiftUI’s ViewBuilder attribute to functions | Swift by Sundell
Really useful for utility methods.
www.swiftbysundell.com
January 20, 2025 at 5:13 PM
Cool. Anything to share e.g. what to avoid?
January 20, 2025 at 4:54 PM