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
manuelbl/WirekiteMac
Examples/Servo/Servo/ViewController.swift
1
1464
// // Wirekite for MacOS // // Copyright (c) 2017 Manuel Bleichenbacher // Licensed under MIT License // https://opensource.org/licenses/MIT // import Cocoa import AVFoundation import WirekiteMac class ViewController: NSViewController, WirekiteServiceDelegate { var service: WirekiteService? = nil var de...
mit
8b0fb1b3732e220da880d83c33a360f5
22.238095
74
0.564891
4.344214
false
false
false
false
Swamii/adventofcode2016
Sources/day1.swift
1
2814
import Foundation struct Day1 { struct Position: Hashable { var vertical: Int var horizontal: Int var fromStart: Int { return abs(horizontal) + abs(vertical) } var hashValue: Int { return (31 &* vertical.hashValue) &+ vertical.hashValue } ...
mit
bbe9cc87e62b40e2bf6a235a98cd6538
28.621053
90
0.507463
4.954225
false
false
false
false
RMizin/PigeonMessenger-project
FalconMessenger/Supporting Files/UIComponents/FalconTextView.swift
1
1190
// // FalconTextView.swift // Pigeon-project // // Created by Roman Mizin on 12/11/17. // Copyright © 2017 Roman Mizin. All rights reserved. // import UIKit class FalconTextView: UITextView { convenience init() { self.init(frame: .zero) font = MessageFontsAppearance.defaultMessageTextFont backgro...
gpl-3.0
bda8d6e45ca4b9b7232a290207fcbc3d
28.725
126
0.718251
4.355311
false
false
false
false
wftllc/hahastream
Haha Stream/Features/Sport/DateListViewController.swift
1
2911
import UIKit protocol DateListDelegate: class { func dateListDidSelect(date: Date); } class DateListViewController: UITableViewController { var sport: Sport! weak var delegate: DateListDelegate?; var dates:[Date]!; let daysToShow = 1000; var dateFormatter: DateFormatter = { let df = DateFormatter(); df.lo...
mit
9b0078e9a3e150a33c0844bc3d920917
24.761062
106
0.704569
3.736842
false
false
false
false
DAloG/BlueCap
BlueCap/Peripheral/PeripheralManagerAdvertisedServicesViewController.swift
1
4413
// // PeripheralManagerAdvertisedServicesViewController.swift // BlueCap // // Created by Troy Stribling on 10/2/14. // Copyright (c) 2014 Troy Stribling. The MIT License (MIT). // import UIKit import BlueCapKit class PeripheralManagerAdvertisedServicesViewController: UITableViewController { struct MainStory...
mit
4030b3068140f6eaf5c4e6b163c790fb
39.861111
159
0.70383
6.120666
false
false
false
false
XLsn0w/XLsn0wKit_swift
XLsn0wKit/XLsn0wToast/ToastWindow.swift
1
5315
/********************************************************************************************* * __ __ _ _________ _ _ _ _________ __ _ __ * * \ \ / / | | | _______| | | \ | | | ______ | \ \ / \ / / * * \ \ / / | | | | ...
mit
69d8471a132059ef1d8abc674fe6d50a
35.40411
111
0.584196
4.562232
false
false
false
false
theJenix/swifter
src/Swifter/StringExt.swift
1
1821
// // StringExt.swift // COTFDemo // // Created by Jesse Rosalia on 7/23/14. // Copyright (c) 2014 Jesse Rosalia. All rights reserved. // import Foundation extension String { func length() -> Int { return self.characters.count } //copied from http://stackoverflow.com/a/24045523/1050693 ...
mit
10a329143f91519d0dcd769193296fe3
29.366667
130
0.583196
3.993421
false
false
false
false
LoveZYForever/HXWeiboPhotoPicker
Pods/HXPHPicker/Sources/HXPHPicker/Editor/Controller/Video/VideoEditorViewController+Request.swift
1
8224
// // VideoEditorViewController+Request.swift // HXPHPicker // // Created by Slience on 2021/8/6. // import UIKit import AVKit import Photos // MARK: PhotoAsset Request AVAsset extension VideoEditorViewController { #if HXPICKER_ENABLE_PICKER func requestAVAsset() { if photoAsset.isNetworkAsset { ...
mit
2f33843e4ae84d99fa8becaaaa5f4b02
36.513761
105
0.553558
5.376726
false
false
false
false
n8armstrong/CalendarView
CalendarView/CalendarView/Classes/ContentView.swift
1
3891
// // CalendarContentView.swift // Calendar // // Created by Nate Armstrong on 3/29/15. // Copyright (c) 2015 Nate Armstrong. All rights reserved. // Updated to Swift 4 by A&D Progress aka verebes (c) 2018 // import UIKit import SwiftMoment class ContentView: UIScrollView { let numMonthsLoaded = 3 let curre...
mit
a364b4d5ebbd1dd7931ee29449467300
24.598684
96
0.632999
3.910553
false
false
false
false
maxsokolov/Leeloo
Sources/NetworkClientResponseHandler.swift
1
2857
// // Copyright (c) 2017 Max Sokolov https://twitter.com/max_sokolov // // 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 ri...
mit
d00915f7d7a8a22b5cde6e903a461db8
39.239437
103
0.627231
5.290741
false
false
false
false
programersun/HiChongSwift
HiChongSwift/LoginInputCell.swift
1
2364
// // LoginInputCell.swift // HiChongSwift // // Created by eagle on 14/12/18. // Copyright (c) 2014年 多思科技. All rights reserved. // import UIKit enum LoginInputCellType { case PhoneNumber case Password } class LoginInputCell: UITableViewCell { @IBOutlet private weak var icyImageView: UIImageView...
apache-2.0
e0835d669baa0778dc4e467a86c7a316
30.378378
132
0.672696
5.069869
false
false
false
false
devpunk/velvet_room
Source/Model/Connecting/Models/MConnectingPin.swift
1
764
import Foundation final class MConnectingPin { let length:Int private let pinString:String init() { pinString = MConnectingPin.generatePin() length = pinString.count } //MARK: internal func digitAtIndex(index:Int) -> String { let startIndex:String....
mit
d7956fe7bcfd434f864ccba7622955d4
21.470588
60
0.604712
4.60241
false
false
false
false
liuwin7/meizi_app_ios
Pods/ElasticTransition/ElasticTransition/EdgePanTransition.swift
1
8718
/* The MIT License (MIT) Copyright (c) 2015 Luke Zhao <me@lkzhao.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
mit
a26a2d0c62d289b31a4ee0adf3686219
33.872
286
0.750631
5.731755
false
false
false
false
satyasuman/SwiftSkeleton
SwiftSkeleton/AppDelegate.swift
1
7604
// // AppDelegate.swift // SwiftSkeleton // // Created by Wilson Zhao on 8/21/14. // Copyright (c) 2014 Wilson Zhao. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate { var window: UIWindow? func ...
mit
988c66c392fb6bd4ea2196b851eb62f8
56.606061
290
0.725145
6.187144
false
false
false
false
Bruno-Furtado/holt_winters
HoltWinters/Classes/Model/ItemModel.swift
1
990
// // ItemModel.swift // HoltWinters // // Created by Bruno Tortato Furtado on 03/05/16. // Copyright © 2016 Bruno Tortato Furtado. All rights reserved. // import Foundation final class ItemModel: CustomStringConvertible { var t: Int = 0 var d: Double = 0 var L: Double = 0 var b: Double = 0 ...
mit
9d55808979c7e241dd74895077f95598
25.052632
64
0.47725
3.159744
false
false
false
false
wordpress-mobile/WordPress-iOS
WordPress/Classes/Utility/FormattableContent/FormattableRangesFactory.swift
2
1016
protocol FormattableRangesFactory { static func contentRange(from dictionary: [String: AnyObject]) -> FormattableContentRange? } extension FormattableRangesFactory { static func rangeFrom(_ dictionary: [String: AnyObject]) -> NSRange? { guard let indices = dictionary[RangeKeys.indices] as? [Int], ...
gpl-2.0
25cfbf9edb0c2dd070ce7de35ceb2344
29.787879
94
0.634843
4.34188
false
false
false
false
NicolasKim/Roy
Example/Pods/GRDB.swift/GRDB/Record/RowConvertible+Decodable.swift
1
13595
private struct RowKeyedDecodingContainer<Key: CodingKey>: KeyedDecodingContainerProtocol { let decoder: RowDecoder init(decoder: RowDecoder) { self.decoder = decoder } var codingPath: [CodingKey] { return decoder.codingPath } /// All the keys the `Decoder` has for this contain...
mit
168a75e4dd015f39ad98066846b64415
51.898833
262
0.660316
4.52714
false
false
false
false
wordpress-mobile/WordPress-iOS
WordPress/Classes/ViewRelated/Jetpack/Branding/Button/CircularImageButton.swift
1
1808
import UIKit /// Use this UIButton subclass to set a custom background for the button image, different from tintColor and backgroundColor. /// If there's not image, it has no effect. Supports only circular images. class CircularImageButton: UIButton { private lazy var imageBackgroundView: UIView = { let v...
gpl-2.0
b436efd53987400b04cd03a91a609f18
43.097561
125
0.702987
5.832258
false
false
false
false
mentalfaculty/impeller
Sources/JSONForestSerializer.swift
1
11873
// // JSONRepository.swift // Impeller // // Created by Drew McCormack on 26/01/2017. // Copyright © 2017 Drew McCormack. All rights reserved. // import Foundation public enum JSONSerializationError: Error { case invalidMetadata case invalidFormat(reason: String) case invalidProperty(reason: String) ...
mit
3ee4389055891d9772c6bf0807fe36f9
41.859206
134
0.606301
5.049766
false
false
false
false
omochi/numsw
Playgrounds/ChartRenderer.swift
1
1141
// // ChartRenderer.swift // sandbox // // Created by omochimetaru on 2017/03/06. // Copyright © 2017年 sonson. All rights reserved. // import CoreGraphics public class ChartRenderer: Renderer { public init(chart: Chart) { self.chart = chart update() } public let char...
mit
2a5bedfc2a8af608fca77f0f869e89e6
24.288889
98
0.589631
4.552
false
false
false
false
Crisfole/SwiftWeather
SwiftWeather/ForecastView.swift
2
2734
// // ForecastView.swift // SwiftWeather // // Created by Jake Lin on 8/22/15. // Copyright © 2015 Jake Lin. All rights reserved. // import UIKit @IBDesignable class ForecastView: UIView { // Our custom view from the XIB file var view: UIView! @IBOutlet weak var timeLabel: UILabel! @IBOutlet weak var i...
mit
a7f391a4d71b735e8e67b1b6e57eeb27
18.521429
80
0.611416
4.480328
false
false
false
false
skedgo/tripkit-ios
Sources/TripKit/server/TKRealTimeFetcher.swift
1
7414
// // TKRealTimeFetcher.swift // TripKit // // Created by Adrian Schönig on 6/8/21. // Copyright © 2021 SkedGo Pty Ltd. All rights reserved. // #if canImport(CoreData) import Foundation import CoreData public class TKRealTimeFetcher { private init() {} public static func update(_ entries: Set<DLSEntry>...
apache-2.0
ca6f6502401c471be5cf010a0e0d4f70
34.980583
154
0.633567
4.519512
false
false
false
false
AECC-UPRRP/GallitoBooks
GallitoBooks/AppDelegate.swift
1
6124
// // AppDelegate.swift // GallitoBooks // // Created by Xiomara on 5/9/15. // Copyright (c) 2015 UPRRP. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didF...
mit
2b48c396bf29c8e0936866bc5f3af605
54.672727
290
0.715872
5.718021
false
false
false
false
joemcbride/outlander-osx
src/Outlander/AppConfigLoader.swift
1
3507
// // AppConfigLoader.swift // Outlander // // Created by Joseph McBride on 3/19/17. // Copyright © 2017 Joe McBride. All rights reserved. // import Foundation @objc class AppConfigLoader : NSObject { class func newInstance(context:GameContext, fileSystem:FileSystem) -> AppConfigLoader { return AppCo...
mit
95261220517aabd02454c177f2051044
36.698925
136
0.692812
4.987198
false
true
false
false
hachinobu/SwiftQiitaClient
SwiftQiitaClient/Model/QiitaAPI/Endpoint/PostItemEndpoint.swift
1
1778
// // PostItemEndpoint.swift // SwiftQiitaClient // // Created by Takahiro Nishinobu on 2015/11/29. // Copyright © 2015年 hachinobu. All rights reserved. // import Foundation import Alamofire import ObjectMapper extension QiitaAPI { class AllPostItemList: RequestProtocol { typealias Respo...
mit
3cfa72bbdce560a160d7ce1cb830c50f
29.101695
157
0.567324
5.378788
false
false
false
false
Athlee/ATHKit
Examples/ATHImagePickerController/Storyboard/TestPicker/Pods/Material/Sources/iOS/NavigationController.swift
2
6413
/* * Copyright (C) 2015 - 2016, 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...
mit
bbd15a668eeb79d6d6aa7a7f06f1fb7b
35.856322
115
0.701388
5.025862
false
false
false
false
rabbitinspace/Tosoka
Tests/TosokaTests/JSON/Jay/Formatter.swift
2
4239
// // Formatter.swift // Jay // // Created by Honza Dvorsky on 2/19/16. // Copyright © 2016 Honza Dvorsky. All rights reserved. // protocol JsonFormattable { func format(to stream: JsonOutputStream, with formatter: Formatter) throws } extension JSON: JsonFormattable { func format(to stream: JsonOutpu...
mit
49bfbd12b1536ea4a9f2cadd5d06bdc6
32.109375
104
0.526899
4.821388
false
false
false
false
insidegui/PlayAlways
PlayAways/StatusItemController.swift
1
3962
// // StatusItemController.swift // PlayAways // // Created by Guilherme Rambo on 08/12/16. // Copyright © 2016 Guilherme Rambo. All rights reserved. // import Cocoa enum MenuOptions: Int { case iOS case macOS case tvOS case iOSWithPanel case macOSWithPanel case tvOSWithPanel } final clas...
bsd-2-clause
cd73ab0d0e5293778ebdc7a2e98146a1
46.035714
246
0.697545
4.800729
false
false
false
false
irealme/MapManager
Maptest/Maptest/ViewController.swift
1
11414
// // ViewController.swift // Maptest // // Created by Jimmy Jose on 18/08/14. // // // 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 th...
mit
f7d8a4135a0c5928645915723cf34015
35.006309
145
0.580953
6.376536
false
false
false
false
vtourraine/AcknowList
Sources/AcknowList/AcknowListViewController.swift
1
17215
// // AcknowListViewController.swift // // Copyright (c) 2015-2022 Vincent Tourraine (https://www.vtourraine.net) // // 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, in...
mit
efc1524834b4dfe991cc7ad1ebebe84e
39.02093
211
0.666279
4.975137
false
false
false
false
359north/swift-quiet-uisplitviewcontroller
SplitViewWithContainer/DetailViewController.swift
1
1496
// // DetailViewController.swift // SplitViewWithContainer // // Created by Steve Mykytyn on 8/14/15. // Copyright (c) 2015 359 North Inc. All rights reserved. // import UIKit class DetailViewController: UIViewController { @IBOutlet weak var detailDescriptionLabel: UILabel! static var instanceCounter:Int = 0 ...
mit
26e70abd04093943eb2543f31ce0539f
20.070423
137
0.707888
4.087432
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/Platform/Sources/PlatformUIKit/Components/AccountPicker/RIB/AccountPickerInteractor.swift
1
9468
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import BlockchainNamespace import Combine import DIKit import Errors import MoneyKit import PlatformKit import RIBs import RxCocoa import RxRelay import RxSwift import ToolKit public protocol AccountPickerRouting: ViewableRouting { // Declare methods ...
lgpl-3.0
ec052ef7beae479feba5aa5487984ad4
31.421233
120
0.577268
5.394302
false
false
false
false
keyeMyria/DeckRocket
Source/Shared/Slide.swift
1
2434
// // Slide.swift // DeckRocket // // Created by JP Simard on 4/8/15. // Copyright (c) 2015 JP Simard. All rights reserved. // import Foundation #if os(iOS) import UIKit typealias Image = UIImage #else import AppKit typealias Image = NSImage extension NSImage { func imageByScalingWith...
mit
4f851d312f5dd78cd324ab5723e6d9b1
28.682927
102
0.576007
4.449726
false
false
false
false
ludoded/ReceiptBot
ReceiptBot/Scene/Expenses/ExpensesRouter.swift
1
2112
// // ExpensesRouter.swift // ReceiptBot // // Created by Haik Ampardjian on 4/5/17. // Copyright (c) 2017 receiptbot. All rights reserved. // // This file was generated by the Clean Swift Xcode Templates so you can apply // clean architecture to your iOS and Mac projects, see http://clean-swift.com // import UI...
lgpl-3.0
3e75baa1e1e4609aa0902bb7956b9381
36.052632
114
0.722538
5.557895
false
false
false
false
cactis/SwiftEasyKit
Source/Classes/GroupView.swift
1
1350
// GruposView.swift // import UIKit import Neon import Facade open class GroupsView: DefaultView { public var body: UIView! public var groupMargins: [UIView]! = [] public var groups: [UIView]! = [] public var count: Int! = 2 public var padding: CGFloat! = 0 public var group: Neon.Group! = .horizontal ...
mit
084aa747575857efa12fc0a0a24b86a1
24.471698
133
0.657037
3.75
false
false
false
false
johndatserakis/RibbonReminder
Ribbon Reminder/ViewController.swift
1
22801
// // ViewController.swift // Ribbon Reminder // // Created by John Datserakis on 11/7/14. // Copyright (c) 2014 John Datserakis. All rights reserved. // import UIKit import Foundation class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate { var indexPathH...
mit
303a487580e4910e6215f3e04f658f6a
38.585069
162
0.608131
5.528855
false
false
false
false
Antondomashnev/Sourcery
SourceryTests/Stub/Performance-Code/Kiosk/App/Views/Text Fields/CursorView.swift
4
1234
import UIKit class CursorView: UIView { let cursorLayer: CALayer = CALayer() override init(frame: CGRect) { super.init(frame: frame) setup() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) setup() } override func awakeFromNib() { ...
mit
c062d7203121c8e53f42b631bec5ee16
23.196078
106
0.614263
4.487273
false
false
false
false
teaxus/TSAppEninge
Source/Tools/InformationManage/StringManage.swift
1
13264
// // StringManage.swift // TSAppEngine // // Created by teaxus on 15/11/19. // Copyright © 2015年 teaxus. All rights reserved. // import Foundation public class StringManage: NSObject { class var textview_test_size:UITextView?{ struct simgle{ static var textview:UITextView? } ...
mit
b1a0a2c56053ff26f3d9319f82d82d1c
31.86398
281
0.520579
4.00092
false
false
false
false
kesun421/firefox-ios
Shared/Extensions/HexExtensions.swift
3
2398
/* 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 extension String { public var hexDecodedData: Data { // Convert to a CString and ma...
mpl-2.0
a20a6058bc563f09c7f7b2239c5fdd10
33.257143
115
0.547123
3.758621
false
false
false
false
Shaquu/SwiftProjectsPub
PassedData/PassedData/AppDelegate.swift
1
4614
// // AppDelegate.swift // PassedData // // Created by Tadeusz Wyrzykowski on 11.11.2016. // Copyright © 2016 Tadeusz Wyrzykowski. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ app...
gpl-3.0
ee593d09c263e7b83492a6fbe9027023
48.602151
285
0.687188
5.883929
false
false
false
false
barabashd/WeatherApp
WeatherApp/Stopwatch.swift
1
1268
// // Stopwatch.swift // WeatherApp // // Created by Dmytro Barabash on 2/17/18. // Copyright © 2018 Dmytro. All rights reserved. // import Foundation public class Stopwatch { public init() { } private var start_: TimeInterval = 0.0 private var end_: TimeInterval = 0.0 private var timer = Tim...
mit
35068903d0577384d3a7fbb380884f05
22.462963
141
0.541436
4.641026
false
false
false
false
GlobusLTD/components-ios
Demo/Sources/ViewControllers/TextField/TextFieldViewController.swift
1
1397
// // Globus // import Globus class TextFieldViewController: GLBViewController { // MARK - Outlet property @IBOutlet fileprivate weak var textField: GLBTextField! // MARK - UIViewController override func viewDidLoad() { super.viewDidLoad() let textStyle = ...
mit
55fc9a986d89c78e7ad7e8184695957b
25.358491
91
0.635648
5.117216
false
false
false
false
willpowell8/LocalizationKit_iOS
Examples/iOS_Swift_Cocoapods/LocalizationKit/ViewController.swift
1
2523
// // ViewController.swift // LocalizationKit // // Created by Will Powell on 11/08/2016. // Copyright (c) 2016 Will Powell. All rights reserved. // import UIKit import LocalizationKit import MBProgressHUD class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() ...
mit
2ce845199768f25775006443b449120b
34.535211
139
0.557273
5.840278
false
false
false
false
1457792186/JWSwift
SwiftLearn/SwiftDemo/SwiftDemo/AppDelegate.swift
1
2438
// // AppDelegate.swift // SwiftDemo // // Created by apple on 17/5/4. // Copyright © 2017年 UgoMedia. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWi...
apache-2.0
33a7faa4085ae00f61a4ebcc4a7f3c09
44.092593
285
0.733881
5.484234
false
false
false
false
avito-tech/Marshroute
Marshroute/Sources/Routers/BaseImpls/BaseMasterDetailRouter/MasterDetailRouterSeed.swift
1
1542
import Foundation /// Параметры для создания роутеров, управляющих двумя экранами (двумя UINavigationController'ами) public struct MasterDetailRouterSeed { public let masterTransitionsHandlerBox: RouterTransitionsHandlerBox public let detailTransitionsHandlerBox: RouterTransitionsHandlerBox public let tran...
mit
988f2d0bc43baa49f6edb2e181b41b76
48.4
98
0.803644
7.264706
false
false
false
false
ProfileCreator/ProfileCreator
ProfileCreator/ProfileCreator/Profile Settings/ProfileSettingsValues.swift
1
6077
// // ProfileSettingsValues.swift // ProfileCreator // // Created by Erik Berglund. // Copyright © 2018 Erik Berglund. All rights reserved. // import Foundation import ProfilePayloads extension ProfileSettings { // MARK: - // MARK: Get func value(forSubkey subkey: PayloadSubkey, payloadIndex: Int) -...
mit
16a7dadd9276301f128be87ad145f7b1
51.834783
214
0.64763
4.710078
false
false
false
false
SlimGinz/HomeworkHelper
Homework Helper/Menu.swift
1
5403
// // Menu.swift // Homework Helper // // Created by Cory Ginsberg on 2/8/15. // Copyright (c) 2015 Boiling Point Development. All rights reserved. // import UIKit @objc protocol MenuDelegate { optional func getCurrentViewController() -> UIViewController optional func pathMenu(menu: PathMenu, didSelectInd...
gpl-2.0
2baffa3cc3eabe791c60aabbe7feae49
47.675676
212
0.638534
5.021375
false
false
false
false
plutoless/fgo-pluto
FgoPluto/FgoPluto/views/plan/PlanEditor.swift
1
9076
// // TargetEditor.swift // FgoPluto // // Created by Zhang, Qianze on 29/09/2017. // Copyright © 2017 Plutoless Studio. All rights reserved. // import Foundation import UIKit import RangeSeekSlider typealias PlanRange = (Int, Int) protocol PlanEditDelegate : class{ func didFinishEdit(servant:Servant, values...
apache-2.0
b1161e2ae5fd9f339b92ca1b4571b0e3
30.757895
159
0.5785
4.299762
false
false
false
false
HongliYu/firefox-ios
Storage/Rust/RustLogins.swift
1
15721
/* 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 Deferred @_exported import MozillaAppServices private let log = Logger.sy...
mpl-2.0
9a9f1cf2785fc911e8b90282df07089d
34.008909
240
0.57421
5.167324
false
false
false
false
remirobert/Dotzu-Objective-c
Pods/Dotzu/Dotzu/LoggerNetwork.swift
1
5071
// // LoggerNetwork.swift // exampleWindow // // Created by Remi Robert on 24/01/2017. // Copyright © 2017 Remi Robert. All rights reserved. // import Foundation fileprivate var bodyValues = [String:Data]() extension NSMutableURLRequest { @objc class func httpBodyHackSwizzle() { let setHttpBody = cl...
mit
ff79788427f118e9eda09f7d9e9202d3
34.454545
115
0.664103
5.121212
false
false
false
false
OscarSwanros/swift
test/Interpreter/SDK/objc_swift_getObjectType.swift
16
1389
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test // REQUIRES: objc_interop import Foundation protocol P: class { } class AbstractP: P { } class DelegatedP<D: P>: AbstractP { init(_ d: D) { } } class AnyP: DelegatedP<AbstractP> { init<D: P>(_ d: D) { super.init(DelegatedP<D>(d...
apache-2.0
cdb449a738a3ecf151187c5e8c6f4b1e
22.15
75
0.663787
3.013015
false
false
false
false
5lucky2xiaobin0/PandaTV
PandaTV/PandaTV/Classes/Home/Controller/HomeVC.swift
1
2263
// // HomeVC.swift // PandaTV // // Created by 钟斌 on 2017/3/24. // Copyright © 2017年 xiaobin. All rights reserved. // import UIKit class HomeVC: UIViewController { lazy var titleView : IndexTitleView = { let titles = ["订阅","推荐","全部"] let titleView = IndexTitleView(frame: CGRect(x: 0, y: ...
mit
e8934cdadae33592b8394a057cdb1de4
26.65
162
0.636528
4.468687
false
false
false
false
5604Pocusset/PlaySwift
GuidedTour.playground/section-58.swift
1
662
class EquilateralTriangle: NamedShape { var sideLength: Double = 0.0 init(sideLength: Double, name: String) { self.sideLength = sideLength super.init(name: name) numberOfSides = 3 } var perimeter: Double { get { return 3.0 * sideLength } ...
apache-2.0
6d021b2ae845ddbbe493deaa7b9d834d
24.461538
76
0.60423
4.534247
false
false
false
false
frootloops/swift
test/SILGen/generic_witness.swift
1
2499
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -enable-sil-ownership %s protocol Runcible { func runce<A>(_ x: A) } // CHECK-LABEL: sil hidden @_T015generic_witness3foo{{[_0-9a-zA-Z]*}}F : $@convention(thin) <B where B : Runcible> (@in B)...
apache-2.0
66814fa399ad90a7d4819db218356e52
43.017857
360
0.63002
2.794785
false
false
false
false
VoIPGRID/vialer-ios
Vialer/Helpers/VialerGAITracker.swift
1
11778
// // GAITracker.swift // Copyright © 2016 VoIPGRID. All rights reserved. // import Foundation /// Wrapper class that makes tracking within the app easy. class VialerGAITracker: NSObject { /** Constants for this class. */ struct GAIConstants { static let inbound: String = "Inbound" ...
gpl-3.0
95ab8e9af69e05ae4c74cdaf65d2280c
37.996689
163
0.671478
4.86251
false
false
false
false
jalehman/tips
tips/Settings.swift
1
1099
// // Settings.swift // tips // // Created by Josh Lehman on 1/14/15. // Copyright (c) 2015 Josh Lehman. All rights reserved. // import Foundation class Settings: NSObject, NSCoding { var percentages: [TipPercent]! var splitBetween: Int = 1 var billAmount: Double = 0 override init() {} ...
gpl-2.0
46dadee250cd7774ea852186e8efdcff
27.205128
84
0.658781
4.292969
false
false
false
false
xwu/swift
stdlib/public/Concurrency/AsyncDropWhileSequence.swift
1
4646
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
apache-2.0
2c98dc3d0da4577672d049813d788ae7
35.015504
80
0.66229
4.819502
false
false
false
false
bitboylabs/selluv-ios
selluv-ios/selluv-ios/Classes/Controller/UI/Seller/views/SLVUserFollowProductsView.swift
1
4062
// // SLVUserFollowProductsView.swift // selluv-ios // // Created by 조백근 on 2017. 2. 2.. // Copyright © 2017년 BitBoy Labs. All rights reserved. // import UIKit import TagListView class SLVUserFollowProductsView: UICollectionViewCell { @IBOutlet weak var photosView: UICollectionView! //"SLVPhotoSelectionCe...
mit
d8e39a00098f4da7070605ddf4f57fa8
33.939655
157
0.592401
4.842294
false
false
false
false
eduarenas80/MarvelClient
Source/Entities/Comic.swift
2
4459
// // Comic.swift // MarvelClient // // Copyright (c) 2016 Eduardo Arenas <eapdev@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without...
mit
15343f91c9434e77ecd1699509079f9e
35.252033
88
0.708679
3.98125
false
false
false
false
xiangwangfeng/M80AttributedLabel
SwiftDemo/Classes/Util/Util.swift
1
690
// // Util.swift // SwiftDemo // // Created by amao on 2016/10/12. // Copyright © 2016年 amao. All rights reserved. // import Foundation func RGB(_ value : Int) -> UIColor { let r = CGFloat((value & 0xFF0000) >> 16) / 255.0 let g = CGFloat((value & 0x00FF00) >> 8 ) / 255.0 let b = CGFloat((value & 0x00...
mit
e8ddc49d2de475617160a9f7c16732da
24.444444
89
0.614265
3.255924
false
false
false
false
esttorhe/RxSwift
RxSwift/RxSwift/Observables/Implementations/Sink.swift
1
1581
// // Sink.swift // Rx // // Created by Krunoslav Zaher on 2/19/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation class Sink<O : ObserverType> : Disposable { private typealias Element = O.Element typealias State = ( observer: O?, cancel: Disposable,...
mit
811675e0883e0c956bd0f616d5a5ce4c
19.545455
60
0.504744
4.834862
false
false
false
false
r-mckay/montreal-iqa
montrealIqa/Carthage/Checkouts/Reusable/Example/ReusableDemo iOS/CollectionViewCells/MyColorSquareCell.swift
3
962
// // MyColorSquareCell.swift // ReusableDemo // // Created by Olivier Halligon on 19/01/2016. // Copyright © 2016 AliSoftware. All rights reserved. // import UIKit import Reusable /** * This view is reusable and has a `reuseIdentifier` (as it's a CollectionViewCell * and it uses the Collectioniew recycling mec...
mit
6ef3a658f4adbbdaf3b3279380338cb4
28.121212
82
0.720083
4.037815
false
false
false
false
easyui/Alamofire
Tests/ParameterEncoderTests.swift
2
33072
// // ParameterEncoderTests.swift // // Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) // // 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 restri...
mit
322507a11c47ca669ae60cb4431dc630
31.387255
193
0.631391
4.503135
false
true
false
false
jcsla/MusicoAudioPlayer
MusicoAudioPlayer/Classes/player/AudioPlayerMode.swift
3
1204
// // AudioPlayerMode.swift // AudioPlayer // // Created by Kevin DELANNOY on 19/03/16. // Copyright © 2016 Kevin Delannoy. All rights reserved. // import Foundation /// Represents the mode in which the player should play. Modes can be used as masks so that you can play in `.shuffle` /// mode and still `.repeatAl...
mit
31fbe6347865aa3acac5ee43a71ec154
33.371429
118
0.700748
4.296429
false
false
false
false
a736220388/TestKitchen_1606
TestKitchen/TestKitchen/classes/cookbook/foodCourse/model/FoodCourseModel.swift
1
3955
// // FoodCourseModel.swift // TestKitchen // // Created by qianfeng on 16/8/25. // Copyright © 2016年 qianfeng. All rights reserved. // import UIKit import SwiftyJSON class FoodCourseModel: NSObject { var code:String? var msg:String? var version:String? var timestamp:NSNumber? var data:FoodCou...
mit
f06483702cf0a2045f0c9ccffb7c2902
33.365217
70
0.662702
4.204255
false
false
false
false
mightydeveloper/swift
validation-test/compiler_crashers_fixed/2079-swift-module-lookupvalue.swift
13
367
// RUN: not %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing let f = true } struct D : NSObject { print() -> { } protocol P { typealias d : d == b> Int = [B case A, y...
apache-2.0
6651ee431ef618cf72058fb467532307
23.466667
87
0.66485
3.306306
false
true
false
false
mightydeveloper/swift
test/SILPasses/Inputs/BaseProblem.swift
14
404
public class BaseProblem { func run() -> Int { return 0 } } class Evaluator { var map: [Int: () -> Int] = [:] init() { map[1] = { Problem1().run() } map[2] = { Problem2().run() } } func evaluate(n: Int) { if let problemBlock = map[n] { ...
apache-2.0
ab090c4dd3609f22e862c3b6ca0f9563
13.962963
37
0.408416
3.452991
false
false
false
false
morpheby/aTarantula
Xcode Templates/aTarantula Plug-in.xctemplate/main/SettingsViewController.swift
1
5238
//___FILEHEADER___ import Cocoa import TarantulaPluginCore class SettingsViewController: NSViewController { var plugin: ___PACKAGENAMEASIDENTIFIER___CrawlerPlugin! @objc dynamic var filterDrugName: String? = UserDefaults.standard.filterDrugName { didSet { UserDefaults.standard.filterDrugNa...
gpl-3.0
6dbd7a25c46d42a43928148a2cccc0a6
31.333333
135
0.580565
5.243243
false
false
false
false
mmadjer/RxStateFlow
Tests/TestMocks.swift
1
1340
// // TestMocks.swift // RxStateFlow // // Created by Miroslav Valkovic-Madjer on 27/10/16. // Copyright © 2016 Miroslav Madjer. All rights reserved. // @testable import RxStateFlow class TestState: StateObject { open fileprivate(set) dynamic var value: String = "" override func react(to event: Event) {...
mit
f7a022acac2e02fe2d487454df0720bf
22.491228
67
0.635549
3.997015
false
true
false
false
Sajjon/Zeus
Zeus/ModelManager.swift
1
6666
// // ModelManager.swift // Zeus // // Created by Alexander Georgii-Hemming Cyon on 20/08/16. // Copyright © 2016 com.cyon. All rights reserved. // import Foundation import CoreData import Alamofire import SwiftyBeaver public protocol ModelManagerProtocol { static var sharedInstance: ModelManagerProtocol! { g...
apache-2.0
5574f81b133ae2de026343dacb77154b
37.976608
211
0.643661
4.716914
false
false
false
false
coderMONSTER/iosstar
iOSStar/AppAPI/MarketAPI/MarketSocketAPI.swift
1
7440
// // MarketSocketAPI.swift // iOSStar // // Created by J-bb on 17/5/13. // Copyright © 2017年 YunDian. All rights reserved. // import Foundation class MarketSocketAPI: BaseSocketAPI,MarketAPI { //请求行情分类 func requestTypeList(complete: CompleteBlock?, error: ErrorBlock?) { let paramters:[Strin...
gpl-3.0
43d20ad472412485f2b2ba539d7cdcff
48.5
129
0.708178
4.387978
false
false
false
false
nuudles/NavigationMeshGraph
Example/NavigationMeshGraphExample/GameScene.swift
1
5223
// // GameScene.swift // NavigationMeshGraphExample // // Created by Christopher Luu on 7/2/15. // Copyright (c) 2015 Nuudles. All rights reserved. // import SpriteKit import GameplayKit import NavigationMeshGraph import SwiftyJSON // Extend `CGPoint` to add an initializer from a `float2` representation of a poin...
mit
32ee6369ac021adc55bba00849860618
25.647959
133
0.713957
3.49131
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/RemoteNotifications/Sources/RemoteNotificationsKit/Network/PushNotificationAuthPayload.swift
1
1542
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import Foundation import NetworkKit struct RemoteNotificationTokenQueryParametersBuilder { enum BuildError: Error { case guidIsEmpty case sharedKeyIsEmpty case tokenIsEmpty } private enum Keys: String { case g...
lgpl-3.0
7da4b95675c788ac52db9d0588f0283b
30.44898
94
0.648929
4.741538
false
false
false
false
matsuda/MuddlerKit
MuddlerKit/UIViewControllerExtensions.swift
1
2621
// // UIViewControllerExtensions.swift // MuddlerKit // // Created by Kosuke Matsuda on 2015/12/28. // Copyright © 2015年 Kosuke Matsuda. All rights reserved. // import UIKit extension UIViewController { public func peelAllPresentedViewControllers() { var presented = self.presentedViewController ...
mit
8b7358a29852cbd9a3f6f88413a9aed5
32.25641
103
0.643408
5.359504
false
false
false
false
WLChopSticks/weiboCopy
weiboCopy/weiboCopy/AppDelegate.swift
2
2786
// // AppDelegate.swift // weiboCopy // // Created by 王 on 15/12/12. // Copyright © 2015年 王. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions l...
mit
38fd3b4ddae3d1814fa24c02b8b4c9fa
40.477612
285
0.717164
5.459725
false
false
false
false
uasys/swift
test/APINotes/versioned-multi.swift
5
20518
// RUN: %empty-directory(%t) // RUN: %target-swift-ide-test -F %S/Inputs/custom-frameworks -print-module -source-filename %s -module-to-print=APINotesFrameworkTest -function-definitions=false -print-regular-comments -swift-version 3 | %FileCheck -check-prefix=CHECK-SWIFT-3 %s // RUN: %target-swift-ide-test -F %S/Inpu...
apache-2.0
9248a5d3eb737b4da1ff6396432108d5
68.084175
247
0.776635
3.100801
false
false
false
false
netguru/inbbbox-ios
Inbbbox/Source Files/ViewModels/ShotDetailsFormatter.swift
1
9157
// // ShotDetailsFormatter.swift // Inbbbox // // Created by Patryk Kaczmarek on 23/02/16. // Copyright © 2016 Netguru Sp. z o.o. All rights reserved. // import Foundation import UIKit.NSAttributedString final class ShotDetailsFormatter { static let ShotDetailsFormatterSmallFontSize: CGFloat = 12 static ...
gpl-3.0
5494fda44e5fff48a7f01369b6916982
48.76087
161
0.699214
6
false
false
false
false
netguru/inbbbox-ios
Unit Tests/ParametersSpec.swift
1
5181
// // ParametersSpec.swift // Inbbbox // // Created by Radoslaw Szeja on 15/12/15. // Copyright © 2015 Netguru Sp. z o.o. All rights reserved. // import Quick import Nimble @testable import Inbbbox class ParametersSpec: QuickSpec { override func spec() { describe("when newly initialized") { ...
gpl-3.0
1fc52b8a23c66d0d85b79997e1a0364b
37.088235
135
0.392471
5.787709
false
false
false
false
swordfishyou/fieldstool
FieldTool/Sources/Extensions/String+WKTHelpers.swift
1
2167
// // String+WKTHelpers.swift // FieldTool // import Foundation extension String { func geometryName() -> String { let charactersToTrim = CharacterSet.uppercaseLetters.inverted return self.trimmingCharacters(in: charactersToTrim) } func trimmingGeometryName() -> String { let...
mit
3375c42d84178dff62fc4e1b7bd1a90c
36.362069
90
0.597139
5.570694
false
false
false
false
pascaljette/GearKit
Example/GearKit/Samples/SamplesHomeViewController.swift
1
5397
// The MIT License (MIT) // // Copyright (c) 2015 pascaljette // // 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, cop...
mit
ac869d70db02140aa19a4bfd3177bd1b
34.27451
121
0.625718
5.255112
false
false
false
false
itsaboutcode/WordPress-iOS
WordPress/Classes/ViewRelated/Post/PostSettingsViewController+FeaturedImageUpload.swift
1
6268
import Foundation import Photos import WordPressFlux extension PostSettingsViewController { @objc func setFeaturedImage(asset: PHAsset) { guard let media = MediaCoordinator.shared.addMedia(from: asset, to: self.apost) else { return } apost.featuredImage = media setupObs...
gpl-2.0
7c2898d5ee67a393812b3c270e25a24e
48.354331
199
0.644384
5.651939
false
false
false
false
XiaHaozheJose/WB
WB/WB/Classes/Discover/JS_DiscoverViewController.swift
1
3155
// // JS_DiscoverViewController.swift // WB // // Created by 浩哲 夏 on 2017/1/3. // Copyright © 2017年 浩哲 夏. All rights reserved. // import UIKit class JS_DiscoverViewController: UITableViewController { override func viewDidLoad() { super.viewDidLoad() title = "发现" // Uncomment the foll...
apache-2.0
365e9842c90f4bcd5dbe59816c8921d1
31.666667
136
0.666135
5.209302
false
false
false
false
dnevera/IMProcessing
IMPlatforms/IMProcessingOSX/IMProcessingOSX/IMPScrollView.swift
1
3757
// // IMPScrollView.swift // // Created by denis svinarchuk on 16.12.15. // Copyright © 2015 IMetalling. All rights reserved. // import Cocoa import IMProcessing class IMPScrollView:NSScrollView { private var cv:IMPClipView! private func configure(){ cv = IMPClipView(frame: self.bounds) ...
mit
08c2c718f1060b6ee7da29151bbf4f35
31.102564
133
0.572417
4.487455
false
false
false
false
vector-im/vector-ios
Riot/Modules/Room/TimelineCells/SizableCell/SizableBaseRoomCell.swift
1
7622
/* Copyright 2020 New Vector Ltd 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 agreed to in writing, soft...
apache-2.0
49a10e1315685c83754b966d2f164dad
43.573099
236
0.701916
5.263812
false
false
false
false
pksprojects/ElasticSwift
Sources/ElasticSwiftQueryDSL/Queries/Sort.swift
1
3594
// // Sort.swift // ElasticSwift // // Created by Prafull Kumar Soni on 6/4/17. // // import ElasticSwiftCore import Foundation public enum SortBuilders { public static func scoreSort() -> ScoreSortBuilder { return ScoreSortBuilder() } public static func fieldSort(_ field: String) -> FieldSort...
mit
f179378d8a02fbbd0a7cabdd8463e041
24.309859
208
0.63133
4.319712
false
false
false
false
veeman961/Flicks
Flicks/AppDelegate.swift
1
5635
// // AppDelegate.swift // Flicks // // Created by Kevin Rajan on 1/10/16. // Copyright © 2016 veeman961. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? //var checked: [[Bool]]! var checkedKey:String = "CHECKED_CAT...
apache-2.0
644b869d679fc46138b0ddf8f83f8f81
49.303571
285
0.715655
5.832298
false
false
false
false
xipengyang/SwiftApp1
we sale assistant/we sale assistant/UIColor.swift
1
1621
// // UIColor.swift // we sale assistant // // Created by xipeng yang on 17/05/15. // Copyright (c) 2015 xipeng yang. All rights reserved. // import UIKit extension UIColor { convenience init(hex: Int, alpha: CGFloat = 1.0) { let red = CGFloat((hex & 0xFF0000) >> 16) / 255.0 let green = C...
mit
683a2876b957af3251a357d129080e50
37.595238
63
0.642196
3.377083
false
false
false
false
nmdias/FeedKit
Sources/FeedKit/Models/JSON/JSONFeedAuthor.swift
2
3003
// // JSONFeedAuthor.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 ri...
mit
6be4a662d5ffe4560b53e7ac1b21d47f
38
84
0.694972
4.265625
false
false
false
false
TrustWallet/trust-wallet-ios
Trust/Browser/ViewControllers/HistoryViewController.swift
1
3953
// Copyright DApps Platform Inc. All rights reserved. import UIKit import StatefulViewController protocol HistoryViewControllerDelegate: class { func didSelect(history: History, in controller: HistoryViewController) } final class HistoryViewController: UIViewController { let store: HistoryStore let tabl...
gpl-3.0
d745832b82b8f20ce19b0e8833bc71b8
33.675439
145
0.663294
5.370924
false
false
false
false
Palleas/Synchronizable
SynchronizableTests/DiffReducerSpec.swift
1
5595
// // DiffReducerSpec.swift // DiffReducerSpec // // Created by Romain Pouclet on 2016-09-04. // Copyright © 2016 Perfectly-Cooked. All rights reserved. // import Quick import Nimble @testable import Synchronizable class DiffReducerSpec: QuickSpec { override func spec() { describe("The Diff Reduc...
mit
3b72c86baed5214f3b46647a7c519665
38.118881
117
0.471398
5.237828
false
false
false
false
slevin/swiftfiddle
slisp/slisp/Engine.swift
1
1959
// // Engine.swift // slisp // // Created by Sean Levin on 5/4/15. // Copyright (c) 2015 Sean Levin. All rights reserved. // import Foundation public enum Atom : Equatable, Printable { case StringAtom(String) case IntAtom(Int) public var description : String { switch self { case ....
unlicense
917dc8828d9ebe4dd635635cf1e315bd
23.197531
82
0.480347
3.548913
false
false
false
false
kimsand/Jupiter80Librarian
Jupiter80Librarian/Model/SVDTone.swift
1
3622
// // SVDTone.swift // Jupiter80Librarian // // Created by Kim André Sand on 09/12/14. // Copyright (c) 2014 Kim André Sand. All rights reserved. // import Cocoa enum SVDOscType { case unknown case saw case square case pulse case triangle case sine case noise case superSaw case pcm } class SVDTone: SVDT...
mit
4520f6b69de75acfd8d7d9b2e21929ba
26.846154
90
0.737569
3.094017
false
false
false
false
AbelSu131/ios-charts
Charts/Classes/Charts/RadarChartView.swift
2
7594
// // RadarChartView.swift // Charts // // Created by Daniel Cohen Gindi on 4/3/15. // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/ios-charts // import Foundation import CoreGraphics import UI...
apache-2.0
2fde642be2e90032f39b74c83ceca1ec
30
117
0.615618
4.728518
false
false
false
false
IBM-MIL/IBM-Ready-App-for-Insurance
PerchReadyApp/apps/Perch/iphone/native/Perch/Controllers/EnterPinViewController.swift
1
10822
/* Licensed Materials - Property of IBM © Copyright IBM Corporation 2015. All Rights Reserved. */ import UIKit /** This protocol is implemented by view controllers that embed this view controller */ protocol PinEntryDelegate: class { func didEnterPin() func pinSyncFinished(error: Bool, errorMessage: String?) ...
epl-1.0
06cd8384361069ebb83bfd35f38601af
43.167347
190
0.649293
5.209918
false
false
false
false
Fidetro/SwiftFFDB
Sources/Columns.swift
1
1257
// // Columns.swift // Swift-FFDB // // Created by Fidetro on 2018/5/30. // Copyright © 2018年 Fidetro. All rights reserved. // import Foundation public struct Columns:STMT { let stmt: String } // MARK: - internal extension Columns { init(_ stmt : String,format:String?=nil) { self.stmt = stmt...
apache-2.0
984aecc5e63458b9d7dedf4465e01a11
22.660377
63
0.507974
4.369338
false
false
false
false
spacedrabbit/stanfordHappiness
Happiness/FaceView.swift
1
3589
// // FaceView.swift // Happiness // // Created by Louis Tur on 9/10/15. // Copyright (c) 2015 Louis Tur. All rights reserved. // import UIKit @IBDesignable // holy shit class FaceView: UIView { // because changing the line width requires redrawing, we can add a property observer to this default // value ...
mit
e056eec285575ecaad4b0327e1dc3102
37.591398
139
0.657008
4.836927
false
false
false
false
jindulys/GithubPilot
Sources/GithubRequest.swift
2
12314
// // Request.swift // GitPocket // // Created by yansong li on 2016-02-16. // Copyright © 2016 yansong li. All rights reserved. // import Foundation import Alamofire open class GithubNetWorkClient { var manager: Alamofire.SessionManager var baseHosts: [String: String] func additionalHeaders(_ needoauth: Boo...
mit
b0c8948d52386f174c3bfbf95aba0dd3
30.491049
158
0.663445
4.173898
false
false
false
false
ceskasporitelna/CSATMLocator
CSATMLocator WatchKit 1 Extension/InterfaceController.swift
1
2945
// // InterfaceController.swift // CSATMLocator WatchKit 1 Extension // // Created by Filip Kirschner on 19/09/15. // Copyright © 2015 Vratislav Kalenda. All rights reserved. // import WatchKit import Foundation import MapKit import WatchConnectivity class InterfaceController: WKInterfaceController, WCSessionDele...
mit
4d45d59d09b64971f40a9f55af92a9c1
32.454545
232
0.613791
4.63622
false
false
false
false
lee0741/Glider
Glider Widget/TodayViewController.swift
1
2637
// // TodayViewController.swift // Glider Widget // // Created by Yancen Li on 3/3/17. // Copyright © 2017 Yancen Li. All rights reserved. // import UIKit import NotificationCenter @objc(TodayViewController) class TodayViewController: UITableViewController, NCWidgetProviding { let cellId = "widgetCell" ...
mit
cf0910e35aad7bc1d40b95b2ca41d478
33.684211
118
0.656677
5.098646
false
false
false
false
ZackKingS/Tasks
task/Classes/Others/Lib/TakePhoto/PhotoPreviewBottomBarView.swift
2
3822
// // PhotoPreviewBottomBarView.swift // PhotoPicker // // Created by liangqi on 16/3/9. // Copyright © 2016年 dailyios. All rights reserved. // import UIKit protocol PhotoPreviewBottomBarViewDelegate:class{ func onDoneButtonClicked() } class PhotoPreviewBottomBarView: UIView { var doneNumberAnimati...
apache-2.0
faea651fe6dde34ee9c34464bdcb2081
36.441176
188
0.654622
4.744099
false
true
false
false