-
[WidgetKit] widget의 특정 item이 tap 되었을 때 mainApp으로 뭔가를 해보자 : widgetURL(deep Link)Swift/WidgetKit 2022. 7. 23. 02:28
widget 쪽에서 onTap됐을 때 해당 링크를 request 시킨다
mainApp쪽에서 (받는 쪽)에서 url validate 하는 방법이다
validate 해서 guard 통과해서 다음으로 넘어갔으면 대충 이런식으로 url에서 가지고온 query 가져다 쓰면 된다
A SwiftUI WidgetKit Deep Link Tutorial – Answertopia
WidgetKit deep links allow the individual views that make up the widget entry view to open different screens within the companion app when tapped. In addition to the main home screen, the WidgetDemo app created in the preceding chapters contains a detail s
www.answertopia.com
'Swift > WidgetKit' 카테고리의 다른 글
[WidgetKit] widget의 timeline을 재설정하고 즉시 update하자 (0) 2022.07.25