Top "Swiftui" questions

SwiftUI is a way to build user interfaces across all Apple platforms.

Add bottom line to view in SwiftUI / Swift / Objective-C / Xamarin

I would like to keep the border at the bottom part only in UITextField. But I don't know how we …

ios objective-c swift xamarin swiftui
Find all available images for Image(systemName:) in SwiftUI

Where can I find all the system images that are available in the initializer Image(systemName:)? I've only been using "…

ios swift swiftui sf-symbols
SwiftUI - How do I change the background color of a View?

I'm beginning to try out SwiftUI and I'm surprised that it doesn't seem to be straightforward to change the background …

view background background-color modifier swiftui
Make a VStack fill the width of the screen in SwiftUI

Given this code : import SwiftUI struct ContentView : View { var body: some View { VStack(alignment: .leading) { Text("Title") .font(.title) Text("…

ios swift xcode swiftui
How to resize Image with SwiftUI?

I have a large image in Assets.xcassets. How to resize this image with SwiftUI to make it small? I …

ios swift swiftui
SwiftUI text-alignment

Among the many properties of the Text view, I couldn't find any related to text alignment. I've seen in a …

ios swift swiftui
SwiftUI update navigation bar title color

How to change the navigation bar title color in SwiftUI NavigationView { List{ ForEach(0..<15) { item in HStack { Text("Apple") .font(.…

ios navigationbar swiftui
Opt out of UISceneDelegate/SwiftUI on iOS

I'm currently using Xcode 11 Beta 5. Within my application, it runs fine on iOS 12 and under. However, on iOS 13 it looks …

swift xcode swiftui ios13
SwiftUI - How to create TextField that only accepts numbers

I'm new to SwiftUI and iOS, and I'm trying to create an input field that will only accept numbers. TextField("…

swiftui swiftui-form
Custom font size for Text in SwiftUI

I have a label in my view that I want to use the system font size in medium, with a …

swift fonts swiftui