-
Notifications
You must be signed in to change notification settings - Fork 149
Customizable Blockquote Style #794
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
Conversation
| /// | ||
| fileprivate var textAttachmentImageProvider = [TextViewAttachmentImageProvider]() | ||
|
|
||
| // MARK: - Properties: Formatting |
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.
Why are we removing the mark?
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.
PS: if we want to rename this I'm fine, but it's a good one since all of it's content is related to formatting.
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.
Related to the change few lines above. This is part of the delegates section, so it's a bit of redundant
Aztec/Classes/TextKit/TextView.swift
Outdated
|
|
||
| // MARK: - Properties: Text Storage | ||
|
|
||
| // MARK: - TextKit Aztec Subclass'ess |
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.
/s/Subclass'ess/Subclasses
No need for the apostrophe / single-quote.
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.
Thanks!
Aztec/Classes/TextKit/TextView.swift
Outdated
| } | ||
|
|
||
|
|
||
|
|
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.
No need for 3 lines.
|
Thanks for the review sir! |
Description:
In this PR we're adding three new TextView properties:
Details:
Because of the
dynamickeyword, the three new properties are compatible with Apple'sUIAppearance()mechanism. This allows us to do the following:textView.blockquoteBackgroundColor = .greenTextView.appearance().blockquoteBackgroundColor = .greenApple's
appearance()mechanism also allows for customization when contained in a specific ViewController, or define the UX for a specific set of traits.Testing:
EditorDemoViewController.swifttextView.blockquoteBackgroundColor = .greenVerify that the blockquote is green.