Post

Replies

Boosts

Views

Activity

Reply to Scrollview and a background image set to scaledToFill....
Well…I thought so too. Problem was - it wouldn’t scale to fill horizontally, no matter where I attached it. After ALL that, I ended up with this…. var body: some View { GeometryReader { geo in ZStack { Image("background") .resizable() .scaledToFill() .frame(width: geo.size.width, height: geo.size.height) .ignoresSafeArea() ScrollView { VStack(spacing: 32) {
Topic: Design SubTopic: General Tags:
Apr ’25
Reply to iPad/iPhone - Display best practices….
OK - I spoke too soon. I am STILL having issues the moment I flip into landscape mode on the iPad. This version of the code works perfectly for a portrait view. Everything lines up nicely. Flip the iPad...it's as though it thinks it is still in portrait mode. Sure, you can scroll, but you can't even get to the top/bottom maybe fifth or so of the content. What am I missing? It's something simple, I know - I've been beating my head on the wall with this for days and I don't think I can see the forest for the trees anymore. EDIT: I take it all back - it's the background. The moment I give the background ".scaledToFill()" everything goes haywire in landscape mode.
Topic: Design SubTopic: General Tags:
Apr ’25
Reply to iPad/iPhone - Display best practices….
No…you’re right; I‘m trying to fill two different sized holes with the same peg. I was originally trying to do it all in a single file with a bit of formatting magic, but that just was not working. Much easier to just separate the two. I made the main a file a stump to call two separate views - one for tablets, the other for phones - so it’s a reasonably non-intrusive change to the overall app structure. That will allow for some tablet-only features as well. Sometimes ya just get locked in a loop…. Thanks for the breakout….
Topic: Design SubTopic: General Tags:
Apr ’25