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
huonw/swift
test/ClangImporter/attr-swift_name_renaming.swift
18
1486
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -typecheck -verify %s import SwiftName func test() { // Function name remapping drawString("hello", x: 3, y: 5) drawString("hello", 3, 5) // expected-error{{missing argument labels 'x:y:' in call}} // Enum name ...
apache-2.0
3b20dbfb0df74d6bd38d4a4dc110aab2
39.162162
137
0.699865
3.423963
false
false
false
false
Yoloabdo/CS-193P
Calculator/Calculator/CalculatorBrain.swift
1
11827
// // CalculatorBrain.swift // Calculator // // Created by abdelrahman mohamed on 1/18/16. // Copyright © 2016 Abdulrhman dev. All rights reserved. // import Foundation /// #### Calcaulator class /// - simply doing all the work /// - class uses recursive method to get operands from a stack class CalculatorBrain ...
mit
f5cc5233a162f4a2d45ae474d97864f6
35.248466
110
0.514472
5.093103
false
false
false
false
wolfposd/Caffeed
FeedbackBeaconContext/FeedbackBeaconContext/FeedbackSheet/Controller/FSViewControllerHelper.swift
1
1862
// // FSViewControllerHelper.swift // FeedbackBeaconContext // // Created by Wolf Posdorfer on 03.11.14. // Copyright (c) 2014 Wolf Posdorfer. All rights reserved. // import Foundation import UIKit public class FSViewControllerHelper : NSObject { public class func registerModuleCells(tableView: UITable...
gpl-3.0
b124415ef23ed003861bf18e6b3f041e
40.4
440
0.722879
4.737913
false
false
false
false
frajaona/LiFXSwiftKit
Sources/LiFXCASSocket.swift
1
2383
/* * Copyright (C) 2016 Fred Rajaona * * 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 applicable law or agre...
apache-2.0
0c46df7019de932ee82573d70fe9075d
31.643836
148
0.668065
4.521822
false
false
false
false
aipeople/PokeIV
Pods/PGoApi/PGoApi/Classes/Unknown6/subFuncH.swift
1
33652
// // subFuncA.swift // Pods // // Created by PokemonGoSucks on 2016-08-10 // // import Foundation public class subFuncH { public func subFuncH(input_: Array<UInt32>) -> Array<UInt32> { var v = Array<UInt32>(count: 471, repeatedValue: 0); var input = input_ v[0] = ~input[7] ...
gpl-3.0
7346f7051ab05e055e2fe5c087ff5ba2
39.890644
102
0.395965
2.4308
false
false
false
false
ABTSoftware/SciChartiOSTutorial
v2.x/Showcase/SwiftUtil/SCIGenericWrapper.swift
2
8447
//****************************************************************************** // SCICHART® Copyright SciChart Ltd. 2011-2018. All rights reserved. // // Web: http://www.scichart.com // Support: support@scichart.com // Sales: sales@scichart.com // // SCIGenericWrapper.swift is part of SCICHART®, High Performance Sc...
mit
0e98dc567f9295d8bc7215389c1f392c
31.232824
91
0.595974
4.970571
false
false
false
false
edmw/Volumio_ios
Volumio/AppDelegate.swift
1
4080
// // AppDelegate.swift // Volumio // // Created by Federico Sintucci on 20/09/16. // Copyright © 2016 Federico Sintucci. All rights reserved. // import UIKit import Fabric import Crashlytics @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func applicati...
gpl-3.0
6d01a407020285bbaa4e6f9c323e4407
33.567797
285
0.695268
5.367105
false
false
false
false
soffes/clock-saver
ClockDemo/Classes/AppDelegate.swift
1
1762
import AppKit import ScreenSaver @NSApplicationMain final class AppDelegate: NSObject { // MARK: - Properties @IBOutlet var window: NSWindow! let view: ScreenSaverView! = { let view = MainView(frame: .zero, isPreview: false) view?.autoresizingMask = [.width, .height] return view }() // MARK: - Initia...
mit
01088fab2063621c0f6f36dcd1ce5be0
24.507246
162
0.738636
4.131455
false
false
false
false
tndatacommons/Compass-iOS
Compass/src/Controller/BadgeController.swift
1
1404
// // BadgeController.swift // Compass // // Created by Ismael Alonso on 6/30/16. // Copyright © 2016 Tennessee Data Commons. All rights reserved. // import UIKit import Nuke class BadgeController: UIViewController{ @IBOutlet weak var imageContainer: UIView! @IBOutlet weak var image: UIImageView! @IB...
mit
c5919039b7355a045ae33ea696771dca
27.06
78
0.593728
4.854671
false
false
false
false
zpz1237/NirSeller
NirSeller/OrderViewController.swift
1
5871
// // OrderViewController.swift // NirSeller // // Created by Nirvana on 9/9/15. // Copyright © 2015 NSNirvana. All rights reserved. // import UIKit class OrderViewController: UIViewController { var pageMenu: CAPSPageMenu? var newOrderViewController: OrderContentViewController! var oldOrderViewCon...
mit
6d4c9ffcaa2437a2469deafffe918f8a
45.24
233
0.683218
4.529781
false
true
false
false
akshayg13/Game
Games/GamesVC.swift
1
13157
// // GamesVC.swift // Games // // Created by Appinventiv on 16/02/17. // Copyright © 2017 Appinventiv. All rights reserved. // import UIKit class GamesVC: UIViewController { //MARK: IBOutlets @IBOutlet weak var GameCategoryTableView: UITableView! //MARK: Properties var indicesOfTableCell : ...
mit
548111a714b4ab8d4f4ccaa1cbe9c905
34.556757
219
0.642673
6.12762
false
false
false
false
mmick66/CalendarView
KDCalendar/CalendarView/CalendarView+Style.swift
1
3835
// // CalendarView+Style.swift // CalendarView // // Created by Vitor Mesquita on 17/01/2018. // Copyright © 2018 Karmadust. All rights reserved. // import UIKit extension CalendarView { public class Style { public static var Default: Style = Style() public enum CellShap...
mit
eddbda2e65b2822040a604326f380d81
34.174312
121
0.542775
4.972763
false
false
false
false
KosyanMedia/Aviasales-iOS-SDK
AviasalesSDKTemplate/Source/Analytics/Flights/Hotels/HotelsBuyEvent.swift
1
1564
// // HotelsBuyEvent.swift // AviasalesSDKTemplate // // Created by Dim on 07.09.2018. // Copyright © 2018 Go Travel Un Limited. All rights reserved. // class HotelsBuyEvent: AnalyticsEvent { let name: String = "Hotels_Buy" let payload: [String : String] init(variant: HLResultVariant, room: HDKRoom) ...
mit
c99de1289c6255c4a435a1dd3cb68364
39.076923
93
0.671785
3.739234
false
false
false
false
KanChen2015/DRCRegistrationKit
DRCRegistrationKit/DRCRegistrationKit/DRCLoginRootViewController.swift
1
2963
// // DRCLoginRootViewController.swift // DRCRegistrationKit // // Created by Kan Chen on 6/6/16. // Copyright © 2016 drchrono. All rights reserved. // import UIKit @objc public protocol DRCLoginRootViewControllerDelegate { func drcLoginRootControllerDidAuthenticateSuccess(controller: DRCLoginRootViewControll...
mit
8fd26abb5d31a74bb6ba5297006b9f31
48.366667
236
0.775152
4.903974
false
false
false
false
tkremenek/swift
test/IRGen/prespecialized-metadata/struct-inmodule-1argument-within-struct-1argument-1distinct_use.swift
14
3215
// RUN: %swift -prespecialize-generic-metadata -target %module-target-future -emit-ir %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios // UNSUPPORTED: CPU=armv7 && OS=ios // UNSUPPORTED: CPU=armv7s && OS=ios // CHECK: ...
apache-2.0
e45279f7dacf322f58dccb399f283bbe
37.73494
157
0.581649
3.013121
false
false
false
false
achillara/forgetmenot
MainTableViewController.swift
1
3489
// // MainTableViewController.swift // Forget Me Not // // Created by Anusha Chillara on 2/17/15. // Copyright (c) 2015 Chillara. All rights reserved. // import UIKit class MainTableViewController: UITableViewController { var items:[Item]=[] @IBAction func cancelToDetailViewController(segue:UIS...
mit
cea7108370e73e18a222b40c33102fc2
31.305556
157
0.678418
5.573482
false
false
false
false
Chaosspeeder/YourGoals
YourGoals/Utility/UIImage+Grayscale.swift
1
1448
// // UIImage+Grayscale.swift // YourGoals // // Created by André Claaßen on 09.05.18. // Copyright © 2018 André Claaßen. All rights reserved. // import Foundation import UIKit extension UIImage { /// convert image to gray scale /// /// - Returns: a gray scaled image func convertToGrayScale()...
lgpl-3.0
e5d7d1f0a0a8ae32b0e85ccd28e64194
30.369565
184
0.613306
4.715686
false
false
false
false
lorentey/swift
test/SILGen/scalar_to_tuple_args.swift
10
3872
// RUN: %target-swift-emit-silgen -module-name scalar_to_tuple_args %s | %FileCheck %s func inoutWithDefaults(_ x: inout Int, y: Int = 0, z: Int = 0) {} func inoutWithCallerSideDefaults(_ x: inout Int, y: Int = #line) {} func scalarWithDefaults(_ x: Int, y: Int = 0, z: Int = 0) {} func scalarWithCallerSideDefaults(_...
apache-2.0
11a04a11b189894f5907624221efa9c0
53.507042
126
0.601034
3.138686
false
false
false
false
Obbut/LogKit
LogKit/LogMessage.swift
1
1730
// // LogMessage.swift // LogKit // // Created by Robbert Brandsma on 17-03-15. // Copyright (c) 2015 Robbert Brandsma. All rights reserved. // import Foundation public struct LogMessage { public init(text someText: AttributedString, logLevel aLevel: LogKitLevel, function aFunction: String? = nil, fullFilePat...
mit
d56d48e321db419834bfedb7d1b81a2c
35.808511
255
0.676879
4.493506
false
false
false
false
calvinWen/SwiftMusicPlayer
SwiftMusic 2/SwiftMusic/MuiscListViewController.swift
1
3038
// // MuiscListViewController.swift // SwiftMusic // // Created by 科文 on 2017/5/3. // Copyright © 2017年 科文. All rights reserved. // import UIKit import AVFoundation final class MuiscListViewController: UIViewController,UITableViewDelegate,UITableViewDataSource { @IBOutlet weak var tableVIew: UITableView! // ...
apache-2.0
8226c8e7db8998f0dd535bf443723c4d
37.525641
140
0.686522
4.6302
false
false
false
false
dreamsxin/swift
stdlib/public/core/InputStream.swift
3
2374
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
apache-2.0
998cfc8dd2fbe21fc13b02cc351e9566
33.911765
134
0.624263
4.285199
false
false
false
false
sharath-cliqz/browser-ios
Utils/KeychainCache.swift
2
2268
/* 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 Foundation import XCGLogger import SwiftKeychainWrapper import SwiftyJSON private let log = Logger.keychai...
mpl-2.0
3202a1a43af4b7c82a09d2afed81016b
35
155
0.608466
4.395349
false
false
false
false
kgaidis/KGViewSeparators
Example/Swift/KGViewSeparatorsExample/ViewController.swift
1
1467
// // ViewController.swift // KGViewSeparatorsExample // // Created by Krisjanis Gaidis on 12/28/15. // Copyright © 2015 KG. All rights reserved. // import UIKit class ViewController: UIViewController { // MARK: - Constants - private let kNumberOfRows = 100 private let kCellHeight: CGFloat = 44.0...
mit
92484329651b3a00f7d73c48c8fa40a7
26.166667
109
0.673261
5.217082
false
false
false
false
jasonwedepohl/udacity-ios-on-the-map
On The Map/On The Map/LocationFinder.swift
1
779
// // LocationFinder.swift // On The Map // // Created by Jason Wedepohl on 2017/09/22. // import CoreLocation class LocationFinder { static func find(_ searchString: String, _ findCompletion: @escaping (_ coordinate: CLLocationCoordinate2D?) -> Void) { CLGeocoder().geocodeAddressString(searchString, completion...
mit
66421e4ea1839fa5cd12fa6458feaa9c
22.606061
120
0.679076
3.818627
false
false
false
false
certificate-helper/TLS-Inspector
TLS Inspector/View Controllers/AboutViewController.swift
1
4763
import UIKit import CertificateKit class AboutTableViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { let projectGithubURL = "https://tlsinspector.com/github.html" let projectURL = "https://tlsinspector.com/" let projectContributeURL = "https://tlsinspector.com/contribute.html" ...
gpl-3.0
1a01b0c0f69b1d66fedb817710df555e
37.723577
124
0.6097
4.593057
false
false
false
false
wj2061/ios7ptl-swift3.0
ch21-Text/DuplicateLayout/DuplicateLayout/LayoutView.swift
1
1085
// // LayoutView.swift // DuplicateLayout // // Created by WJ on 15/11/25. // Copyright © 2015年 wj. All rights reserved. // import UIKit class LayoutView: UIView ,NSLayoutManagerDelegate{ let layoutManager = NSLayoutManager() let textContainer = NSTextContainer() @IBOutlet weak var textView: UI...
mit
9de44cd4998f64448d1016c29139c0e6
24.162791
70
0.656192
5.032558
false
false
false
false
muneebm/AsterockX
AsterockX/SkyViewController.swift
1
3290
// // SkyViewController.swift // AsterockX // // Created by Muneeb Rahim Abdul Majeed on 1/19/16. // Copyright © 2016 beenum. All rights reserved. // import UIKit class SkyViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! var image: UIImage! var observation: Obse...
mit
f190932f62efe7b03addb55856730185
35.544444
119
0.703557
4.923653
false
false
false
false
mercadopago/sdk-ios
MercadoPagoSDK/MercadoPagoSDK/FeesDetail.swift
1
879
// // FeesDetail.swift // MercadoPagoSDK // // Created by Matias Gualino on 6/3/15. // Copyright (c) 2015 com.mercadopago. All rights reserved. // import Foundation public class FeesDetail : NSObject { public var amount : Double = 0 public var amountRefunded : Double = 0 public var feePayer : String! ...
mit
b51504b13efc2501f57f14deeb6133dc
28.333333
84
0.615472
3.788793
false
false
false
false
Palleas/BetaSeriesKit
BetaSeriesKit/FetchMemberInfos.swift
1
1222
// // FetchMemberInfos.swift // BetaSeriesKit // // Created by Romain Pouclet on 2016-02-02. // Copyright © 2016 Perfectly-Cooked. All rights reserved. // import UIKit import SwiftyJSON import ReactiveCocoa public class Member: Model { public let id: Int public let login: String public let avatar: NSU...
mit
453435b0e52eeb0943f04baf18e64ad5
24.978723
145
0.641278
4.239583
false
false
false
false
weichsel/ZIPFoundation
Sources/ZIPFoundation/Data+Compression.swift
1
18260
// // Data+Compression.swift // ZIPFoundation // // Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors. // Released under the MIT License. // // See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information. // import Foundation #if...
mit
a54d2d3174fdde3b76401c75105e5c28
48.752044
120
0.630757
3.526265
false
false
false
false
xuech/OMS-WH
OMS-WH/Classes/OrderDetail/View/ReceiverView.swift
1
1954
// // ReceiverView.swift // OMS // // Created by gwy on 16/10/19. // Copyright © 2016年 文羿 顾. All rights reserved. // import UIKit class ReceiverView: UIView { override init(frame: CGRect) { super.init(frame: frame) setUP() } required init?(coder aDecoder: NSCoder) { ...
mit
ded57869f8d5b5a79e34ecda69be5e93
26.013889
74
0.57635
4.077568
false
false
false
false
KosyanMedia/Aviasales-iOS-SDK
AviasalesSDKTemplate/Source/HotelsSource/HotelDetails/HotelPricesVC.swift
1
3896
import UIKit @objc protocol BookRoomDelegate: class, NSObjectProtocol { func bookRoom(_ room: HDKRoom) } class HotelPricesVC: HotelDetailsMoreTableVC, PeekVCProtocol, UIViewControllerPreviewingDelegate { weak var delegate: BookRoomDelegate? var commitBlock: (() -> Void)? // MARK: - Override methods ...
mit
9bfbc87c5ddfc5d97099f415e22eafba
35.411215
143
0.672485
4.857855
false
false
false
false
domenicosolazzo/practice-swift
CoreData/SuperDB/SuperDB/Hero.swift
1
2667
// // Hero.swift // SuperDB // // Created by Domenico on 02/06/15. // Copyright (c) 2015 Domenico. All rights reserved. // import UIKit import CoreData let kHeroValidationDomain = "com.oz-apps.SuperDB.HeroValidationDomain" let kHeroValidationBirthdateCode = 1000 let kHeroValidationNameOrSecretIdentityCode = 1001 ...
mit
69d4569a3cc2cc74245ea0344d873bb8
34.092105
159
0.648294
4.96648
false
false
false
false
FrancisBaileyH/Swift-Sociables
Sociables/GameViewController.swift
1
7829
// // ViewController.swift // Sociables // // Created by Francis Bailey on 2015-03-08. // // import UIKit class GameViewController: UIViewController, NavControllerDelegate, SettingsDelegate { @IBOutlet weak var cardImage : UIImageView! @IBOutlet weak var topRank: UILabel! @IBOutlet weak var bottomRan...
gpl-3.0
b923f6761b2cde373def410df87dc2af
27.677656
239
0.58973
4.955063
false
false
false
false
wilfreddekok/Antidote
Antidote/Results.swift
1
2308
// 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 Foundation /// Swift wrapper for RLMResults class Results<T: OCTObject> { private let results: RLMResults...
mpl-2.0
20cb43c60eb1ee57c612a8fc9a2fd20f
30.189189
99
0.585789
4.838574
false
false
false
false
yichizhang/YZKeyboardInputAccessoryView
Source/YZKeyboardInputAccessoryView.swift
1
7930
// // YZKeyboardInputAccessoryView.swift // NumberKeyboardViewDemo // // Created by Yichi on 12/03/2015. // Copyright (c) 2015 Yichi. All rights reserved. // import Foundation import UIKit struct YZKeyboardConstants { init(keyboardSize: CGSize, useCalculatedWidth: Bool = true, maxInRow: Int = 10, useCalculatedHe...
mit
19660458e68adcfb157c0ee3b41d8f77
25.258278
152
0.717781
3.814334
false
false
false
false
roytornado/Flow-iOS
Flow/Classes/Flow.swift
1
9054
import Foundation public typealias FlowWillStartBlock = (Flow) -> Void public typealias FlowDidFinishBlock = (Flow) -> Void public class Flow { private static var runningFlow = [String: Flow]() final private let identifier = UUID().uuidString let internalLoggingQueue = OperationQueue() let internalCallb...
mit
a3c1102eadd948de34152c3d610828a4
30.768421
145
0.687873
4.617032
false
false
false
false
shuoli84/RxSwift
RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift
3
2858
// // RxTableViewDataSourceProxy.swift // RxCocoa // // Created by Krunoslav Zaher on 6/15/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation import UIKit import RxSwift let tableViewDataSourceNotSet = TableViewDataSourceNotSet() class TableViewDataSourceNotSet : NSObject ...
mit
d976d35a26189efcff93db495bd5b675
35.189873
109
0.713086
6.351111
false
false
false
false
manGoweb/BLE
Example/BLE/ViewController.swift
1
3640
// // ViewController.swift // BLE // // Created by Ondrej Rafaj on 04/03/2016. // Copyright (c) 2016 Ondrej Rafaj. All rights reserved. // import UIKit import SnapKit import CoreBluetooth import BLE struct BLEUUIDs { internal static let RedBearDuoServiceUUID: String = "713D0000-503E-4C75-BA94-3148F18D941E" ...
mit
1367c1ac8d2d23f7e2f972af0bcb9674
28.12
144
0.643407
4.493827
false
false
false
false
pmark/MartianRover
Playgrounds/MyPlayground4.playground/Contents.swift
1
4021
import Cocoa // (or UIKit for iOS) import SceneKit import QuartzCore // for the basic animation import XCPlayground // for the live preview // create a scene view with an empty scene let sceneSize = 700 var sceneView = SCNView(frame: CGRect(x: 0, y: 0, width: sceneSize, height: sceneSize)) var scene = SCNScen...
mit
0e6665956c6c0b9072ff217093fe26b2
31.691057
128
0.681423
3.599821
false
false
false
false
RaylnJiang/Swift_Learning_Project
Second Chapter-集合类型/Second Chapter-集合类型/集合类型/集合.playground/Contents.swift
1
6455
//: Playground - noun: a place where people can play import UIKit /* 集合 */ /* ------------------------------------------------------------------- 集合(Set)用来存储相同类型并且没有确定顺序的值。 当集合元素顺序不重要时或希望确保每个元素只出现一次时可以使用集合而不是数组。 ------------------------------------------------------------------ */ ...
apache-2.0
e67f2390c68d4aa100f25d1d59418a60
21.004926
70
0.49944
3.351088
false
false
false
false
quran/quran-ios
Sources/QuranTextKit/Search/Searchers/CompositeSearcher.swift
1
3288
// // CompositeSearcher.swift // // // Created by Mohamed Afifi on 2021-11-17. // import Foundation import PromiseKit import QuranKit import TranslationService import VLogging public struct CompositeSearcher: AsyncSearcher { private let simpleSearchers: [Searcher] private let translationsSearcher: AsyncSear...
apache-2.0
2a184494ef1433a3af164172b167e380
38.142857
115
0.629258
5.058462
false
false
false
false
quran/quran-ios
Sources/BatchDownloader/Entities/Download.swift
1
1479
// // Download.swift // Quran // // Created by Mohamed Afifi on 2/14/17. // // Quran for iOS is a Quran reading application for iOS. // Copyright (C) 2017 Quran.com // // 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 ...
apache-2.0
06beba7ab6c993ce125a9c5f1de60726
28.58
110
0.665314
4.085635
false
false
false
false
lexrus/LexNightmare
LexNightmare/GameScene+Lex.swift
1
989
// // GameScene+Lex.swift // LexNightmare // // Created by Lex Tang on 3/16/15. // Copyright (c) 2015 LexTang.com. All rights reserved. // import UIKit import SpriteKit extension GameScene { func lexNode() -> SKSpriteNode { if let lex = childNodeWithName("lex") as! SKSpriteNode? { return l...
mit
c796a472942682726d94fcd8d5dc21ed
25.026316
74
0.564206
4.120833
false
false
false
false
honghaoz/CrackingTheCodingInterview
Swift/LeetCode/Binary Search/74_Search a 2D Matrix.swift
1
1882
// 74_Search a 2D Matrix // https://leetcode.com/problems/search-a-2d-matrix/ // // Created by Honghao Zhang on 10/17/19. // Copyright © 2019 Honghaoz. All rights reserved. // // Description: // Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: // //Int...
mit
c5d5bcd0a8beb61179fba64c8b1d0f5f
20.453488
119
0.561518
3.132428
false
false
false
false
wfleming/SwiftLint
Source/SwiftLintFramework/Extensions/File+SwiftLint.swift
1
9374
// // File+SwiftLint.swift // SwiftLint // // Created by JP Simard on 2015-05-16. // Copyright (c) 2015 Realm. All rights reserved. // import Foundation import SourceKittenFramework internal func regex(pattern: String) -> NSRegularExpression { // all patterns used for regular expressions in SwiftLint are stri...
mit
2381e3d93327c839b1634f309867dbe6
40.114035
98
0.599957
4.90272
false
false
false
false
mbcltd/swiftli
swiftliTests/ArrayListTests.swift
1
1312
// // ArrayListTests.swift // swiftli // // Created by David Morgan-Brown on 05/06/2014. // Copyright (c) 2014 David Morgan-Brown. All rights reserved. // import XCTest import swiftli class ArrayListTests: XCTestCase { let a = ArrayList(array:["a","B","c"]) func testFind() { let f1 = a.f...
mit
c9e8d4bf1633f217f1686496a5b7056b
22.428571
63
0.490854
3.555556
false
true
false
false
ostatnicky/kancional-ios
Cancional/UI/Main/SelectNumberButtonView.swift
1
2529
// // SelectNumberButtonView.swift // Cancional // // Created by Jiri Ostatnicky on 17/06/2017. // Copyright © 2017 Jiri Ostatnicky. All rights reserved. // import UIKit class SelectNumberButtonView: UIView { // MARK: - Static things static let prefferedWidth: CGFloat = 200 static let prefferedHe...
mit
3144ead236702e43822f8ec3e8c44f3d
31.410256
141
0.661392
4.966601
false
false
false
false
snark/jumpcut
Jumpcut/Jumpcut/StatusItem.swift
1
3679
// // StatusItem.swift // Jumpcut // // Created by Steve Cook on 4/16/22. // import Cocoa class StatusItem { // Annoyingly, our shotgun approach to monitoring preference state change // means that we have to track what the state is supposed to be, because // we'll call it repeatedly on change, causing ...
mit
585a1b467f8b126b7b63a0ea720e4306
32.418182
116
0.575354
4.862434
false
false
false
false
wesbillman/JSONFeed
JSONFeedTests/JSONFeedTests.swift
1
3534
// // Created by Wes Billman on 5/19/17. // Copyright © 2017 wesbillman. All rights reserved. // import XCTest @testable import JSONFeed class JSONFeedTests: XCTestCase { let url = "https://jsonfeed.org/version/1" let text = "Some Text" func testInvalidVersion() { XCTAssertThrowsError(try JSONF...
mit
a0237f8d80ef18e8effc06dcc411798c
33.300971
106
0.598075
4.350985
false
true
false
false
Quick/Nimble
Sources/Nimble/Matchers/PostNotification.swift
4
3286
#if !os(WASI) #if canImport(Foundation) import Foundation internal class NotificationCollector { private(set) var observedNotifications: [Notification] private let notificationCenter: NotificationCenter private let names: Set<Notification.Name> private var tokens: [NSObjectProtocol] required init...
apache-2.0
8c9785c0cccd26eedf33f1820dab981e
30.596154
120
0.65003
5.086687
false
false
false
false
T1V/Criollo
Apps/Criollo tvOS App/HelloWorldViewController.swift
2
840
// // HelloWorldViewController.swift // HelloWorld-Swift // // Created by Cătălin Stan on 11/24/15. // // import Criollo class HelloWorldViewController: CRViewController { override func present(with request: CRRequest, response: CRResponse) -> String { self.vars["title"] = String(describing: type(of: ...
mit
a48302087dccb54b16d8b8a4c8e6d837
23.647059
84
0.544153
3.826484
false
false
false
false
wuhduhren/Mr-Ride-iOS
Mr-Ride-iOS/Model/CoreData/RunDataModel.swift
1
1787
// // RunData.swift // Mr-Ride-iOS // // Created by Eph on 2016/6/3. // Copyright © 2016年 AppWorks School WuDuhRen. All rights reserved. // import Foundation import CoreData class RunDataModel { class runDataStruct { var date: NSDate? var distance: Double? var speed: Double? ...
mit
ec51f6ad051eac163d55591993fa7c89
31.436364
82
0.59417
4.874317
false
false
false
false
bradhilton/Table
Table/UIControl.swift
1
2610
// // UIControl.swift // Table // // Created by Bradley Hilton on 2/20/18. // Copyright © 2018 Brad Hilton. All rights reserved. // fileprivate class EventTarget<Control : NSObjectProtocol> : NSObject { var handler: (Control) -> () init(_ handler: @escaping (Control) -> ()) { self.handler...
mit
3badc8b5c5d3c4cc341278e4d83acdb2
23.383178
90
0.5757
4.642349
false
false
false
false
dathtcheapgo/Jira-Demo
Driver/MVC/Core/View/CGMapView/CGLocation.swift
1
946
// // CGLocation.swift // CGMapView // // Created by Đinh Anh Huy on 10/25/16. // Copyright © 2016 Đinh Anh Huy. All rights reserved. // import UIKit import ObjectMapper import CoreLocation public class CGLocation: Mappable { var lat: Double = 0 var long: Double = 0 var timeStamp: TimeInterval = 0 //t...
mit
839da809f2728296ead453b73e64fb3a
19.955556
74
0.601273
4.029915
false
false
false
false
alessiobrozzi/firefox-ios
Client/Frontend/Home/ActivityStreamPanel.swift
1
30396
/* 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 Shared import UIKit import Deferred import Storage import WebImage import XCGLogger private let log = Logg...
mpl-2.0
dddc679a058ed388cd6d13ab38cbe5c1
42.299145
249
0.667127
5.342004
false
false
false
false
AstroCB/Whos-in-Space
Astronauts/SceneDelegate.swift
1
2839
// // SceneDelegate.swift // Astronauts // // Created by Cameron Bernhardt on 6/25/20. // Copyright © 2020 Cameron Bernhardt. All rights reserved. // import UIKit import SwiftUI class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo se...
mit
54dfed63389c49d6b7c509a7500ece2f
42.661538
147
0.705426
5.275093
false
false
false
false
haawa799/WaniKani-iOS
WaniKani/ViewControllers/LoginWebViewController.swift
1
4672
// // LoginWebViewController.swift // WaniKani // // Created by Andriy K. on 10/15/15. // Copyright © 2015 Andriy K. All rights reserved. // import UIKit import WebKit import UIImageView_PlayGIF protocol LoginWebViewControllerDelegate: class { func apiKeyReceived(apiKey: String) } private enum ScriptHandler: S...
gpl-3.0
914d6e3a8a3708dcc007db34995475c3
31.213793
178
0.673517
4.870699
false
false
false
false
yizzuide/Lego-swift
LegoExample/LegoExample/Classes/Application/Login/LoginViewController.swift
1
2438
// // LoginViewController.swift // LegoExample // // Created by yizzuide on 2020/5/16. // Copyright © 2020 yizzuide. All rights reserved. // import UIKit import XFLegoVIPER class LoginViewController: XFComponentViewController { //MARK:- Life Cycle override func viewDidLoad() { super.viewDidLoad(...
mit
5acf7b4eb12a584b9a583cb3bb104ee1
28.788732
135
0.611348
3.945896
false
false
false
false
zype/ZypeAppleTVBase
ZypeAppleTVBase/Models/ResponseModels/BaseModel.swift
1
1517
// // BaseModel.swift // Zype // // Created by Ilya Sorokin on 10/11/15. // Copyright © 2015 Eugene Lizhnyk. All rights reserved. // import UIKit open class BaseModel : NSObject { open var titleString: String = "" fileprivate(set) open var ID: String = "" var userData = Dictionary<Strin...
mit
50a6195ce048d56f20528d1b9ee80d7d
19.767123
86
0.559367
3.799499
false
false
false
false
Can-Sahin/Moya-PromiseKit-Service
Example/MoyaPromiseExample/Examples/SSLPinningService/SomeSSLPinningDataService.swift
1
2073
// // SomeSSLPinningDataService.swift // Moya-PromiseKit-Service // // Created by Can Sahin on 01/11/2017. // Copyright © 2017 Can Sahin. All rights reserved. // import Foundation import Moya import PromiseKit import Alamofire import MoyaPromise /* Make your own concrete DataService from DataServiceProtocol and ...
mit
f51c193b4db8525002b25363e5e86b33
36.672727
170
0.702703
4.829837
false
false
false
false
artursDerkintis/Starfly
Starfly/SFSearchTable.swift
1
8010
// // SFSearchTable.swift // Starfly // // Created by Arturs Derkintis on 10/3/15. // Copyright © 2015 Starfly. All rights reserved. // import UIKit import CoreData let querie = "http://suggestqueries.google.com/complete/search?client=toolbar&hl=en&q=" class SFSearchTable: UIView, UITableViewDataSource, UITableVie...
mit
0b8f430b00cdc5dde4b44b28fc8238db
46.390533
201
0.611437
5.652082
false
false
false
false
Fenrikur/ef-app_ios
Eurofurence/Director/ApplicationModuleRepository.swift
1
14192
import EurofurenceModel import UIKit struct ApplicationModuleRepository: ModuleRepository { private let webModuleProviding: WebModuleProviding private let rootModuleProviding: RootModuleProviding private let tutorialModuleProviding: TutorialModuleProviding private let preloadModuleProviding: Prelo...
mit
9d1c6aea9a12c8c937388b4597eabf23
61.519824
173
0.703143
7.124498
false
false
false
false
stevethomp/ViDIA-Playgrounds
ImportantWorkProject/Carthage/Checkouts/airg-ios-tools/airgiOSTools/Designables.swift
1
5044
// // Designables.swift // airG-iOS-Tools // // Created by Steven Thompson on 2016-07-26. // Copyright © 2016 airg. All rights reserved. // import UIKit //MARK: @IBDesignable @IBDesignable public extension UIView { @IBInspectable public var cornerRadius: CGFloat { set { layer.cornerRadius ...
apache-2.0
387a810517ec1361aba6cf4c2df69277
27.331461
160
0.618283
5.151175
false
false
false
false
codefellows/sea-b29-iOS
Sample Projects/Week 1/TweetFellows/TweetFellows/TweetViewController.swift
1
2054
// // TweetViewController.swift // TweetFellows // // Created by Bradley Johnson on 1/8/15. // Copyright (c) 2015 BPJ. All rights reserved. // import UIKit class TweetViewController: UIViewController { var tweet : Tweet! @IBOutlet weak var favoritesLabel: UILabel! @IBOutlet weak var tweetTextLabel: UILa...
mit
4f44589594a53e97a1e99746c468c2bd
32.672131
121
0.706426
4.902148
false
false
false
false
trvslhlt/games-for-impact-final
projects/WinkWink_11/WinkWink/Views/NavigationView.swift
1
2949
// // NavigationView.swift // WinkWink_11 // // Created by trvslhlt on 4/11/17. // Copyright © 2017 travis holt. All rights reserved. // import UIKit protocol NavigationViewDelegate: class { func navigationRightCancelTapped() } class NavigationView: AppView { weak var delegate: NavigationViewDelegat...
mit
6cb290bee04a2dca204e7a351a9714ce
43
115
0.504749
7.019048
false
false
false
false
rectinajh/leetCode_Swift
Jump_Game/Jump_Game/Jump_Game.swift
1
1168
// // Jump_Game.swift // Jump_Game // // Created by hua on 16/8/24. // Copyright © 2016年 212. All rights reserved. // import Foundation /* Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that ...
mit
9fb8329b8b6da1cfe18413ef07667fd9
22.767442
103
0.626223
2.862745
false
false
false
false
grandiere/box
box/View/Handler/VHandlerField.swift
1
2738
import UIKit class VHandlerField:UITextField, UITextFieldDelegate { private weak var controller:CHandler? private let kBorderHeight:CGFloat = 1 private let kMaxCharacter:Int = 10 init(controller:CHandler) { super.init(frame:CGRect.zero) clipsToBounds = true translatesAu...
mit
2c62d2c490483a22cb8e2913c153bb83
25.843137
124
0.589481
6.017582
false
false
false
false
fedepo/phoneid_iOS
Pod/Classes/ui/controllers/ImageEditViewController.swift
2
6332
// // ImageEditViewController.swift // phoneid_iOS // // Copyright 2015 phone.id - 73 knots, Inc. // // 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/li...
apache-2.0
2ebf0e99ebd8708c4a63ef1a7ad01ca6
45.218978
172
0.712255
4.793338
false
false
false
false
veeman961/RiseRight
RoutinePlus-Xcode/RoutinePlus/UIColorExtensions.swift
1
747
// // UIColorExtensions.swift // RiseRight // // Created by Kevin Rajan on 1/3/16. // Copyright © 2016 veeman961. All rights reserved. // import UIKit class UIColorExtensions: UIColor { } extension UIColor { convenience init(red: Int, green: Int, blue: Int) { assert(red >= 0 && red <= 255, "Invalid ...
apache-2.0
f6a5c027e7df2bd93ad8618c7cc86f56
26.62963
116
0.603217
3.330357
false
false
false
false
GreatfeatServices/gf-mobile-app
olivin-esguerra/ios-exam/Pods/RxSwift/RxSwift/Observable.swift
54
1113
// // Observable.swift // RxSwift // // Created by Krunoslav Zaher on 2/8/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation /// A type-erased `ObservableType`. /// /// It represents a push style sequence. public class Observable<Element> : ObservableType { /// Type of element...
apache-2.0
278f1b324d4c7b9e60c4264fd4ae3df4
23.086957
107
0.630866
4.229008
false
false
false
false
lanjing99/iOSByTutorials
iOS 8 by tutorials/Chapter 16 - Intermediate CloudKit/BabiFud-Starter/BabiFud/Establishment.swift
1
8617
/* * Copyright (c) 2014 Razeware LLC * * 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, dis...
mit
34c02f7fb7906738bdc3358e70d44b2d
32.925197
160
0.65777
4.109204
false
false
false
false
salemoh/GoldenQuraniOS
GoldenQuranSwift/GoldenQuranSwift/Mus7af.swift
1
2393
// // Mus7af.swift // GoldenQuranSwift // // Created by Omar Fraiwan on 2/12/17. // Copyright © 2017 Omar Fraiwan. All rights reserved. // import UIKit enum MushafType:String{ case HAFS = "HAFS" case WARSH = "WARSH" } class Mus7af: NSObject { var id:Int? var guid:String? var numberOfPages:...
mit
9c8b4a5fe3f7ef56f267b017dc13d41f
26.181818
115
0.595318
4.138408
false
false
false
false
m3rkus/Mr.Weather
Mr.Weather/UserDefaultsController.swift
1
3720
// // UserDefaultsController.swift // Mr.Weather // // Created by Роман Анистратенко on 13/09/2017. // Copyright © 2017 m3rk edge. All rights reserved. // import Foundation struct ObtainingWeatherMode { static let manual = "manual" static let geolocation = "geolocation" } enum UserDefaultsControllerNotif...
mit
2c90181c84367d92f7ed353bb2a053da
33.598131
143
0.690978
5.01626
false
false
false
false
swernimo/iOS
UI Kit Fundamentals 1/Text Delegate Challenge/Text Delegate Challenge/ViewController.swift
1
1109
// // ViewController.swift // Text Delegate Challenge // // Created by Sean Wernimont on 10/27/15. // Copyright © 2015 Just One Guy. All rights reserved. // import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var zipCodeTextField: UITextField! @IBOutlet weak var cash...
mit
20828a0168849743bb9ab5a44108f628
27.435897
132
0.687726
5.082569
false
false
false
false
JeremyJacquemont/SchoolProjects
IUT/iOS-Projects/Locations/Locations/ViewController.swift
1
5040
// // ViewController.swift // Locations // // Created by iem on 02/04/2015. // Copyright (c) 2015 JeremyJacquemont. All rights reserved. // import UIKit class ViewController: UITableViewController { //MARK: - Variables var locations = [Location]() var locationManager = LocationManager.sharedManager ...
apache-2.0
581e17f130a8f8af63fbebfa5eb60fab
41
157
0.66369
5.753425
false
false
false
false
dtop/SwiftValidate
validateTests/ValidatorStrLenTests.swift
1
3380
// // ValidatorStrLenTests.swift // validate // // Created by Danilo Topalovic on 19.12.15. // Copyright © 2015 Danilo Topalovic. All rights reserved. // import XCTest @testable import SwiftValidate class ValidatorStrLenTests: XCTestCase { override func setUp() { super.setUp() // Put setu...
mit
2c8bca190c79312e96d90cd4d95d295b
25.193798
111
0.492157
5.26324
false
true
false
false
tensorflow/swift-models
Datasets/COCO/COCO.swift
1
19619
// Copyright 2020 The TensorFlow Authors. 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 b...
apache-2.0
02e75d2289ccfa2fdb8acbe377d8434f
31.807692
100
0.458688
3.866575
false
false
false
false
acort3255/Emby.ApiClient.Swift
Emby.ApiClient/model/connect/ConnectUser.swift
1
1132
// // ConnectUser.swift // Emby.ApiClient // // Created by Vedran Ozir on 08/10/15. // Copyright © 2015 Vedran Ozir. All rights reserved. // import Foundation public struct ConnectUser: Codable { public let id: String public let name: String public let email: String public let active: Bool pub...
mit
edaaa74e9768ce199d382ee5a3da22d4
28.763158
250
0.581786
3.732673
false
false
false
false
ustwo/videoplayback-ios
DemoVideoPlaybackKit/DemoVideoPlaybackKit/DemoViewController.swift
1
2815
// // ViewController.swift // DemoVideoPlaybackKit // // Created by Sonam on 4/25/17. // Copyright © 2017 ustwo. All rights reserved. // import UIKit import RxSwift import VideoPlaybackKit private enum DemoOption: String { case SingleVideoView, SingleViewViewAutoplay, CustomToolBar, FeedView, FeedAutoplayView...
mit
d5741569874a64933615c60ab179ac7d
38.083333
218
0.689055
5.289474
false
false
false
false
ronaldho/visionproject
EMIT/StaticDates.swift
1
897
// // StaticDates.swift // EMIT // // Created by Andrew on 24/11/15. // Copyright © 2015 Andrew. All rights reserved. // import Foundation class StaticDates: NSObject { static let sharedInstance = StaticDates(); var defaultDate: NSDate; override init(){ let components:NSDateComponent...
mit
c4642e0f8ab00e19202c6d1ba6d7d293
28.9
88
0.670759
4.977778
false
false
false
false
wolf81/Nimbl3Survey
Nimbl3Survey/UIViewExtensions.swift
1
1000
// // UIViewExtensions.swift // Nimbl3Survey // // Created by Wolfgang Schreurs on 26/03/2017. // Copyright © 2017 Wolftrail. All rights reserved. // import UIKit extension UIView { private static let zRotateAnimationKey = "transform.rotation.z" func startRotation(_ duration: CFTimeInterval = 1, repe...
bsd-2-clause
03d666a0f6b63f285767178ca4c1084d
30.21875
117
0.663664
4.306034
false
false
false
false
CalvinChina/Demo
Swift3Demo/Swift3Demo/CoreImage/CoreImageViewController.swift
1
4279
// // CoreImageViewController.swift // Swift3Demo // // Created by pisen on 16/10/11. // Copyright © 2016年 丁文凯. All rights reserved. // import UIKit import CoreImage class CoreImageViewController: UIViewController { var sliderValue: Float = 0.0 @IBOutlet weak var myImage: UIImageView! @IB...
mit
dbf79e11ae45674420ba1fe5a219929e
32.888889
106
0.615222
4.908046
false
false
false
false
jacobwhite/firefox-ios
XCUITests/DatabaseFixtureTest.swift
2
2108
/* 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 XCTest class DatabaseFixtureTest: BaseTestCase { let fixtures = ["testOneBookmark": "testDatabaseFixtu...
mpl-2.0
e73b6c9d605d1c20bdd681fd483866c1
45.844444
212
0.696395
4.523605
false
true
false
false
machelix/DKImagePickerController
DKImagePickerController/DKImageResource.swift
1
1682
// // DKImageResource.swift // DKImagePickerController // // Created by ZhangAo on 15/8/11. // Copyright (c) 2015年 ZhangAo. All rights reserved. // import UIKit private extension NSBundle { class func imagePickerControllerBundle() -> NSBundle { let assetPath = NSBundle(forClass: DKImageResource.s...
mit
a7160a49601f1786fc7c755fcd2aa941
27.474576
146
0.670238
5.045045
false
false
false
false
CodetrixStudio/CSJson
CSJson/CSJson.swift
1
6522
// // CSJson.swift // CSJson // // Created by Parveen Khatkar on 11/3/15. // Copyright © 2015 Codetrix Studio. All rights reserved. // import Foundation protocol CSJsonDataSource { func settings() -> CSJsonSettings } open class CSJson { /// Deserializes JSON string to Object. /// - parameter js...
gpl-3.0
d4822dec469a596a78e4f49aff14c447
30.65534
133
0.550529
4.621545
false
false
false
false
algolia/algoliasearch-client-swift
Tests/AlgoliaSearchClientTests/Doc/APIParameters/APIParameters+GeoSearch.swift
1
6846
// // APIParameters+GeoSearch.swift // // // Created by Vladislav Fitc on 07/07/2020. // import Foundation import AlgoliaSearchClient extension APIParameters { //MARK: - GeoSearch func geoSearch() { func aroundLatLng() { /* aroundLatLng = Point(latitude, longitude) */ func...
mit
5a1c6560e5d77f0c148b99929260e4dd
26.384
89
0.51227
4.161702
false
false
false
false
git-hushuai/MOMO
MMHSMeterialProject/LibaryFile/ThPullRefresh/Head/ThHeadRefreshView.swift
1
3897
// // ThHeadRefresh.swift // PullRefresh // // Created by tanhui on 15/12/28. // Copyright © 2015年 tanhui. All rights reserved. // import Foundation import UIKit enum ThHeadRefreshState:Int{ case None=0 case Idle=1 case Pulling=2 case Refreshing=3 case WillRefresh=4 } class ThHeadRefreshView:...
mit
b3942c4e0559b5c0edff931ad4fd6136
26.429577
157
0.549563
4.922882
false
false
false
false
narner/AudioKit
Playgrounds/AudioKitPlaygrounds/Playgrounds/Synthesis.playground/Pages/Vocal Tract.xcplaygroundpage/Contents.swift
1
2541
//: ## Vocal Tract //: import AudioKitPlaygrounds import AudioKit import AudioKitUI let voc = AKVocalTract() AudioKit.output = voc AudioKit.start() class LiveView: AKLiveViewController { var current = 0 var frequencySlider: AKSlider! var tonguePositionSlider: AKSlider! var tongueDiameterSlider: AKS...
mit
dd5a0463061aaffe928505171ca8a62e
29.614458
112
0.593467
4.586643
false
false
false
false
openHPI/xikolo-ios
Binge/BingeControlsViewController.swift
1
22420
// // Created for xikolo-ios under GPL-3.0 license. // Copyright © HPI. All rights reserved. // // swiftlint:disable file_length type_body_length import AVFoundation import AVKit import UIKit class BingeControlsViewController: UIViewController { private lazy var bufferProgressView: UIProgressView = { ...
gpl-3.0
ef1f777d7b5c6e5151b70ecf6bf10207
39.910584
145
0.672242
5.104508
false
false
false
false
lpski/DepthButton
buttonTest/DepthButton.swift
1
2846
// // DepthButton.swift // buttonTest // // Created by Luke Porupski on 7/22/16. // Copyright © 2016 Luke Porupski. All rights reserved. // import UIKit class DepthButton: UIButton { private var originalX: Int? private var originalY: Int? private var primaryBackground: UIColor? @IBInspec...
mit
ba73332e4576c3ddd0779c6910ca7265
32.081395
175
0.625659
4.663934
false
false
false
false
rivetlogic/liferay-mobile-directory-ios
Liferay-Screens/Source/DDL/DDLXSDParser.swift
1
7336
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later ve...
gpl-3.0
4da777ad740a436c8ef9acdf029bc0c3
25.2
95
0.705971
3.80893
false
false
false
false
TigerWolf/LoginKit
Example/Tests/Tests.swift
1
1423
// https://github.com/Quick/Quick import Quick import Nimble @testable import LoginKit class LoginKitSpec: QuickSpec { override func spec() { describe("LoginKitConfig"){ it("logoImage is an image") { expect(LoginKitConfig.logoImage).to(beAnInstanceOf(UIIm...
bsd-3-clause
de8b911484f108e0e9dc4b3799c638cb
29.276596
82
0.506676
5.010563
false
true
false
false
matthewpurcell/firefox-ios
Client/Frontend/Settings/Clearables.swift
1
7053
/* 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 Foundation import Shared import WebKit import Deferred import WebImage private let log = Logger.browserLog...
mpl-2.0
9684a3161903b4e61e85373723fc704a
34.989796
194
0.66213
5.347233
false
false
false
false
awsdocs/aws-doc-sdk-examples
swift/modules/SwiftUtilities/Sources/SwiftUtilities/ValueList.swift
1
4509
// ValueOutput // // Output a set of data formatted neatly. // // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0. import Foundation public struct ValueItem { var title: String var value: String // What to print for values of true and false va...
apache-2.0
c972aebbf7e2518e93c8a93008f42fe1
25.374269
93
0.547572
4.298379
false
false
false
false
sora0077/SimpleObserver
SimpleObserverTests/ObservingArrayTests.swift
1
4363
// // ObservingArrayTests.swift // SimpleObserver // // Created by 林達也 on 2015/02/12. // Copyright (c) 2015年 spika.co.jp. All rights reserved. // import UIKit import XCTest class ObservingArrayTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is cal...
mit
fc30652d77ddc196578d94bf72c2b5a1
24.414201
111
0.3844
5.257038
false
true
false
false
hironytic/Moltonf-iOS
Moltonf/Model/Archive/ArchiveToJSON.swift
1
49768
// // ArchiveToJSON.swift // Moltonf // // Copyright (c) 2016 Hironori Ichimiya <hiron@hironytic.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 with...
mit
3a14eb625e2e6dd5bebb62576109edbc
39.006431
183
0.550213
4.632167
false
false
false
false
material-motion/material-motion-swift
src/timeline/CALayer+Timeline.swift
2
2437
/* Copyright 2016-present The Material Motion Authors. 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 appl...
apache-2.0
9aaedbe56070c14b27fe8d83630f4595
34.838235
122
0.71112
4.854582
false
false
false
false
StevenUpForever/FBSimulatorControl
fbsimctl/FBSimulatorControlKit/Sources/SimulatorRunners.swift
2
8307
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Fou...
bsd-3-clause
ba63895e5ad26f02ce23508f607714e5
37.105505
133
0.713254
4.451768
false
false
false
false
jhihguan/JSON2Realm
JSON2RealmTests/GlossRealm.swift
1
1566
// // GlossRealm.swift // JSON2Realm // // Created by Wane Wang on 2016/1/4. // Copyright © 2016年 Wane Wang. All rights reserved. // import Foundation import Gloss import RealmSwift final class GlossClass: BasicClass, Glossy { convenience required init?(json: JSON) { self.init() guard let name...
mit
018d51b6ca4a9fbacd850900571090ad
23.825397
66
0.520154
4.179144
false
false
false
false