Replies: 5 comments 10 replies
-
A bit out of scope but are TCA stores compatible with the new |
Beta Was this translation helpful? Give feedback.
-
I was recently thinking about the lack of PresentationStack in TCA, don't have this problem right now, but if some modules use modal presentation to present each other recursively you won't be able to extract them into different spm targets, however both uikit and swiftui do not support this API and this lib might be the right place to enable it 🤔 |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw @stephencelis Is there a way to use When I do: self.init(path: $store.path) {
...
} I get this message:
I guess we need a way to transform the binding with a construct similar to what we need for SwiftUI's $store.path.sending(\.pathChanged) What are your plans here? With SwiftUI we actually have a However, I'd love to know if there's any way I can use |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your hard work! Is there a plan to support AppKit? If so, when can we expect this support to be available? |
Beta Was this translation helpful? Give feedback.
-
I wonder if these tools belong in swift-perception instead of UIKitNavigation (or maybe it should be called UIKitBindings instead of UIKitNavigation?) Just a thought, as it seems a big chunk of this library is dedicated to getting observation working with UIKit |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
We have a very exciting beta to share today that brings powerful state management and navigation tools to UIKit. The tools are heavily inspired by SwiftUI, but made to feel at home in UIKit. See our blog post for more details, but the short of it can be summarized in 4 simple bullet points:
You can now use
@Observable
models with UIKit in order to observe changes in the model and update the UI in the most minimal way possible:You can use 2-way bindings to bind an observable model to various
UIControl
s, such asUITextField
:You can perform state-driven navigation in UIKit using a syntax that is similar to SwiftUI:
And the whole thing back-ports all the way back to iOS 13 using our swift-perception library.
That’s the basics, but there’s still a lot more in this beta, and a lot more coming in the future. We recommend you check out the blog post for more information, as well as the case studies in the repo, and please start a discussion with any questions or feedback.
Beta Was this translation helpful? Give feedback.
All reactions