Skip to content
View SegueHandlerType.swift
import UIKit
/**
* A protocol that represents a segue identifier in the storyboard. Every view controller that
* inherits this protocol should define the *SegueIdentifier* enum to be of type *String*, and
* there should be a case name that **exactly** matches what is in the storyboard.
*
* ```swift
* class SomeViewController : UIViewController, SegueHandlerType {
* enum SegueIdentifier : String {
View NSManagedObjectContext.swift
//
// NSManagedObjectContext.swift
// TeamKnect
//
// Created by Scott Grosch on 8/7/15.
// Copyright (c) 2015 Gargoyle Software, LLC. All rights reserved.
//
import UIKit
import CoreData
View GSPhotoPicker.swift
//
// GSPhotoPicker.swift
// TeamKnect
//
// Created by Scott Grosch on 10/18/14.
// Copyright (c) 2014 Gargoyle Software, LLC. All rights reserved.
//
import UIKit
View BoxedSet
// Set<T> is a struct in Swift, meaning it passes by value, not reference.
// I had to create this so I could pass a Set to another view controller
// and have it actually modify the Set on the original view controller as
// there was only a Back button, not an OK/Done button in the interface.
func ==<T : Hashable>(lhs: BoxedSet<T>, rhs: BoxedSet<T>) -> Bool {
return lhs.set == rhs.set
}
final class BoxedSet<T : Hashable> : Hashable, CollectionType, ArrayLiteralConvertible {
View CoreDataFetchController
//
// CoreDataFetchController.swift
//
// Created by Scott Grosch on 12/18/14.
// Copyright (c) 2014 Gargoyle Software, LLC. All rights reserved.
//
import CoreData
final class CoreDataFetchController<T : NSManagedObject> {
View GSRegex.swift
import Foundation
public protocol GSRegularExpressionMatchable {
func match(regex: GSRegex) -> Bool
func match(regex: NSRegularExpression) -> Bool
}
public class GSRegex: StringLiteralConvertible {
let regex: NSRegularExpression?
Something went wrong with that request. Please try again.