Ilia Kolo

@Gray_Wind
21 Followers
66 Following
277 Posts

RE: https://mastodon.social/@swiftlang/116286524514684047

This release brings a lot of “finally” updates. It will remove a lot of friction!

My new SwiftUI book is finally out! 🎉

I wrote "The SwiftUI Way" for developers who feel like they are fighting the framework as their projects grow in complexity. The book will help you align your code with SwiftUI's internal expectations to avoid common pitfalls.

https://books.nilcoalescing.com/the-swiftui-way

#iOSDev #SwiftUI

The SwiftUI Way

A field guide to SwiftUI patterns and anti-patterns

Nil Coalescing Books
This new #Volvo infotainment UI is something. Bigger buttons, a separate button for drive modes, I welcome it. But why, WHY!? have I stare at Google Assistant icon when I use #CarPlay? Do I need this context aware Bluetooth shortcut? And why is my screen space for CarPlay for so much smaller?

Swift/JS interop used to mean "JSObject", "JSValue", and runtime surprises.

BridgeJS changes that: annotate your Swift, get typed glue code in both directions. Compile-time safe. Zero manual boilerplate. 🧵

BridgeJS landed as an MVP just two weeks ago, and is evolving fast.

Check it out with the interactive playground — paste Swift, and see the generated results live: https://swiftwasm.org/JavaScriptKit/PlayBridgeJS/

Docs here: https://swiftpackageindex.com/swiftwasm/javascriptkit/main/documentation/javascriptkit

BridgeJS Playground

Thanks to my kid my Mac got erased. Never felt myself so devastated.
I have a minimal reproduction if anyone is interested: https://gist.github.com/Gray-Wind/0c027a06c4dd3c7954b5b5995a6cbdd6 #SwiftUI
Subview doesn't register taps

Subview doesn't register taps. GitHub Gist: instantly share code, notes, and snippets.

Gist

I have a SwiftUI -> UIViewRepresentable -> UIView -> UIViewControllerRepresentable -> SwiftUIView

I set up tap gesture recognizer on UIView (works perfectly), which adds a subview (view controller representable), which should react on taps as well, but it ignores them all. View has a button, action is not registered (but visually tap occurs), text field is not editable, tap gesture recognizers are not working.

I am at lost right now, maybe someone would have a lead where to look? #SwiftUI

I was thinking long and hard if I should do the same with my wife’s phone. For some people it would be just a nightmare to get used to the new visual language. https://mastodon.social/@gknauss/115136314551254605
Even street lights are tired of this heat