swiftui-form Questions

3

Solved

I want to use the Material Design text field component in SwiftUI. There is a Material Design Text Field Component written for UIKit but not one for SwiftUI. Is it possible to use this Material Des...
Stalactite asked 3/11, 2019 at 14:51

3

How is email validation done with swiftUI? TextField("Please enter your e-mail", text: self.$email) .modifier(ClearButton(text: $email)) .font(.headline) .padding(10) .foregroundColor(.black)...
Loader asked 30/1, 2020 at 15:3

28

Solved

I'm new to SwiftUI and iOS, and I'm trying to create an input field that will only accept numbers. TextField("Total number of people", text: $numOfPeople) The TextField currently allows alphabe...
Shawna asked 6/11, 2019 at 15:1

8

I have a TextField in SwiftUI. When I apply padding to it as TextField(text, text: $value) .padding() the padding is outside of the tap area of the TextField, i.e. tapping on the padding does not...
Pittsburgh asked 13/2, 2021 at 10:48

5

Solved

I'm trying to get a circle on top with the form content down below, right above my TabBar. I can somewhat force this by using .frame() but I'm not a big fan of that. It seems like there should be a...
Symbolist asked 18/8, 2021 at 16:46

2

Solved

Currently I've a picker included in a Section included in a Form what I'm trying to reach is to align the selected value of the picker to the leading in both iOS 13 and 14, I've tried many solution...
Hut asked 25/5, 2021 at 14:3

2

Lately, I have been working on creating a complex view that allows me to use a Picker below a Form. In every case, the Form will only have two options, thus not enough data to scroll downwards for ...
Nigritude asked 28/3, 2020 at 19:9

1

I would like a single item inside SwiftUI Form to run from side to side, without having Form's default margins. Unfortunately, whatever I do (like ading a wider .frame, negative horizontal padding,...
Oxendine asked 19/5, 2022 at 10:47

0

I am having a problem on a simple Form{}. Automatic Keyboard Avoidance is not working. Below is a small form with a TextEditor(). When run, the keyboard sits on top the input field, requiring the u...
Spanish asked 9/8, 2021 at 23:46

0

Hi there I have a tricky problem to solve with SwiftUI in Xcode 12.4 (iOS 14): given I have a Form with numerous sections and TextEditors, this form having a .toolbar modifier (bottom bar) with som...
Japheth asked 9/8, 2021 at 14:54

1

Solved

I am having trouble debugging an issue with input from textfields. Information: -MacOs Monterey Version 12.0 Beta 21A5284e -Xcode 13.0 beta 3 13A5192j -Physical phone IOS 15.0 19A297e Issue explana...
Conroy asked 21/7, 2021 at 11:43

4

Solved

I use a form with a picker, and everything works fine (I am able to select an element from the picker), but I cannot deselect it. Does there exist a way to deselect an item from the picker? Thank y...
Alfred asked 27/1, 2021 at 17:45

1

Solved

I want pass data on dismissing of presentViewController to previous screen. Here I would like to use block to pass data to previous screen as UIKitApp. But I'm not getting idea to pass data. What a...
Gaskins asked 16/7, 2021 at 11:59

1

Solved

Is it not meant to be possible to control the animations that take place inside of a Form view? I have here a playground that demonstrates the issue, along with a gif of what happens. As you can se...
Cantor asked 23/11, 2019 at 15:35

2

Goals: Create a row/cell with buttons Embed row/cell in a Form What I did: I created a cell, with buttons. struct PointTypeButtons : View { var body: some View { VStack { HStack { Text(&q...
Conch asked 22/6, 2019 at 12:51

1

I am trying to changing the black area of a section inside of a form using SwiftUI. Since Swift 2.0 in iOS 14, a form shows these with a of padding, but using background and foreground for th...
Rhetic asked 14/11, 2020 at 1:22

2

How can I put the image in the Form of swiftUI in order to have the same effect like the picture attached? I have try with this code, but not working: struct UserDetails: View { @ObservedObject v...
Dehnel asked 13/8, 2020 at 9:10

1

I want part of my view to be wrapped inside a Form, but not the whole thing. I don't want the Form to take up that much space, so I've shrunken it using .frame(). Although there is still a lot of m...
Balenciaga asked 13/7, 2020 at 17:13

3

Solved

I'm getting some odd animation behaviour with DatePickers in a SwiftUI form. A picture is worth a thousand words, so I'm sure a video is worth a million words: https://i.sstatic.net/bNrTK.jpg I'm t...
Wisp asked 25/6, 2020 at 7:40

1

Solved

I'm trying to make a notes app with SwiftUI and I'd like to show the notes similar to the Apollo Reddit app does. The way it shows the post isn't anything special, it just shows the posts using a...
Reinaldoreinaldos asked 3/6, 2020 at 19:55

2

Solved

I am playing around with SwiftUI, and am currently building a Form using a Picker. import SwiftUI struct ContentView: View { private let names = ["Bill", "Peter", "Johan", "Kevin"] @State priv...
Conqueror asked 1/1, 2020 at 14:11

1

I am facing some weird glitches in my Form implementation. I am not sure whether this is some implementation error or a bug in SwiftUI itself. So basically what I want to do is the typical "ToDo/...
Bellis asked 28/12, 2019 at 15:58
1

© 2022 - 2024 — McMap. All rights reserved.