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
| From: "User Name" <username@gmail.com> | |
| To: "John Smith" <john@example.com> | |
| Subject: This is a test | |
| Hi John, | |
| I'm sending this mail with curl thru my gmail account. | |
| Bye! |
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
| to.view.center = offsetCenter | |
| container.addSubview(to.view) | |
| UIView.animateWithDuration(transitionDuration(transitionContext), delay: 0.0, usingSpringWithDamping: 1.0, initialSpringVelocity: 0.0, options: .CurveLinear, animations: { | |
| from.view.alpha = 0.5 | |
| to.view.center = from.view.center | |
| }, completion: { | |
| finished in | |
| transitionContext.completeTransition(true) |
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
| let bounds = UIScreen.mainScreen().bounds | |
| let offsetCenter = CGPoint(x: bounds.width / 2, y: bounds.height + 300) |
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
| let from = transitionContext.viewControllerForKey(UITransitionContextFromViewControllerKey)! | |
| let to = transitionContext.viewControllerForKey(UITransitionContextToViewControllerKey)! | |
| let container = transitionContext.containerView()! |
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 Foundation | |
| import UIKit | |
| class PopUpTransition: NSObject, UIViewControllerAnimatedTransitioning { | |
| private var presenting:Bool = false | |
| func transitionDuration(transitionContext: UIViewControllerContextTransitioning?) -> NSTimeInterval { | |
| return 0.4 |
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 PopUpViewController: UIViewController { | |
| @IBOutlet weak var actionButton: UIButton! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Do any additional setup after loading the view. |
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 | |
| @UIApplicationMain class WindowController: UIResponder { | |
| var window: UIWindow? = { | |
| let window = UIWindow(frame: UIScreen.mainScreen().bounds) | |
| window.rootViewController = UINavigationController(rootViewController: ViewController()) | |
| return window | |
| }() | |
| } |
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 BookCell: UITableViewCell { | |
| @IBOutlet weak var redLabel: UILabel! | |
| override func awakeFromNib() { | |
| super.awakeFromNib() | |
| // Initialization code |
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
| // | |
| // Zomato.swift | |
| // BiryaniAF | |
| // | |
| // Created by Prabhu Saitu on 13/05/16. | |
| // Copyright © 2016 Prabhu Saitu. All rights reserved. | |
| // | |
| import Foundation | |
| import Moya |
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
| // | |
| // AppDelegate.swift | |
| // SpotsPugs | |
| // | |
| // Created by Prabhu Saitu on 24/04/16. | |
| // Copyright © 2016 Prabhu Saitu. All rights reserved. | |
| // | |
| import UIKit | |
| import Spots |