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 UIViewController { | |
public func showToast(message : String, seconds: Double = 1.0) { | |
let toast = UIAlertController(title: nil, message: message, preferredStyle: .alert) | |
toast.view.alpha = 0.5 | |
present(toast, animated: true) | |
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + seconds) { | |
toast.dismiss(animated: true) | |
} | |
} |
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
class CustomLabel: UILabel { | |
let edgeInsets: UIEdgeInsets | |
init(frame: CGRect, insets: UIEdgeInsets) { | |
edgeInsets = insets | |
super.init(frame: frame) | |
} | |
convenience init(text: String?, dx: CGFloat, dy: CGFloat) { |
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
class A{ | |
class func classFunction(){ | |
} | |
static func staticFunction(){ | |
} | |
class func classFunctionToBeMakeFinalInImmediateSubclass(){ | |
} | |
} | |
class B: A { |
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
// | |
// QRScannerView.swift | |
// QRCodeReader | |
// | |
// Created by KM, Abhilash a on 08/03/19. | |
// Copyright © 2019 KM, Abhilash. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// PBRevealViewController.swift | |
// PBRevealViewController | |
// | |
// Created by Patrick BODET on 29/06/2016. | |
// Copyright © 2016 iDevelopper. All rights reserved. | |
// | |
import QuartzCore | |
import UIKit | |
import UIKit.UIGestureRecognizerSubclass |
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
// | |
// ScreenRecordingDetector.m | |
// ScreenCaptureDetector | |
// | |
// Created by Abhilash on 29/12/17. | |
// Copyright © 2017 Abhilash. All rights reserved. | |
// | |
#import "ScreenRecordingDetector.h" | |
float const kScreenRecordingDetectorTimerInterval = 1.0; |
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
// | |
// ScreenRecordingDetector.h | |
// ScreenCaptureDetector | |
// | |
// Created by Abhilash on 29/12/17. | |
// Copyright © 2017 Abhilash. All rights reserved. | |
// | |
/* | |
ScreenRecordingDetector checks for screen capturing as well as airplay mirroring |
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 UITextContentType { | |
@available(iOS 10.0, *) | |
public static let name: UITextContentType | |
@available(iOS 10.0, *) | |
public static let namePrefix: UITextContentType | |
@available(iOS 10.0, *) | |
public static let givenName: UITextContentType |
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
// | |
// StoreReviewHelper.swift | |
// Template1 | |
// | |
// Created by Apple on 14/11/17. | |
// Copyright © 2017 Mobiotics. All rights reserved. | |
// | |
import Foundation | |
import StoreKit |
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
{ | |
"applinks": { | |
"apps": [], | |
"details": [ | |
{ | |
"appID": "HKJGHKJG.com.facebook.ios", | |
"paths": [ "NOT /e/*", "*", "/", “/archives/201?/* ] | |
}, | |
{ | |
"appID": "JKHKJJHK.com.twitter.ios", |
NewerOlder