mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(mobile): ios widget deeplink to asset in app (#19510)
* feat: ios widget deeplinks to asset in app * fix: casing --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
5f89c2d111
commit
64cc7239fe
3 changed files with 14 additions and 7 deletions
|
|
@ -6,6 +6,7 @@ struct ImageEntry: TimelineEntry {
|
|||
var image: UIImage?
|
||||
var subtitle: String? = nil
|
||||
var error: WidgetError? = nil
|
||||
var deepLink: URL? = nil
|
||||
|
||||
// Resizes the stored image to a maximum width of 450 pixels
|
||||
mutating func resize() {
|
||||
|
|
@ -54,6 +55,7 @@ struct ImmichWidgetView: View {
|
|||
}
|
||||
.padding(16)
|
||||
}
|
||||
.widgetURL(entry.deepLink)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue