Development environment
Posted: Sat Jan 18, 2025 8:58 am
I tried installing Combine Cocoa
Hello. I'm Wakui from the 1st Group of the Development Department.
This time, I'll talk about introducing a library called Combine Cocoa.
* Since I want to focus on Combine Cocoa, I'll omit the basic knowledge of RxSwift and Combine (Subscribe, Publisher, etc.) that will appear later.
MacOS: Venture
Compatible iOS: 14-16
Combine Cocoa: 0.4.1
Background
In one app, event detection was implemented with RxSwift and the screen was implemented with UIKit.
The following modifications will be made liberia email address to this app:
The new feature is event detection using Combine , and the screen is implemented using SwiftUI.
Existing functions will remain UIKit for the screen, but event detection will be replaced with Combine.
The existing functions are functionally fine, so we want to minimize the amount of work required by keeping the logic as small as possible.
point
Changed the implementation method of event detection from RxSwift to Combine
Want to reduce man-hours (and also reduce the impact of modifying existing functions)
Is that possible? Yes, you can. With Combine Cocoa .
I've been talking about it a bit, but what exactly is Combine Cocoa?
What is Combine Cocoa?
Roughly speaking, it is a library that implements Combine's Publisher for UIKit event handling.
The area that provides the Publisher is configured as shown in the red box in the image below.
Hello. I'm Wakui from the 1st Group of the Development Department.
This time, I'll talk about introducing a library called Combine Cocoa.
* Since I want to focus on Combine Cocoa, I'll omit the basic knowledge of RxSwift and Combine (Subscribe, Publisher, etc.) that will appear later.
MacOS: Venture
Compatible iOS: 14-16
Combine Cocoa: 0.4.1
Background
In one app, event detection was implemented with RxSwift and the screen was implemented with UIKit.
The following modifications will be made liberia email address to this app:
The new feature is event detection using Combine , and the screen is implemented using SwiftUI.
Existing functions will remain UIKit for the screen, but event detection will be replaced with Combine.
The existing functions are functionally fine, so we want to minimize the amount of work required by keeping the logic as small as possible.
point
Changed the implementation method of event detection from RxSwift to Combine
Want to reduce man-hours (and also reduce the impact of modifying existing functions)
Is that possible? Yes, you can. With Combine Cocoa .
I've been talking about it a bit, but what exactly is Combine Cocoa?
What is Combine Cocoa?
Roughly speaking, it is a library that implements Combine's Publisher for UIKit event handling.
The area that provides the Publisher is configured as shown in the red box in the image below.