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
kysonyangs/ysbilibili
Pods/SwiftDate/Sources/SwiftDate/Date+Math.swift
5
7269
// // SwiftDate, Full featured Swift date library for parsing, validating, manipulating, and formatting dates and timezones. // Created by: Daniele Margutti // Main contributors: Jeroen Houtzager // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated...
mit
7c2a52bdc5d6921276fc4f9bc9a6c5ac
38.505435
142
0.73105
4.088301
false
false
false
false
tensorflow/examples
lite/examples/image_segmentation/ios/ImageSegmentation/TFLite/TFLiteExtension.swift
1
3628
// Copyright 2019 The TensorFlow Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
apache-2.0
c2c6f3db9e7bc05eab524aa9d34e7f4d
33.884615
100
0.679438
4.258216
false
false
false
false
Harley-xk/HKSplitMenu
Example/Pods/Comet/Comet/Classes/Utils.swift
1
1930
// // Utils.swift // Comet // // Created by Harley.xk on 16/6/27. // // import Foundation import UIKit open class Utils { /// 设备唯一标识号 open class var deviceUUID: String { return UIDevice.current.identifierForVendor!.uuidString } /// 系统版本号 open class var systemVersion: String { ...
mit
7603a8f2409f70736b99fae21ea0b49c
25.028571
97
0.601537
4.509901
false
false
false
false
ldt25290/MyInstaMap
MyInstaMap/MediaSearchAnnotation.swift
1
1975
// // MediaSearchAnnotation.swift // MyInstaMap // // Created by DucTran on 9/1/17. // Copyright © 2017 User. All rights reserved. // import MapKit @objc class MediaSearchAnnotation: NSObject { var mediaId: String? var title: String? var subtitle: String? var coordinate: CLLocationCoordinate2D ...
mit
d6369a7606944e489e98d5d958b55c51
34.25
239
0.642351
4.61215
false
false
false
false
michaello/Aloha
AlohaGIF/AnimationsComposer.swift
1
4557
// // AnimationsComposer.swift // AlohaGIF // // Created by Michal Pyrka on 18/04/2017. // Copyright © 2017 Michal Pyrka. All rights reserved. // import UIKit import AVFoundation struct AnimationsComposer { private enum Constants { static let startTime = 0.0 static let showAndHideAnimatio...
mit
c6eb71f62bba0c8379c962f3b95e723e
50.191011
222
0.71137
5.165533
false
false
false
false
renyufei8023/WeiBo
weibo/Classes/Home/Controller/BaseTableViewController.swift
1
3421
// // BaseTableViewController.swift // weibo // // Created by 任玉飞 on 16/4/25. // Copyright © 2016年 任玉飞. All rights reserved. // import UIKit class BaseTableViewController: UITableViewController { var userLogin = false override func loadView() { userLogin ? super.loadView() : setupVisitorView() ...
mit
d3dd7511bbb8690632ba57449e15142b
31.75
157
0.679096
5.574468
false
false
false
false
ABTSoftware/SciChartiOSTutorial
v2.x/Examples/SciChartDemo/ShareChartSwiftExample/ShareChartSwiftExample/SCSFPSCheck.swift
1
9061
//****************************************************************************** // SCICHART® Copyright SciChart Ltd. 2011-2018. All rights reserved. // // Web: http://www.scichart.com // Support: support@scichart.com // Sales: sales@scichart.com // // SCSFPSCheck.swift is part of the SCICHART® Examples. Permission i...
mit
1bea9ca9576f5daf31dc615d288f4b42
30.782456
151
0.606646
4.673891
false
true
false
false
LiulietLee/Pick-Color
Pick Color/MKLayer.swift
1
11412
// // MKLayer.swift // MaterialKit // // Created by Le Van Nghia on 11/15/14. // Copyright (c) 2014 Le Van Nghia. All rights reserved. // import UIKit let kMKClearEffectsDuration = 0.3 open class MKLayer: CALayer, CAAnimationDelegate { open var maskEnabled: Bool = true { didSet { self.ma...
mit
a0c076d619df698d992bcc7068dd26ce
32.863501
156
0.592096
5.542496
false
false
false
false
Ericdowney/GameOfGuilds
Guilds/Guilds/GuildsViewController.swift
1
2305
// // GuildsViewController.swift // Guilds // // Created by Downey, Eric on 11/21/15. // Copyright © 2015 ICCT. All rights reserved. // import UIKit public class GuildsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet weak var guildsTable: UITableView! var ...
mit
ca8169997c68a15962770d76b2761e50
32.405797
116
0.664063
5.200903
false
false
false
false
luinily/hOme
hOme/UI/IRKitConnectorEditorTableDelegate.swift
1
2831
// // IRKitConnectorEditorTableDelegate.swift // hOme // // Created by Coldefy Yoann on 2016/02/20. // Copyright © 2016年 YoannColdefy. All rights reserved. // import Foundation import UIKit class IRKitConnectorEditorTableDelegate: NSObject, UITableViewDataSource, UITableViewDelegate { private let _sectionName ...
mit
a95cad8abe1f3cad999105203d75139a
24.25
108
0.735149
4.092619
false
false
false
false
getaaron/zombie
zombie/zombie/ViewController.swift
1
9893
// // ViewController.swift // zombie // // Created by Aaron on 4/27/15. // Copyright (c) 2015 Aaron Brager. All rights reserved. // import UIKit import ResearchKit class ViewController: UIViewController, ORKTaskViewControllerDelegate { var taskViewController : ORKTaskViewController! var PDFData : NSData?...
mit
63ab5d7e7d3762e6b53abeb3770ded7d
41.770563
248
0.682357
5.191277
false
false
false
false
karimsallam/Reactive
Pods/ReactiveSwift/Sources/Scheduler.swift
2
17286
// // Scheduler.swift // ReactiveSwift // // Created by Justin Spahr-Summers on 2014-06-02. // Copyright (c) 2014 GitHub. All rights reserved. // import Dispatch import Foundation #if os(Linux) import let CDispatch.NSEC_PER_SEC #endif /// Represents a serial queue of work items. public protocol SchedulerProtoco...
apache-2.0
bfbeb6c8c4a42d8cc7171b44a8efac0c
31.863118
179
0.690212
3.920617
false
false
false
false
wikimedia/wikipedia-ios
Wikipedia/Code/VanishAccountPopUpAlertView.swift
1
9666
import SwiftUI import WMF struct VanishAccountPopUpAlertView: View { var theme: Theme @Binding var isVisible: Bool @Binding var userInput: String private let titleFont = UIFont.wmf_scaledSystemFont(forTextStyle: .headline, weight: .semibold, size: 18) private let bodyFont = UIFont.wmf_sca...
mit
6af74ba8d33ec7e15fda3ce2fa200aad
49.082902
519
0.498552
5.561565
false
false
false
false
esttorhe/RxSwift
RxTests/RxSwiftTests/Tests/Observable+AggregateTest.swift
1
9627
// // Observable+AggregateTest.swift // Rx // // Created by Krunoslav Zaher on 4/2/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation import XCTest import RxSwift class ObservableAggregateTest : RxTest { override func setUp() { super.setUp() } override fu...
mit
800f59f4ab2fd5a6532fd6f934798e1c
27.40118
137
0.515737
5.008845
false
true
false
false
Sorix/CloudCore
Source/Model/Tokens.swift
1
2686
// // Tokens.swift // CloudCore // // Created by Vasily Ulianov on 07.02.17. // Copyright © 2017 Vasily Ulianov. All rights reserved. // import CloudKit /** CloudCore's class for storing global `CKToken` objects. Framework uses one to upload or download only changed data (smart-sync). To detect what data is ne...
mit
1ce61d557cbd6764ca4c21b67b4109b3
32.5625
161
0.757542
4.169255
false
false
false
false
22377832/swiftdemo
MapDemo/MapDemo/ViewController.swift
1
4111
// // ViewController.swift // MapDemo // // Created by adults on 2017/3/23. // Copyright © 2017年 adults. All rights reserved. // import UIKit import CoreLocation import MapKit class ViewController: UIViewController, CLLocationManagerDelegate, MKMapViewDelegate { var locationManager: CLLocationManager? ...
mit
e19facba333b90c23904afe82880d3b4
33.15
121
0.630551
5.723464
false
false
false
false
buscarini/vitemo
vitemo/Carthage/Checkouts/Result/Result/Result.swift
16
6883
// Copyright (c) 2015 Rob Rix. All rights reserved. /// An enum representing either a failure with an explanatory error, or a success with a result value. public enum Result<T, Error>: Printable, DebugPrintable { case Success(Box<T>) case Failure(Box<Error>) // MARK: Constructors /// Constructs a success wrappi...
mit
0adfa8e534e81a25756721dd152da24f
33.174129
162
0.679429
3.575742
false
false
false
false
jspahrsummers/Arbiter
bindings/swift/Arbiter/Types.swift
2
1834
/** * Base class for any Arbiter Swift object which is backed by a corresponding * C object. */ public class CObject : Equatable { /** * Initializes an object of this type from a C pointer, optionally copying its * contents. * * This initializer cannot perform any typechecking, so the pointer must *...
mit
3df665a1ef5ae5da06320a695cc55538
25.2
80
0.673937
4.265116
false
false
false
false
Esri/arcgis-runtime-samples-ios
arcgis-ios-sdk-samples/Maps/Create and save a map/CreateOptionsViewController.swift
1
4700
// Copyright 2016 Esri. // // 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,...
apache-2.0
67065946ea3c821f14e110c12efc299b
37.52459
154
0.645106
4.989384
false
false
false
false
cloudinary/cloudinary_ios
Example/Cloudinary/Controllers/EffectsGalleryViewController.swift
1
8177
// // EffectsGalleryViewController.swift // SampleApp // // Created by Nitzan Jaitman on 31/08/2017. // Copyright © 2017 Cloudinary. All rights reserved. // import Foundation import UIKit import Cloudinary import AVKit class EffectsGalleryViewController: UIViewController, UploadedResourceDetails { // MARK: Pr...
mit
66ba9455dabdd414f9b47c223da86310
41.362694
201
0.685298
5.347286
false
false
false
false
ProfileCreator/ProfileCreator
ProfileCreator/ProfileCreator/Profile Editor/ProfileEditorTab.swift
1
18830
// // ProfileEditorTabView.swift // ProfileCreator // // Created by Erik Berglund. // Copyright © 2018 Erik Berglund. All rights reserved. // import Cocoa class ProfileEditorTab: NSView { // MARK: - // MARK: Variables let borderRight = NSBox(frame: NSRect(x: 250.0, y: 15.0, width: kPreferencesWindow...
mit
063d563feb942f64b8e8df367e4b4d81
43.408019
166
0.412449
7.219709
false
false
false
false
iGenius-Srl/IGColorPicker
IGColorPicker/Classes/View/ColorPickerCell.swift
1
2917
// // Copyright (c) 2017 iGenius Srl // // 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, distrib...
mit
6f9be737ac6477748e0685333dbfba33
48.440678
463
0.711347
4.877926
false
false
false
false
xiabob/ZhiHuDaily
ZhiHuDaily/ZhiHuDaily/DataSource/GetThemes.swift
1
2392
// // GetThemes.swift // ZhiHuDaily // // Created by xiabob on 17/4/10. // Copyright © 2017年 xiabob. All rights reserved. // import UIKit import SwiftyJSON class GetThemes: XBAPIBaseManager, ManagerProtocol, XBAPILocalCache { var subscribedThemeModel = [ThemeModel]() var unsubscribedThemeModel = [ThemeMod...
mit
d35d3367a5e2771358ac12139f6e83f2
32.647887
90
0.528673
4.94617
false
false
false
false
dreamsxin/swift
validation-test/stdlib/CollectionOld.swift
3
7202
// RUN: %target-run-simple-swift --stdlib-unittest-in-process | tee %t.txt // RUN: FileCheck %s < %t.txt // note: remove the --stdlib-unittest-in-process once all the FileCheck tests // have been converted to StdlibUnittest // REQUIRES: executable_test import StdlibUnittest import StdlibCollectionUnittest var Collec...
apache-2.0
b19e85862261554d8dc5c23c34a31834
25.873134
103
0.69689
3.735477
false
true
false
false
groschovskiy/firebase-for-banking-app
Demo/Banking/BBPaymentCards.swift
1
2024
// // BBPaymentCards.swift // Banking // // Created by Dmitriy Groschovskiy on 30/10/2016. // Copyright © 2016 Barclays Bank, PLC. All rights reserved. // import UIKit import Firebase class BBPaymentCards: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate { @IBOutlet weak var collectionV...
apache-2.0
dccdc370711ef4acfd55ee1141184b5b
34.491228
134
0.688581
5.044888
false
false
false
false
pointfreeco/swift-web
Sources/HttpPipeline/SharedMiddlewareTransformers.swift
1
7338
import Foundation #if canImport(FoundationNetworking) import FoundationNetworking #endif import Optics import Prelude public func filterMap<A, B, C>( _ f: @escaping (A) -> IO<B?>, or notFoundMiddleware: @escaping Middleware<StatusLineOpen, ResponseEnded, A, C> ) -> (@escaping Middleware<StatusLineOpen, Respons...
mit
1c77858ed78e08bbcf3e089d643d35fd
34.970588
120
0.645135
4.009836
false
false
false
false
JRG-Developer/ObservableType
ObservableType/Library/Observable.swift
1
9311
// // Observable.swift // ObservableType // // Created by Joshua Greene on 8/21/16. // Copyright © 2016 Joshua Greene. All rights reserved. // // 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...
mit
f472a6b5ef7a458258b6cb555c476a0d
41.706422
219
0.688077
4.568204
false
false
false
false
ZekeSnider/Jared
Jared/CoreModule.swift
1
15564
// // CoreModule.swift // Jared 3.0 - Swiftified // // Created by Zeke Snider on 4/3/16. // Copyright © 2016 Zeke Snider. All rights reserved. // import Foundation import Cocoa import JaredFramework import Contacts enum IntervalType: String { case Minute case Hour case Day case Week case Month...
apache-2.0
93d854a2a03ded170d275231cff2ecb8
41.755495
317
0.607081
4.752061
false
false
false
false
borglab/SwiftFusion
Tests/BeeDatasetTests/BeeDatasetTests.swift
1
2410
// Copyright 2020 The SwiftFusion Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
apache-2.0
be81b529bb2a73aa24e3c3b4691229fe
37.253968
99
0.720332
4.0301
false
true
false
false
bradhilton/SwiftTable
Pods/OrderedObjectSet/Sources/OrderedObjectSet.swift
2
2394
// // OrderedObjectSet.swift // OrderedObjectSet // // Created by Bradley Hilton on 2/19/16. // Copyright © 2016 Brad Hilton. All rights reserved. // /// An ordered collection of unique `Element` instances. /// _Warning_: `Element` must be a class type. Unfortunately this can not be enforced as a generic requireme...
mit
b33a8b489bcc1a266cf7b8ae5c0ce1ce
29.291139
119
0.61262
4.464552
false
false
false
false
andrebocchini/SwiftChattyOSX
SwiftChattyOSX/Threads/ChattyViewController.swift
1
30477
// // ChattyViewController.swift // SwiftChattyOSX // // Created by Andre Bocchini on 2/20/16. // Copyright © 2016 Andre Bocchini. All rights reserved. // import Cocoa import SwiftChatty import WebKit private enum Mode: Int { case Chatty case PinnedThreads case SearchResults } class ChattyViewContr...
mit
6b7abbf85565f7232618dce7f30c3668
34.396051
222
0.638798
5.169805
false
false
false
false
anirudh24seven/wikipedia-ios
Wikipedia/Code/WMFReferencePageBackgroundView.swift
1
630
class WMFReferencePageBackgroundView: UIView { var clearRect:CGRect = CGRectZero { didSet { setNeedsDisplay() } } override func drawRect(rect: CGRect) { super.drawRect(rect) UIColor.clearColor().setFill() UIBezierPath.init(roundedRect: clearRect, cornerR...
mit
2523cd0931f0c6905afad125ffd3b2b4
29
103
0.653968
5.163934
false
false
false
false
joerocca/GitHawk
Classes/Issues/Managing/IssueManagingModel.swift
1
867
// // IssueManagingModel.swift // Freetime // // Created by Ryan Nystrom on 12/2/17. // Copyright © 2017 Ryan Nystrom. All rights reserved. // import Foundation import IGListKit final class IssueManagingModel: ListDiffable { let objectId: String let pullRequest: Bool init(objectId: String, pullReque...
mit
7b6768d9eed60613a75c2e4225ae64e6
23.055556
78
0.660508
4.681081
false
false
false
false
crossroadlabs/Express
Express/Content.swift
1
3113
//===--- Content.swift ----------------------------------------------------===// // //Copyright (c) 2015-2016 Daniel Leping (dileping) // //This file is part of Swift Express. // //Swift Express is free software: you can redistribute it and/or modify //it under the terms of the GNU Lesser General Public License as publ...
gpl-3.0
383f1f334fbb208c86e64ae454be8ab7
28.932692
128
0.656923
4.818885
false
false
false
false
contentful/blog-app-ios
Code/AppDelegate.swift
1
3057
// // AppDelegate.swift // Blog // // Created by Boris Bügling on 22/01/15. // Copyright (c) 2015 Contentful GmbH. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { class var AccessToken: String { return "ContentfulAccessToken" } class var Spac...
mit
08b92dad196f2433b1a2efbef643e6e6
33.337079
212
0.607003
5.843212
false
false
false
false
vanyaland/Popular-Movies
iOS/PopularMovies/Network/Network/Webservice.swift
1
1274
// // Webservice.swift // Videos // // Created by Florian on 13/04/16. // Copyright © 2016 Chris Eidhof. All rights reserved. // import UIKit public typealias JSONDictionary = [String: Any] // We create our own session here without a URLCache to avoid playground error messages private var session: URLSession { ...
mit
dab4c78c7277325180352360b837165b
33.405405
102
0.655145
4.546429
false
true
false
false
rechsteiner/LayoutEngine
LayoutEngine/ViewDefaultMetric.swift
1
361
import UIKit public struct ViewDefaultMetric: ViewMetric { public let insets: UIEdgeInsets public let direction: ViewDirection public let hidden: Bool public init(insets: UIEdgeInsets = UIEdgeInsets(), direction: ViewDirection = .left, hidden: Bool = false) { self.insets = insets self.direction = dir...
mit
926316b4b038d28c0f49c0cbc81dedc5
23.066667
110
0.725762
4.45679
false
false
false
false
sinorychan/iOS-11-by-Examples
iOS-11-by-Examples/Vision/VisionViewController.swift
1
2279
// // VisionViewController.swift // iOS-11-by-Examples // // Created by Artem Novichkov on 20/06/2017. // Copyright © 2017 Artem Novichkov. All rights reserved. // import UIKit class VisionViewController: UITableViewController { lazy var visionExamples = [Example(title: "😀 Face Detection", ...
mit
b62e962ea7f61d6a9cf794b0c7b579bf
36.196721
109
0.564125
6.050667
false
false
false
false
huangboju/Moots
Examples/SwiftUI/Calculator/Calculator/CalculatorButtonItem.swift
1
1588
// // CalculatorButtonItem.swift // Calculator // // Created by 黄伯驹 on 2021/10/29. // import SwiftUI enum CalculatorButtonItem { enum Op: String { case plus = "+" case minus = "-" case divide = "÷" case multiply = "×" case equal = "=" } enum Command: String { ...
mit
8813a9e928cad118f95f8a2441a62cc5
22.235294
59
0.574684
4.168865
false
false
false
false
HongxiangShe/STV
STV/STV/Classes/Live/View/ChatContentView/ChatContentView.swift
1
1531
// // ChatContentView.swift // STV // // Created by 佘红响 on 2017/7/7. // Copyright © 2017年 she. All rights reserved. // import UIKit private let CELL_ID = "CELL_ID" class ChatContentView: UIView, Nibloadable { @IBOutlet weak var tableView: UITableView! fileprivate lazy var messageArr: [NSAttributedS...
apache-2.0
feec7c60a06e02e4412320a88d3e6f3f
30.708333
126
0.696452
4.801262
false
false
false
false
admkopec/BetaOS
Kernel/Swift Extensions/MemoryBuffer.swift
1
3415
// // MemoryBuffer.swift // Kernel // // Created by Adam Kopeć on 10/17/17. // Copyright © 2017-2018 Adam Kopeć. All rights reserved. // typealias Data = UnsafeBufferPointer<UInt8> typealias MutableData = UnsafeMutableBufferPointer<UInt8> final class MemoryBuffer { let ptr: UnsafeRawPointer let buffer:...
apache-2.0
f8d7dbe62a22be6c8116572af727d54b
27.915254
131
0.579719
4.385604
false
false
false
false
noppoMan/aws-sdk-swift
Sources/Soto/Services/Signer/Signer_Shapes.swift
1
39747
//===----------------------------------------------------------------------===// // // This source file is part of the Soto for AWS open source project // // Copyright (c) 2017-2020 the Soto project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for t...
apache-2.0
5e9a8c5be0931742980833c530741c84
41.060317
422
0.636602
5.211354
false
false
false
false
joshpar/Lyrebird
LyrebirdSynth/Lyrebird/LyrebirdEngine.swift
1
3142
// // LyrebirdEngine.swift // Lyrebird // // Created by Joshua Parmenter on 5/1/16. // Copyright © 2016 Op133Studios. All rights reserved. // protocol LyrebirdEngineDelegate { func synthEngineHasStarted(engine: LyrebirdEngine) func synthEngineHasStopped(engine: LyrebirdEngine) } typealias LyrebirdResultOu...
artistic-2.0
0c21aae5588bd3ce9f17670ad2aa0c9a
32.414894
129
0.571792
4.506456
false
false
false
false
muhasturk/smart-citizen-ios
Smart Citizen/Controller/Presenter/ReportVC.swift
1
13069
/** * Copyright (c) 2016 Mustafa Hastürk * * 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, pu...
mit
677de3b7478f167ebf6e0bc046ae7a13
36.785507
198
0.718088
4.543743
false
false
false
false
hucool/XMImagePicker
Pod/Classes/ListViewController.swift
1
3754
// // ViewController.swift // XMImagePicker // // Created by tiger on 2017/2/8. // Copyright © 2017年 xinma. All rights reserved. // import UIKit import Photos class ListViewController: UIViewController { /// all albums fileprivate var albumInfos: [Album] = [] // MARK:- UIView filepr...
mit
21db38244b42d9e76195ea4a5b3a9369
27.984496
101
0.607382
5.341429
false
false
false
false
HabitRPG/habitrpg-ios
HabitRPG/Repositories/Implementations/ContentRepository.swift
1
2305
// // ContentRepository.swift // Habitica // // Created by Phillip Thelen on 12.03.18. // Copyright © 2018 HabitRPG Inc. All rights reserved. // import Foundation import Habitica_Database import Habitica_Models import Habitica_API_Client import ReactiveSwift class ContentRepository: BaseRepository<ContentLocalRep...
gpl-3.0
dbb16f550d94945e606d5593e8dbc0b1
36.16129
151
0.68099
4.8
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/FeatureOpenBanking/Sources/FeatureOpenBankingUI/Resources/Media.swift
1
861
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import Foundation import UIComponentsKit private class BundleFinder {} extension Bundle { public static let openBanking = Bundle.find( "FeatureOpenBanking_FeatureOpenBankingUI.bundle", "Blockchain_FeatureOpenBankingUI.bundle", ...
lgpl-3.0
969c13c27a9d80bdf779053f9cb31c18
36.391304
84
0.702326
3.873874
false
false
false
false
kohtenko/KOSocialOAuth
Pod/Classes/KOSocialOAuthViewContorller.swift
1
8241
// // KOSocialOAuthViewContorller.swift // KOSocialOAuth_Example // // Created by okohtenko on 16/03/15. // Copyright (c) 2015 kohtenko. All rights reserved. // import UIKit protocol KOSocialOAuthViewControllerDelegate: class{ func instagramLoginFinishedWithToken(accessToken: String?) func linkedInLo...
mit
a7a33f3994950c408338032da6f1c940
41.927083
232
0.569712
5.340894
false
false
false
false
Ilhasoft/ISParseBind
ISParseBindSample/ViewController.swift
1
3134
// // ViewController.swift // ParsePersistence // // Created by Daniel Amaral on 13/03/17. // Copyright © 2017 Ilhasoft. All rights reserved. // import UIKit import ISParseBind import MBProgressHUD class ViewController: UIViewController { @IBOutlet var parseBindView:ISParseBindView! @IBOutlet var lbF...
mit
204b0f7fc873d008095063e47c15197f
27.481818
96
0.557293
4.456615
false
false
false
false
smartystreets/smartystreets-ios-sdk
Sources/SmartyStreets/USAutocomplete/USAutocompleteClient.swift
1
3038
import Foundation public class USAutocompleteClient: NSObject { // It is recommended to instantiate this class using SSClientBuilder var sender:SmartySender var serializer:SmartySerializer public init(sender:Any, serializer:SmartySerializer) { self.sender = sender as! SmartySender ...
apache-2.0
8a3a11c7a88e7cb8b3ceb333f434b08b
44.343284
151
0.641211
4.931818
false
false
false
false
apple/swift
test/TypeRoundTrip/Inputs/testcases/generics.swift
9
2095
import RoundTrip protocol First { associatedtype Assoc : First // Just to confuse things -- a method with the same name as an // associated type func Assoc(_: Int) -> Int } protocol Second { associatedtype Assoc : Second where Assoc.Assoc.Assoc == Self } struct OuterFirst<A : First, B : First> { struct ...
apache-2.0
b1ea854749ab0b9fd5e4765cb645b67b
22.277778
66
0.524105
2.885675
false
false
false
false
GlobusLTD/components-ios
GlobusSwifty/StructedObject/GLBStructedObject.swift
1
4198
/*--------------------------------------------------*/ import Globus /*--------------------------------------------------*/ extension GLBStructedObject { // MARK: Setters open func set(value: Bool?, forPath path: String) -> Bool { if let unwrapped = value { return self.set(value...
mit
48ddfc66b996561912eee43596b15c7e
25.402516
67
0.494045
4.274949
false
false
false
false
vector-im/vector-ios
Riot/Modules/KeyBackup/ManualExport/EncryptionKeysExportPresenter.swift
1
5031
/* Copyright 2019 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
11d58b5d051efc129f97b6df5b16ae71
33.458904
136
0.64838
5.918824
false
false
false
false
ponnierohith/ReaXn
ReaXn/ReaXn/AppDelegate.swift
3
12366
// // AppDelegate.swift // ReaXn // // Created by Kevin Chen on 7/11/15. // Copyright (c) 2015 ReaXn. All rights reserved. // import UIKit import CoreLocation @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, TSTapDetectorDelegate, CLLocationManagerDelegate { var window: UIWindow? ...
mit
a997e87668d8a28450f680eea97b0f25
42.843972
285
0.635878
5.967181
false
false
false
false
hanwanjie853710069/Easy-living
易持家/Class/Vendor/IQKeyboardManagerSwift/IQToolbar/IQToolbar.swift
1
9552
// // IQToolbar.swift // https://github.com/hackiftekhar/IQKeyboardManager // Copyright (c) 2013-16 Iftekhar Qurashi. // // 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 restrictio...
apache-2.0
c07e5c2debb26d33587aea22e5ae4fc5
35.880309
288
0.584066
5.64539
false
false
false
false
mownier/pyrobase
PyrobaseTests/RequestMock.swift
1
2992
// // RequestMock.swift // Pyrobase // // Created by Mounir Ybanez on 02/05/2017. // Copyright © 2017 Ner. All rights reserved. // import Pyrobase class RequestMock: RequestProtocol { var content: [AnyHashable: Any] = [ "https://foo.firebaseio.com/name.json?auth=accessToken": "Luche", "https:...
mit
f655032295a229e57c815fa499e01c1f
29.520408
127
0.514209
5.112821
false
false
false
false
SunLiner/Floral
Floral/Floral/Classes/Home/Detail/View/View/CommentBottomView.swift
1
4027
// // CommentBottomView.swift // Floral // // Created by ALin on 16/5/30. // Copyright © 2016年 ALin. All rights reserved. // 评论列表底部的评论视图 import UIKit class CommentBottomView: UIView { /// placeholder var placeHolderStr : String? { didSet{ if let _ = placeHolderStr { ...
mit
883707e575e3258fa9363e7417b90cc6
31.983051
206
0.628726
4.723301
false
false
false
false
LogTenSafe/MacOSX
LogTenSafe/Source/Services/APIService.swift
1
6614
import Foundation import Alamofire import Defaults /** * This service class is the interface between the application and the API * backend. */ public class APIService { fileprivate var authHeader: String? { if let JWT = Defaults[.JWT] { return "Bearer \(JWT)" } else { re...
mit
2da7f4955e238b1b1a64371b84b2ec15
41.948052
280
0.637889
4.710826
false
false
false
false
fgengine/quickly
Quickly/Views/Toolbar/QToolbar.swift
1
1499
// // Quickly // open class QToolbarStyleSheet : IQStyleSheet { public var isTranslucent: Bool public var tintColor: UIColor public var contentTintColor: UIColor public init( isTranslucent: Bool, tintColor: UIColor, contentTintColor: UIColor ) { self.isTranslu...
mit
11ef8ec7e15edca522f78e4829a89202
23.983333
59
0.592395
5.222997
false
false
false
false
TheTekton/Malibu
Sources/Serialization/StringSerializer.swift
1
989
import Foundation public struct StringSerializer: Serializing { var encoding: String.Encoding? public init(encoding: String.Encoding? = nil) { self.encoding = encoding } public func serialize(_ data: Data, response: HTTPURLResponse) throws -> String { if response.statusCode == 204 { return "" } ...
mit
7364384255884eb4a48af927db5213d5
26.472222
101
0.710819
5.045918
false
false
false
false
JakeLin/IBAnimatable
IBAnimatableApp/IBAnimatableApp/Playground/Transitions/TransitionPushedViewController.swift
2
1237
// // Created by Jake Lin on 5/13/16. // Copyright © 2016 IBAnimatable. All rights reserved. // import UIKit import IBAnimatable final class TransitionPushedViewController: UIViewController { @IBOutlet fileprivate var gestureLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() if let ani...
mit
bca07d8e2e1ea3fc1a55e355bfa9915d
25.297872
114
0.692557
5.618182
false
false
false
false
fespinoza/linked-ideas-osx
LinkedIdeas-iOS-Core/Sources/DocumentViewController.swift
1
2687
// DocumentViewController.swift // LinkedIdeas-iOS // // Created by Felipe Espinoza on 20/01/2018. // Copyright © 2018 Felipe Espinoza Dev. All rights reserved. // import UIKit import LinkedIdeas_Shared public class DocumentViewController: UIViewController { public var document: Document! // MARK: - private ...
mit
e574abd8aa9216868e9b54730f85e09a
29.522727
93
0.721891
4.704028
false
false
false
false
lucaslouca/swift-concurrency
app-ios/Fluxcapacitor/FXCViewParallaxTableHeader.swift
1
1569
// // FXCViewParallaxTableHeader.swift // Fluxcapacitor // // Created by Lucas Louca on 09/06/15. // Copyright (c) 2015 Lucas Louca. All rights reserved. // import UIKit class FXCViewParallaxTableHeader: UIView { let parallaxDeltaFactor: CGFloat = 0.5 var defaultHeaderFrame: CGRect! var scrollView: UI...
mit
3a3a5e804fd3a5a09b8444baeb143878
32.382979
159
0.639261
4.521614
false
false
false
false
dvSection8/dvSection8
dvSection8/Classes/Utils/DVUploadFiles.swift
1
3511
// // DVUploadFiles.swift // dvSection8 // // Created by MJ Roldan on 17/01/2018. // import Foundation import MobileCoreServices public class DVUploadFiles: NSObject { public class var shared: DVUploadFiles { struct Static { static let instance: DVUploadFiles = DVUploadFiles() ...
mit
5397672f418331c537a09a0295c2a04f
34.11
144
0.564227
5.030086
false
false
false
false
alessiobrozzi/firefox-ios
Telemetry/BookmarkTelemetryPing.swift
2
1786
/* 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 SwiftyJSON public func makeAdHocBookmarkMergePing(_ bundle: Bundle, clientID: String, attempt: Int32, buffe...
mpl-2.0
6a13a4c03879fe8712812ce8837b92ed
33.346154
199
0.62486
4.013483
false
false
false
false
einsteinx2/iSub
Carthage/Checkouts/swifter/XCode/SwifterTestsCommon/PingServer.swift
1
1939
// // PingServer.swift // Swifter // // Created by Brian Gerstle on 8/20/16. // Copyright © 2016 Damian Kołakowski. All rights reserved. // import Foundation // Server extension HttpServer { class func pingServer() -> HttpServer { let server = HttpServer() server.GET["/ping"] = { request in ...
gpl-3.0
5091380577ca4d1b006fcf401c3a122d
29.746032
103
0.602994
4.8425
false
false
false
false
jfrowies/iEMI
iEMI/EndParkingViewController.swift
1
5705
// // EndParkingViewController.swift // iEMI // // Created by Fer Rowies on 2/16/15. // Copyright (c) 2015 Rowies. All rights reserved. // import UIKit class EndParkingViewController: NetworkActivityViewController { @IBOutlet private weak var closeButton: UIButton! let service: ParkingCloseEMISe...
apache-2.0
17ecfec27a3e948273957bafc334172a
33.786585
212
0.623488
5.665343
false
false
false
false
jfrowies/iEMI
iEMI/ParkingLocation.swift
1
1179
// // ParkingLocation.swift // iEMI // // Created by Fer Rowies on 8/22/15. // Copyright © 2015 Rowies. All rights reserved. // import UIKit class ParkingLocation: Parking { var fullAddress: String? var streetId: String? var streetName: String? var streetNumberMin: String? var streetNumbe...
apache-2.0
298c396e16aa89aad7ba8fb3ae63bc71
26.395349
108
0.646859
4.362963
false
false
false
false
phatblat/realm-cocoa
RealmSwift/Tests/ObjectIdTests.swift
2
3581
//////////////////////////////////////////////////////////////////////////// // // Copyright 2020 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...
apache-2.0
542e965df45df8b5c5bcf023f6ac6773
33.432692
102
0.66043
4.431931
false
true
false
false
OscarSwanros/swift
test/refactoring/ExtractFunction/static.swift
5
564
class C { func foo1() -> Int { var a = 3 + 1 a = 3 return a } static func foo2() -> Int { var a = 3 + 1 a = 3 return a } } // RUN: rm -rf %t.result && mkdir -p %t.result // RUN: %refactor -extract-function -source-filename %s -pos=3:1 -end-pos=5:13 >> %t.result/L3-5.swift // RUN: diff ...
apache-2.0
13fa8666a7f3abf0521dea5da5bde1ce
28.684211
104
0.60461
2.506667
false
false
false
false
DopamineLabs/DopamineKit-iOS
BoundlessKit/Classes/Integration/HttpClients/Data/Storage/Records/BKDecision.swift
1
1298
// // BKDecision.swift // BoundlessKit // // Created by Akash Desai on 3/8/18. // import Foundation internal class BKDecision : NSObject, BKData { static var neutral: String = "neutralResponse" class func neutral(for actionID: String) -> BKDecision { return BKDecision(neutral, BKRefreshCa...
mit
c9e34bc1a6e86176b6bd87db6c2013fe
27.217391
86
0.61094
4.187097
false
false
false
false
ivngar/TDD-TodoList
TDD-TodoList/Controller/ItemListViewController.swift
1
961
// // ItemListViewController.swift // TDD-TodoList // // Created by Ivan Garcia on 22/6/17. // Copyright © 2017 Ivan Garcia. All rights reserved. // import UIKit class ItemListViewController: UIViewController { @IBOutlet var tableView: UITableView! @IBOutlet var dataProvider: (UITableViewDataSource & UITableV...
mit
a48fc683456a813a0e96022d315ead42
29
134
0.745833
4.948454
false
false
false
false
infobip/mobile-messaging-sdk-ios
Classes/InteractiveNotifications/MMNotificationAction.swift
1
8038
// // NotificationAction.swift // // Created by okoroleva on 27.07.17. // // import UserNotifications @objcMembers public class MMNotificationAction: NSObject { public static var DismissActionId: String { return UNNotificationDismissActionIdentifier } public static var DefaultActionId: String { return UNN...
apache-2.0
105fad96b8ad13b17574fc0f72ab331f
38.99005
200
0.752177
4.580057
false
false
false
false
cristiannomartins/Tree-Sets
Tree Sets/PokemonSetsCell.swift
1
5429
// // PokemonSetsCell.swift // Tree Sets // // Created by Cristianno Vieira on 24/01/17. // Copyright © 2017 Cristianno Vieira. All rights reserved. // import UIKit class PokemonSetsCell: UITableViewCell { @IBOutlet weak var hpTotal: UILabel! @IBOutlet weak var atkTotal: UILabel! @IBOutlet weak var defTota...
mit
e02416fac3abaccb43e92a7bb0dbd653
33.138365
82
0.645173
3.510996
false
false
false
false
Jauzee/showroom
Showroom/ViewControllers/ThingersTapViewController/ThingersTapViewController.swift
2
2481
import UIKit class ThingersTapViewController: UIViewController { @IBOutlet weak var backgroundView: UIView! @IBOutlet weak var hand: UIImageView! @IBOutlet weak var handTouches: UIImageView! @IBOutlet weak var infoTextLabel: UILabel! fileprivate var presenter: PopUpPresenter? } // MARK: Life Cycle exten...
gpl-3.0
d72eca3f9a4db9cc001173f46996a220
27.193182
107
0.695284
4.080592
false
false
false
false
WebberLai/WLComics
Pods/SwiftyDropbox/Source/SwiftyDropbox/Shared/Handwritten/DropboxTransportClient.swift
1
25368
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// import Foundation import Alamofire open class DropboxTransportClient { public let manager: SessionManager public let backgroundManager: SessionManager public let longpollManager: SessionManager open var accessToken: String open var ...
mit
0eeda9516b048023e6c2f46f06081b88
39.719101
385
0.610691
5.140426
false
false
false
false
jbannister/VirtualTourist
VirtualTourist/VirtualTourist/PhotoViewController.swift
1
3632
// // PhotoViewController.swift // VirtualTourist // // Created by Jan Bannister on 09/11/2015. // Copyright © 2015 JB. All rights reserved. // import UIKit import MapKit import CoreData class PhotoViewController: UICollectionViewController, NSFetchedResultsControllerDelegate { var pin : Location! le...
mit
905be480020704baade046d2cea23cc4
31.711712
144
0.601763
5.682316
false
false
false
false
ahoppen/swift
test/decl/typealias/on_constrained_protocol.swift
9
3244
// RUN: %target-typecheck-verify-swift // typealias on constrained extension protocol ConstrainedTypealias { associatedtype MyAssocType } extension ConstrainedTypealias where MyAssocType == String { // expected-note {{requirement specified as 'Self.MyAssocType' == 'String' [with Self = Self]}} (from useConstrained...
apache-2.0
2be9b6eb6d72ddc74253e3a992d1e350
59.074074
216
0.788841
4.798817
false
false
false
false
totocaster/JSONFeed
Classes/JSONFeedAttachment.swift
1
1566
// // JSONFeedAttachment.swift // JSONFeed // // Created by Toto Tvalavadze on 2017/05/18. // Copyright © 2017 Toto Tvalavadze. All rights reserved. // import Foundation public struct JSONFeedAttachment { /// Specifies the location of the attachment. public let url: URL /// Specifies the typ...
mit
0b4f0f4f32a9918529f250f9f04ba081
30.938776
289
0.641534
4.347222
false
false
false
false
turekj/ReactiveTODO
ReactiveTODOFramework/Classes/Assemblies/FlowAssembly.swift
1
1814
import Foundation import Swinject import UIKit public class FlowAssembly: AssemblyType { public init() { } public func assemble(container: Container) { container.register(FlowControllerProtocol.self) { r in let configurator = r.resolve(FlowConfigurator.self, name: "main")! ...
mit
52e77aedf40d39f67492c57f84b97afc
34.568627
78
0.637817
5.304094
false
true
false
false
ta2yak/loqui
loqui/Extensions/UIColor.swift
1
2208
// // UIColor.swift // loqui // // Created by Kawasaki Tatsuya on 2017/09/04. // Copyright © 2017年 Kawasaki Tatsuya. All rights reserved. // import UIKit import MaterialComponents extension UIColor { static func mainTextColor() -> UIColor { return #colorLiteral(red: 0.2159670293, green: 0.2853322923, blu...
mit
9cc6c92e7c79943213c2e5de3d2111e4
44.9375
137
0.63356
3.522364
false
false
false
false
AaronMT/firefox-ios
Storage/SyncQueue.swift
9
1991
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Shared import SwiftyJSON public struct SyncCommand: Equatable { public let value: String public va...
mpl-2.0
aa8a9b80ef20709e28624ebcfae35b74
30.109375
110
0.644902
4.375824
false
false
false
false
nicolastinkl/swift
UICatalog:CreatingandCustomizingUIKitControlsinSwift/UICatalog/ButtonViewController.swift
1
3642
/* Copyright (C) 2014 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: A view controller that demonstrates how to use UIButton. The buttons are created using storyboards, but each of the system buttons can be created in code by usin...
mit
a7b4f74b00b82b6b8b0c1b5e81132c45
40.363636
310
0.734066
5.805423
false
true
false
false
Trevi-Swift/Trevi
Sources/ServerResponse.swift
1
4398
// // ServerResponse.swift // Trevi // // Created by LeeYoseob on 2016. 3. 3.. // Copyright © 2016 Trevi Community. All rights reserved. // import Foundation // Make a response of user requests. public class ServerResponse: OutgoingMessage{ public var httpVersion: String = "" public var url: Strin...
apache-2.0
1b865ab1012cce8884d75cc27ecc3566
27.006369
133
0.539686
4.584984
false
false
false
false
proxpero/Endgame
Sources/EPD.swift
1
1682
// // EPD.swift // Endgame // // Created by Todd Olsen on 8/4/16. // // import Foundation /// A representation of Extended Position Description data. public struct EPD { /// The position for `self`. public var position: Position /// The opcodes for `self`. public var opcodes: [Opcode] /// Cr...
mit
dc68ee52698067caf2e79e0ff9879fc6
29.035714
110
0.588585
3.814059
false
false
false
false
royhsu/tiny-core
Sources/Core/Observable/Property/Property.swift
1
2110
// // Property.swift // TinyCore // // Created by Roy Hsu on 2019/1/18. // Copyright © 2019 TinyWorld. All rights reserved. // // MARK: - Property public final class Property<Value> { let boardcaster = Broadcaster<Value?>() private let _storage: Atomic<Storage> public init(_ initialValue: Value? = ...
mit
7343d5b948fbee526bcd739faebf48ce
19.085714
77
0.587956
4.594771
false
false
false
false
adrfer/swift
stdlib/public/core/StringBridge.swift
2
9537
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
apache-2.0
105c2ecca74dd76ebc97592ba6d35751
31.773196
92
0.712488
4.545758
false
false
false
false
lojals/DoorsConcept
DoorConcept/Controllers/Buildings/BuildingsTableViewController.swift
1
3955
// // BuildingsTableViewController.swift // DoorConcept // // Created by Jorge Raul Ovalle Zuleta on 3/18/16. // Copyright © 2016 jorgeovalle. All rights reserved. // import UIKit import SESlideTableViewCell import DZNEmptyDataSet class BuildingsTableViewController: UITableViewController { let buildingInterac...
mit
ead9886b88b127d6f27d86d9eb194cb5
38.929293
143
0.706984
5.166013
false
false
false
false
steelwheels/Cobalt
Source/CBError.swift
1
2120
/** * @file CBError.swift * @brief Define CBError enum type * @par Copyright * Copyright (C) 2017 Steel Wheels Project */ import CoconutData import Foundation public enum CBError: Error { case InternalError(place: String) case UnknownLongOptionName(name: String) case UnknownShortOptionName(name: Character) ...
gpl-2.0
a8e31d86af263e11b309a04abebc8dbe
29.724638
101
0.696226
3.557047
false
false
false
false
multinerd/Mia
Mia/Extensions/Foundation/Date/Date+TimeAgo.swift
1
3279
import Foundation extension Date { public func timeAgo() -> String { let time = self.timeIntervalSince1970 let now = Date().timeIntervalSince1970 let isPast = now - time > 0 let sec: Double = abs(now - time) let min: Double = round(sec / 60) l...
mit
e8e27dd191c30053bf12e1a9dac16173
31.79
89
0.402562
4.745297
false
false
false
false
towlebooth/watchos-sabbatical-countdown-part2
SabbaticalCountdown2 WatchKit Extension/InterfaceController.swift
1
3680
// // InterfaceController.swift // SabbaticalCountdown2 WatchKit Extension // // Created by Chad Towle on 11/29/15. // Copyright © 2015 Intertech. All rights reserved. // import WatchKit import Foundation import WatchConnectivity class InterfaceController: WKInterfaceController, WCSessionDelegate { @IBOutlet...
mit
2f543d2f682646730939e5186683b815
37.322917
145
0.672737
5.378655
false
false
false
false
Shopify/mobile-buy-sdk-ios
Buy/Generated/Storefront/CustomerAccessTokenDeletePayload.swift
1
4664
// // CustomerAccessTokenDeletePayload.swift // Buy // // Created by Shopify. // Copyright (c) 2017 Shopify Inc. All rights reserved. // // 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 Softw...
mit
333ddc46bf1e8cc7f3a558eaaf666f01
37.229508
126
0.746998
4.338605
false
false
false
false
jpush/aurora-imui
iOS/sample/sample/IMUIInputView/Controllers/IMUIRecordVoiceHelper.swift
1
4992
// // IMUIRecordVoiceHelper.swift // IMUIChat // // Created by oshumini on 2017/3/9. // Copyright © 2017年 HXHG. All rights reserved. // import UIKit import AVFoundation let maxRecordTime = 60.0 typealias CompletionCallBack = () -> Void typealias TimerTickCallback = (TimeInterval, CGFloat) -> Void // recordDurat...
mit
711b5c0e6fbf2f42235b1573f25706d2
23.945
112
0.657046
4.64093
false
false
false
false
hzy87email/actor-platform
actor-apps/app-ios/ActorSwift/Strings.swift
2
3768
// // Copyright (c) 2014-2015 Actor LLC. <https://actor.im> // import Foundation extension String { var length: Int { return self.characters.count } func trim() -> String { return stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()); } subscript (i: Int) -> ...
mit
6f543339d27b552bf4505636180f433c
28.209302
136
0.599788
4.893506
false
false
false
false
ayanna92/ayannacolden-programmeerproject
programmeerproject/LoginViewController.swift
1
2546
// // LoginViewController.swift // programmeerproject // // Created by Ayanna Colden on 10/01/2017. // Copyright © 2017 Ayanna Colden. All rights reserved. // import UIKit import Firebase // Source: https://www.youtube.com/watch?v=AsSZulMc7sk class LoginViewController: UIViewController { @IBOutlet weak var ...
apache-2.0
2058457f8d71b700303cac442fbe5e3d
32.933333
153
0.642829
4.820076
false
false
false
false
whiteshadow-gr/HatForIOS
HAT/Objects/Data Debits/HATDataDebitPermissions.swift
1
2901
/** * Copyright (C) 2018 HAT Data Exchange Ltd * * SPDX-License-Identifier: MPL2 * * This file is part of the Hub of All Things project (HAT). * * 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...
mpl-2.0
4f1daa8a8b6114395c44396a1ef17ea9
38.202703
170
0.667356
4.304154
false
false
false
false
pecuniabanking/pecunia-client
Source/Security.swift
1
9219
/** * Copyright (c) 2015, Pecunia Project. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; version 2 of the * License. * * This program is distributed in the hope ...
gpl-2.0
025d196e17da6eb5c59c8cfd51c30805
38.737069
136
0.622953
4.725269
false
false
false
false
zenangst/Storage
Source/Storage.swift
1
4758
import Foundation public struct Storage { // MARK: - File system static var fileManager: NSFileManager = { let manager = NSFileManager.defaultManager() return manager }() public static let applicationDirectory: String = { let paths:NSArray = NSSearchPathForDirectoriesInDomains(NSSearchPathDire...
mit
999a87c1c7b7aab46e2438f00f271c47
27.662651
152
0.68306
4.78672
false
false
false
false
joshpc/ElasticPullToRefresh
ElasticPullToRefresh/IndicatorView.swift
1
2984
// // RefreshView.swift // ElasticPullToRefresh // // Created by Joshua Tessier on 2015-12-20. // Copyright © 2015-2018 Joshua Tessier. All rights reserved. // import UIKit public class IndicatorView: UIView { private let circleLayer = CAShapeLayer() private var animating: Bool = false public var indicator...
mit
b2d023f14c41a89af2d108f4322710f2
25.39823
120
0.734831
4.04749
false
false
false
false
lvsti/Ilion
Ilion/FormatDescriptor.swift
1
4585
// // String+FormatTypes.swift // Ilion // // Created by Tamas Lustyik on 2017. 04. 30.. // // Copyright © 2017. Tamas Lustyik // Portions Copyright (c) 2017 SwiftGen // MIT License import Foundation enum FormatDescriptorError: Error { case ambiguousVariableTypes(position: Int, typeA: String, typeB: String)...
mit
e7487dd08a1ba4da7ec0f1f5fadf4df6
37.2
115
0.522251
4.982609
false
false
false
false