update view, still work to do

This commit is contained in:
Rory Hinnen
2026-09-08 17:49:59 -05:00
parent 241a753879
commit b1d4094f78
9 changed files with 201 additions and 204 deletions
+6
View File
@@ -31,3 +31,9 @@ extension CaseIterable where Self: Equatable {
self = allCases[nextIndex == allCases.endIndex ? allCases.startIndex : nextIndex]
}
}
extension View {
func disabledWithOpacity(_ condition: Bool) -> some View {
self.disabled(condition).opacity(condition ? 0.4 : 1.0)
}
}