Skip to content

Conversation

@donnacadi
Copy link

Copy link

@swift-student swift-student left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not much to suggest on this one, as it is a small project. You did great, finished all required tasks as well as the stretch goal. Very good job on all of the assignments from the first sprint, Donna!

Comment on lines +41 to +42
let cad = convert(amount)
return String(cad)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name this variable something that is agnostic to the currency being converted to, such as convertedAmount. This way you can switch the currency between mxn and cad or any other currency that you would add in the future.

Comment on lines +3 to +7
var currencyFormatter: NumberFormatter = {
let formatter = NumberFormatter()
formatter.numberStyle = .currency
return formatter
}()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job figuring out the currency formatting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants