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
| extension CustomFont where Self: RawRepresentable, Self.RawValue == String { | |
| func sized(_ size: CGFloat) -> UIFont { | |
| return UIFont(name: self.rawValue, size: size).unwrapped | |
| } | |
| } |
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
| protocol CustomFont { | |
| func sized(_ size: CGFloat) -> UIFont? | |
| } | |
| extension CustomFont where Self: RawRepresentable, Self.RawValue == String { | |
| func sized(_ size: CGFloat) -> UIFont? { | |
| return UIFont(name: self.rawValue, size: size) | |
| } | |
| } |
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
| label.font = UIFont.jurassicPark.semibold.sized(30.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
| label.font = UIFont.jurassicPark.regular.sized(40.0).scaled(forTextStyle: .body, maxSize: 80.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
| - name: Swift by Sundell | |
| rss_url: https://swiftbysundell.com/rss | |
| logo_url: https://www.google.com/s2/favicons?sz=256&domain_url=www.swiftbysundell.com | |
| - name: Swift Wings | |
| rss_url: https://www.onswiftwings.com/index.xml | |
| - name: Swift Rocks | |
| rss_url: https://swiftrocks.com/rss.xml |
OlderNewer