Add help text to all header buttons

This commit is contained in:
Ricky Kresslein
2024-02-26 14:12:11 +01:00
committed by Ricky Kresslein
parent 7b34c7e72b
commit 238ddc7ad9
6 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ struct FavoriteButton: View {
.contentShape(Rectangle())
#endif
}
.help(isFavorite ? "Remove from Favorites" : "Add to Favorites")
.disabled(item.isNil)
.onAppear {
isFavorite = item.isNil ? false : favorites.contains(item)