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
| #if os(iOS) | |
| import CoreImage | |
| import CoreImage.CIFilterBuiltins | |
| import CoreText | |
| import UIKit | |
| /// A single-line UIKit label that transitions text one glyph at a time. | |
| /// | |
| /// The intrinsic content size follows the current text. Glyphs are laid out | |
| /// individually from the leading edge, which suits short strings such as |
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
| /// These implementations of sorting based on a specific property of custom object. For example: | |
| /// struct Person { | |
| /// var age: Int | |
| /// var name: String | |
| /// } | |
| /// | |
| /// // Case 1: | |
| /// let people = [Person(age: 10, name: "Tom"), Person(age: 12, name: "John"), Person(age: 20, name: "Peter"), Person(age: 1, name: "Nancy")] | |
| /// let orderedPeople = [Person(age: 12, name: "John"), Person(age: 10, name: "Tom")] | |
| /// |