Post

Replies

Boosts

Views

Activity

Comment on error during division please help me
The lines that handle division in the provided code are present in the line that defines the division button in the second line of the ScrollView. Here is the specific line: CalculatorButton(title: "÷", color: electricOrange, action: { buttonTapped("/") }) The function associated with the ÷ split key is buttonTapped("/"), which calls the buttonTapped function with the "/" parameter when the key is pressed. The logic for splitting is implemented in the buttonTapped function itself.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Comment on help me, error during division please help me
Unfortunately I had already tried but it doesn't give me the correct result. example, I make 25/2 which should come out as 12.5 but even with this code it comes out as 12.0
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on error during division please help me
The lines that handle division in the provided code are present in the line that defines the division button in the second line of the ScrollView. Here is the specific line: CalculatorButton(title: "÷", color: electricOrange, action: { buttonTapped("/") }) The function associated with the ÷ split key is buttonTapped("/"), which calls the buttonTapped function with the "/" parameter when the key is pressed. The logic for splitting is implemented in the buttonTapped function itself.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Cannot find 'Email' in scope;Cannot find 'PAssword' in scope;Cannot find 'RsWpassword' in scope
Cannot call value of non-function type 'String'
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23