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
// | |
// FacebookAuth.swift | |
// GitHub: ethanhuang13 | |
// Twitter: @ethanhuang13 | |
import AuthenticationServices | |
import SafariServices | |
/* | |
Updated: |
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 | |
extension Locale { | |
func localizedCurrencySymbol(forCurrencyCode currencyCode: String) -> String? { | |
guard let languageCode = languageCode, let regionCode = regionCode else { return nil } | |
/* | |
Each currency can have a symbol ($, £, ¥), | |
but those symbols may be shared with other currencies. | |
For example, in Canadian and American locales, |