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
fileprivate func showContactEmail() { | |
if MFMailComposeViewController.canSendMail() { | |
HSAnalytics.setEventForTypes(withLog: HSA.hamburgerContact) | |
let mailComposerVC = MFMailComposeViewController() | |
mailComposerVC.mailComposeDelegate = self | |
mailComposerVC.setToRecipients([AppCons.CONTACTUS]) | |
let iOSVersion = HSUtility.getAppVersion() | |
mailComposerVC.setSubject(AppCons.AppName+" iOS Client Support") | |
let systemVersion = UIDevice.current.systemVersion | |
let model = UIDevice.current.modelName |
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
// | |
// RoundedView.swift | |
// RoundedImageView | |
// | |
// Created by Ranjith Kumar on 12/5/17. | |
// Copyright © 2017 Dash. All rights reserved. | |
// | |
import Foundation | |
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
import UIKit | |
class User { | |
var name = "" | |
} | |
protocol UserBindable: AnyObject { | |
var user: User?{get set} | |
var nameLabel: UILabel!{get} |
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
var envName:String = "" | |
#if Handstand || HandstandLiveDev | |
envName = "Handstand-GoogleService-Info" | |
#elseif HandstandStage | |
envName = "Handstand-Dev-GoogleService-Info" | |
#endif | |
let filePath = Bundle.main.path(forResource: envName, ofType: "plist") | |
FirebaseApp.configure(options: FirebaseOptions.init(contentsOfFile: filePath!)!) |
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
curl -X POST \ | |
https://sandbox.itunes.apple.com/verifyReceipt \ | |
-H 'cache-control: no-cache' \ | |
-H 'postman-token: e3a85b2f-7906-1356-0711-ca248268d870' \ | |
-d '{"receipt-data":"Your receipt data","password":"Your App-Specific Shared Secret"}' |
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 Foundation | |
enum PostType { | |
case text(text:String) | |
case image(image:UIImage) | |
case video(url:URL,duration:TimeInterval) | |
} | |
struct Post { |
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 Foundation | |
enum Gender:Int { | |
case male,female,other | |
} | |
class Department:Hashable,Equatable{ | |
var uid: Int | |
var hashValue: Int { |
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
// | |
// AddressBookHelper.swift | |
// AddressBook | |
// | |
// Created by Ranjith Kumar on 11/03/2017. | |
// Copyright © 2017 F22Labs. All rights reserved. | |
// | |
import Foundation | |
import Contacts |
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 | |
protocol OTPInputViewProtocol:class { | |
func digitsInputViewCompletion() | |
} | |
fileprivate let MAX_COUNT_DOWN_TIME:Int = 120 | |
class ADOTPInputView: UIView,UITextFieldDelegate { | |