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
| // Cursed! Do not use! | |
| // Supports most, but not all Text initializers. | |
| import SwiftUI | |
| extension FormatStyle { | |
| func format(any value: Any) -> FormatOutput? { | |
| if let v = value as? FormatInput { | |
| return format(v) |
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
| // | |
| // DarkModeMasker.swift | |
| // SwiftUI Demos | |
| // | |
| // Created by Morten Just on 1/22/23. | |
| // https://twitter.com/joshguospace/status/1617101052192649216?s=12 | |
| import SwiftUI | |
| import Charts |