Swift ui fit the view for different Screen sises

Hello,
I tried to switch from storibords to swift ui. But now I have the problem that I can't fit my App Images or other view's to different screen sizes like iPad and iPhone. With storyboards I have done that with Autolayout constraints. But how can I do it in Swift ui?
Can sb. help me?
Answered by travis78701 in 623428022
You’re probably going to have to show an example, but have you looked at things like .frame(maxWidth: .infinity)?
Accepted Answer
You’re probably going to have to show an example, but have you looked at things like .frame(maxWidth: .infinity)?
Yes, I have looked for it, it helps me a little bit by smaller screen difference. I wold like to make one app for iPad and iPhone, where I can use the Bigger iPad Screen a bit better or in a other way than the smaller iPhone Screen. Like by a iPhone a control bar on the Bottom and on the Lager iPad Screen the a control bar on the Side. But in the same Code / Programm. Like other apps in the app store.
Swift ui fit the view for different Screen sises
 
 
Q