My Awesome Newsletter

Archives
September 2, 2020

SwiftUI and Delegates - How to Adapt CombineĀ šŸŽØ

# Combine & CoreLocation - Adapting Delegates for SwiftUI Most of the APIs from Apple come from an era of Objective-C and the Delegation Pattern. With this in mind, the challenge is figuring how to adapt for SwiftUI.
In this series of posts, I explain how to create Publishers from delegates using Combine.
    1. [**Combine & CoreLocation, Part 1 – Publishers & Delegates**](https://learningswift.brightdigit.com/combine-corelocation-receiving-handling-events/) How can we create publishers from a standardĀ delegate pattern like *CoreLocation*? 2. [**Combine & CoreLocation, Part 2 – Receiving & Handling Events**](https://learningswift.brightdigit.com/combine-corelocation-receiving-handling-events/) What's the difference between *sink* and *assign*? What's new from WWDC 2020 to help? 3. [**Combine & CoreLocation, Part 3 – Integrations with flatMap**](https://learningswift.brightdigit.com/combine-corelocation-swiftui-delegates/) How can *flatMap* andĀ built-in publishers like *Just* and *Sequence* integrate Publishers?
I'd love any feedback or questions you have. What has been your latest struggle in Swift development?Ā 
Reply and let me know.

Thanks,
**Leo** [View this email in your browser]()
Don't miss what's next. Subscribe to My Awesome Newsletter:
Powered by Buttondown, the easiest way to start and grow your newsletter.