Post

Replies

Boosts

Views

Activity

Reply to ScrollView shrink to fit
You can just add the extra Space to ScrollView{ //Your code is here //rest of space here Spacer(minLength: Help.screenHeight/3.3) } and when your app start you can just WindowGroup { if appStillLoading { GeometryReader { gemotry in ZStack{ SplashScreen() .onAppear {Help.screenWidth = gemotry.size.width;Help.screenHeight = gemotry.size.height} } }else{ ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to How to add placeholder text to TextEditor in SwiftUI?
TextEditor(text: $msg) .overlay { if msg == "" { HStack{ Text("write message") .foregroundStyle(Color.secondary) Spacer() }.padding(.horizontal) } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to ScrollView shrink to fit
You can just add the extra Space to ScrollView{ //Your code is here //rest of space here Spacer(minLength: Help.screenHeight/3.3) } and when your app start you can just WindowGroup { if appStillLoading { GeometryReader { gemotry in ZStack{ SplashScreen() .onAppear {Help.screenWidth = gemotry.size.width;Help.screenHeight = gemotry.size.height} } }else{ ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Get it right (to left) WWDC2020 proplem
sorry i solve it just you need to add this line to Your Navigation " .navigationViewStyle(.stack) "
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22