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
| internal let DEFAULT_MIME_TYPE = "application/octet-stream" | |
| internal let mimeTypes = [ | |
| "html": "text/html", | |
| "htm": "text/html", | |
| "shtml": "text/html", | |
| "css": "text/css", | |
| "xml": "text/xml", | |
| "gif": "image/gif", | |
| "jpeg": "image/jpeg", |
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
| import UIKit | |
| import StoreKit | |
| //MARK: SKProductsRequestDelegate | |
| extension IAPHelpers : SKProductsRequestDelegate | |
| { | |
| func productsRequest(request: SKProductsRequest, didReceiveResponse response: SKProductsResponse) | |
| { |
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
| // | |
| // UIColor+Hex.swift | |
| // Gist | |
| // | |
| // Created by Alexander Havermale on 5/26/17. | |
| // Copyright © 2017 Alex Havermale. All rights reserved. | |
| // | |
| import UIKit |
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
| // | |
| // UIColor+Hex.swift | |
| // Gist | |
| // | |
| // Created by Alexander Havermale on 5/26/17. | |
| // Copyright © 2017 Alex Havermale. All rights reserved. | |
| // | |
| import UIKit |
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 Dictionary { | |
| func jsonString() -> NSString? { | |
| let jsonData = try? JSONSerialization.data(withJSONObject: self, options: []) | |
| guard jsonData != nil else {return nil} | |
| let jsonString = String(data: jsonData!, encoding: .utf8) | |
| guard jsonString != nil else {return nil} | |
| return jsonString! as NSString | |
| } | |
| } |