-
-
Save sturdysturge/098c2edaedbcfdad261d0f47ccb992fb to your computer and use it in GitHub Desktop.
This file contains 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 SwiftUI | |
enum DataTitle: String { | |
case tip = "Tip", noTip = "No Tip", all = "All" | |
} | |
struct TipData: Identifiable { | |
let id = UUID() | |
let value: Double | |
let title: DataTitle | |
} | |
@available(iOS 16, *) | |
struct AnnotationViewModifier: ViewModifier { | |
func body(content: Content) -> some View { | |
content | |
.foregroundColor(.white) | |
.bold() | |
.padding() | |
.frame(maxWidth: .infinity, alignment: .trailing) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment