I have a form and at the end of it, a button.
Form {
Section {
} //close section
button
} //close form
However, the button is appearing surrounded by white space, like inside a textbox.
What's the reason for that?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have a TabBar with 8 items.
And as everybody knows, more than 5 makes the 5th item the MORE button and it's perfect.
The problem is when I hit it, the button just blinks.
If I hit again, then the other options are shown.
Why ?
Thx
When rendering HTML into my view, I have the following part:
struct HTMLStringView: UIViewRepresentable {
let htmlContent: String
func makeUIView(context: Context) - WKWebView {
return WKWebView()
}
func updateUIView(_ uiView: WKWebView, context: Context) {
let headerString = "headmeta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no'/head"
uiView.loadHTMLString(headerString + htmlContent, baseURL: nil)
}
}
Everything works fine but some problems: If the html is long, It will create an another vertical scrollbar inside my view (so I will have 2 scrollbars)
Font family and size still dont match the original view.
How can I fix it ?
Thx
I have a button on my modal and I want to dismiss the modal with animation. Right now it just closes it.
HStack {
Spacer()
Image(systemName: "xmark")
.font(.system(size: 16, weight: .medium))
.foregroundColor(.white)
.frame(width: 36, height: 36)
.background(Color.black)
.clipShape(Circle())
.onTapGesture {
self.showModal.toggle() -- HERE
}
}
How can I do that ?
Thx
When I run my app with my phone connected, suddenly the app crashes.
I don't have any information on the console, but I have the following message error in the @main line.
Thread 1: EXC_BAD_ACCESS (code=1, address=0x28)
@main
struct MyApp: App {
How can I know what is the problem and where to check for message errors when the app crashes ?
Thank you
My app suddenly crashes exposing this message error:
EXC_BAD_ACCESS (code=1, address=0x5c)
I tried to debug but can't find a solution.
I believe using Instruments could be easier to find it. However Instruments has a lot of items. What would be the one responsible for debugging this kind of error I'm having ?
Thank you
I have a TabBar with 5 different views for each TabBar item.
All these 5 views have long content wrapped in a ScrollView.
So let's say I chose my 2nd TabBar item and scroll on this view.
Then I move away to another view and when I hit the 2nd TabBar item again, I want this view scrolled to the top and not at the position I left on the first visualization.
How can I do that?
Thx
I have a TabBar with 3 items:
Home
ScrollView
Products
NavigationView
Users
NavigationView
When clicking on the tabBar buttons, I will go back to the related view. However, at the point where I had left.
I would like to every time I move to a different tab, it starts fresh like 1st time.
a) If it's a scrollview, after coming back to the tab I would like the view scrolled to the top.
b) If it's a navigationView, after coming back to the tab, I would like to scroll to the top and move to the Navigation root list.
How can I do it.
Thx folks