Call widgetURL on EmptyView. This will fix the problem you're having. eg:
EmptyView()
.widgetURL(url)
Topic:
App & System Services
SubTopic:
General
Tags: