This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func makeFormatted(price: String) -> String? { | |
// Convert Input Value To Number | |
let inputFormatter = NumberFormatter() | |
inputFormatter.locale = Locale(identifier: "en") // if you expect something like '3.14' | |
inputFormatter.allowsFloats = true | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var glossyView: GlossyView! | |
override func viewDidLoad() { |