This file contains hidden or 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
const pvKey = "xxx" | |
const puKey = "xxx" | |
const baseURL = "https://cloud.iexapis.com/stable" | |
const sheetHeader = [ | |
{title: "Ticker", format: "@"}, | |
{title: "Name", format: "@"}, | |
{title: "Price", format: "$0.00"}, | |
{title: "Change 24h", format: "@"}, | |
{title: "Dividend", format: "$0.00"}, |
This file contains hidden or 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 UIColor { | |
static func system(light: UIColor, dark: UIColor) -> UIColor { | |
guard #available(iOS 13, *) else { return light } | |
return UIColor { traits in | |
switch traits.userInterfaceStyle { | |
case .dark: return dark | |
case .light: return light | |
case .unspecified: return light |