-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summit Workshop - Part 2 #19
base: 2024-summit-workshop/part-1
Are you sure you want to change the base?
Summit Workshop - Part 2 #19
Conversation
3d2f4b1
to
1513389
Compare
} | ||
} | ||
|
||
func widthMultplier() -> Double { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like there should be a way to just use the label's size here, but I don't know enough SwiftUI. Feels like there should be an equivalent to UILabel.sizeToFit()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you set the background of the Text
as the capsule, that should automatically adjust the size.
Also guess who's still subscribed to this repo 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha Hi Ellen! Thanks for the tip!
Part 2 - Make the user trips badge automatically update when a trip is booked or cancelled.