Maybe this question is unnecessary, but I encountered the following problem (typical for SwiftUI).
I have a custom view that is used all around my app. It has a .frame() modifier on it, because it show pictures (and more). It's called ParticipantsView. In some other view I want to use ParticipantsView but make it smaller. I can't use the .frame modifier again (because it will not change participantsView appearance).
I can use .clipped(), but thats not what I want.
ParticipantsView is used in 4 different sizes around the app, should I implement it more dynamic and just pass the needed frame-size as argument every-time I use this view or is there a simple solution, to just resize any given view, no mater if it has an inherent frame-size already set?
I have a custom view that is used all around my app. It has a .frame() modifier on it, because it show pictures (and more). It's called ParticipantsView. In some other view I want to use ParticipantsView but make it smaller. I can't use the .frame modifier again (because it will not change participantsView appearance).
I can use .clipped(), but thats not what I want.
Here comes my question
ParticipantsView is used in 4 different sizes around the app, should I implement it more dynamic and just pass the needed frame-size as argument every-time I use this view or is there a simple solution, to just resize any given view, no mater if it has an inherent frame-size already set?