title: How to retrieve widget sizes in app to make a preview of it depending on the device?
body: <p>I am currently making a widget only application based on SwiftUI that allow users to show some type of informations as time, date etc..
  In order to make my application functional I would like to make a preview of the widgets in the app view, also allowing users to set it up.</p>
  <p>For now everything is working well, I can select a widget in my application and set it up so the widget updates as well.
  However, I am facing a problem, after some researches I can’t seem to find a way that allows you to get the widgets sizes according to the device you are using.</p>
  <p>I tried to use <code>UIScreen.main.bounds.size</code> but the aspect ratio between widgets sizes and devices sizes aren’t the same.</p>
  <p>What I would like to do is making my widget preview adapt to the widgets sizes that the device is actually using. (in other words retrieve the widgets sizes depending on which device you are on)</p>
  <p>Is there any solutions to do it dynamically or do I need to make a view for each devices? Thanks in advance.</p>