repo_name
stringlengths
7
91
path
stringlengths
8
658
copies
stringclasses
125 values
size
stringlengths
3
6
content
stringlengths
118
674k
license
stringclasses
15 values
hash
stringlengths
32
32
line_mean
float64
6.09
99.2
line_max
int64
17
995
alpha_frac
float64
0.3
0.9
ratio
float64
2
9.18
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
larryhou/swift
TexasHoldem/TexasHoldem/PlayerTableViewController.swift
1
1795
// // PlayerTableViewController.swift // TexasHoldem // // Created by larryhou on 12/3/2016. // Copyright © 2016 larryhou. All rights reserved. // import Foundation import UIKit class PlayerTableViewController: UITableViewController { var model: ViewModel! // MARK: segue override func prepare(for seg...
mit
3174e3c37655de9613888f95c7284c21
34.72
135
0.684211
4.92011
false
false
false
false
bourdakos1/Visual-Recognition-Tool
iOS/Visual Recognition/PendingClassifier+CoreDataClass.swift
1
3711
// // PendingClassifier+CoreDataClass.swift // Visual Recognition // // Created by Nicholas Bourdakos on 5/9/17. // Copyright © 2017 Nicholas Bourdakos. All rights reserved. // import Foundation import CoreData import Zip import Alamofire public class PendingClassifier: NSManagedObject { func train(completion...
mit
b5d33c57aed3f4d6b54b68a20d218818
39.769231
161
0.495418
6.062092
false
false
false
false
szk-atmosphere/SAHistoryNavigationViewController
SAHistoryNavigationViewController/SAHistoryNavigationViewController.swift
2
9668
// // SAHistoryNavigationViewController.swift // SAHistoryNavigationViewController // // Created by 鈴木大貴 on 2015/03/26. // Copyright (c) 2015年 鈴木大貴. All rights reserved. // import UIKit @objc public protocol SAHistoryNavigationViewControllerDelegate: NSObjectProtocol { @objc optional func historyControllerDid...
mit
bf3b2743df6ef848fc18ace373387697
42.863636
212
0.701969
6.154337
false
false
false
false
ocrickard/Theodolite
Example/TheodoliteFeed/TheodoliteFeed/AppDelegate.swift
1
2506
// // AppDelegate.swift // TheodoliteFeed // // Created by Oliver Rickard on 10/28/17. // Copyright © 2017 Oliver Rickard. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didF...
mit
db3c55cffc8abba58b8c4b345110dbaa
48.117647
281
0.784431
5.719178
false
false
false
false
dduan/swift
test/expr/unary/selector/fixits.swift
1
7179
// REQUIRES: objc_interop // RUN: rm -rf %t // RUN: mkdir -p %t // RUN: rm -rf %t.overlays // RUN: mkdir -p %t.overlays // FIXME: BEGIN -enable-source-import hackaround // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t.overlays %clang-importer-sdk-path/swift-modules/ObjectiveC.swift // ...
apache-2.0
991d385155fb0307b8924eb33ed31adc
65.472222
219
0.718206
3.758639
false
false
false
false
xsunsmile/zentivity
zentivity/ParseClient.swift
1
2122
// // ParseClient.swift // zentivity // // Created by Eric Huang on 3/6/15. // Copyright (c) 2015 Zendesk. All rights reserved. // import UIKit class ParseClient: NSObject { // Users // Give list of usernames to get users // Used for relations class func usersWithCompletion(usernames: [String...
apache-2.0
8bc506e4a29e716869f97073c2c99788
31.661538
126
0.509425
4.878161
false
false
false
false
rcgilbert/Kava
Kava/Kava/Source/PageObjects/Infrastructure/Elements/Tappable.swift
1
2878
// // Tappable.swift // Kava // // Created by John Hammerlund on 3/8/16. // Copyright © 2016 MINDBODY, Inc. All rights reserved. // import Foundation import XCTest /** A tappable element. The provided generic argument allows us to infer the proceeding block, defaulted to scope of the application */ open class ...
apache-2.0
796644bae1d8740593008b63f3d55f7e
47.762712
225
0.735836
5.146691
false
false
false
false
rogertjr/chatty
Chatty/Chatty/Controller/NavVC.swift
1
12381
// // NavVC.swift // Chatty // // Created by Roger on 01/09/17. // Copyright © 2017 Decodely. All rights reserved. // import UIKit import MapKit import Firebase class NavVC: UINavigationController { //MARK: - Properties @IBOutlet var contactsView: UIView! @IBOutlet var profileView: UIView! @IBOutlet var prev...
gpl-3.0
f242ffdc40aa183a306b159e844af2a2
37.808777
195
0.768498
4.151576
false
false
false
false
festrs/Tubulus
Tubulus/BarCodeCalc.swift
1
7251
// // BarCodeCalc.swift // IBoleto-Project // // Created by Felipe Dias Pereira on 2016-02-28. // Copyright © 2016 Felipe Dias Pereira. All rights reserved. // import Foundation public struct StructBarCode { var barCode: String var barCodeLine: String var bank: String? var value: Float? ...
mit
4f1ae0144e185105f4533b66bd032f47
40.578035
337
0.592325
3.839829
false
false
false
false
jfosterdavis/Charles
Charles/CustomStoreCollectionViewCell.swift
1
10195
// // CustomStoreCollectionViewCell.swift // Charles // // Created by Jacob Foster Davis on 5/11/17. // Copyright © 2017 Zero Mu, LLC. All rights reserved. // import Foundation import UIKit class CustomStoreCollectionViewCell: CommonStoreCollectionViewCell { //label @IBOutlet weak var characterNameLa...
apache-2.0
b0c12ec6e8bf0aeb5c211f8a11fb695e
37.456604
174
0.576293
5.070149
false
false
false
false
davidlivadaru/DLAngle
Tests/DLAngleTests/Validation/TrigonometricArgumentsCheckerTests.swift
1
7713
// // TrigonometricArgumentsCheckerTests.swift // DLAngle // // Created by David Livadaru on 3/11/17. // import XCTest @testable import DLAngle class TrigonometricArgumentsCheckerTests: XCTestCase { static var allTests = [ ("testAsinCheck", testAsinCheck), ("testAsinCheck2", testAsinCheck2), ...
mit
ff49e5be2ce5250cb6b12e88f14cce19
36.441748
119
0.604434
4.296936
false
true
false
false
tdjackey/TipCalculator
TipCalculator/ViewController.swift
1
2136
// // ViewController.swift // TipCalculator // // Created by Main Account on 12/18/14. // Copyright (c) 2014 Razeware LLC. All rights reserved. // import UIKit class UIViewController { } class ViewController: UIKit.UIViewController, UITableViewDataSource { @IBOutlet var totalTextField : UITextField! @IBOut...
mit
a16afe69e93e7b070b5d8584296f3bf9
28.260274
107
0.714419
4.297787
false
false
false
false
carabina/DDMathParser
MathParser/TokenGenerator.swift
2
2042
// // TokenGenerator.swift // DDMathParser // // Created by Dave DeLong on 8/6/15. // // import Foundation internal class TokenGenerator: GeneratorType { typealias Element = Either<RawToken, TokenizerError> private let buffer: TokenCharacterBuffer private let extractors: Array<TokenExtractor> ...
mit
eaba2f592190179688df892b234d677d
26.594595
74
0.566601
5.65651
false
false
false
false
meninsilicium/apple-swifty
Trilean.swift
1
4076
// // author: fabrice truillot de chambrier // created: 09.04.2015 // // license: see license.txt // // © 2015-2015, men in silicium sàrl // public enum Trilean { case False case True case WTF } extension Trilean { public init() { self = .False } public init( _ value: Trilean ) { se...
mpl-2.0
95085d2353801886873cf2a99293186e
17.856481
68
0.575988
2.957879
false
false
false
false
ryanbooker/SwiftCheck
Tutorial.playground/Contents.swift
1
30608
//: Playground - noun: a place where people can play import SwiftCheck //: # Prerequisites //: This tutorial assumes that you have a fairly good grasp of Swift, its syntax, and terms like //: //: * [(Data) Type](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBas...
mit
8e1cc6ee9b2ba2a6518cf2d2c8f2f4b2
40.806011
162
0.695608
3.837241
false
true
false
false
silence0201/Swift-Study
Learn/19.Foundation/NSSet/NSMutableSet类.playground/section-1.swift
1
566
import Foundation var weeksNames = NSMutableSet(capacity: 3) weeksNames.add("星期一") weeksNames.add("星期二") weeksNames.add("星期三") weeksNames.add("星期四") weeksNames.add("星期五") weeksNames.add("星期六") weeksNames.add("星期日") print("星期名字") print("==== ====") for day in weeksNames { print(day) } var A: NSMutableSet = ...
mit
6526189557e3d60b44148da306a596dc
16.37931
42
0.619048
2.446602
false
false
false
false
ello/ello-ios
Specs/Controllers/Onboarding/OnboardingProfileScreenSpec.swift
1
4935
//// /// OnboardingProfileScreenSpec.swift // @testable import Ello import Quick import Nimble class OnboardingProfileScreenSpec: QuickSpec { class MockDelegate: OnboardingProfileDelegate { var didAssignName = false var didAssignBio = false var didAssignLinks = false var didAssig...
mit
75c4e779df757704b13e4e251ba72f66
40.470588
99
0.505167
5.868014
false
false
false
false
igerry/ProjectEulerInSwift
ProjectEulerInSwift/Euler/Problem19.swift
1
2140
import Foundation /* Counting Sundays Problem 19 171 You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rai...
apache-2.0
c3cf79cd2a85e1d7ba158db8237653ae
24.783133
106
0.449065
4.340771
false
false
false
false
internetarchive/wayback-machine-chrome
safari/Wayback Machine Extension/SafariWebExtensionHandler.swift
1
763
// // SafariWebExtensionHandler.swift // Wayback Machine Extension // // Created by Carl on 9/4/21. // import SafariServices import os.log let SFExtensionMessageKey = "message" class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling { func beginRequest(with context: NSExtensionContext) { l...
agpl-3.0
1bdad7b1adc3b15843a81fbfb8f5caaa
28.346154
108
0.720839
4.310734
false
false
false
false
khanxc/KXThumbCircularProgressBar
Example/KXThumbCircular-Example/Pods/KXThumbCircularProgressBar/KXThumbCircularProgressBar/KXThumbCircularProgressView/KXThumbCircularProgressBar.swift
1
11329
// Created by khan import Foundation import UIKit @objc public protocol KXArcNotifyDelegate { @objc optional func arcAnimationDidStart() @objc optional func arcAnimationDidStop() } /// This file creates a resuable component Arc view. let π: CGFloat = CGFloat(M_PI) @IBDesignable public class KXThu...
mit
c7c8356fefbb2093e938fca7d206dd90
40.192727
271
0.645392
4.940253
false
false
false
false
mathcamp/swiftz
swiftz/Future.swift
2
1482
// // Future.swift // swiftz // // Created by Maxwell Swadling on 4/06/2014. // Copyright (c) 2014 Maxwell Swadling. All rights reserved. // import Foundation import swiftz_core public class Future<A> { var value: A? // The resultQueue is used to read the result. It begins suspended // and is resumed once ...
bsd-3-clause
1909d5d8dd68d75cdbfff236a2fc2409
24.118644
84
0.647099
3.545455
false
false
false
false
byu-oit-appdev/ios-byuSuite
byuSuite/Apps/TestingCenter/model/TestingCenterClient.swift
1
1765
// // TestingCenterClient.swift // byuSuite // // Created by Erik Brady on 7/31/17. // Copyright © 2017 Brigham Young University. All rights reserved. // private let TESTS_BASE_URL = "https://api.byu.edu/domains/testingcenter/studenttest/v1/" private let HOURS_BASE_URL = "https://api.byu.edu/domains/testingcenter/...
apache-2.0
50eab5a6b6a7c451ae9a70f92aef71ae
40.023256
133
0.642857
3.911308
false
true
false
false
jamalping/XPUtil
XPUtil/Tool/KVO.swift
1
1683
// // KVO.swift // XPUtilExample // // Created by jamalping on 2018/7/24. // Copyright © 2018年 xyj. All rights reserved. // import Foundation // MARK: KVO:实现了KVO的观察者的自动释放 public class KVO: NSObject { var target: AnyObject? var selector: Selector? var observedObject: NSObject? var keyPath: String? ...
mit
8618ceb0f951648750f135bd54635a76
28.018182
158
0.614662
4.102828
false
false
false
false
maximveksler/Developing-iOS-8-Apps-with-Swift
lesson-014/Trax MapKit/Trax/GPXViewController.swift
2
4386
// // GPXViewController.swift // Trax // // Created by CS193p Instructor. // Copyright (c) 2015 Stanford University. All rights reserved. // import UIKit import MapKit class GPXViewController: UIViewController, MKMapViewDelegate { // MARK: - Outlets @IBOutlet weak var mapView: MKMapView! { didSet...
apache-2.0
624852841c2b1c60541338627ffddca8
32.227273
130
0.599407
5.530895
false
false
false
false
yangchenghu/actor-platform
actor-apps/app-ios/ActorApp/AACollectionViewController.swift
3
1503
// // AACollectionViewController.swift // ActorApp // // Created by Steve Kite on 24.09.15. // Copyright © 2015 Actor LLC. All rights reserved. // import Foundation class AACollectionViewController: AAViewController, UICollectionViewDelegate, UICollectionViewDataSource { var collectionView:UICollectionVi...
mit
1108b6cc4edf1e469c518a1616c0d0cd
30.3125
185
0.696405
5.867188
false
false
false
false
maximkhatskevich/MKHSequence
Setup.playground/Contents.swift
2
6589
import Cocoa import RepoConfig import Mustache import XCEProjectGenerator // MARK: - Global parameters let swiftVersion = "4.0" let tstSuffix = "Tst" let company = ( name: "XCEssentials", identifier: "io.XCEssentials", prefix: "XCE" ) let product = ( name: "OperationFlow", summary: "Lightweigh...
mit
baf869685950526c3e9b457d28ba011f
21.799308
83
0.556837
4.025046
false
false
false
false
einsteinx2/iSub
Classes/Data Model/ContentTypeRepository.swift
1
1860
// // ContentTypeRepository.swift // iSub Beta // // Created by Benjamin Baron on 11/19/17. // Copyright © 2017 Ben Baron. All rights reserved. // import Foundation struct ContentTypeRepository { static let si = ContentTypeRepository() func contentType(contentTypeId: Int64) -> ContentType? { ...
gpl-3.0
28c6eb75073f94eea152107f80f8c004
31.051724
123
0.572351
5.079235
false
false
false
false
iHunterX/SocketIODemo
DemoSocketIO/Utils/Extensions/ObjecttoDict.swift
1
1952
// // ObjecttoDict.swift // DemoSocketIO // // Created by Loc.dx-KeizuDev on 11/16/16. // Copyright © 2016 Loc Dinh Xuan. All rights reserved. // import Foundation @objc protocol Serializable { var jsonProperties:Array<String> { get } func valueForKey(key: String!) -> AnyObject! } struct Serialize { ...
gpl-3.0
e0bc0dfd8a0c069ee6b4b90e97064229
25.726027
87
0.483854
4.758537
false
false
false
false
Sage-Bionetworks/BridgeAppSDK
BridgeAppSDKSample/ActivityTableViewCell.swift
1
2725
// // ActivityTableViewCell.swift // BridgeAppSDK // // Copyright © 2016 Sage Bionetworks. All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain ...
bsd-3-clause
ab2295690291ff84117702c7b64e16cb
37.914286
84
0.725404
5.016575
false
false
false
false
NUKisZ/MyTools
MyTools/MyTools/Class/FirstVC/Controllers/PingViewController.swift
1
2780
// // PingViewController.swift // MyTools // // Created by gongrong on 2017/8/7. // Copyright © 2017年 zhangk. All rights reserved. // import UIKit class PingViewController: BaseViewController { var textFile:UITextField! var pingLabel:UILabel! var pingHost:UILabel! var btn:UIButton! var server...
mit
b05aa9ac275dde760904e26a0545bae4
31.290698
164
0.576161
4.429027
false
false
false
false
keepcalmandcodecodecode/SweetSpinners
Pod/Classes/TwoCirclesSpinner.swift
1
2467
// // TwoCirclesSpinner.swift // Pods // // Created by macmini1 on 28.01.16. // // import Foundation import UIKit class TwoCirclesSpinner:UIView,Spinner{ var smallCircle:CircleView var largeCircle:CircleView func upscaleAnimation()->CABasicAnimation{ let animation = CABasicAnimation() a...
mit
77b9850d69d5046fa36af8dc51b3fec7
36.393939
114
0.684637
4.790291
false
false
false
false
PiasMasumKhan/Swift
SocialFrameworkTwitter/SocialFrameworkTwitter/FirstViewController.swift
32
5574
// // FirstViewController.swift // // Created by Carlos Butron on 11/11/14. // Copyright (c) 2014 Carlos Butron. // // This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public // License as published by the Free Software Foundation, either version 3 of the L...
gpl-3.0
624be876078202fdfb41a5754fb1101f
42.209302
299
0.643703
5.464706
false
false
false
false
ravisun66/Shirtist
iPhone_app_v1/Shirtist/Shirtist/AppDelegate.swift
1
6929
// // AppDelegate.swift // Shirtist // // Created by Ravi Shankar Jha on 06/12/15. // Copyright © 2015 Ravi Shankar Jha. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? // let items = {1: {name: "Formal ...
mit
905e7dade9e535a11851cdc8b2e67364
51.885496
291
0.690676
5.1586
false
false
false
false
TruckMuncher/TruckMuncher-iOS
TruckMuncher/MenuViewController.swift
1
7380
// // MenuViewController.swift // TruckMuncher // // Created by Josh Ault on 10/19/14. // Copyright (c) 2014 TruckMuncher. All rights reserved. // import UIKit import Alamofire import Realm class MenuViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tblMenu: UI...
gpl-2.0
f3f0ce0fea1a170accb049d8303b2620
39.108696
158
0.675474
5.241477
false
false
false
false
benlangmuir/swift
stdlib/public/core/ObjectIdentifier.swift
9
3988
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
53a349f4de9e00283fa5a2ef582ae532
31.958678
80
0.650702
4.521542
false
false
false
false
pointfreeco/swift-web
Sources/Css/Common.swift
1
1874
public protocol Other { static func other(_ other: Value) -> Self } func eq<A: Equatable>(lhsTuples xs: [(A, A)], rhsTuples ys: [(A, A)]) -> Bool { return xs.count == ys.count && zip(xs, ys).reduce(true) { accum, tuple in accum && tuple.0 == tuple.1 } } public protocol Inherit { static var inherit: Self { g...
mit
e47cc1a08b9e57b39f4f23b7a3279c6d
18.726316
79
0.653148
3.562738
false
false
false
false
dfucci/iTunesSearch
iTunesSearch/Album.swift
1
2669
// // Album.swift // iTunesSearch // // Created by Davide Fucci on 19/10/14. // Copyright (c) 2014 Davide Fucci. All rights reserved. // import Foundation class Album { var title: String var price: String var thumbnailImageURL: String var largeImageURL: String var itemURL: String var colle...
apache-2.0
941b3edc8d0219bad6207c0dc64517ec
37.695652
192
0.536531
5.2643
false
false
false
false
LGKKTeam/FlagKits
FlagKits/Classes/FKCountryPicker.swift
1
4404
// // FKCountryPicker.swift // FlagKits // // Created by Nguyen Minh on 3/29/17. // Copyright © 2017 LGKKTeam. All rights reserved. // import UIKit import libPhoneNumber_iOS protocol FKCountryPickerDelegate: class { func countryPhoneCodePicker(picker: FKFKCountryPicker, didSele...
mit
98c77f852478f90a9399308e741b34e1
30.22695
110
0.55871
5.125728
false
false
false
false
coderZsq/coderZsq.target.swift
StudyNotes/Swift Note/LiveBroadcast/Client/LiveBroadcast/Classes/Home/HomeViewController.swift
1
2858
// // HomeViewController.swift // LiveBroadcast // // Created by 朱双泉 on 2018/12/10. // Copyright © 2018 Castie!. All rights reserved. // import UIKit class HomeViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() setupUI() } } extension HomeViewCo...
mit
7e59ba063962f8cfddb07159e1c1900c
33.802469
148
0.647393
4.706177
false
false
false
false
nextcloud/ios
iOSClient/Account Request/NCAccountRequest.swift
1
7818
// // NCAccountRequest.swift // Nextcloud // // Created by Marino Faggiana on 26/02/21. // Copyright © 2021 Marino Faggiana. All rights reserved. // // Author Marino Faggiana <marino.faggiana@nextcloud.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GN...
gpl-3.0
5a4b47313a514ee451faa78476a3d921
30.906122
219
0.647563
5.07268
false
false
false
false
dfsilva/actor-platform
actor-sdk/sdk-core-ios/ActorSDK/Sources/ActorCore/ActorCoreExt.swift
1
19016
// // Copyright (c) 2014-2016 Actor LLC. <https://actor.im> // import Foundation import AVFoundation public var Actor : ACCocoaMessenger { get { return ActorSDK.sharedActor().messenger } } public extension ACCocoaMessenger { public func sendUIImage(_ image: Data, peer: ACPeer, animated:Bool...
agpl-3.0
59f265bbf7e7a71130fb7cf8e6c536b4
34.610487
337
0.579407
4.541677
false
false
false
false
jeremy-w/ImageSlicer
Image Slicer.playground/Contents.swift
1
6500
//: Playground - noun: a place where people can play //: Copyright (c) 2016 Jeremy W. Sherman. Released with NO WARRANTY. //: //: This Source Code Form is subject to the terms of the Mozilla Public //: License, v. 2.0. If a copy of the MPL was not distributed with this //: file, You can obtain one at http://mozilla.or...
mpl-2.0
68b89eb2bf9e0581a0c0b93bf049d5e1
28.680365
134
0.607077
4.445964
false
false
false
false
csnu17/My-Swift-learning
collection-data-structures-swift/DataStructures/SetViewController.swift
1
3557
// // SetViewController.swift // DataStructures // // Created by Ellen Shapiro on 8/2/14. // Copyright (c) 2014 Ray Wenderlich Tutorial Team. All rights reserved. // import UIKit private enum SetVCRow: Int { case creation = 0, add1Object, add5Objects, add10Objects, remove1Object, remove5Objects, rem...
mit
2b6c834267c879a732ef5805ab7c0e3f
31.935185
107
0.729547
4.219454
false
false
false
false
magnetsystems/message-samples-ios
QuickStart/QuickStart/PushViewController.swift
1
3089
/* * Copyright (c) 2015 Magnet Systems, Inc. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
apache-2.0
fabb018b87377609d377b21eee675397
33.707865
218
0.647782
5.226734
false
false
false
false
tcliff111/TipR
Tip Calculator/ViewController.swift
1
7535
// // ViewController.swift // Tip Calculator // // Created by Thomas Clifford on 12/5/15. // Copyright (c) 2015 Thomas Clifford. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var billField: UITextField! @IBOutlet weak var totalLabel: UILabel! @IBOutl...
apache-2.0
0773f3b14f74bc0ad4129d39c437db95
36.487562
98
0.592037
4.533694
false
false
false
false
nearspeak/iOS-SDK
NearspeakKit/NSKLinkedTag.swift
1
2185
// // NSKLinkedTag.swift // NearspeakKit // // Created by Patrick Steiner on 21.01.15. // Copyright (c) 2015 Mopius OG. All rights reserved. // import Foundation // NSCoding Keys let keyNSKLinkedTagId = "linkedTag_id" let keyNSKLinkedTagName = "linkedTag_name" let keyNSKLinkedTagIdentifier = "linkedTag_identifier...
lgpl-3.0
f3a64ba28117c70459d39977549a9796
28.540541
91
0.666819
4.169847
false
false
false
false
Johennes/firefox-ios
Utils/FaviconFetcher.swift
1
10130
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Storage import Shared import Alamofire import XCGLogger import Deferred import WebImage import Fuzi privat...
mpl-2.0
2dc7d249f50d727469b4cf2d58417921
39.512
176
0.567141
5.247668
false
false
false
false
SECH-Tag-EEXCESS-Browser/iOSX-App
SechQueryComposer/SechQueryComposer/Connection.swift
1
944
// // Connection.swift // SechQueryComposer // // Copyright © 2015 Peter Stoehr. All rights reserved. // import Foundation class Connection { func post(params : AnyObject, url : String, postCompleted : (succeeded: Bool, data: NSData) -> ()) { let request = NSMutableURLRequest(URL: NSUR...
mit
0dea6d1b285b179fbab368cd15911971
30.466667
113
0.639449
4.860825
false
false
false
false
wangchong321/tucao
WCWeiBo/WCWeiBo/Classes/Model/Main/VieitorView.swift
1
1666
// // VieitorView.swift // WCWeiBo // // Created by 王充 on 15/5/10. // Copyright (c) 2015年 wangchong. All rights reserved. // import UIKit protocol VieitorViewDelegate : NSObjectProtocol { func visitorViewLoginViewDidSelected() func visitorViewRegiesterViewDidSelected() } class VieitorView: UIView { ...
mit
373de748f49b860bbbbff451bc32db70
25.774194
86
0.638554
4.523161
false
false
false
false
teads/TeadsSDK-iOS
MediationAdapters/TeadsSASAdapter/TeadsSASAdapterHelper.swift
1
1955
// // TeadsSASAdapterHelper.swift // TeadsSASAdapter // // Created by Jérémy Grosjean on 06/11/2020. // import TeadsSDK import UIKit @objc public final class TeadsSASAdapterHelper: NSObject { @objc public static func teadsAdSettingsToString(adSettings: TeadsAdapterSettings) -> String? { guard let adSet...
mit
acfb48431b0ae68c340132b17bbe1943
33.263158
126
0.698413
4.227273
false
false
false
false
VeinGuo/VGPlayer
VGPlayer/Classes/VGPlayer.swift
1
16160
// // VGPlayer.swift // VGPlayer // // Created by Vein on 2017/5/30. // Copyright © 2017年 Vein. All rights reserved. // import Foundation import AVFoundation /// play state /// /// - none: none /// - playing: playing /// - paused: pause /// - playFinished: finished /// - error: play failed public enum VGPlayerSta...
mit
5de247b816b122adf78d1b9d9eaf3cb7
33.359574
161
0.603876
5.468676
false
false
false
false
ktmswzw/FeelingClientBySwift
FeelingClient/MVC/LoginViewController.swift
1
5525
// // LoginViewController.swift // FeelingClient // // Created by vincent on 13/2/16. // Copyright © 2016 xecoder. All rights reserved. // import UIKit import IBAnimatable import SwiftyJSON import Alamofire class LoginViewController: DesignableViewController,UITextFieldDelegate { @IBOutlet var usern...
mit
a273db27d184c02981af70dcca5ba413
38.15942
225
0.517209
5.132004
false
false
false
false
GEOSwift/GEOSwift
Sources/GEOSwift/GEOS/WKBConvertible.swift
2
1945
import Foundation import geos public protocol WKBConvertible { func wkb() throws -> Data } protocol WKBConvertibleInternal: WKBConvertible, GEOSObjectConvertible {} extension WKBConvertibleInternal { public func wkb() throws -> Data { let context = try GEOSContext() let writer = try WKBWriter...
mit
0d6d6b9efd4924d04c8ce62efb170e74
35.018519
90
0.731105
4.686747
false
false
false
false
daxrahusen/Eindproject
Social Wall/ContentTextField.swift
1
2485
// // ContentTextField.swift // Social Wall // // Created by Dax Rahusen on 11/01/2017. // Copyright © 2017 Dax. All rights reserved. // import UIKit // Subclass of an UITextField which has the option // for letting an image to the left size of the text class ContentTextField: UITextField { // set a hardcod...
apache-2.0
df46726eab49418eb6358aa08e581f3a
31.25974
91
0.632045
5.090164
false
false
false
false
sendyhalim/Yomu
YomuTests/Models/ChapterSpec.swift
1
1614
// // ChapterSpec.swift // Yomu // // Created by Sendy Halim on 6/11/16. // Copyright © 2016 Sendy Halim. All rights reserved. // import Argo import Nimble import Quick @testable import Yomu class ChapterSpec: QuickSpec { override func spec() { describe("[Argo Decodable] When decoded from json") { co...
mit
ff93fb4d1ec1bb32252f84a17d236ac4
22.720588
98
0.556727
3.934146
false
false
false
false
koutalou/iOS-CleanArchitecture
iOSCleanArchitectureTwitterSample/Domain/UseCase/TimelineUseCase.swift
1
2532
// // TimelineUseCase.swift // iOSCleanArchitectureTwitterSample // // Created by Kodama.Kotaro on 2015/12/21. // Copyright © 2015年 koutalou. All rights reserved. // import Foundation import RxSwift import Accounts // MARK: - Interface protocol TimelineUseCase { func loadTimelines() -> Observable<TimelinesMod...
mit
16bbd64988cb5a30936f442869f0b819
42.603448
155
0.701463
5.171779
false
false
false
false
lerigos/music-service
iOS_9/Pods/ImagePicker/Source/BottomView/ImageStack.swift
1
1045
import UIKit import Photos public class ImageStack { public struct Notifications { public static let imageDidPush = "imageDidPush" public static let imageDidDrop = "imageDidDrop" public static let stackDidReload = "stackDidReload" } public var assets = [PHAsset]() private let imageKey = "image" ...
apache-2.0
0efb0ec88800fbf4ad9b05f6e2fcfadf
30.666667
132
0.743541
4.50431
false
false
false
false
certainly/Caculator
Smashtag/Smashtag/SmashTweetersTableViewController.swift
1
2221
// // SmashTweetersTableViewController.swift // Smashtag // // Created by certainly on 2017/4/1. // Copyright © 2017年 certainly. All rights reserved. // import UIKit import CoreData class SmashTweetersTableViewController: FetchedResultsTableViewController { var mention: String? { didSet { updateUI() } } v...
mit
c40e9332fd17ea301456deb90cb854ce
45.208333
173
0.690261
5.231132
false
false
false
false
AdaptiveMe/adaptive-arp-darwin
adaptive-arp-rt/Source/Sources.Impl/MessagingDelegate.swift
1
7185
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
apache-2.0
de52577fc708689538f026fc77bca8e2
34.384236
221
0.630238
5.269993
false
false
false
false
owncloud/ios
Owncloud iOs Client/Tabs/SettingTab/Account/ManageAccounts.swift
1
4989
// // ManageAccounts.swift // Owncloud iOs Client // // Created by Noelia Alvarez on 13/07/2017. // // /* Copyright (C) 2017, ownCloud GmbH. This code is covered by the GNU Public License Version 3. For distribution utilizing Apple mechanisms please see https://owncloud.org/contribute/iOS-license-exception/ Yo...
gpl-3.0
c11d44e29fbe5d9d2906549f4b381e48
35.152174
140
0.586089
4.778736
false
false
false
false
Raiden9000/Sonarus
ChatCell.swift
1
7272
// // ChatCell.swift // Sonarus // // Created by Christopher Arciniega on 5/3/17. // Copyright © 2017 HQZenithLabs. All rights reserved. // import UIKit class ChatCell: UITableViewCell { let chatCellLabel : UILabel = UILabel() var cellText : NSMutableAttributedString! //private let bubbleImageView = U...
mit
cffdb5c3a43b5396a2e8873960ac219f
44.72956
156
0.69564
5.171408
false
false
false
false
iXieYi/Weibo_DemoTest
Weibo_DemoTest/Weibo_DemoTest/PicturePicker/PicturePickerCollection.swift
1
8432
// // PicturePickerCollection.swift // 照片选择 // // Created by 谢毅 on 17/1/7. // Copyright © 2017年 xieyi. All rights reserved. // import UIKit //可重用cell private let PicturePickerCellId = "PicturePickerCellId" //最大选择照片数量 - 开发测试到所有边界到- 建议先将临界值设置小一些 private let PicturePickerMaxCount = 8 //照片选择控制器 class PicturePickerColl...
mit
f6829442c2d64459bc2a7ab8fdfe5b67
27.458167
140
0.666247
4.303012
false
false
false
false
itsaboutcode/WordPress-iOS
WordPress/Classes/ViewRelated/Jetpack/Jetpack Scan/JetpackScanHistoryCoordinator.swift
2
5660
import Foundation class JetpackScanHistoryCoordinator { private let service: JetpackScanService private let view: JetpackScanHistoryView private(set) var model: JetpackScanHistory? let blog: Blog // Filtering var activeFilter: Filter = .all let filterItems = [Filter.all, .fixed, .ignored...
gpl-2.0
5cc61ac664d31edf9d999d8c9755798e
25.698113
103
0.55265
5.192661
false
false
false
false
poolqf/FillableLoaders
Source/SpikeLoader.swift
4
1930
// // SpikeLoader.swift // PQFFillableLoaders // // Created by Pol Quintana on 2/8/15. // Copyright (c) 2015 Pol Quintana. All rights reserved. // import Foundation import UIKit open class SpikeLoader: FillableLoader { /// Height of the spike open var spikeHeight: CGFloat = 10.0 internal ove...
mit
70cdbe3402b751a6b530d79bc622e886
25.081081
91
0.564767
4.063158
false
false
false
false
Shivam0911/IOS-Training-Projects
Delegation Sir Example/Delegation/ViewController.swift
1
3002
// // ViewController.swift // Delegation // // Created by Gurdeep on 03/02/17. // Copyright © 2017 Gurdeep. All rights reserved. // import UIKit class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet weak var carsTableView: UITableView! let cars : [[String:Any...
mit
ff62c087f49941aed5da84e42aa23baa
28.135922
118
0.610796
4.855987
false
false
false
false
Ramesh-P/on-the-spot
On the Spot/PlaceTabBarController+Helper.swift
1
1527
// // PlaceTabBarController+Helper.swift // On the Spot // // Created by Ramesh Parthasarathy on 5/16/17. // Copyright © 2017 Ramesh Parthasarathy. All rights reserved. // import Foundation import UIKit import CoreData // MARK: PlaceTabBarController+Helper extension PlaceTabBarController { // MARK: Class...
mit
1bac8bbdc4f5c5fbc25d024a30da6023
29.52
145
0.657929
5.05298
false
false
false
false
curoo/ios-keychain
ConfidoIOS/KeyChainItem.swift
3
5431
// // KeyChainItem.swift // ExpendSecurity // // Created by Rudolph van Graan on 18/08/2015. // // import Foundation import Security // Update -> Add writers for functions, populate separate dictionary, something calls update /** Abstract Item that has a securityClass and attributes. Two classes derive from it....
mit
436de29e05951f4de542e123a7322eee
38.642336
273
0.71902
5.128423
false
false
false
false
thatseeyou/SpriteKitExamples.playground
Pages/BouncingBall.xcplaygroundpage/Contents.swift
1
3219
/*: ### Edge에 physics body를 설정할 수 있다. - Scene의 경계에 physics body를 설정 - Gravity의 영향을 받지 않게 설정 - physicsWorld.speed를 이용해서 simulation 속도를 조절 */ import UIKit import SpriteKit class GameScene: SKScene { override func didMove(to view: SKView) { // SKScene의 경계에 physicsbody 설정 self.physicsBody = SKPhys...
isc
2b99e27feb16440c90d742248d7c8e78
32.37234
146
0.612369
3.970886
false
false
false
false
jyunderwood/Mazing-Swift
Mazing.playground/Sources/BinaryTreeMaze.swift
1
715
// // BinaryTreeMaze.swift // Mazing // // Created by Jonathan on 7/17/15. // Copyright © 2015 Jonathan Underwood. All rights reserved. // import Foundation public class BinaryTreeMaze { public static func on(grid: Grid) { grid.eachCell { cell in var neighbors = [Cell]() if let...
mit
6283ddc140b672d17f132289c2ac97b1
27.56
82
0.595238
4.056818
false
false
false
false
AceWangLei/BYWeiBo
BYWeiBo/AppDelegate.swift
1
4531
// // AppDelegate.swift // BYWeiBo // // Created by wanglei on 16/1/25. // Copyright © 2016年 lit. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOpti...
apache-2.0
32ecb1b2b5853a2f7b2208d1e6e14a0b
36.618182
285
0.673997
5.244613
false
false
false
false
Irvel/Actionable-Screenshots
ActionableScreenshots/ActionableScreenshots/AllScreenshotsViewController.swift
1
12918
// // SecondViewController.swift // ActionableScreenshots // // Created by Jesus Galvan on 10/21/17. // Copyright © 2017 Jesus Galvan. All rights reserved. // import UIKit import Photos import RealmSwift // Collection depending on environment #if (arch(i386) || arch(x86_64)) && os(iOS) // Simulator private le...
gpl-3.0
e846164cfc7846e9b3f48426fb6fe49e
38.142424
208
0.655957
5.565274
false
false
false
false
cohena100/Shimi
Shimi/AppDelegate.swift
1
3286
// // AppDelegate.swift // Shimi // // Created by Pango-mac on 20/05/2017. // Copyright © 2017 TsiliGiliMiliTili. All rights reserved. // import UIKit import SwiftyBeaver @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIA...
mit
c4d0e3a5969a967a9e0f8be3130de605
40.0625
285
0.703196
5.230892
false
false
false
false
FabrizioBrancati/BFKit-Swift
Example/BFKitExample/AppDelegate.swift
1
4955
// // AppDelegate.swift // BFKitDemo // BFKit // // The MIT License (MIT) // // Copyright (c) 2015 - 2018 Fabrizio Brancati. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software with...
mit
353f0749e619e2369f00f49245217c53
44.87963
285
0.636731
5.188482
false
false
false
false
sjf0213/DingShan
DingshanSwift/DingshanSwift/ForumFloorData.swift
1
1556
// // ForumFloorData.swift // DingshanSwift // // Created by song jufeng on 15/9/9. // Copyright (c) 2015年 song jufeng. All rights reserved. // import Foundation class ForumFloorData : NSObject { var floorId:Int = 0 var contentText:String = "" var isLordFloor:Bool = false var rowHeight:CGFloat...
mit
b1c3d1eed13a1b74d9896341dba28238
26.105263
178
0.580311
4.475362
false
false
false
false
wikimedia/wikipedia-ios
WMF Framework/CacheDBWriting.swift
1
4940
import Foundation enum SaveResult { case success case failure(Error) } enum CacheDBWritingResultWithURLRequests { case success([URLRequest]) case failure(Error) } enum CacheDBWritingResultWithItemAndVariantKeys { case success([CacheController.ItemKeyAndVariant]) case failure(Error) } enum Ca...
mit
3755d6c35a5ef9342deb5c260706c6dc
38.206349
157
0.673279
4.935065
false
false
false
false
mleiv/MEGameTracker
MEGameTracker/Views/Common/Data Rows/Related Missions/RelatedMissionsView.swift
1
2922
// // RelatedMissionsView.swift // MEGameTracker // // Created by Emily Ivie on 5/22/16. // Copyright © 2016 urdnot. All rights reserved. // import UIKit final public class RelatedMissionsView: SimpleArrayDataRow { lazy var dummyMissions: [Mission] = { if let mission = Mission.getDummy() { return [mission]...
mit
a7891a5e804ecff6b828688ca18da730
35.061728
112
0.681274
4.327407
false
false
false
false
Srinija/SAGeometry
Example/SAGeometry/ViewController.swift
1
13925
// // ViewController.swift // SwiftGeometry // // Created by Srinija on 09/09/17. // Copyright © 2017 Srinija. All rights reserved. // import UIKit import SAGeometry class ViewController: UIViewController { let geometry = SAGeometry() @IBOutlet weak var quadStatus: UILabel! @IBOutlet weak va...
mit
4e113d4222c532240f7d48d1a0c9ce27
34.979328
311
0.546395
4.624377
false
false
false
false
swift102016team5/mefocus
MeFocus/MeFocus/AppDelegate.swift
1
7914
// // AppDelegate.swift // MeFocus // // Created by Enta'ard on 11/15/16. // Copyright © 2016 Group5. All rights reserved. // import UIKit import CoreData import UserNotifications let returnNotification = "returnToApp" let enterForegroundNotification = "appWillEnterForeground" let saveCurrentTimeNotification = "s...
mit
70141f3930c4289637f83632806f4ee2
42.718232
285
0.647795
5.680546
false
false
false
false
bradhilton/Table
Table/UIWindow.swift
1
1965
// // UIWindow.swift // Table // // Created by Bradley Hilton on 7/31/18. // Copyright © 2018 Brad Hilton. All rights reserved. // extension UIWindow { public var keyboardLayoutGuide: UILayoutGuide { return storage[\.keyboardLayoutGuide, default: KeyboardLayoutGuide(self)] } } private cl...
mit
9edab8a365c6472e185619454740ef4c
34.071429
120
0.61609
5.759531
false
false
false
false
jsclayton/swatches
Swatches WatchKit Extension/InterfaceController.swift
1
4393
// // InterfaceController.swift // Swatches WatchKit Extension // // Created by John Clayton on 11/20/14. // Copyright (c) 2014 Code Monkey Labs LLC. All rights reserved. // import WatchKit import Foundation import MultipeerConnectivity class InterfaceController: WKInterfaceController, MCNearbyServiceBrowserDeleg...
mit
e4bd8ca0eb222502415a103061df7fff
32.792308
176
0.672433
5.344282
false
false
false
false
liuduoios/HLDBadgeControls
HLDBadgeControls/HLDBadgeView.swift
1
1553
// // HLDBadgeView.swift // HLDBadgeControlsDemo // // Created by 刘铎 on 15/9/9. // Copyright © 2015年 Derek Liu. All rights reserved. // import UIKit public class HLDBadgeView: UILabel { struct Constants { static let frame = CGRect(x: 0, y: 0, width: 20, height: 20) static let defaultBackg...
mit
c3e8c8b8a2264fb8d2ade5f4e46a42a8
24.766667
112
0.540103
4.282548
false
false
false
false
ilyahal/VKMusic
VkPlaylist/TableViewCellIdentifiers.swift
1
3572
// // TableViewCellIdentifiers.swift // VkPlaylist // // MIT License // // Copyright (c) 2016 Ilya Khalyapin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, ...
mit
437db0cfadfef7fbac322c1b5ccf8c9c
42.602941
82
0.734143
3.962567
false
false
false
false
OctMon/OMExtension
OMExtensionDemo/OMExtensionDemo/AppDelegate.swift
1
4073
// // AppDelegate.swift // OMExtensionDemo // // The MIT License (MIT) // // Copyright (c) 2016 OctMon // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includ...
mit
0434765e4a11f7b087255c64eecb5ec2
42.287234
285
0.710002
5.144121
false
false
false
false
benlangmuir/swift
test/SourceKit/Misc/Inputs/errors-a.swift
14
1945
this file has a _bunch_ of errors, but we want to generate the module anyway! public typealias InvalidAlias = undefined public class InvalidClass: undefined, InvalidProtocol { public var classMemberA: undefined public init(param1: undefined, param2: undefined) { undefined } public convenience init() { ...
apache-2.0
31b0f0f7fd379d9983b150e331f44798
19.260417
68
0.687918
4.129512
false
false
false
false
bitjammer/swift
test/SILGen/witness_same_type.swift
1
1369
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s // RUN: %target-swift-frontend -emit-ir %s protocol Fooable { associatedtype Bar func foo<T: Fooable where T.Bar == Self.Bar>(x x: T) -> Self.Bar } struct X {} // Ensure that the protocol witness for requirements with same-type constraints // is set...
apache-2.0
ee4787c424fd74b6e7abad2d78a13c7d
38.911765
320
0.678703
2.89339
false
false
false
false
AppriaTT/Swift_SelfLearning
Swift/swift16 slideMenu/swift16 slideMenu/TransitionManager.swift
1
2880
// // TransitionManager.swift // swift16 slideMenu // // Created by Aaron on 16/7/18. // Copyright © 2016年 Aaron. All rights reserved. // import UIKit @objc protocol TransitionManagerDelegate { func dismiss() } class TransitionManager: NSObject, UIViewControllerAnimatedTransitioning, UIViewControlle...
mit
bf4473802be6306c1ab7210041a8d915
33.54878
217
0.639605
6.497706
false
false
false
false
fakerabbit/LucasBot
LucasBot/LoginVC.swift
1
1916
// // LoginVC.swift // LucasBot // // Created by Mirko Justiniano on 1/16/17. // Copyright © 2017 LB. All rights reserved. // import Foundation import UIKit class LoginVC: BotViewController { lazy var loginView:LoginView! = { let frame = UIScreen.main.bounds let v = LoginView(frame: frame...
gpl-3.0
adfa784b70a6d3c16d7f20898d5c6756
27.58209
104
0.502872
5.471429
false
false
false
false
keith/radars
LazyCollectionEvaluatedMultipleTimes/LazyCollectionEvaluatedMultipleTimes.swift
1
527
func g(string: String) -> String { let result = string == "b" ? "hi" : "" print("Called with '\(string)' returning '\(result)'") return result } public extension CollectionType { public func find(includedElement: Generator.Element -> Bool) -> Generator.Element? { if let index = self.indexOf(inc...
mit
df1b469ab205fe4638ddeb9fe5f10bea
21.913043
88
0.552182
3.609589
false
false
false
false
ninewine/SaturnTimer
SaturnTimer/View/Home/STDialPlateSliderView.swift
1
6793
// // STDialPlateSliderView.swift // SaturnTimer // // Created by Tidy Nine on 2/22/16. // Copyright © 2016 Tidy Nine. All rights reserved. // import UIKit import QorumLogs import ReactiveCocoa import ReactiveSwift import pop class STDialPlateSliderView: UIView { var active: Bool = false var enabled: Bool ...
mit
b00115f07cbf5a5549dcda95c309d6b9
31.811594
159
0.672261
4.14399
false
false
false
false
Wolox/wolmo-core-ios
WolmoCore/Extensions/UIKit/UIView/GestureRecognizers/PanRecognizer.swift
1
2545
// // PanRecognizer.swift // WolmoCore // // Created by Gabriel Mazzei on 26/12/2018. // Copyright © 2018 Wolox. All rights reserved. // import Foundation public extension UIView { // In order to create computed properties for extensions, we need a key to // store and access the stored property f...
mit
c04bdead9c12af75232219fdfa46d8bf
40.032258
148
0.683569
5.943925
false
false
false
false
yannickl/Cocarde
Cocarde/DefaultLayer.swift
1
4058
/* * Cocarde * * Copyright 2015-present Yannick Loriot. * http://yannickloriot.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation ...
mit
1ec68081fc9dc3142c354c64357b164e
33.982759
121
0.66412
4.574972
false
false
false
false
welbesw/easypost-swift
Pod/Classes/EasyPostShipment.swift
1
5015
// // EasyPostShipment.swift // Pods // // Created by William Welbes on 10/5/15. // // import Foundation public struct EasyPostShipmentMessage { public var carrier:String = "" public var message:String = "" } open class EasyPostShipment { open var id:String? open var mode:String? ope...
mit
d417a88bf692d371b22bcede671bdf16
31.354839
88
0.575673
5.117347
false
false
false
false
eMdOS/AirPlay
Sources/AirPlay.swift
1
7496
// // AirPlay.swift // AirPlay // // Created by eMdOS on 1/12/16. // // import Foundation import MediaPlayer import AVFoundation public extension Notification.Name { /// Notification sent everytime AirPlay availability changes. public static let airplayAvailabilityChangedNotification = Notification.Name("A...
mit
a66e8fb1dd2d21cb33bbda6a3a35c2d4
28.864542
164
0.640875
5.068289
false
false
false
false
v2panda/DaysofSwift
swift2.3/My-SpotifyVideoBackground/My-SpotifyVideoBackground/ViewController.swift
1
939
// // ViewController.swift // My-SpotifyVideoBackground // // Created by Panda on 16/2/25. // Copyright © 2016年 v2panda. All rights reserved. // import UIKit class ViewController: VideoSplashViewController { override func viewDidLoad() { super.viewDidLoad() setupVideoBackground() } ...
mit
05ae18509076d4195e48fa15f3b5a7c1
21.285714
108
0.632479
5.171271
false
false
false
false
beepscore/ShuffleSwift
ShuffleSwift/Node.swift
1
2416
// // Node.swift // ShuffleSwift // // Created by Steve Baker on 12/28/15. // Copyright © 2015 Beepscore LLC. All rights reserved. // import Foundation class Node: NSObject { /** The partial shuffledString obtained by descending the node tree, * drawing the next matching available character from string0...
mit
d979eddb494d82167abb18233d280472
27.411765
124
0.561077
4.185442
false
false
false
false
lacklock/ResponseMock
ResponseMock/ResponseMock/ResponseMockManager.swift
1
3596
// // MockConfig.swift // RequestDemo // // Created by 卓同学 on 2017/5/15. // Copyright © 2017年 卓同学. All rights reserved. // import Foundation public class ResponseMockManager { /// start mock service /// /// - Parameters: /// - inBackground: should load mock files asynchronous, defalut is **...
mit
a37935cf6505a76cddb35c1c9e86e2c5
37.095745
156
0.550126
5.376877
false
true
false
false
grantmagdanz/SnapBoard
Keyboard/KeyboardKeyBackground.swift
2
10567
// // KeyboardKeyBackground.swift // TransliteratingKeyboard // // Created by Alexei Baboulevitch on 7/19/14. // Copyright (c) 2014 Apple. All rights reserved. // import UIKit // This class does not actually draw its contents; rather, it generates bezier curves for others to use. // (You can still move it around,...
bsd-3-clause
9890d36f3109b12f6dbacbca98bcc5b1
36.077193
212
0.566859
5.226014
false
false
false
false
Awalz/ark-ios-monitor
ArkMonitor/Settings/SettingsCurrencyTableViewCell.swift
1
3132
// Copyright (c) 2016 Ark // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, // publish, distribute, ...
mit
6287131f272e51f5e7dafbbfdb05d545
40.76
137
0.679119
4.825886
false
false
false
false
dkarsh/SwiftGoal
SwiftGoal/Helpers/Extensions.swift
2
2928
// // Extensions.swift // SwiftGoal // // Created by Martin Richter on 23/06/15. // Copyright (c) 2015 Martin Richter. All rights reserved. // import ReactiveCocoa import Result extension Array { func difference<T: Equatable>(otherArray: [T]) -> [T] { var result = [T]() for e in self { ...
mit
1023262ae7ae846e84ee8db920dab521
29.821053
106
0.605874
5.005128
false
false
false
false
krzyzanowskim/Natalie
Sources/natalie/main.swift
1
881
// // main.swift // Natalie // // Created by Marcin Krzyzanowski on 07/08/16. // Copyright © 2016 Marcin Krzyzanowski. All rights reserved. // import Foundation func printUsage() { print("Usage:") print("natalie <storyboard-path or directory>") } if CommandLine.arguments.count == 1 { printUsage() ...
mit
5f684abfcea261700eea65179da38ccc
21
80
0.671591
3.666667
false
false
false
false