I'm just now getting started with combine and reactive programming. This is a great way to get my feet wet. Thanks.
@dimiutube4 жыл бұрын
Thanks for the very useful explanation. I've watched the video a few months ago and didn't understand the advantages of Combine. But now everything makes perfectly sense!
@Raptor-jv7fi4 жыл бұрын
I don’t even use UIKit and I understood it clearly. Awesome tutorial.
@Mar444_4 жыл бұрын
Update for the sink modifier: add receive completion parameter if compiler is showing error ---> "Referencing instance method 'sink(receiveValue:)' on 'Publisher' requires the types" 👌🏾 .sink(receiveCompletion: { _ in print("process complete") }, receiveValue: { value in print("A summer day of \(value) Celcius") })
@wongacid3 жыл бұрын
Thanks Man, finally it works after i add receivecompletion
@mattlarsen3 жыл бұрын
Trial-and-error showed the original code worked by changing let weatherPublisher = PassthroughSubject() into let weatherPublisher = PassthroughSubject() but I'm not wise enough to know if this is a good idea.
@roshanthapa252 жыл бұрын
Awesome video for quick understanding.
@blueStarCanada0073 ай бұрын
beautiful explanation , thanks 👍
@chooseyourfuturebeforeitch74534 жыл бұрын
Have problems following your code Referencing instance method 'sink(receiveValue:)' on 'Publisher' requires the types 'Publishers.Filter.Failure' (aka 'WeatherError') and 'Never' be equivalent
@mattlarsen3 жыл бұрын
I saw this same error on my code when I ran it and changed it to the alternate: let weatherPublisher = PassThroughSubject() ...which worked, but see comments below for a better solution.
@laxlyfters86955 жыл бұрын
I have never put nutmeg into mashed potatoes. I will try it next time.
@arno.claude4 жыл бұрын
Most important lesson learned from this video
@hollytian75764 жыл бұрын
😂
@ccalderon93 жыл бұрын
Came here for Combine. Stayed for the cooking tips.
@yagniksuthar87403 жыл бұрын
you making such a great video can you make it more for combine framework.
@kelvinfok5 жыл бұрын
High quality video and high quality teaching! Thank you so much :)
@jorgeantoniomr35264 жыл бұрын
Awesome introduction, you helped me a lot!! thanks!!!
@GetSwifty4 жыл бұрын
Super decent tutorial with plenty of graphics.
@Mahadev-x7u4 жыл бұрын
Thank you very much for Amazing lesson
@pradeepkumar53594 жыл бұрын
Hi Brain Advent great video on combine framework where even apple docs are cumbersome about combine but you explained clearly about the necessity of framework. Can you do more videos on combine that includes debounce clasess.
@rogerpinto44 жыл бұрын
Super simple explanation! Really nice tutorial 👏
@vipullal76894 жыл бұрын
Great video! Thanks
@ericcoleman22884 жыл бұрын
Great explanation!
@alimehmood8654 Жыл бұрын
still very helpful video in 2023
@setoelkahfi3 жыл бұрын
Can you please add space after the variable name?
@willasaskara4 жыл бұрын
thanks! i was looking for this
@jbee12635 жыл бұрын
Lemme ask maybe a kinda odd question. Why would you do this? When you could simply do sendButton.isEnabled.toggle() in the IBAction of the switch. I understand your demonstrating Combine. I get that. And maybe that is the answer, but. Beyond that, and making this a bit more real. What is the benefit of it in this case. Over doing just the one line of toggle?
@jackshephard79205 жыл бұрын
I think it's just a matter of programming style. Using combine is some kinda of declarative, however, your style is imperative.
@trentguillory98084 жыл бұрын
I too was asking myself the same question. For such a simple use-case, you wouldn't normally do this. This form of declarative programming is only useful if you know you're working on a view that has several states defined by more than one input. In that case, Combine would be great - it'd figure out how to render your view rather than you having to trust your own brain capacity to account for each case.
@filipvabrousek69004 жыл бұрын
Thanks so much!
@gogoqaz5 жыл бұрын
Great tutorial! good job
@waseemasif1002 жыл бұрын
very good video.I guess tutorials should be that simple and concise as you have used UIKit for your demo.Create other videos with UIKit as most of developers not switched to SwiftUI
@jasondhindsa67744 жыл бұрын
Excellent example! A bit confusing though! I thought Subscribers had to be reference types.
@HarshitKumar-yn8du3 жыл бұрын
Thanks Brian, where can I get source code?
@TanTran-fe7rf4 жыл бұрын
Could you share me this slide, Brian? Thanks a lot
@drct5 жыл бұрын
Xcode 11 beta 7: .sink is only available when Failure is Never
@ZhouHaibo4 жыл бұрын
@DRCT, that error means that the 1st closure in Sink(receiveCompletion:) is not implemented.
@nicolasklarsfeld4 жыл бұрын
example with uikit begin at 11:40
@developerdiaries59264 жыл бұрын
Nice, but this is something we could have done with a property observer and Notification Center observer. Is it just because the task demonstrated here was too simple to warrant the Combine framework, or is there more to it than just this?
@w0mblemania4 жыл бұрын
It was just an example. Combine shows its power when you need to use operators and different types of subscribers to, well, "combine" streams. e.g. setting a Label based on many different, asynchronous inputs. Such as in a Login screen, or as a result of multiple network operations.
@rondamon44084 жыл бұрын
IT seems that RxSwft will be deprecated soon with this Combine framework.
@w0mblemania4 жыл бұрын
A lot of companies still require iOS 12, and will do so for a few more years. For that, they need RxSwift. But yes, for greenfield projects, Combine is the way to go.
@BroNo3man5 жыл бұрын
Thank you for this tutorial. But : are you sure a publisher can have only one subscriber ? Cuz i tested with multiple subscribers and it seams working fine. with both sink and assign.
@MrMcSwiftface5 жыл бұрын
Yeah I thought that too!
@Aiiboo5 жыл бұрын
How I can import SwiftUI in SceneKit/SpriteKit? Like a collectionView as SwiftUI
@AliMohamed-jg6bv5 жыл бұрын
Dear friend, i need to know how to make Xcode accept more than 10 toggles per page, as when i want to add more than 10 toggle it won't allow? i need also to know how to make toggle label clickable and shows a pop up window to write inside it, is that possible ?
@trentguillory98084 жыл бұрын
I'm sure you've found an answer within the last 8 months, but a SwiftUI view only allows a max of 10 subviews. You can use Group {} to get around that. With 10 Groups of 10 Toggles each, you could easily have 100 toggles in a page.
@guruitcompany5 жыл бұрын
Thank you 👍
@igor13095 жыл бұрын
Hi Brian! What is messageLabel??
@shadykahaleh93774 жыл бұрын
UILabel
@محمدبنسراجالدين5 жыл бұрын
Apparently no one knows how to create a list with dynamic sections And delete rows functionality. Like a list of employees sectioned by departments and still can delete rows!! Can you?!
@omgawdhax5 жыл бұрын
If I recall correctly, Apple showed something like that in Diffable Data Sources session. You should check that out. That doesn't use Combine though.
@w0mblemania4 жыл бұрын
The question is irrelevant to the video. It's just an attempt to grab free tech help.
@glych0024 жыл бұрын
The way you did it is poor, because you would have to create a message publisher for each property on the message object.
@w0mblemania4 жыл бұрын
Do you have a video showing how to do it better?
@vamsi38775 жыл бұрын
👌👌👌
@GoeHybrid Жыл бұрын
Really hard to follow after you switched to the actual project.
@davidpaul34254 жыл бұрын
Thanks for the tutorial. 18:55 hope we can unsubscribe later!
@iambenmitchell5 жыл бұрын
Nutmeg in mashed potatoes? Thats new. Could you check your emails :)