Skip to content

Instantly share code, notes, and snippets.

@skynetrmz
skynetrmz / AppDelegate.swift
Created October 5, 2019 23:38 — forked from bih/AppDelegate.swift
iOS SDK Quick Start
//
// AppDelegate.swift
// iOS SDK Quick Start
//
// Created by Spotify on 14/06/2018.
// Copyright © 2018 Spotify for Developers. All rights reserved.
//
import UIKit
@anelad
anelad / CanPerformSegue.swift
Created January 15, 2018 20:26
Swift 4 implementation for checking if segue with identifier exists.
import UIKit
extension UIViewController {
/**
Checks whether controller can perform specific segue or not.
- parameter identifier: Identifier of UIStoryboardSegue.
*/
func canPerformSegue(withIdentifier identifier: String) -> Bool {
//first fetch segue templates set in storyboard.