Your First iOS and SwiftUI App 路 Challenge: How To Calculate the Difference | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4919757-your-first-ios-and-swiftui-app/lessons/24

You can use the built-in abs() function :smiley:

@cottonthebutton Thank you for sharing your solution - much appreciated!