Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created July 31, 2022 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturdysturge/098c2edaedbcfdad261d0f47ccb992fb to your computer and use it in GitHub Desktop.
Save sturdysturge/098c2edaedbcfdad261d0f47ccb992fb to your computer and use it in GitHub Desktop.
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