[Widgets]: Enhanced to isolate operations from multiple views of same widget type

This commit is contained in:
Magesh K
2025-01-11 03:25:25 +05:30
parent f69b293004
commit e29d9f7904
12 changed files with 346 additions and 245 deletions

View File

@@ -55,9 +55,9 @@ extension View
}
@ViewBuilder
func pageUpButton(_ widgetID: String) -> some View {
func pageUpButton(_ widgetID: Int?) -> some View {
if #available(iOSApplicationExtension 17, *) {
Button(intent: PaginationIntent(.up, widgetID)){
Button(intent: PaginationIntent(widgetID, .up)){
self
}
.buttonStyle(.plain)
@@ -67,9 +67,9 @@ extension View
}
@ViewBuilder
func pageDownButton(_ widgetID: String) -> some View {
func pageDownButton(_ widgetID: Int?) -> some View {
if #available(iOSApplicationExtension 17, *) {
Button(intent: PaginationIntent(.down, widgetID)){
Button(intent: PaginationIntent(widgetID, .down)){
self
}
.buttonStyle(.plain)