Ios swift – Moving an image over a sheet SwiftUI
In a screen design, I am showing a sheet from the bottom, and in this section I want to move an image above the sheet part. In this part, when I move it up with offset, it only remains in…
In a screen design, I am showing a sheet from the bottom, and in this section I want to move an image above the sheet part. In this part, when I move it up with offset, it only remains in…
I have a List in SwiftUI that I need to refresh but maintain current scroll position after refresh. I could do this in UITableView in UIKit but it seems impossible in SwiftUI. Am I missing something?
When opening Xcode I get a popup with the following error: Loading a plug-in failed. The plug-in “com.apple.dt.PreviewsXcode” at path “/Applications/Xcode_14_2.app/Contents/PlugIns/PreviewsXcode.framework” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged. The plug-in…
I am making an app with Swift and I have a question about lists. // Display the list of the incorrect words List { ForEach(arrayToPass, id: .self) { index in Text("・ (displayeWord[index].word) : (displayeWord[index].meaning1) ") .foregroundStyle(.black) .font(.title2) .padding(10) .bold() .listRowBackground(Color.white)…
I want to achieve something like in the attached screenshot. I am talking about the circled chevron displaying the forward/reverse order on the selected sorting rule. When selecting the same sort type, I want to actually use the same selected…
I want to use a SwiftUI Picker to select different colors. Instead of using Text() for each item in a picker, I want to use a Rectangle() to visually show the color, but SwiftUI doesn't like it and shows me…
Here is three view,ContentView,ListView and MyView。Click first bottom icon show ListView,then click NavigationLink display MyView.Click the button display sheet,dismiss the sheet the ListView displayed on the screen. struct ContentView: View { var body: some View { NavigationView { TabView {…
For a Carousel custom component we are using a TabView with the following modifier: .tabViewStyle(.page(indexDisplayMode: .never)) Everything is working quite well, except that during rotation handling, a strange bottom inset appear on the bottom: Looking more in deep with the…
Swift newbie here. I want to show i view above the main view whenever an boolean ObservableObject haveOnGoingCall is changed, then in this new menus, if a button click occurs it should exit the new views and only show another…
I am trying to dynamically determine whether the AppIntent opens the app, as dictated by the openAppWhenRun property. Sometimes it should open the app and sometimes it shouldn't. What I have tried I tried having nested AppIntents so the main…