Skip to content

Instantly share code, notes, and snippets.

View martinlexow's full-sized avatar

Martin Lexow martinlexow

View GitHub Profile
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var glossyView: GlossyView!
override func viewDidLoad() {
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
import SwiftUI
import PlaygroundSupport
struct CustomTabButton: View {
init(_ caption: LocalizedStringKey, systemImage: String) {