Move some content group and styles to FormattableContentKit - #24265
Conversation
Generated by 🚫 Danger |
| "WordPressUI", | ||
| .product(name: "Gridicons", package: "Gridicons-iOS"), | ||
| // TODO: Remove — It's here just for a NSMutableParagraphStyle init helper | ||
| .product(name: "WordPressKit", package: "WordPressKit-iOS"), |
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr24265-241b304 | |
| Version | 25.8 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 241b304 | |
| App Center Build | jetpack-installable-builds #10837 |
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr24265-241b304 | |
| Version | 25.8 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 241b304 | |
| App Center Build | WPiOS - One-Offs #11813 |
|
There are a few types like Would it be possible to extract these extensions and move them to the app target? They could use objc_assocciatedObject for caching. Files like these do not belong to |
|
So I've been looking into this a bit and it's not straightforward. The main blocker is that I'm going to play around with this more on my Monday. |
I see. So it observes some of its own properties to reload the cached attributes. These properties can be observed from the outside – similarly to how we use ImageLoadingController with its lifetime tied to the associated image view. // Name arbitrary
final class NotificationFormattableContentController {
weak var notification: Notification?
private var cachedSubjectContentGroup: FormattableContentGroup?
// ...
deinit {
// Remove KVO observation
}
init(notification: Notification) {
// 1. Set up obsever
// 2. Set as associated object
}
}ideally, I would just add |
These are needed by the WordPressData files.
8c75698 to
241b304
Compare


These are needed by the WordPressData files, see #24242.