update view, still work to do
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user