repo_name
stringlengths
6
91
ref
stringlengths
12
59
path
stringlengths
7
936
license
stringclasses
15 values
copies
stringlengths
1
3
content
stringlengths
61
714k
hash
stringlengths
32
32
line_mean
float64
4.88
60.8
line_max
int64
12
421
alpha_frac
float64
0.1
0.92
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
kumabook/StickyNotesiOS
refs/heads/master
StickyNotes/WebViewController+NewPage.swift
mit
1
// // WebViewController+NewPage.swift // StickyNotes // // Created by Hiroki Kumamoto on 2017/04/28. // Copyright © 2017 kumabook. All rights reserved. // import Foundation import UIKit import RealmSwift extension WebViewController: UISearchControllerDelegate, UISearchResultsUpdating, UISearchBarDelegate { fu...
3eea232541e5e1afdb4137c6d39e1484
44.806723
176
0.686846
false
false
false
false
Inquisitor0/LSB2
refs/heads/master
Cocoapods/Pods/PKHUD/PKHUD/FrameView.swift
apache-2.0
9
// // HUDView.swift // PKHUD // // Created by Philip Kluz on 6/16/14. // Copyright (c) 2016 NSExceptional. All rights reserved. // Licensed under the MIT license. // import UIKit /// Provides the general look and feel of the PKHUD, into which the eventual content is inserted. internal class FrameView: UIVisualEf...
26410e1005d73926bf8de243a14cf91f
27.492063
109
0.639554
false
false
false
false
TheSafo/Sinkr
refs/heads/master
ios stuff/Sinkr/Views/CupView.swift
gpl-3.0
1
// // CupView.swift // Sinkr // // Created by Jake Saferstein on 6/18/16. // Copyright © 2016 Jake Saferstein. All rights reserved. // import Foundation import UIKit protocol CupViewDelegate { func cupViewTapped(cupVw: CupView) } class CupView : UIView { static var cupWidthHeight: CGFloat { ...
9dd273532175037b1ca978bac1f93a54
21.866667
95
0.58484
false
false
false
false
LeonClover/DouYu
refs/heads/master
DouYuZB/DouYuZB/Classes/Tools/Common.swift
mit
1
// // Common.swift // DouYuZB // // Created by Leon on 2017/6/7. // Copyright © 2017年 pingan. All rights reserved. // import UIKit let kStatusBarH: CGFloat = 20 let kNavigationBarH: CGFloat = 44 let kTabbarH: CGFloat = 49 let kScreenW: CGFloat = UIScreen.main.bounds.width let kScreenH: CGFloat = UIScreen.main.b...
a0ba1ecab819e92c58def7275c2536ce
15.9
51
0.710059
false
false
false
false
scotlandyard/expocity
refs/heads/master
expocity/View/Chat/Display/VChatDisplayMarks.swift
mit
1
import UIKit class VChatDisplayMarks:UIView { weak var controller:CChat! weak var button:UIButton? private let kItemSize:CGFloat = 50 private let itemSize_2:CGFloat init(controller:CChat) { itemSize_2 = kItemSize / 2.0 super.init(frame:CGRect.zero) clipsToB...
de0db101fab2de8a4e10a8179967d1dc
29.79798
110
0.567727
false
false
false
false
notbenoit/tvOS-Twitch
refs/heads/develop
Code/tvOS/Controllers/Streams/StreamsViewController.swift
bsd-3-clause
1
// Copyright (c) 2015 Benoit Layer // // 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, ...
8ca19c6b1a1df2bb725c6da36477e776
40.761538
155
0.774544
false
false
false
false
thebinaryarchitect/list
refs/heads/master
Today/TodayViewController.swift
mit
1
// // TodayViewController.swift // Today // // Copyright (C) 2015 Xiao Yao. All Rights Reserved. // See LICENSE.txt for more information. // import UIKit import NotificationCenter import ListKit class TodayViewController: UITableViewController, NCWidgetProviding { var list: List override init(style: ...
49958d2c5b25f56a02aca6db8978ca0d
35.547826
157
0.670711
false
false
false
false
amraboelela/swift
refs/heads/master
test/SILGen/reabstract-tuple.swift
apache-2.0
12
// RUN: %target-swift-emit-silgen -verify %s | %FileCheck %s // SR-3090: class Box<T> { public let value: T public init(_ value: T) { self.value = value } } // CHECK: sil [ossa] @$s4main7testBoxyyF : $@convention(thin) () -> () { // CHECK: bb0: // CHECK: // function_ref closure #1 in test...
e4c97a910eaf1eac09f449fd387abbdc
52.058824
166
0.533999
false
true
false
false
resmio/TastyTomato
refs/heads/main
TastyTomato/Code/Types/CustomViews/ZoomView/ZoomView.swift
mit
1
// // ZoomView.swift // TastyTomato // // Created by Jan Nash on 11/29/16. // Copyright © 2016 resmio. All rights reserved. // import Foundation import SignificantSpices // MARK: // Public // MARK: - public protocol ZoomViewDelegate: AnyObject { func zoomed(to scale: CGFloat, in zoomView: ZoomView) } // MA...
93de27194091e8bd6bdd6c0864aeee93
29.992771
135
0.639947
false
false
false
false
quen2404/absolute0
refs/heads/develop
Sources/App/Models/Post.swift
mit
1
import Vapor import Fluent import Foundation struct PostModel: Model { static var entity = "posts" var id: Node? var content: String var creationDate: Date? var user: UserModel var event: EventModel var exists: Bool = false } extension PostModel: NodeConvertible { i...
4a79784b6863994e9294108a24e6339d
24.849057
58
0.583942
false
false
false
false
overtake/TelegramSwift
refs/heads/master
Telegram-Mac/EmptyComposeController.swift
gpl-2.0
1
// // EmptyComposeController.swift // TelegramMac // // Created by keepcoder on 27/11/2016. // Copyright © 2016 Telegram. All rights reserved. // import Cocoa import TGUIKit import SwiftSignalKit import TelegramCore class ComposeState<T> { let result:T init(_ result:T) { self.result = result ...
74ef8a55e7ab591a66dd3b8d8028d0c6
21.870968
86
0.692525
false
false
false
false
steelwheels/Coconut
refs/heads/master
CoconutData/Source/Value/CNMutableSegment.swift
lgpl-2.1
1
/* * @file CNMutableSegmentValue.swift * @brief Define CNMutableSegmentValue class * @par Copyright * Copyright (C) 2022 Steel Wheels Project */ import Foundation public class CNMutableValueSegment: CNMutableValue { private var mSegmentValue: CNValueSegment private var mContext: CNMutableValue? public in...
0bba933273f801feae96bdefeab90f30
30.130081
150
0.712196
false
false
false
false
JaSpa/swift
refs/heads/master
test/SILGen/scalar_to_tuple_args.swift
apache-2.0
2
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-silgen %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 scalarWithCallerSideDefa...
aab1e78414d663d5408742fc1b970ffa
52.123077
126
0.607588
false
false
false
false
nathantannar4/NTComponents
refs/heads/master
NTComponents/Extensions/UIColor.swift
mit
1
// // UIColor.swift // NTComponents // // Copyright © 2017 Nathan Tannar. // // 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 rig...
6a65d595c404f38d9fbb6f1dffc80e76
33.277108
111
0.555009
false
false
false
false
eliakorkmaz/iCard
refs/heads/master
iCard/iCreditCard.swift
mit
1
// // iCreditCard.swift // iCard // // Created by xcodewarrior on 14.08.2017. // Copyright © 2017 EmrahKorkmaz. All rights reserved. // import UIKit class iCreditCard: UIView { lazy var contentView: UIView = { let view:UIView = UIView() view.backgroundColor = UIColor.clear return ...
371ad5ac29db6ffc021f9e3cb80470d0
34.461538
145
0.613938
false
false
false
false
timfuqua/Bourgeoisie
refs/heads/master
Bourgeoisie/Pods/Buckets/Source/Graph.swift
mit
1
// // Graph.swift // Buckets // // Created by Mauricio Santos on 2/19/15. // Copyright (c) 2015 Mauricio Santos. All rights reserved. // import Foundation /// A simple directed graph: that is, one with no loops (edges /// connected at both ends to the same vertex) and no more than one edge /// in the same directi...
3514bc7a505c950ebed9497328bb65ed
32.576142
143
0.593469
false
false
false
false
BOTDOTME/AZExpandableIconListView
refs/heads/master
Pod/Classes/AZExpandableIconListView.swift
mit
1
// // AZExpandableIconListView.swift // Pods // // Created by Chris Wu on 01/28/2016. // Copyright (c) 2016 Chris Wu. All rights reserved. // import Foundation open class AZExpandableIconListView: UIView { fileprivate var icons: [(UILabel, UIImageView)] = [] fileprivate var scrollView: UIScrollView ...
c62ce7b2d7af484818c57a92014a3017
54.835962
300
0.641243
false
false
false
false
DianQK/LearnRxSwift
refs/heads/master
LearnRxSwift/Rx.playground/Pages/Transforming.xcplaygroundpage/Contents.swift
mit
1
//: [上一节](@previous) - [目录](Index) import RxSwift /*: ## 变换 Observables 下面的这些操作符可以变换一个序列发射的值。这样我们的序列功能就强大了许多,创建,然后进行变换。甚至这里就类似于一条生产线。先做出一个原型,然后再进行各种加工,最后出我们想要的成品。 */ /*: ### `map` map 就是用你指定的方法去**变换每一个值**,这里非常类似 Swift 中的 map ,特别是对 SequenceType 的操作,几乎就是一个道理。一个一个的改变里面的值,并返回一个新的 functor 。 ![map](https://raw.githubus...
33b1155ede832f3b4834be65c1c8e718
22.27933
205
0.695224
false
false
false
false
LYM-mg/DemoTest
refs/heads/master
其他功能/SwiftyDemo/SwiftyDemo/Network/Tool + 普通封装/NetWorkTools+Extension.swift
mit
1
// // NetWorkTools+Extension.swift // SwiftyDemo // // Created by newunion on 2019/4/15. // Copyright © 2019 firestonetmt. All rights reserved. // 网络状态判断 import UIKit import Alamofire // MARK: - // MARK: - 判断网络类型 //(与官方风格一致,推荐使用) enum NetworkStatus { case noNetWork // 没有网络 case viaWWAN case viaW...
4f84de87ce5819155924ff6d66dc1be7
30.309524
108
0.546008
false
false
false
false
DrGo/LearningSwift
refs/heads/master
PLAYGROUNDS/LSB_D003_NamedParameters.playground/section-2.swift
gpl-3.0
2
import UIKit /* // Named Parameters // // Based on: // https://skillsmatter.com/skillscasts/6142-swift-beauty-by-default /===================================*/ /*------------------------------------/ // Functions: Unnamed // // Looks like C /------------------------------------*/ func add(x: Int, y: Int) -> In...
97fccfc199d23b6aa6f685d01fcc503a
18.066667
69
0.45035
false
false
false
false
wilfreddekok/Antidote
refs/heads/master
Antidote/HelperFunctions.swift
mpl-2.0
1
// 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 func isAddressString(string: String) -> Bool { let nsstring = string as NSString if nsstr...
68e8aca131aab1cb9c532c54727c6229
32.473684
81
0.735849
false
false
false
false
yakaolife/TrackLocations
refs/heads/master
Example/TrackLocations/ViewController.swift
mit
1
// // ViewController.swift // TrackLocations // // Created by yakaolife@gmail.com on 07/17/2017. // Copyright (c) 2017 yakaolife@gmail.com. All rights reserved. // import UIKit import TrackLocations class ViewController: UIViewController { var locations : [Location]? override func viewDidLoad() { ...
9a47d6d110042302eedf487cb13a1fe7
28.813333
122
0.586315
false
false
false
false
2briancox/ioscreator
refs/heads/master
IOS8SwiftScreenEdgePanGesturesTutorial/IOS8SwiftScreenEdgePanGesturesTutorial/ViewController.swift
mit
40
// // ViewController.swift // IOS8SwiftScreenEdgePanGesturesTutorial // // Created by Arthur Knopper on 13/01/15. // Copyright (c) 2015 Arthur Knopper. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet var imageView: UIImageView! var screenEdgeRecognizer: UIScreenEdgeP...
9686ada2f9571b6c115def8d877915c2
25.704545
110
0.707234
false
false
false
false
steelwheels/KiwiComponents
refs/heads/master
Source/Compiler/KMLinkEdgePass.swift
lgpl-2.1
1
/** * @file KMLinkEdgePass.swift * @brief Define KMLinkEdgePass class * @par Copyright * Copyright (C) 2017 Steel Wheels Project */ import KiwiControls import KiwiEngine import Canary import JavaScriptCore import Foundation public class KMLinkEdgePass: KMPass { public func linkEdge(rootView root: KMStackView...
6c8a8d103bca8746750641d5d0a2cbf6
29.474227
160
0.716847
false
false
false
false
leotumwattana/WWC-Animations
refs/heads/master
WWC-Animations/Circle.swift
bsd-3-clause
1
// // Circle.swift // WWC-Animations // // Created by Leo Tumwattana on 27/5/15. // Copyright (c) 2015 Innovoso Ltd. All rights reserved. // import UIKit @IBDesignable class Circle: UIView { // ================== // MARK: - Properties // ================== @IBInspectable var cornerRadius...
e52344974e4cadfed859f74ccb1ab35f
21.508475
86
0.542922
false
false
false
false
Allow2CEO/browser-ios
refs/heads/master
Client/Frontend/Widgets/SnackBar.swift
mpl-2.0
1
/* 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 SnapKit import Shared class SnackBarUX { static var MaxWidth: CGFloat = 400 } /** ...
aaa385c4106cca5ee984c62e46fceb2f
32.859589
181
0.639527
false
false
false
false
TonnyTao/HowSwift
refs/heads/master
Funny Swift.playground/Pages/subscript_dic.xcplaygroundpage/Contents.swift
mit
1
import Foundation extension Dictionary { subscript(input: [Key]) -> [Value] { get { var result = [Value]() result.reserveCapacity(input.count) for key in input { if let value = self[key] { result.append(value) } ...
0ae10fad1dc85da182b69cb643fa45fd
20.741935
66
0.4273
false
false
false
false
obdev/SocketWrapper
refs/heads/master
SocketWrapper/Extensions/String+UnsafeBufferPointer.swift
mit
1
// // String+UnsafeBufferPointer.swift // SocketWrapper // // Created by Christian Ludl on 2016-02-11. // Copyright © 2016 Objective Development. All rights reserved. // import Foundation extension String { /// Initializes a `String` from a sequence of `NUL`-terminated `UTF8.CodeUnit` as a `WithUnsafeBufferP...
a843011d68d481dbc4814a14c3f015ba
41.914634
187
0.710429
false
false
false
false
shnhrrsn/ImagePalette
refs/heads/master
src/ColorHistogram.swift
apache-2.0
1
// // ColorHistogram.swift // ImagePalette // // Original created by Google/Android // Ported to Swift/iOS by Shaun Harrison // import Foundation import UIKit /** Class which provides a histogram for RGB values. */ public struct ColorHistogram { /** An array containing all of the distinct colors in the image. ...
7944147ce652c729239422d1330c4d81
21.300971
77
0.69003
false
false
false
false
fitpay/fitpay-ios-sdk
refs/heads/develop
FitpaySDK/Rest/RestClientCreditCard.swift
mit
1
import Foundation import Alamofire extension RestClient { // MARK: - Completion Handlers /** Completion handler - parameter result: Provides collection of credit cards, or nil if error occurs - parameter error: Provides error object, or nil if no error occurs */ public ...
3863979d7747a66a5087e999cd552b3d
44.051724
198
0.588902
false
false
false
false
jstn/IndependentRotation
refs/heads/master
IndependentRotationWithCamera/IndependentRotationWithCamera/AppDelegate.swift
mit
1
// // AppDelegate.swift // IndependentRotationWithCamera // // Created by Justin Ouellette on 3/1/15. // Copyright (c) 2015 Justin Ouellette. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var fixedWindow: UIWindow! var rotatingWindow: UIWin...
7984b6bcb38293947bac076b3153cb7b
33.030303
128
0.724844
false
false
false
false
saraheolson/360iDevMin-PokeMongo
refs/heads/master
PokeMongo/PokeMongo/Scenes/GameScene.swift
gpl-3.0
1
// // GameScene.swift // PokeMongo // // Created by Floater on 8/21/16. // Copyright © 2016 SarahEOlson. All rights reserved. // import SpriteKit import GameplayKit class GameScene: SKScene { // So we can keep track of our monster! var monster: SKSpriteNode? // So we can keep track of our ball! ...
7317d33dcd2f07aa59dfb45a89a328d8
28.325
145
0.543762
false
false
false
false
Ehrippura/firefox-ios
refs/heads/master
Sync/Synchronizers/Bookmarks/BookmarksSynchronizer.swift
mpl-2.0
1
/* 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 Deferred import Foundation import Shared import Storage import XCGLogger private let log = Logger.syncLogg...
8da8361764329ba7554ea793358ac870
51.433333
336
0.656707
false
false
false
false
philipsawyer/visn
refs/heads/master
visn/Extensions/UIImageExtensions.swift
mit
1
// // UIImageExtensions.swift // visn // // Created by Philip Sawyer on 7/3/17. // Copyright © 2017 Philip Sawyer. All rights reserved. // import UIKit import Foundation extension UIImage { func toPixelBuffer() -> CVPixelBuffer? { let options = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue, k...
3dc07b76ff2523c2d69427c64d38e2cf
39.65
262
0.694957
false
false
false
false
jcfausto/transit-app
refs/heads/master
TransitApp/TransitApp/Route.swift
mit
1
// // Route.swift // TransitApp // // Created by Julio Cesar Fausto on 24/02/16. // Copyright © 2016 Julio Cesar Fausto. All rights reserved. // import Foundation import Unbox /** This enumeration represents a certain position in the route The two supoorted ones are: - Start : The first position in the route ...
e0e9cde09f703e15583700af4a6447f0
24.72973
86
0.569177
false
false
false
false
dduan/swift
refs/heads/master
test/SILGen/function_conversion_objc.swift
apache-2.0
2
// RUN: %target-swift-frontend -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -emit-silgen -verify | FileCheck %s import Foundation // REQUIRES: objc_interop // ==== Metatype to object conversions // CHECK-LABEL: sil hidden @_TF24function_conversion_objc20convMetatypeToObjectFFCSo8NSObjectMS0_T_ func convMeta...
7ba7747523f82f0566df06d82bac4c1b
50.963964
275
0.647365
false
false
false
false
haskellswift/swift-package-manager
refs/heads/master
Sources/Utility/Versioning.swift
apache-2.0
2
/* This source file is part of the Swift.org open source project Copyright 2016 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See http://swift.org/LICENSE.txt for license information See http://swift.org/CONTRIBUTORS.txt for Swift project authors */ /...
d175b6fe76190965efe5a2c4b4e55193
31.644444
85
0.676991
false
false
false
false
hsavit1/LeetCode-Solutions-in-Swift
refs/heads/master
Solutions/SolutionsTests/Medium/Medium_022_Generate_Parentheses_Test.swift
mit
4
// // Medium_022_Generate_Parentheses_Test.swift // Solutions // // Created by Di Wu on 5/5/15. // Copyright (c) 2015 diwu. All rights reserved. // import XCTest class Medium_022_Generate_Parentheses_Test: XCTestCase { private static let ProblemName: String = "Medium_022_Generate_Parentheses" private stat...
f4d00e4b77216edaf8812280326f9a5b
42.152174
200
0.64131
false
true
false
false
everald/JetPack
refs/heads/master
Sources/UI/TextField.swift
mit
1
import UIKit @objc(JetPack_TextField) open class TextField: UITextField { open var additionalHitZone = UIEdgeInsets() // TODO don't use UIEdgeInsets because actually we outset open var hitZoneFollowsCornerRadius = true open var userInteractionLimitedToSubviews = false public init() { super.init(frame: .zero...
215f5540495ee739be6f00559ab7ce47
25.102804
149
0.725385
false
false
false
false
mzanoski/yacss
refs/heads/master
yacss/LicenseWindowController.swift
lgpl-3.0
1
import Foundation import Cocoa class LicenseWindowController: NSWindowController { @IBOutlet weak var licenseView: NSScrollView! @IBOutlet var licenseTextView: NSTextView! @IBOutlet weak var view: NSView! override init(window: NSWindow?){ super.init(window: window) } required ...
f572b039caee54dc793c1cbb28893c09
33.081081
82
0.648692
false
false
false
false
grubFX/ICE
refs/heads/master
ICE/ViewController.swift
bsd-3-clause
1
// // ViewController.swift // ICE // // Created by Felix Gruber on 25.03.15. // Copyright (c) 2015 Felix Gruber. All rights reserved. // import UIKit import CoreData class ViewController: UIViewController,UITableViewDelegate, UITableViewDataSource{ var numbers = [String]() var persondata: PersonData? ...
c40a5ee23a35bf5054848e482c95fb93
36.245033
148
0.614619
false
false
false
false
biohazardlover/ROer
refs/heads/master
Roer/StatusCalculator.swift
mit
1
import Foundation import UIKit import JavaScriptCore let StatusCalculatorValueDidChangeNotification = "StatusCalculatorValueDidChangeNotification" var context: JSContext! var www: UIWebView! @objc protocol StatusCalculatorDelegate: NSObjectProtocol { @objc optional func statusCalculatorDidFinishLoad(_ stat...
8b33a8e6f7c653957815350dcfe3133c
50.230189
218
0.661412
false
false
false
false
luinily/hOme
refs/heads/master
hOme/Model/ScheduleCommand.swift
mit
1
// // ScheduleCommand.swift // IRKitApp // // Created by Coldefy Yoann on 2016/01/17. // Copyright © 2016年 YoannColdefy. All rights reserved. // import Foundation import CloudKit class ScheduleCommand: CloudKitObject { private var _commandInternalName: String private var _time: (hour: Int, minute: Int) = (0, 0)...
92031136c2dc76905120e724cb6fda22
25.319767
165
0.695604
false
false
false
false
joshpar/Lyrebird
refs/heads/master
LyrebirdSynth/Lyrebird/LyrebirdTimer.swift
artistic-2.0
1
// // LyrebirdTimer.swift // Lyrebird // // Created by Joshua Parmenter on 6/5/16. // Copyright © 2016 Op133Studios. All rights reserved. // /** A function wrapper for queued delays - parameter delay: in Seconds - parameter queue: the dispatch queue to schedule on - parameter closure: the block to evaluate ...
fccee7fe43e38fc47f88212cf2e3e078
35.8
386
0.666667
false
false
false
false
yzhou65/DSWeibo
refs/heads/master
DSWeibo/Classes/Home/Popover/PopoverPresentationController.swift
apache-2.0
1
// // PopoverPresentationController.swift // DSWeibo // // Created by xiaomage on 15/9/9. // Copyright © 2015年 小码哥. All rights reserved. // import UIKit //UIPresentationController是ios8以后才能使用的 class PopoverPresentationController: UIPresentationController { ///定义属性保存菜单的大小 var presentFrame = CGRectZero ...
1ef24cdc6ae464d265bd6cb050482ad8
27.26087
120
0.641026
false
false
false
false
dclelland/AudioKit
refs/heads/master
AudioKit/OSX/AudioKit/AudioKit for OSX.playground/Sources/TouchKeyView.swift
mit
1
// // TouchKeyView.swift // AudioKit // // Created by Aurelius Prochazka, revision history on Github. // Copyright (c) 2015 Aurelius Prochazka. All rights reserved. // import Cocoa public class TouchKeyView: NSButton { public var letters = "" public var number = "1" public init(numeral: String = "1", ...
1d0411316b0bda3d662c0806643109b7
44.467391
236
0.683959
false
false
false
false
migueloruiz/la-gas-app-swift
refs/heads/master
lasgasmx/DefaultCell.swift
mit
1
// // DefaultCell.swift // lasgasmx // // Created by Desarrollo on 3/29/17. // Copyright © 2017 migueloruiz. All rights reserved. // import UIKit class DefaultHeader: DefaultCell { override var datasourceItem: Any? { didSet { if datasourceItem == nil { label.text = "Th...
198d6f5e4558bef7edac5c7dbed6db00
22.769231
205
0.565696
false
false
false
false
moysklad/ios-remap-sdk
refs/heads/master
Sources/MoyskladiOSRemapSDK/Network/StatisticsParameters.swift
mit
1
// // StatisticsParameters.swift // MoyskladiOSRemapSDK // // Created by Nikolay on 31.07.17. // Copyright © 2017 Andrey Parshakov. All rights reserved. // import Foundation public enum StatisticsIntervalType: String { case hour case day case month } public struct StatisticsMoment: UrlParameter, Equa...
2613832d43c7add4b1a3f9b23e1d3868
23.035714
103
0.650074
false
false
false
false
DrGo/LearningSwift
refs/heads/master
PLAYGROUNDS/LSB_021_GlobalFunctions.playground/section-2.swift
gpl-3.0
2
import UIKit /* // Global Functions /===================================*/ advance(0,0) // <-- Command click this function to see the header file for global functions. /*------------------------------------/ // advance (Strideable) // // with: successor and predecessor // See also: Strings /-------------------...
b90d7e2eb01db65beda2cb27b013345b
17.326975
120
0.3876
false
false
false
false
jm-schaeffer/JMWebImageView
refs/heads/master
JMWebImageView/JMWebImageDownloaderManager.swift
mit
1
// // WebImageDownloaderManager.swift // JMWebImageView // // Copyright (c) 2016 J.M. Schaeffer // // 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...
d192087c50a00b10a279a98b0a2dcb25
40.879845
281
0.626839
false
false
false
false
devgabrielcoman/woodhouse
refs/heads/master
Pod/Classes/Services/Zomato/ZomatoSearch.swift
gpl-3.0
1
// // ZomatoService.swift // Pods // // Created by Gabriel Coman on 28/03/2016. // // import UIKit import Alamofire import Dollar import KeyPathTransformer public class ZomatoSearch: NSObject, ServiceProtocol { private var qry: String = "" private var lat: Float = 0 private var lng: Float = 0 ...
ba6385c42f569a3a241ed84b2fb706b5
24.392857
109
0.495077
false
false
false
false
blockchain/My-Wallet-V3-iOS
refs/heads/master
Modules/Platform/Sources/PlatformUIKit/Components/AccountPicker/Other/AccountAssetBalanceViewInteractor.swift
lgpl-3.0
1
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import BlockchainNamespace import Combine import DIKit import MoneyKit import PlatformKit import RxRelay import RxSwift public final class AccountAssetBalanceViewInteractor: AssetBalanceViewInteracting { public typealias InteractionState = AssetBalan...
4ea9c0878a376f791f44bd1dc0dec70e
30.059406
97
0.617469
false
false
false
false
CoderST/STScrolPlay
refs/heads/master
STScrolPlay/STScrolPlay/Class/STPlayer/UIColor-Extension.swift
mit
1
// // UIColor-Extension.swift // // Created by xiudou on 2017/6/5. // Copyright © 2016年 CoderST. All rights reserved. // import UIKit extension UIColor { // 在extension中给系统的类扩充构造函数,只能扩充`便利构造函数` convenience init(r : CGFloat, g : CGFloat, b : CGFloat, alpha : CGFloat = 1.0) { self.init(red: r / 255.0...
c2dcff79e0271c4b49b3f96c876ef9be
31.597403
133
0.554582
false
false
false
false
fancymax/12306ForMac
refs/heads/master
12306ForMac/Utilities/ReminderManager.swift
mit
1
// // ReminderManager.swift // 12306ForMac // // Created by fancymax on 2/24/2017. // Copyright © 2017年 fancy. All rights reserved. // import Foundation import EventKit class ReminderManager: NSObject { private let eventStore:EKEventStore private var isAccessToEventStoreGranted:Bool filepriv...
c99369c5042822a8ea3b326276cc364b
28.3
101
0.612872
false
false
false
false
devincoughlin/swift
refs/heads/master
test/IRGen/outlined_copy_addr.swift
apache-2.0
8
// RUN: %target-swift-frontend -emit-ir -module-name outcopyaddr -primary-file %s | %FileCheck %s public protocol BaseProt { } public protocol ChildProt: BaseProt { } public struct BaseStruct<T: BaseProt> { public typealias Element = T public var elem1: Element public var elem2: Element } public struct ...
827fa8cde3004ef46680d5c811ce8a2d
27.12987
286
0.708218
false
false
false
false
FengDeng/RxGitHubAPI
refs/heads/master
RxGitHubAPI/RxGitHubAPI/YYCommitDetail.swift
apache-2.0
1
// // YYCommitDetail.swift // RxGitHubAPI // // Created by 邓锋 on 16/2/2. // Copyright © 2016年 fengdeng. All rights reserved. // import Foundation public class YYCommitDetail: NSObject { public private(set) var author = YYCommitUser() public private(set) var committer = YYCommitUser() public private(se...
43e02d6aa33652eea2961eb1aaba0480
22.2
54
0.663793
false
false
false
false
ngageoint/mage-ios
refs/heads/master
Mage/Extensions/UIWindowExtensions.swift
apache-2.0
1
// // UIWindowExtensions.swift // MAGE // // Created by Daniel Barela on 7/13/21. // Copyright © 2021 National Geospatial Intelligence Agency. All rights reserved. // import Foundation import UIKit extension UIWindow { @objc static var isLandscape: Bool { return UIApplication.shared.windows ...
65d6b4b25ac34720ce0d80ff7903a03a
36.803571
135
0.643836
false
false
false
false
rvald/Wynfood.iOS
refs/heads/main
Wynfood/Reachability.swift
apache-2.0
1
// // Reachability.swift // NetworkReachabilityTutorial // // Created by craftman on 2/27/17. // Copyright © 2017 craftman. All rights reserved. // import Foundation import SystemConfiguration let ReachabilityDidChangeNotificationName = "ReachabilityDidChangeNotification" enum ReachabilityStatus { case ...
e0bde85532f1ac4e3681a77abaa65ccb
29.418994
172
0.584573
false
false
false
false
Sadmansamee/quran-ios
refs/heads/master
Quran/GaplessAudioPlayer.swift
mit
1
// // GaplessAudioPlayer.swift // Quran // // Created by Mohamed Afifi on 5/16/16. // Copyright © 2016 Quran.com. All rights reserved. // import Foundation import AVFoundation import UIKit import MediaPlayer private class GaplessPlayerItem: AVPlayerItem { let sura: Int init(URL: URL, sura: Int) { ...
96352e51f030abb37a8eb22339c64837
36.850467
142
0.624198
false
false
false
false
kruzhkov/traccar-manager-ios
refs/heads/native
TraccarManager/CarAnnotationView.swift
apache-2.0
1
// // CustomPositionAnnotation.swift // TraccarManager // // Created by Sergey Kruzhkov on 28.07.17. // Copyright © 2017 Sergey Kruzhkov (s.kruzhkov@gmail.com). All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Licen...
878cb6b4235c96c7275894b2179ac03f
37.419192
201
0.600105
false
false
false
false
BalestraPatrick/HomeKitty
refs/heads/master
Sources/App/Models/HomeKitApp.swift
mit
1
// // Copyright © 2018 HomeKitty. All rights reserved. // import Foundation import FluentPostgreSQL import Vapor struct HomeKitApp: PostgreSQLModel { static var entity = "apps" var id: Int? let name: String let subtitle: String? let publisher: String let websiteLink: String let price: Do...
29a4865c1a4cb93c159002e6989e9bad
22.965517
52
0.618705
false
false
false
false
RACCommunity/Rex
refs/heads/master
Source/UIKit/UIControl.swift
mit
3
// // UIView.swift // Rex // // Created by Neil Pankey on 6/19/15. // Copyright (c) 2015 Neil Pankey. All rights reserved. // import ReactiveCocoa import UIKit import enum Result.NoError extension UIControl { #if os(iOS) /// Creates a producer for the sender whenever a specified control event is triggered. ...
73b237b30b1782420d06a008cf37fe45
37.716667
124
0.655618
false
false
false
false
ProfileCreator/ProfileCreator
refs/heads/master
ProfileCreator/ProfileCreator/Value Import Processors/ValueImportProcessor.swift
mit
1
// // ValueImportProcessor.swift // ProfileCreator // // Created by Erik Berglund. // Copyright © 2018 Erik Berglund. All rights reserved. // import Foundation import ProfilePayloads class ValueImportProcessor { // FIMXE: Should add fileUTIs when initializing. // MARK: - // MARK: Variables let ...
332b56300d3f817fd916dd5c108c1c16
24.678571
172
0.662031
false
false
false
false
ScoutHarris/WordPress-iOS
refs/heads/develop
WordPress/Classes/Extensions/Notifications/NotificationBlock+Interface.swift
gpl-2.0
1
import Foundation import WordPressShared.WPStyleGuide /// This Extension implements helper methods to aid formatting a NotificationBlock's payload, /// for usage in several different spots of the app. /// For performance purposes, Attributed Strings get temporarily cached... and will get nuked whenever the /// relat...
1042288048f482e0dea0cf3fc10c0a94
39.66537
118
0.638216
false
false
false
false
AngryLi/Onmyouji
refs/heads/master
Carthage/Checkouts/realm-cocoa/RealmSwift/Tests/ObjectSchemaInitializationTests.swift
gpl-3.0
4
//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm 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...
31d08743a419723ce6e123d2cd09d50e
42.171141
112
0.707268
false
false
false
false
rivetlogic/liferay-mobile-directory-ios
refs/heads/master
Liferay-Screens/Source/DDL/FormScreenlet/ServerOperations/LiferayDDLFormUploadOperation.swift
gpl-3.0
1
/** * 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...
65b76bb0795c85a3cc76c4134c44e9c1
23.836066
93
0.732013
false
false
false
false
harenbrs/swix
refs/heads/master
swixUseCases/swix-OSX/swix/ndarray/ndarray.swift
mit
2
// // initing.swift // swix // // Created by Scott Sievert on 7/9/14. // Copyright (c) 2014 com.scott. All rights reserved. // import Foundation import Accelerate // the matrix definition and related functions go here // SLOW PARTS: x[ndarray, ndarray] set, modulo operator struct ndarray { let n: Int v...
c3fe5d368171743b70a764a839cb6cba
24.587156
97
0.531015
false
false
false
false
sotownsend/flok-apple
refs/heads/master
Pod/Classes/Controller.swift
mit
1
@objc class FlokControllerModule : FlokModule { override var exports: [String] { return ["if_controller_init:", "if_spec_controller_list:", "if_spec_controller_init:"] } static var cbpToView: WeakValueDictionary<Int, FlokView> = WeakValueDictionary() func if_controller_init(args: [AnyO...
617b91c8c761c0c2cb519e47e06f8053
39.536585
152
0.598435
false
false
false
false
fousa/trackkit
refs/heads/master
Example/Tests/Tests/FIT/FITLiloSpecs.swift
mit
1
// // FITLiloSpecs.swift // Tests // // Created by Jelle Vandebeeck on 14/01/2018. // Copyright © 2018 CocoaPods. All rights reserved. // import Quick import Nimble import TrackKit class FITLiloSpecs: QuickSpec { override func spec() { describe("FIT") { context("Lilo") { va...
c20a97b09326a77781af78ca1b6db8a7
34.257576
108
0.412119
false
false
false
false
VinlorJiang/DouYuWL
refs/heads/master
DouYuWL/DouYuWL/Classes/Main/Controller/BaseViewController.swift
mit
1
// // BaseViewController.swift // DouYuWL // // Created by dinpay on 2017/7/25. // Copyright © 2017年 apple. All rights reserved. // import UIKit class BaseViewController: UIViewController { // MARK:- 定义属性 var contentView : UIView? // MARK:- 懒加载属性 fileprivate lazy var animImageView :...
d335d60aba6a796766594c8b1fae5e29
23.171875
105
0.591467
false
false
false
false
DasHutch/minecraft-castle-challenge
refs/heads/develop
app/_src/XCGLogger.swift
gpl-2.0
1
// // XCGLogger.swift // XCGLogger: https://github.com/DaveWoodCom/XCGLogger // // Created by Dave Wood on 2014-06-06. // Copyright (c) 2014 Dave Wood, Cerebral Gardens. // Some rights reserved: https://github.com/DaveWoodCom/XCGLogger/blob/master/LICENSE.txt // import Foundation #if os(iOS) import UIKit #els...
75e069d4afafcd6f3b129007ad4b4cd9
39.616114
293
0.637719
false
false
false
false
1170197998/SinaWeibo
refs/heads/master
SFWeiBo/SFWeiBo/Classes/Main/MainViewController.swift
apache-2.0
1
// // MainViewController.swift // SFWeiBo // // Created by mac on 16/3/22. // Copyright © 2016年 ShaoFeng. All rights reserved. // import UIKit class MainViewController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() //添加所有子控制器 addChildViewControlle...
67ed3eacfc52042cd59d316f99589f08
36.258993
137
0.608612
false
false
false
false
alvarozizou/Noticias-Leganes-iOS
refs/heads/develop
Pods/FeedKit/Sources/FeedKit/Models/JSON/JSONFeed.swift
mit
2
// // JSONFeed.swift // // Copyright (c) 2016 - 2018 Nuno Manuel Dias // // 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 /...
dafad72ed72cbc191d55c56dfb4eb7db
45.957576
85
0.685983
false
false
false
false
mownier/Umalahokan
refs/heads/master
Umalahokan/Source/UI/Drawer/DrawerMenuTransitioning.swift
mit
1
// // DrawerMenuTransitioning.swift // Umalahokan // // Created by Mounir Ybanez on 04/03/2017. // Copyright © 2017 Ner All rights reserved. // import UIKit class DrawerMenuTransitioning: NSObject, UIViewControllerTransitioningDelegate { weak var delegate: DrawerMenuTransitionDelegate? weak var inter...
4c53d2352ca2cdc844dc2c12bf6790e4
38.871795
170
0.756913
false
false
false
false
alesp56/APStopWatch
refs/heads/master
APStopwatch/APStopwatch/StopwatchRecord.swift
gpl-2.0
1
// // StopwatchRecord.swift // APStopwatch // // Created by Aleš Paulovič on 02/12/2016. // Copyright © 2016 paulovic.si. All rights reserved. // enum RecordType: String { case start = "Start" case lap = "Lap" case stop = "Stop" } import Foundation struct StopwatchRecord { var index: Int = 0 ...
a2b53f770f3b1046b7bdd80936095b42
19.965517
73
0.606908
false
false
false
false
rabbitinspace/Tosoka
refs/heads/develop
Sources/Tosoka/Claim/ReservedClaim.swift
mit
1
import Foundation /// Registered claims /// /// Claims that is registered according to rfc7519 /// /// - issuer: "issuer" claim /// - subject: "subject" claim /// - audience: "audience" claim /// - expiring: "expiration time" claim /// - notBefore: "not before" claim /// - issued: "issued at" claim /// - id: "jwt id" ...
1f9d5d9004a270fe8934213e0c0a686d
19.504808
67
0.601876
false
false
false
false
boolkybear/iOS-Challenge
refs/heads/master
CatViewer/CatViewer/FavouriteCell.swift
mit
1
// // FavouriteCell.swift // CatViewer // // Created by Boolky Bear on 7/2/15. // Copyright (c) 2015 ByBDesigns. All rights reserved. // import UIKit class FavouriteCell: UITableViewCell { @IBOutlet var thumbnailImageView: UIImageView! @IBOutlet var dateLabel: UILabel! var favourite: Favourite? { didSet {...
81c47d2bb45e677e925520b1d76c9a2f
20.882353
65
0.667563
false
false
false
false
MBKwon/SwiftTimer
refs/heads/master
TestSwift/TestSwift/Timer State/TimerRunning.swift
mit
1
// // TimerRunning.swift // TestSwift // // Created by MB KWON on 2014. 7. 28.. // Copyright (c) 2014년 UANGEL Corp. All rights reserved. // import Foundation import UIKit import CoreData class TimerRunning : NSObject, TimerProtocol { weak var timerController: TimerViewController? init(timerContr...
474f70b70166679c71b63aabd9f7ab1e
36.382979
214
0.685828
false
false
false
false
jacobwhite/firefox-ios
refs/heads/master
Client/Frontend/Settings/ClearPrivateDataTableViewController.swift
mpl-2.0
1
/* 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 UIKit import Shared private let SectionToggles = 0 private let SectionButton = 1 private let NumberOfSecti...
3c97cc5f2ccad490e08b227feba85b0e
40.766304
151
0.655172
false
false
false
false
linhaosunny/smallGifts
refs/heads/master
小礼品/小礼品/Classes/Module/Classify/Views/StrategySectionView.swift
mit
1
// // StrategySectionView.swift // 小礼品 // // Created by 李莎鑫 on 2017/4/21. // Copyright © 2017年 李莎鑫. All rights reserved. // import UIKit import SnapKit class StrategySectionView: UICollectionReusableView { //MARK: 属性 weak var delegate:StrategySectionViewDelegate? //MARK: 懒加载 lazy var marginTopView:UIView ...
398a9eac3301971d40864d73a944fe67
27.977273
103
0.623529
false
false
false
false
drumnkyle/music-notation-swift
refs/heads/master
Sources/Types.swift
mit
1
// // Types.swift // MusicNotation // // Created by Kyle Sherman on 6/12/15. // Copyright (c) 2015 Kyle Sherman. All rights reserved. // public enum Octave: Int { case octaveNegative1 = -1 case octave0 = 0 case octave1 = 1 case octave2 = 2 case octave3 = 3 case octave4 = 4 case octave5 = 5 case octave6 = 6...
8e14a3c3e68ad9fa11a61c73083db850
12.651685
57
0.687243
false
false
false
false
yonaskolb/XcodeGen
refs/heads/master
Tests/XcodeGenKitTests/ProjectGeneratorTests.swift
mit
1
import PathKit import ProjectSpec import Spectre import XcodeGenKit import XcodeProj import XCTest import Yams import TestSupport private let app = Target( name: "MyApp", type: .application, platform: .iOS, settings: Settings(buildSettings: ["SETTING_1": "VALUE"]), dependencies: [Dependency(type: ....
306bd34fa32d7c2247fb1f8477d1f7ce
50.634004
254
0.484121
false
true
false
false
february29/Learning
refs/heads/master
Pods/RxDataSources/Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift
cc0-1.0
3
// // RxCollectionViewSectionedAnimatedDataSource.swift // RxExample // // Created by Krunoslav Zaher on 7/2/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // #if os(iOS) || os(tvOS) import Foundation import UIKit #if !RX_NO_MODULE import RxSwift import RxCocoa #endif import Differentiator /* This...
8e8e631d36dbe73a9da1dc185c0d7b3f
39.315385
134
0.64377
false
true
false
false
a497500306/yijia_kuanjia
refs/heads/master
医家/医家/主项目/首页/每日量表/View/MLMrlbCell.swift
apache-2.0
1
// // MLMrlbCell.swift // 医家 // // Created by 洛耳 on 16/1/15. // Copyright © 2016年 workorz. All rights reserved. // import UIKit class MLMrlbCell: UITableViewCell { var textView : UILabel! var nameView : UIButton! var btn : UIButton! var modelFrame : MLMrlbCellFrame!{ //属性发生改变后调用 di...
bf64aebc395e6b36180e857f5c2a6b54
38.958904
111
0.642441
false
false
false
false
chrisdhaan/CDYelpFusionKit
refs/heads/master
Source/DateFormatter+CDYelpFusionKit.swift
mit
1
// // DateFormatter+CDYelpFusionKit.swift // CDYelpFusionKit // // Created by Christopher de Haan on 6/1/21. // // Copyright © 2016-2022 Christopher de Haan <contact@christopherdehaan.me> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated document...
d080060e72dcbe639f140d41c7f4508c
35.73913
81
0.733728
false
false
false
false
athiercelin/Localizations
refs/heads/master
Localizations/Choose Project/ChooseProjectController+Parser.swift
mit
1
// // ChooseProjectViewController+Parser.swift // Localizations // // Created by Arnaud Thiercelin on 2/14/16. // Copyright © 2016 Arnaud Thiercelin. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the ...
b0b136ca34cd94f4326a581f6641104b
26.821705
112
0.642797
false
false
false
false
remirobert/fastlaneAPI
refs/heads/master
FastlneIOS/FastlneIOS/CustomersController.swift
apache-2.0
1
// // CustomersController.swift // FastlneIOS // // Created by Remi Robert on 17/11/15. // Copyright © 2015 Remi Robert. All rights reserved. // import UIKit import Alamofire protocol CustomersControllerDelegate { func getCustomersList() } class CustomersController { private let delegate: CustomersContr...
0e707d9322c57e1a4c40e1ec21695670
27.619048
128
0.617304
false
false
false
false
EricHein/Swift3.0Practice2016
refs/heads/master
00.ScratchWork/DownloadingWebContent/DownloadingWebContent/ViewController.swift
gpl-3.0
1
// // ViewController.swift // DownloadingWebContent // // Created by Eric H on 15/10/2016. // Copyright © 2016 FabledRealm. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad() ...
2f6d17f806a66b23c892aa3d39bf3047
23.610169
111
0.476584
false
false
false
false
muenzpraeger/salesforce-einstein-vision-swift
refs/heads/master
SalesforceEinsteinVision/Classes/model/Label.swift
apache-2.0
1
// // Label.swift // predictivevision // // Created by René Winkelmeyer on 02/28/2017. // Copyright © 2016 René Winkelmeyer. All rights reserved. // import Foundation import SwiftyJSON public struct Label { public var id: Int? public var datasetId: Int? public var name: String? public var num...
c075b3db4e65746d0734767e68a8d3c6
20.612903
59
0.625373
false
false
false
false
elpassion/el-space-ios
refs/heads/master
ELSpace/Commons/Extensions/Double_FromString.swift
gpl-3.0
1
import Foundation extension Double { init?(from string: String?) { guard let string = string else { return nil } if let double = Double(fromCommaSeparatedString: string) { self = double } else if let double = Double(string) { self = double } else { ...
226912b18d0779348821058f5925a212
23.961538
66
0.5547
false
false
false
false
Witcast/witcast-ios
refs/heads/develop
Pods/Material/Sources/iOS/Device.swift
apache-2.0
2
/* * Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain t...
70d2cc44dba05c220bae747b984e9364
35.937984
88
0.669045
false
false
false
false
RMizin/PigeonMessenger-project
refs/heads/main
FalconMessenger/Supporting Files/UIComponents/FalconActivityTitleView.swift
gpl-3.0
1
// // FalconActivityTitleView.swift // FalconMessenger // // Created by Roman Mizin on 2/22/19. // Copyright © 2019 Roman Mizin. All rights reserved. // import UIKit class FalconActivityTitleView: UIView { fileprivate let activityIndicatorView = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.white...
26da11faec8d7eb7b35ec6c9b081eb60
35.641509
114
0.751287
false
false
false
false
SereivoanYong/Charts
refs/heads/master
Source/Charts/Components/XAxis.swift
apache-2.0
1
// // XAxis.swift // Charts // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/Charts // import Foundation open class XAxis: Axis { public enum LabelPosition: Int { case top case...
d21990fd6fab99d694d1072b858e1fb0
28.694915
135
0.688356
false
false
false
false
aloe-kawase/aloeutils
refs/heads/develop
Pod/Classes/animation/AloeEaseBezier.swift
mit
1
// // AloeEaseBezier.swift // Pods // // Created by kawase yu on 2016/06/11. // // import UIKit public class AloeEaseBezier: NSObject { private let p1:CGPoint private let p2:CGPoint public init(p1:CGPoint, p2:CGPoint){ self.p1 = p1 self.p2 = p2 super.init() ...
0435be4863cb80e9a758d91629618096
19.189189
70
0.511379
false
false
false
false
flodolo/firefox-ios
refs/heads/main
Client/Frontend/Browser/Tabs/InactiveTabItemCellModel.swift
mpl-2.0
2
// 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 Storage struct InactiveTabItemCellModel { struct UX { static let ImageSize: CGF...
754aa19d6b6ceb1ace26fc51c3ca14b2
31.892857
95
0.697068
false
false
false
false
Witcast/witcast-ios
refs/heads/develop
Pods/Material/Sources/Frameworks/Motion/Sources/Extensions/Motion+UIKit.swift
apache-2.0
1
/* * The MIT License (MIT) * * Copyright (C) 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. * All rights reserved. * * Original Inspiration & Author * Copyright (c) 2016 Luke Zhao <me@lkzhao.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
b57ce490609f2d9ed968c3ac4155ca41
35.862069
107
0.68101
false
false
false
false
KrishMunot/swift
refs/heads/master
test/SILOptimizer/devirt_specialized_inherited_interplay.swift
apache-2.0
6
// RUN: %target-swift-frontend -sil-verify-all -O %s -emit-sil | FileCheck %s // This file consists of tests for making sure that protocol conformances and // inherited conformances work well together when applied to each other. The // check works by making sure we can blow through a long class hierarchy and // expose...
679fe5c947eed46e64240e114b25a65c
21.223301
108
0.602665
false
false
false
false
mountainKaku/Basic-Algorithms
refs/heads/master
HeapSort.playground/Contents.swift
mit
1
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" print(str) //HeapSort: 堆排序法 typealias CRITERIA<Int> = (Int, Int) -> Bool func heapSortOf(_ arr: [Int], byCriteria: @escaping (CRITERIA<Int>) = { $0 < $1 }) -> [Int] { guard arr.count > 1 else ...
293734848ad30fe220dbf25f8f67bf79
24.61039
80
0.491886
false
false
false
false
BradLarson/GPUImage2
refs/heads/master
framework/Source/OpenGLRendering.swift
bsd-3-clause
1
#if canImport(OpenGL) import OpenGL.GL3 #endif #if canImport(OpenGLES) import OpenGLES #endif #if canImport(COpenGLES) import COpenGLES.gles2 let GL_DEPTH24_STENCIL8 = GL_DEPTH24_STENCIL8_OES let GL_TRUE = GLboolean(1) let GL_FALSE = GLboolean(0) #endif #if canImport(COpenGL) import COpenGL #endif import Foundation...
13dd429e39d34b1a6f0727ed77870e43
37.149826
205
0.701982
false
false
false
false
danpratt/Tip-Calculator
refs/heads/master
Blue Tip Wrist Calculator Extension/Controllers/OptionsController.swift
mit
1
// // PeopleInterfaceController.swift // Blue Tip Calculator // // Created by Daniel Pratt on 11/18/15. // Copyright © 2015 blaumagier. All rights reserved. // import WatchKit import Foundation class OptionsController: WKInterfaceController { @IBOutlet weak var peoplePicker: WKInterfacePicker! @IBOutlet...
ce72431e935dd3604e873a4cde37d96a
32.244898
101
0.643339
false
false
false
false