-
Notifications
You must be signed in to change notification settings - Fork 147
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
Rename an API that has the same name as a new API in iOS SDK #1400
base: develop
Are you sure you want to change the base?
Changes from 4 commits
2c542cc
29eedff
81885e5
a9d8dd1
fc8861a
a187d78
e30d1b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.4 | ||
3.2.2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,14 @@ class UnknownEditorViewController: UIViewController { | |
/// | ||
fileprivate(set) var saveButton: UIBarButtonItem = { | ||
let saveTitle = NSLocalizedString("Save", comment: "Save Action") | ||
return UIBarButtonItem(title: saveTitle, style: .plain, target: self, action: #selector(saveWasPressed)) | ||
return UIBarButtonItem(title: saveTitle, style: .plain, target: UnknownEditorViewController.self, action: #selector(saveWasPressed)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem right 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! These are Xcode's code suggestions, which I blindly took... Addressed in fc8861a. |
||
}() | ||
|
||
/// Cancel Bar Button | ||
/// | ||
fileprivate(set) var cancelButton: UIBarButtonItem = { | ||
let cancelTitle = NSLocalizedString("Cancel", comment: "Cancel Action") | ||
return UIBarButtonItem(title: cancelTitle, style: .plain, target: self, action: #selector(cancelWasPressed)) | ||
return UIBarButtonItem(title: cancelTitle, style: .plain, target: UnknownEditorViewController.self, action: #selector(cancelWasPressed)) | ||
}() | ||
|
||
/// HTML Editor | ||
|
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.
(nit) I would suggest converting it to a factory method with a prefix:
NSAttributedString.aztec_make(attachment:attributes:)
. Does it need to be public?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.
This initialiser is available to both NSAttributedString and NSMutableAttributedString. It's not very straightforward to make a static function to return an instance of its receiver.
I'm not sure. But I don't want to change the public API as part of this PR though, which is why I marked the original function as deprecated.