Closed LualdiD closed 4 years ago
I've just tested with Xcode 12 beta 6
and iOS 14 beta 6
.
Am I seeing something different from what you saw?
This is what I'm seeing:
At the end of the gif I make it work if hourly already have a decimal. I'm not sure why the button works like that but anyway it's there just as a test. My main problem is that when I update the yearly field, the hourlySalary fields always gets round up to 0. For example in the GIF when I type 111 hourly salary become 0.0578125 but I still get 0 in the hourly field, and at 1,111 it should be 0.57 but it rounds it up to 1
I fixed it in the latest release, thanks for letting me know about this issue!
Heres the gif of it working properly:
I'm trying to update CurrencyTextField based on another textfield but it doesn't seems to work well. The problem I'm facing is when I updated hourlySalary to a decimal like 0.02 it always round to 0
Also the button in this view show the decimals in hourlySalary just on the initial state, if I start inputting something in any textFields then it just jumps from 2.0 to 0.0 without showing decimals
` import SwiftUI
struct ContentView: View {
`