mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[Widgets]: [WIP]: Implement Pagination in ActiveAppWidget based on user interaction
This commit is contained in:
@@ -53,4 +53,29 @@ extension View
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
func pageUpButton(widgetID: String) -> some View {
|
||||
if #available(iOSApplicationExtension 17, *) {
|
||||
Button(intent: PaginationIntent(.up, widgetID)){
|
||||
self
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
} else {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
func pageDownButton(widgetID: String) -> some View {
|
||||
if #available(iOSApplicationExtension 17, *) {
|
||||
Button(intent: PaginationIntent(.down, widgetID)){
|
||||
self
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
} else {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user