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
| import Foundation | |
| import SwiftUI | |
| struct TappableColoredText: View { | |
| enum Component { | |
| case text(String) | |
| case tappable(String, () -> Void) | |
| } | |
| let components: [Component] |
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
| // | |
| // Feel free to use this code in your project. | |
| // Inspired by SO answer https://stackoverflow.com/a/65743126 | |
| // Uses DeviceKit as a dependency https://github.com/devicekit/DeviceKit | |
| // | |
| import Foundation | |
| import MessageUI | |
| import DeviceKit |
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
| // | |
| // HostingCell.swift | |
| // theathletic-ios | |
| // | |
| // Created by . | |
| // Copyright © 2021 The Athletic. All rights reserved. | |
| // | |
| import SwiftUI | |
| import UIKit |
OlderNewer