-
Notifications
You must be signed in to change notification settings - Fork 149
Migrates the project to Swift 4. #810
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
29af51f
Aztec is now Swift 4 Friendly. Mark I
jleandroperez 37e62a9
Aztec is now Swift 4 Friendly. Mark II
jleandroperez b73664d
Disabling Swift3 ObjC Inference
jleandroperez 70b8314
Aztec is now Swift 4 Friendly. Mark III
jleandroperez 1f6f014
Merge remote-tracking branch 'origin/develop' into issue/807-swift-4-…
jleandroperez 5964f32
EditorDemoController: Fixing Font Weight
jleandroperez 3707f9f
TextView: @diegoreymendez is a genius
jleandroperez 4971cc7
Disabling Swift3 ObjC Inference / Testing Target
jleandroperez f418fd0
Disabling Swift3 ObjC Inference / Example Target
jleandroperez 523ba08
Swift 4: replacing substring(to:) with prefix(upTo:)
jleandroperez c1dc7d2
Swift 4: replacing .substring(with:) with subscript operators
jleandroperez cca5084
Swift 4: replacing substring(from:) with subscript operators
jleandroperez e0cb393
Implements NSAttributedStringKey+Aztec
jleandroperez 12aaa5b
TextView: Cleanup
jleandroperez 9c18636
Merge remote-tracking branch 'origin/develop' into issue/807-swift-4-…
jleandroperez cd449e5
NSAttributedStringKey: Renames constant
jleandroperez 2396986
NSAttributedStringKey+Conversion: Documenting Methods
jleandroperez 0b51bee
Implements NSAttributedStringKeyHelperTests
jleandroperez 09c7973
Cocoapods Swift Version: Mark 4.0
jleandroperez 8eaf6bc
NSAttributedStringKey+Aztec: Removing 1 line here
jleandroperez 02bea21
NSAttributedStringKey+Aztec: Removing another line here
jleandroperez afd7e3b
String+RangeConversion: fatalError FTW
jleandroperez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.2 | ||
| 4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import Foundation | ||
|
|
||
| // MARK: - Aztec NSAttributedString Keys | ||
| // | ||
| public extension NSAttributedStringKey { | ||
|
|
||
| /// Key used to store Bold Tag Metadata, by our BoldFormatter. | ||
| /// | ||
| public static let boldHtmlRepresentation = NSAttributedStringKey("Bold.htmlRepresentation") | ||
|
|
||
| /// Key used to store Color Tags Metadata, by our ColorFormatter. | ||
| /// | ||
| public static let colorHtmlRepresentation = NSAttributedStringKey("Color.htmlRepresentation") | ||
|
|
||
| /// Key used to store HR Tag Metadata, by our HRFormatter. | ||
| /// | ||
| public static let hrHtmlRepresentation = NSAttributedStringKey("HR.htmlRepresentation") | ||
|
|
||
| /// Key used to store Image Tag Metadata, by our ImageFormatter. | ||
| /// | ||
| public static let imageHtmlRepresentation = NSAttributedStringKey("Image.htmlRepresentation") | ||
|
|
||
| /// Key used to store Italics Tag Metadata, by our ItalicFormatter. | ||
| /// | ||
| public static let italicHtmlRepresentation = NSAttributedStringKey("Italic.htmlRepresentation") | ||
|
|
||
| /// Key used to store Link Tag Metadata, by our LinkFormatter. | ||
| /// | ||
| public static let linkHtmlRepresentation = NSAttributedStringKey("Link.htmlRepresentation") | ||
|
|
||
| /// Key used to store Strike Tag Metadata, by our StrikeFormatter. | ||
| /// | ||
| public static let strikethroughHtmlRepresentation = NSAttributedStringKey("Strike.htmlRepresentation") | ||
|
|
||
| /// Key used to store UnderlineHTMLRepresentations, by our UnderlineFormatter. | ||
| /// | ||
| public static let underlineHtmlRepresentation = NSAttributedStringKey("Underline.htmlRepresentation") | ||
|
|
||
| /// Key used to store UnsupportedHTML Snippets, by our HTML Parser. | ||
| /// | ||
| public static let unsupportedHtml = NSAttributedStringKey("UnsupportedHTMLAttributeName") | ||
|
|
||
| /// Key used to store VideoHTMLRepresentations, by our VideoFormatter. | ||
| /// | ||
| public static let videoHtmlRepresentation = NSAttributedStringKey("Video.htmlRepresentation") | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Aztec/Classes/Extensions/NSAttributedString+CharacterName.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| import Foundation | ||
|
|
||
| extension NSAttributedString { | ||
| convenience init(_ characterName: Character.Name, attributes: [String:Any]?) { | ||
| convenience init(_ characterName: Character.Name, attributes: [NSAttributedStringKey: Any]?) { | ||
| self.init(string: String(characterName), attributes: attributes) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not really important, but remove 1 line here.