-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move some content group and styles to FormattableContentKit #24265
base: trunk
Are you sure you want to change the base?
Conversation
These are needed by the WordPressData files.
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"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24265-8c75698 | |
Version | 25.8 | |
Bundle ID | com.jetpack.alpha | |
Commit | 8c75698 | |
App Center Build | jetpack-installable-builds #10782 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24265-8c75698 | |
Version | 25.8 | |
Bundle ID | org.wordpress.alpha | |
Commit | 8c75698 | |
App Center Build | WPiOS - One-Offs #11756 |
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, see #24242.