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 | |
import GoogleMaps | |
func getShadowMarker() -> GMSMarker { | |
let marker = GMSMarker() | |
let image = UIImageView(image: UIImage(named: "marker")) | |
marker.iconView = image | |
marker.iconView?.contentMode = .center | |
marker.iconView?.bounds.size.width *= 2 |
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 | |
/*: | |
DateComponentsFormatter: A formatter that creates string representations of quantities of time. | |
*/ | |
let dateComponentsFormatter = DateComponentsFormatter() | |
/*: | |
A DateComponentsFormatter can be configured with an array of NSCalendarUnits. These components are then used in the output. |
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
{ | |
"currencies": [ | |
{ | |
"symbol": "€", | |
"name": "Euro", | |
"symbol_native": "€", | |
"code": "EUR", | |
"emoji": "🇪🇺" | |
}, | |
{ |
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
extension Color { | |
static let systemRed = Color(UIColor.systemRed) | |
static let systemGreen = Color(UIColor.systemGreen) | |
static let systemTeal = Color(UIColor.systemTeal) | |
static let systemBlue = Color(UIColor.systemBlue) | |
static let systemYellow = Color(UIColor.systemYellow) | |
static let systemOrange = Color(UIColor.systemOrange) | |
static let systemPink = Color(UIColor.systemPink) | |
static let systemPurple = Color(UIColor.systemPurple) | |
static let systemIndigo = Color(UIColor.systemIndigo) |
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
// | |
// Created by Daniel Tavares on 07/05/2021. | |
// | |
import SwiftUI | |
// MARK: - OptionsSet | |
// Blog post https://dev.to/vibrazy/easy-swiftui-view-bindings-using-optionset-and-sourcery-4edb | |
protocol OptionsBinding {} |
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
// | |
// Color+Codable.swift | |
// FirestoreCodableSamples | |
// | |
// Created by Peter Friese on 18.03.21. | |
// | |
import SwiftUI | |
// Inspired by https://cocoacasts.com/from-hex-to-uicolor-and-back-in-swift |