1:31 “There’s no direct way to say ‘[…] change this text element when another thing changes’” Except for changing line 18 from `Text("Hello, world!")` to `Text(myText.isEmpty ? "❌" : "✅")` which looks pretty direct to me ;)
Wow, I was having such difficulty understanding combine with other teachers. This video was the only one which made me understand the basic concept!. Thank you os much.
The SwiftUI updates that came out with iOS 14 (mainly @StateObject) made this so much easier than what you had to do in iOS 13. Before I was having to create an @ObservableObject outside the view and pass it in as a binding and it was a pain.
If init() is called once during object instantiation, how is the code inside it still working when I clear myText and add more text in it multiple times? Great video, simple code, fits one screen. This makes it easy to analyze what is happening. Thank you very much.
i know we came here because the combine keyword, but it's also easy to do something like that without combine @Published var myMessage: String = "" @Published var myText: String = "" { didSet{ myMessage = { myText.isEmpty ? "❌" : "✅" }() } }
Why wouldn't an .onChange be a simple and straightforward way of checking if there is text or not. I get that this is a video tutorial to demonstrate Combine but still.
@@PaulColton it sort of works. if you type a character - A, nothing appears, with next character typed - B, then you see A, if you type yet another character - P, then you see AB, its always mirrors the characters typed but 1 character less than the current character just typed.
Great explanation. please do more! Core Data, Animations in Swift UI, Unit testing, etc
Thank you for the simpler explanation that I ever seen. Good sob!!!
Love how simple of an example yet drove home some great fundamental concepts, please more videos!
1:31 “There’s no direct way to say ‘[…] change this text element when another thing changes’”
Except for changing line 18 from `Text("Hello, world!")` to `Text(myText.isEmpty ? "❌" : "✅")` which looks pretty direct to me ;)
Wow, I was having such difficulty understanding combine with other teachers. This video was the only one which made me understand the basic concept!. Thank you os much.
Simple Example with Good presentation and explaination
I was looking for that to understand de basic principle of combine , with ViewModel thanks a lot, great job
Thank you for the beautiful comprehensive example. Will follow more videos from you! Thanks
Amazing. Already my new favorite iOS tutorial channel.
thank u for that simple but effective example. very helpful indeed
Thank you 🙇🏻♂️ More Combine and MVVM please 🙏🙏🙏🙏🙏
Thanks Paul! Great to see a new channel starting up. New subscriber here. And good luck!
Wow, opened new coding ideas for me! Thanks. I like view data (or logic) separation!
May I know about the font you are using? It looks pretty cool.
Great presentation!
Love it. Programmers love simple examples. Sort of the "Hello World" of Combine :). Nice job.
The SwiftUI updates that came out with iOS 14 (mainly @StateObject) made this so much easier than what you had to do in iOS 13. Before I was having to create an @ObservableObject outside the view and pass it in as a binding and it was a pain.
Nice! You have a new subscriber. Also, the quality of your video is amazing.
If init() is called once during object instantiation, how is the code inside it still working when I clear myText and add more text in it multiple times? Great video, simple code, fits one screen. This makes it easy to analyze what is happening. Thank you very much.
whats your Q? i don’t understand what you need to know
Thanks for this tutorial, explained in a simple and understandable way.
Hi, and thanks for this video. I have a question, why need us to import Combine here ? I tried without that, and it work like with...
Really nice, great explanation, can I ask what Xcode Theme you are using, looks really good.
great simplified explination.. would love to see a more indepth simplified explianation of Combine.
Great example man thanks for sharing your kowldg !!!
Nice Explanation: But can you please do a video on how to do an HTTP post request using SwiftUI with Combine?
i know we came here because the combine keyword, but it's also easy to do something like that without combine
@Published var myMessage: String = ""
@Published var myText: String = ""
{
didSet{
myMessage = {
myText.isEmpty ? "❌" : "✅"
}()
}
}
Great example!
Great video thanks so much
nice vid!! what font is that?!
simplest example illustrating testing
Lovely thanks!
this really helps alot
EXCELLENT!
very nice. thank you.
Why wouldn't an .onChange be a simple and straightforward way of checking if there is text or not. I get that this is a video tutorial to demonstrate Combine but still.
Thank you
Suppose that on line 18, instead of a checkmark, you want to pass the contents of myText to myMessage. How would you do that ?
If you comment out line 18, it should 'just work', ;-)
@@PaulColton it sort of works. if you type a character - A, nothing appears, with next character typed - B, then you see A, if you type yet another character - P, then you see AB, its always mirrors the characters typed but 1 character less than the current character just typed.
Great
what about the model...
教程不错,就是粉丝少,加油,关注你了
Subs