Skip to content

Glossary: SwiftUI

money

A custom computed property added to `Double` through an extension that formats a number as a dollar price with two decimals, so `4.75.money` gives `"$4.75"`.

Where the book teaches it

Related terms

extension