BrightDigit logo

BrightDigit

Archives
Log in
Subscribe
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 BrightDigit:
← Newer Speculid v3.0.0 Alpha 3 Older → BrightDigit #28 -  ⚙️ Big changes from WWDC 2020
brightdigit.com
GitHub
GitHub
LinkedIn
Mastodon
www.patreon.com
YouTube
www.empowerapps.show
Bluesky
Twitter
Powered by Buttondown, the easiest way to start and grow your newsletter.