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
zdrzdr/QEDSwift
Pods/Kingfisher/Sources/KingfisherManager.swift
1
10432
// // KingfisherManager.swift // Kingfisher // // Created by Wei Wang on 15/4/6. // // Copyright (c) 2016 Wei Wang <onevcat@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 Soft...
mit
7eed63878e5cb30021fe2a755f4a62fa
45.571429
162
0.651265
5.697433
false
false
false
false
VBVMI/VerseByVerse-iOS
Pods/VimeoNetworking/VimeoNetworking/Sources/NSError+Extensions.swift
1
10763
// // NSError+Extensions.swift // VimemoUpload // // Created by Alfred Hanssen on 2/5/16. // Copyright © 2016 Vimeo. 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 S...
mit
1eae57e29caa1ec5731ef83989cdf304
33.383387
175
0.635477
5.20658
false
false
false
false
blitzagency/ParsedObject
Source/ParsedObject+Operators.swift
1
2890
// // ParsedObject+Operators.swift // FrameworkTest // // Created by Adam Venturella on 11/5/14. // Copyright (c) 2014 BLITZ. All rights reserved. // import Foundation //MARK: - Comparable extension ParsedObject: Comparable {} public func ==(lhs: ParsedObject, rhs: ParsedObject) -> Bool { switch (lhs.type, ...
mit
be0798ec3e1c81419d6a329fd9c99466
29.104167
75
0.609689
3.719434
false
false
false
false
Fenrikur/ef-app_ios
Domain Model/EurofurenceModel/Public/Default Dependency Implementations/UserDefaultsForceRefreshRequired.swift
1
936
import Foundation public struct UserDefaultsForceRefreshRequired: ForceRefreshRequired { private struct Keys { static let lastWitnessedAppVersionKey = "EFLastOpenedAppVersion" } var userDefaults: UserDefaults = .standard var versionProviding: AppVersionProviding = BundleAppVersionProviding.sh...
mit
eec1b3b893272151b857200db711e920
32.428571
131
0.755342
5.638554
false
false
false
false
markohlebar/Fontana
Spreadit/View/VideoViewController.swift
1
3954
// // VideoViewController.swift // Spreadit // // Created by Marko Hlebar on 24/01/2016. // Copyright © 2016 Marko Hlebar. All rights reserved. // import UIKit import BIND import MediaPlayer class VideoViewController: BNDViewController { @IBOutlet weak var videoContainerView: UIView! lazy var movieP...
agpl-3.0
c1c0521dcf611f15cf9e2b85597b3dc7
33.077586
115
0.66557
5.728986
false
false
false
false
mb2dev/BarnaBot
Barnabot/BBIntentDialog.swift
1
1627
// // BBIntentDialog.swift // BarnaBotSample // // Created by Mickael Bordage on 10/02/2017. // Copyright © 2017 Mickael Bordage. All rights reserved. // import Foundation class BBIntentDialog : BBDialog { var priority:Int // Pour pouvoir faire des comparaisons entre plusieurs instances de BBIntentDi...
bsd-3-clause
e1fd1998a7a94203bddfd49eb75117a2
30.882353
92
0.640221
4.116456
false
false
false
false
dekatotoro/FluxWithRxSwiftSample
FluxWithRxSwiftSample/Controllers/SearchUser/DataSources/SearchUserTableViewDataSource.swift
1
2027
// // SearchUserTableViewDataSource.swift // FluxWithRxSwiftSample // // Created by Yuji Hato on 2016/10/13. // Copyright © 2016年 dekatotoro. All rights reserved. // import UIKit import RxSwift class SearchUserTableViewDataSource: NSObject { weak var tableView: UITableView? let users = Variable<[Git...
mit
98188672de8d31556caae606e9ad4fa5
27.914286
100
0.668972
5.284595
false
false
false
false
seedante/ControlPanelAnimation
Control-Panel-Interactive-Animation/InteractiveAnimation/ViewController.swift
1
4732
// // ViewController.swift // InteractiveAnimation // // Created by seedante on 16/6/14. // Copyright © 2016年 seedante. All rights reserved. // import UIKit /** Continue the topic "Interactive Animations" in https://www.objc.io/issues/12-animations/interactive-animations/ , use UIView Animation/Core Animation ...
mit
fb04b502c3f2761302f293b05071bc30
40.482456
173
0.636287
4.82551
false
false
false
false
FantasyWei/FWScrollImageView
FWScrollImageView/FWScrollImageView/ViewController.swift
1
1013
// // ViewController.swift // FWScrollImageView // // Created by FantasyWei on 2017/3/16. // Copyright © 2017年 FantasyWei. All rights reserved. // import UIKit import SnapKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let scrollView...
mit
7d900bc245a0326f6e07709d817bc28c
25.944444
110
0.613402
3.97541
false
false
false
false
SwifterLC/SinaWeibo
LCSinaWeibo/LCSinaWeibo/Classes/View/Home/PullToRefresh/LCRefreshControl.swift
1
4522
// // LCRefreshControl.swift // 下拉刷新与上拉刷新 // // Created by 刘成 on 2017/8/13. // Copyright © 2017年 刘成. All rights reserved. // import UIKit import SnapKit let kLCRefreshControlHeight:CGFloat = -60 fileprivate let kLCRefreshControlAnimationKey = "kLCRefreshControlAnimationKey" class LCRefreshControl: UIRefreshControl...
mit
3d889a6b9d05ea8d9c48ee2af71cddef
27.453237
151
0.609355
4.266451
false
false
false
false
Infinisil/ScriptKit
Source/Console.swift
1
2647
// // Console.swift // ScriptKit // // Created by Silvan Mosberger on 21/07/16. // // import Foundation class Console { let task : Process let inHandle : FileHandle static let sharedBash : Console = { do { return try Console(shell: "bash") } catch { fatalE...
mit
6818d6530028edb41cef73d2edcddd41
26.28866
120
0.540612
4.441275
false
false
false
false
gmoral/SwiftTraining2016
Training_Swift/LeftViewController.swift
1
4118
// // SidePanelViewController.swift // Training_Swift // // Created by Guillermo Moral on 2/16/16. // Copyright © 2016 Guillermo Moral. All rights reserved. // import UIKit enum LeftMenu: Int { case Profile = 0 case MySkill case AllSkill case Logout } protocol LeftMenuProtocol : class { func ...
mit
5c3806563827eb93be6bf383beb609aa
30.922481
208
0.670148
5.678621
false
false
false
false
mapsme/omim
iphone/Maps/Core/Theme/Renderers/CheckmarkRenderer.swift
5
605
import Foundation extension Checkmark { @objc override func applyTheme() { if styleName.isEmpty { styleName = "Checkmark" } for style in StyleManager.shared.getStyle(styleName) where !style.isEmpty && !style.hasExclusion(view: self) { CheckmarkRenderer.render(self, style: style) } ...
apache-2.0
7c80ac1558308b8a0d4ec845dbaac7a4
23.2
63
0.676033
4.29078
false
false
false
false
KrishMunot/swift
test/decl/func/throwing_functions.swift
3
5534
// RUN: %target-parse-verify-swift enum Exception : ErrorProtocol { case A } // Basic syntax /////////////////////////////////////////////////////////////// func bar() throws -> Int { return 0 } func foo() -> Int { return 0 } // Currying /////////////////////////////////////////////////////////////////// func curry...
apache-2.0
8fce25785e693f9d81d4e77c501d105e
38.528571
213
0.585472
3.542894
false
false
false
false
swift-gtk/SwiftGTK
example/main.swift
1
4076
// // main.swift // example // // Created by Artur Gurgul on 07/02/2017. // // enum General:Error { case CantStartApp } class FirstApplication: Application { var buttonBox:ButtonBox! var label: Label! var pressMeButton: Button! var calendarButton: Button! var imageButton: Button! var te...
gpl-2.0
d267e70c5ec7d47c95870e5c6205b597
27.704225
86
0.591021
4.668958
false
false
false
false
Ghosty141/MenuBarControls
MenuBarControls/SettingsWindowController.swift
1
1584
// // SettingsWindowController.swift // MenuBarControls // // Copyright © 2017 Ghostly. All rights reserved. // import Cocoa class SettingsWindowController: NSWindowController, NSWindowDelegate { var visibleTab: NSViewController? @IBAction func general(_ sender: NSToolbarItem) { visibleTab = NSS...
gpl-3.0
7269fa98aab93d8d564cab7299b473d4
31.306122
104
0.650663
5.276667
false
false
false
false
khizkhiz/swift
test/Interpreter/builtin_bridge_object.swift
2
4877
// RUN: rm -rf %t && mkdir -p %t // RUN: %target-build-swift -parse-stdlib %s -o %t/a.out // RUN: %target-run %t/a.out | FileCheck %s // REQUIRES: executable_test // FIXME: rdar://problem/19648117 Needs splitting objc parts out // XFAIL: linux import Swift import SwiftShims class C { deinit { print("deallocated"...
apache-2.0
bf9256a00e61c4bab4b5db7a08618edc
24.534031
85
0.69879
3.297498
false
false
false
false
Harley-xk/SimpleDataKit
Example/Pods/Comet/Comet/Extensions/UINavigationController+Comet.swift
2
886
// // UINavigationController+Comet.swift // Pods // // Created by Harley on 2017/2/9. // // import Foundation import UIKit extension UINavigationController { /// 替换当前导航控制器栈顶的视图 open func replaceTop(with viewController: UIViewController, animated: Bool = true) { var vcs = self.viewControllers ...
mit
354e564c878f7cd2583f616fb5a93434
24.5625
88
0.661369
4.421622
false
false
false
false
joerocca/GitHawk
Local Pods/SwipeCellKit/Source/SwipeCollectionViewCell.swift
2
17782
// // SwipeCollectionViewCell.swift // SwipeCellKit // // Created by Ryan Nystrom on 6/26/17. // // import UIKit open class SwipeCollectionViewCell: UICollectionViewCell { public weak var delegate: SwipeCollectionViewCellDelegate? public var canDelete = false var animator: SwipeAnimator? var del...
mit
70874b25b38c91600bcca3625740a4a5
33.528155
148
0.583905
5.605927
false
false
false
false
naokits/my-programming-marathon
RACPlayground/Pods/Loggerithm/Source/Loggerithm.swift
3
13043
// // Loggerithm.swift // Loggerithm // // Created by Honghao Zhang on 2014-12-10. // Copyright (c) 2015 Honghao Zhang (张宏昊) // // 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 witho...
mit
a9d82c73c968471651b34d2c971fcffd
34.620219
172
0.613024
4.601836
false
false
false
false
wenghengcong/Coderpursue
BeeFun/BeeFun/View/User/View/CPDeveloperInfoView.swift
1
5388
// // CPDeveloperInfoView.swift // BeeFun // // Created by WengHengcong on 3/10/16. // Copyright © 2016 JungleSong. All rights reserved. // import UIKit protocol UserProfileActionProtocol: class { func viewFollowAction() func viewReposAction() func viewFollowingAction() } class CPDeveloperInfoView:...
mit
b7ac6784aa5a23f689fe5b8239a42f32
29.264045
117
0.617041
4.474252
false
false
false
false
jaouahbi/OMProgressImageView
ExampleSwift/ExampleSwift/ViewController.swift
1
2660
// // Copyright 2015 - Jorge Ouahbi // // 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 l...
apache-2.0
522c0199a52df436d47069cbf64fd78a
31.839506
77
0.609774
4.562607
false
false
false
false
fluidpixel/tvOS-controller
iPhone-controller/ViewController.swift
1
6008
// // ViewController.swift // iPhone-controller // // Created by Paul Jones on 02/11/2015. // Copyright © 2015 Fluid Pixel Limited. All rights reserved. // import UIKit import CoreMotion import SceneKit class ViewController: UIViewController, TVCPhoneSessionDelegate { var remote = TVCPhoneSession() l...
mit
cc62b322ebc70baccea30c4861e59fe7
28.885572
147
0.572499
4.832663
false
false
false
false
wayfair/brickkit-ios
Source/Models/BrickSection.swift
1
5828
// // BrickSection.swift // BrickKit // // Created by Ruben Cagnie on 7/5/17. // Copyright © 2017 Wayfair. All rights reserved. // import Foundation public protocol BrickSectionOrderDataSource: class { func brickAndIndex(atIndex brickIndex: Int, section: BrickSection) -> (Brick, Int)? } open class BrickSecti...
apache-2.0
18f25e889d5461b003840763c9bc0038
42.485075
399
0.681826
5.097988
false
false
false
false
27629678/web_dev
client/Demo/websocket/WebSocketClient.swift
1
2306
// // WebSocketClient.swift // Demo // // Created by hzyuxiaohua on 2017/1/17. // Copyright © 2017年 XY Network Co., Ltd. All rights reserved. // import Foundation import SocketIO import SocketRocket class WebSocketClient { private var socket: SocketIOClient? = nil static var client: WebSocketClient = Web...
mit
c33d402762b2252f44db4c494cc2d12d
27.085366
107
0.521059
4.560396
false
false
false
false
miken01/SwiftData
SwiftData/Classes/SwiftDataManager.swift
1
7250
// // SwiftDataManager.swift // SwiftData // // Created by Mike Neill on 10/26/15. // Copyright © 2015 Mike's App Shop. All rights reserved. // import Foundation import CoreData import os class SwiftDataManager { //MARK: - Singleton static let sharedManager = SwiftDataManager() //MARK: ...
gpl-3.0
fb3147e1ef7ba86a11573d48589bf1f4
30.517391
116
0.568906
6.101852
false
false
false
false
alvarozizou/Noticias-Leganes-iOS
NoticiasLeganes/Position/Position.swift
1
1320
// // Position.swift // NoticiasLeganes // // Created by Alvaro Blazquez Montero on 16/6/17. // Copyright © 2017 Alvaro Blazquez Montero. All rights reserved. // import UIKit import SwiftyJSON enum PositionKey: String { case position, team, name , crestURI, points, playedGames case wins = "won", draws = "d...
mit
43e090d7cae016b419dfe3542f313faf
31.170732
91
0.654284
3.574526
false
false
false
false
milseman/swift
test/PlaygroundTransform/array_did_set.swift
15
1123
// RUN: %empty-directory(%t) // RUN: cp %s %t/main.swift // RUN: %target-build-swift -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift // RUN: %target-run %t/main | %FileCheck %s // RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -Xfront...
apache-2.0
1a8be23ef1e71e463204a53a12d36afe
36.433333
197
0.60285
3.010724
false
false
false
false
y0ke/actor-platform
actor-sdk/sdk-core-ios/ActorSDK/Sources/Controllers/Settings/AASettingsSessionsController.swift
2
3054
// // Copyright (c) 2014-2016 Actor LLC. <https://actor.im> // import UIKit public class AASettingsSessionsController: AAContentTableController { private var sessionsCell: AAManagedArrayRows<ARApiAuthSession, AACommonCell>? public init() { super.init(style: AAContentTableStyle.SettingsGrouped) ...
agpl-3.0
671965b9ae69d26388b2ad5ccaa0c971
37.175
140
0.495416
5.167513
false
false
false
false
joalbright/Gameboard
Games/BoardController/BoardViewController.swift
1
4903
// // ViewController.swift // Games // // Created by Jo Albright on 2/3/16. // Copyright © 2016 Jo Albright. All rights reserved. // import UIKit enum Direction: UInt { case right = 1 case left = 2 case down = 8 case up = 4 var name: String { switch self { ca...
apache-2.0
6ff57ab33b6477945671fb516da8e30a
27.011429
134
0.594859
4.650854
false
false
false
false
PunchThrough/bean-ibeacon-demo-ios
Bean iB Demo/ViewController.swift
1
1453
// // ViewController.swift // Bean iB Demo // // Created by Matthew Lewis on 12/18/15. // Copyright © 2015 Punch Through Design. All rights reserved. // import UIKit class ViewController: UIViewController, BeaconInfoDelegate { // MARK: - Interface Builder @IBOutlet var container: UIView! @IBOutl...
mit
09deb085eaa7fdbf6dcf94b73a33cd93
26.923077
112
0.634298
4.233236
false
false
false
false
ScoutHarris/WordPress-iOS
WordPressKit/WordPressKit/RemotePlan.swift
2
2543
import Foundation public typealias PricedPlan = (plan: RemotePlan, price: String) public typealias SitePricedPlans = (siteID: Int, activePlan: RemotePlan, availablePlans: [PricedPlan]) public typealias RemotePlanFeatures = [PlanID: [RemotePlanFeature]] public typealias PlanID = Int /// Represents a WordPress.com fre...
gpl-2.0
6d08ce2e8cc3279dce522e0e47fcad65
26.641304
102
0.686591
4.203306
false
false
false
false
jvesala/teknappi
teknappi/teknappi/AppDelegate.swift
1
2936
// // AppDelegate.swift // teknappi // // Created by Jussi Vesala on 9.11.2015. // Copyright © 2015 Jussi Vesala. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishL...
gpl-3.0
058c94627a700a7b2b2168fe6592e3f9
44.153846
285
0.721635
5.326679
false
false
false
false
syxc/ZhihuDaily
ZhihuDaily/Classes/Controllers/Base/FYNavigationController.swift
1
2541
// // FYNavigationController.swift // ZhihuDaily // // Created by syxc on 16/2/2. // Copyright © 2016年 syxc. All rights reserved. // import UIKit class FYNavigationController: UINavigationController, UIGestureRecognizerDelegate, UINavigationControllerDelegate { // MARK: StatusBarStyle override func pref...
mit
475f99baf46d2cafb1fc744a7211cadd
31.126582
147
0.748227
6.115663
false
false
false
false
mumbler/PReVo-iOS
PoshReVo/Subaj Paghoj/Artikoloj/ArtikoloViewController.swift
1
19870
// // ArtikoloViewController.swift // PoshReVo // // Created by Robin Hill on 3/11/16. // Copyright © 2016 Robin Hill. All rights reserved. // import Foundation import UIKit import TTTAttributedLabel import ReVoModeloj import ReVoDatumbazo let subArtikolChelIdent = "subArtikolaChelo" let artikolChelIdent = "arti...
mit
83b341019251fd756841db37439020c9
37.4294
195
0.620495
4.093962
false
false
false
false
AlesTsurko/DNMKit
DNMModel/SpannerArguments.swift
1
593
// // SpannerArguments.swift // DNMModel // // Created by James Bean on 11/6/15. // Copyright © 2015 James Bean. All rights reserved. // import Foundation public struct SpannerArguments { public var exponent: Float = 1 // is there a memory advantage to using []? rather than [] ... ? public v...
gpl-2.0
5aa4d29225c41a2c9d68523f259151c2
23.708333
68
0.614865
3.72327
false
false
false
false
toshiapp/toshi-ios-client
Toshi/Controllers/Chat/ChatButton.swift
1
4454
import UIKit final class ChatButton: UIButton { var title: String? { didSet { buttonTitleLabel.text = title } } var shouldShowArrow: Bool = false { didSet { arrowImageView.isHidden = !shouldShowArrow if shouldShowArrow { titleTo...
gpl-3.0
7e826814db7e8115d7f01dfc859be9dd
31.043165
112
0.650651
5.505562
false
false
false
false
modocache/swift
test/type/protocol_composition.swift
1
5389
// RUN: %target-parse-verify-swift func canonical_empty_protocol() -> Any { return 1 } protocol P1 { func p1() func f(_: Int) -> Int } protocol P2 : P1 { func p2() } protocol P3 { func p3() } protocol P4 : P3 { func p4() func f(_: Double) -> Double } typealias Any1 = protocol<> // expected-warning {...
apache-2.0
68bb10e6a3d91dfb4d5ab529fa32cf49
37.769784
223
0.664502
3.691096
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/FeatureTransaction/Sources/FeatureTransactionUI/EnterAmount/EnterAmountPageBuilder.swift
1
8707
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import AnalyticsKit import BlockchainNamespace import DIKit import Localization import PlatformKit import PlatformUIKit import RIBs import RxCocoa import RxSwift import ToolKit import UIKit protocol EnterAmountPageBuildable { func build( liste...
lgpl-3.0
b81a939b95ce985ed5b17170159540eb
40.855769
114
0.660005
6.231926
false
false
false
false
klaaspieter/Letters
Sources/Extensions/RecorderError+Letters.swift
1
2122
extension RecorderError: AlertConvertible { var alert: Alert { switch self { case .capturing(let error): return error.alert case .exporting(let error): return error.alert case .composing(let error): return error.alert } } } extension CaptureError: AlertConvertible { var a...
mit
3caae96b38ef3f64ecb267d90157068e
30.671642
179
0.68426
4.779279
false
false
false
false
huonw/swift
validation-test/stdlib/CollectionCompatibility.swift
3
3630
// RUN: rm -rf %t ; mkdir -p %t // RUN: %target-build-swift %s -o %t/a.out3 -swift-version 3 && %target-run %t/a.out3 // RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-run %t/a.out4 // REQUIRES: executable_test import StdlibUnittest import StdlibCollectionUnittest //===--- MyCollection --------...
apache-2.0
d8087ea7ea476696fb41d7007fddc61c
32.302752
85
0.664187
3.367347
false
true
false
false
jshultz/ios9-swift2-core-data-demo
Core Data Demo/AppDelegate.swift
1
6117
// // AppDelegate.swift // Core Data Demo // // Created by Jason Shultz on 10/3/15. // Copyright © 2015 HashRocket. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppli...
mit
43d9b7294e38ecf882ce2225b4d54d83
54.099099
291
0.719261
5.863854
false
false
false
false
googlearchive/science-journal-ios
ScienceJournal/WrappedModels/BasicSensorAppearance.swift
1
3428
/* * Copyright 2019 Google LLC. 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 a...
apache-2.0
c3643eba585c31adb12659a9f394e03c
27.098361
91
0.701284
4.328283
false
false
false
false
BlackBricks/Swift-Project-Template
Project-iOS/XLProjectName/XLProjectName/Helpers/Extensions/AppDelegate+XLProjectName.swift
1
825
// // AppDelegate+XLProjectName.swift // XLProjectName // // Created by XLAuthorName ( XLAuthorWebsite ) // Copyright (c) 2016 XLOrganizationName. All rights reserved. // import Eureka import Foundation extension AppDelegate { /** Set up your Eureka default row customization here */ func styliz...
mit
8b7b1e538419eab06452114c757d432d
24
77
0.64
4.714286
false
false
false
false
yuvalt/SwiftySettings
Tests/OptionsTests.swift
1
4354
// // OptionsTests.swift // // // SwiftySettings // Created by Tomasz Gebarowski on 24/08/15. // Copyright © 2015 codica Tomasz Gebarowski <gebarowski at gmail.com>. // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documen...
mit
5146b1c7781c7955f3a280479b10430f
36.213675
96
0.555938
5.08528
false
false
false
false
Turistforeningen/SjekkUT
ios/SjekkUt/network/SjekkUtApi.swift
1
25965
// // SjekkUt.swift // SjekkUt // // Created by Henrik Hartz on 27/07/16. // Copyright © 2016 Den Norske Turistforening. All rights reserved. // import Foundation import Alamofire import SAMKeychain import UserNotifications class SjekkUtApi: DntManager { static let instance = SjekkUtApi() // depende...
mit
ee00b6821fd5b9bcc12134558da251e3
39.374806
168
0.540195
5.353887
false
false
false
false
sgr-ksmt/i18nSwift
Demo/Demo/ViewController.swift
1
2382
// // ViewController.swift // Demo // // Created by Suguru Kishimoto on 3/26/17. // Copyright © 2017 Suguru Kishimoto. All rights reserved. // import UIKit import i18nSwift class ViewController: UIViewController { @IBOutlet private weak var titleLabel: UILabel! @IBOutlet private weak var alertButton: UIB...
mit
164018b229ad0008148b32b4ef4dfcb7
32.957143
121
0.628944
4.442991
false
false
false
false
stripe/stripe-ios
StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElementTest.swift
1
3748
// // TextFieldElementTest.swift // StripeUICoreTests // // Created by Yuki Tokuhiro on 8/23/21. // Copyright © 2021 Stripe, Inc. All rights reserved. // import XCTest @testable @_spi(STP) import StripeUICore class TextFieldElementTest: XCTestCase { struct Configuration: TextFieldElementConfiguration { ...
mit
ab9f6a7415d2b14df8d173b4ea8079d4
47.038462
174
0.729384
5.049865
false
true
false
false
BellAppLab/Backgroundable
Sources/Backgroundable/Backgroundable+Operation.swift
1
2468
// // Backgroundable+Operation.swift // Example // // Created by André Campana on 02/08/2020. // Copyright © 2020 Bell App Lab. All rights reserved. // import Foundation @nonobjc extension Operation { /** Compares two `Operation`s and returns the one which should be cancelled. - parameters: ...
mit
69db9ebb01aada5d4b040c7d63afc90e
35.264706
222
0.660989
4.715105
false
false
false
false
tndatacommons/Compass-iOS
Compass/src/Util/DefaultsManager.swift
1
1774
// // DefaultsManager.swift // Compass // // Created by Ismael Alonso on 7/15/16. // Copyright © 2016 Tennessee Data Commons. All rights reserved. // import Foundation class DefaultsManager{ /*------------------------* * AWARD RELATED DEFAULTS * *------------------------*/ privat...
mit
2d9d3e4adf5cc334486555d2ffc16c41
28.55
93
0.608009
4.817935
false
false
false
false
manavgabhawala/swift
test/SILGen/errors.swift
1
47101
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen -verify -primary-file %s %S/Inputs/errors_other.swift | %FileCheck %s import Swift class Cat {} enum HomeworkError : Error { case TooHard case TooMuch case CatAteIt(Cat) } func someValidPointer<T>() -> UnsafePointer<T> { fatalError() } func someValidPo...
apache-2.0
ee6dcb2827d5720f7daf40c14564bbf3
48.509989
234
0.601861
3.185441
false
false
false
false
mita4829/Iris
Iris/ViewController.swift
1
6744
// // ViewController.swift // Iris // // Created by Michael Tang on 4/22/17. // Copyright (c) 2017 Michael Tang. All rights reserved. // Tesseract OCR, Lyndsey Scott import UIKit import Foundation class ViewController: UIViewController, UITextViewDelegate, UINavigationControllerDelegate, UIImagePickerController...
apache-2.0
61a2609447b3a3380c1302590e4d35fe
35.064171
178
0.645907
5.546053
false
false
false
false
material-motion/apidiff
apple/diffreport/Sources/diffreportlib/diffreport.swift
1
12177
/* Copyright 2016-present The Material Motion Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
apache-2.0
2ab833f3339aab447b5899b8b1b55990
35.458084
372
0.671922
3.778157
false
false
false
false
danthorpe/Examples
TaylorSource/Gallery/Gallery/Model.swift
1
6879
// // Model.swift // Gallery // // Created by Daniel Thorpe on 07/07/2015. // Copyright (c) 2015 Daniel Thorpe. All rights reserved. // import Foundation import MapKit import FlickrKit import YapDatabase import ValueCoding import YapDatabaseExtensions import TaylorSource class Photo: NSObject, NSCoding, Identifi...
mit
2aebcfdf56e559d6e8a0eb37c6b970dc
31.295775
162
0.647187
4.546596
false
false
false
false
wangxin20111/WXWeiBo
WXWeibo/WXWeibo/Classes/Home/View/WXSingleImgCell.swift
1
1406
// // WXSingleImgCell.swift // WXWeibo // // Created by 王鑫 on 16/7/26. // Copyright © 2016年 王鑫. All rights reserved. // import UIKit import SDWebImage let WXSingleImgCellIdentify = "WXSingleImgCellIdentify" class WXSingleImgCell: UICollectionViewCell { /// 背景照片 private lazy var imgView : UIImageVi...
mit
6948346106e36630018dfde792f75c73
27.617021
123
0.675836
4.92674
false
false
false
false
nickswalker/ASCIIfy
Example/ASCIIfyPlayground.playground/Contents.swift
1
704
import ASCIIfy let flowerImage = #imageLiteral(resourceName: "flower.jpg") let font = ASCIIConverter.defaultFont.withSize(24.0) let result = flowerImage.fy_asciiImage(font) let converter = ASCIIConverter(lut: LuminanceLookupTable()) converter.font = ASCIIConverter.defaultFont.withSize(96.0) converter.backgroundColor...
mit
8813149e694ff0859f4f78f03f02c625
32.52381
67
0.821023
3.955056
false
false
false
false
learning/colliery
TrackMix/TrackMix/AppDelegate.swift
1
1154
// // AppDelegate.swift // TrackMix // // Created by Learning on 14/11/19. // Copyright (c) 2014年 Learning. All rights reserved. // import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var window: NSWindow! @IBOutlet weak var textField: NSTextField! @IBO...
gpl-2.0
e0c57a8d4518d81ccb7bf8d65dc6e0ab
23
71
0.671007
4.626506
false
false
false
false
jverkoey/FigmaKit
Sources/FigmaKit/LayoutConstraint.swift
1
1453
/// A Figma layout constraint. /// /// "Layout constraint relative to containing Frame." /// https://www.figma.com/developers/api#layoutconstraint-type public struct LayoutConstraint: Codable { /// The type of constraint to apply. public let vertical: Vertical /// See `ConstraintType` for effect of this field. ...
apache-2.0
43d8a74086c1a5d98081a116846b5ab1
38.27027
109
0.701996
4.598101
false
false
false
false
volatilegg/FlyingNimbus
FlyingNimbus/Scenes/Home/HomeViewController.swift
1
3805
// // HomeViewController.swift // FlyingNimbus // // Created by Do Duc on 21/05/16. // Copyright © 2016 Do Duc. All rights reserved. // import UIKit import MapKit import Bond let centerHelsinki = CLLocationCoordinate2D(latitude: 60.1699, longitude: 24.9384) class HomeViewController: UIViewController, MKMapViewDe...
mit
0dfb3f08fd966473dd496f931a999ff8
36.294118
128
0.662198
5.126685
false
false
false
false
midoks/Swift-Learning
GitHubStar/GitHubStar/GitHubStar/Vendor/MDCacheImage/MDCacheImage.swift
1
6754
// // MDCacheImage.swift // // Created by midoks on 15/12/26. // Copyright © 2015年 midoks. All rights reserved. // import UIKit import SwiftyJSON //MARK: - 扩展UIImageView方法 - extension UIImageView{ //异步执行 public func asynTask(callback:@escaping ()->Void){ DispatchQueue.global().async { ...
apache-2.0
492706dd4aa4ca89b871143429151b7b
27.788546
106
0.501454
4.535045
false
false
false
false
wujianguo/YouPlay-iOS
YouPlay-iOS/Util.swift
1
4216
// // Util.swift // YouPlay-iOS // // Created by 吴建国 on 16/1/5. // Copyright © 2016年 wujianguo. All rights reserved. // import UIKit class Util { static let imageCache = NSCache() } extension UIColor { class func themeColor() -> UIColor { return UIColor.whiteColor().colorWithAlphaComponent(0.5) } ...
gpl-2.0
40703d868a467d07c13ce318c3b5f517
29.708029
104
0.584027
4.414481
false
false
false
false
DanielCech/Vapor-Catalogue
Sources/App/Controllers/AuthController.swift
1
6418
import Auth import Core import Foundation import HTTP import Punctual import TurnstileCrypto import Vapor import VaporJWT public final class AuthController { typealias CreateUser = (Valid<Email>, Valid<Username>, User.Salt, User.Secret) -> User typealias SaveUser = (inout User) throws -> Void private let ...
mit
cd72c23ae118d0b52d09c756ebfb5759
34.854749
96
0.60564
4.712188
false
false
false
false
Samiabo/Weibo
Weibo/Weibo/Classes/Main/UserAccount.swift
1
1600
// // UserAccount.swift // Weibo // // Created by han xuelong on 2017/1/3. // Copyright © 2017年 han xuelong. All rights reserved. // import UIKit class UserAccount: NSObject, NSCoding { var access_token: String? var expires_in: TimeInterval = 0.0 { didSet { expire_date = NSDate(timeInt...
mit
9803293e1a19b0cc13ec201617a2713c
31.591837
123
0.638071
3.9925
false
false
false
false
vmalakhovskiy/thisisstonemasonsmusicapp
Sources/App/Controllers/BandController.swift
1
7801
import Vapor import HTTP import Fluent import Foundation import Multipart /// Here we have a controller that helps facilitate /// RESTful interactions with our Users table final class BandController { func registerRoutes(with routeBuilder: RouteBuilder) { routeBuilder.get("bands", handler: get) ro...
mit
ef7c7624b29a9a450feb7559c8806dd0
33.517699
128
0.623382
4.506644
false
false
false
false
cismet/belis-app
belis-app/Standort.swift
1
15814
// // Standort.swift // Experiments // // Created by Thorsten Hell on 10/12/14. // Copyright (c) 2014 cismet. All rights reserved. // import Foundation import ObjectMapper fileprivate func < <T : Comparable>(lhs: T?, rhs: T?) -> Bool { switch (lhs, rhs) { case let (l?, r?): return l < r case (nil, _?): ...
mit
f609fa9cb3e843edaa015be08ce53348
34.507865
213
0.593697
3.704807
false
false
false
false
jawwad/swift-algorithm-club
Heap/Heap.swift
1
6624
// // Heap.swift // Written for the Swift Algorithm Club by Kevin Randrup and Matthijs Hollemans // public struct Heap<T> { /** The array that stores the heap's nodes. */ var nodes = [T]() /** * Determines how to compare two nodes in the heap. * Use '>' for a max-heap or '<' for a min-heap, * or...
mit
54cd676a8a40932136f38d619fa1fe17
28.704036
90
0.637077
3.848925
false
false
false
false
lemonkey/iOS
WatchKit/_Apple/ListerforAppleWatchiOSandOSX/Swift/Common/IncompleteListItemsPresenter.swift
1
12398
/* Copyright (C) 2015 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: The implementation for the `IncompleteListItemsPresenter` type. This class is responsible for managing how a list is presented in the iOS and OS X app Today widgets, as well as th...
mit
0cea8a317b42b6d42b357d833cb50cc8
53.131004
284
0.708454
5.333907
false
false
false
false
protoman92/SwiftUtilities
SwiftUtilities/string/Strings.swift
1
4157
// // Strings.swift // Sellfie // // Created by Hai Pham on 3/12/16. // Copyright © 2016 Swiften. All rights reserved. // extension String: IsInstanceType {} public extension Character { /// Create a random Character. This is useful for creating random Strings. /// /// - Returns: A Character. public stat...
apache-2.0
1132924c42717b230379a7ba68cde6e8
26.892617
89
0.608518
4.342738
false
false
false
false
dashboardearth/rewardsplatform
src/Halo-iOS-App/Halo/Data Model/Challenge.swift
1
2436
// // Challenge.swift // Halo // // Created by Sattawat Suppalertporn on 24/7/17. // Copyright © 2017 dashboardearth. All rights reserved. // import Foundation class Challenge { public var name:String = "" public var details:String = "" public var points:Int = 0 public var isCompleted:Bool = false...
apache-2.0
56bc2a4b0b639d190767c07842854a8d
29.4375
109
0.576181
4.484346
false
false
false
false
s4cha/Stevia
Tests/SteviaTests/BaselineTests.swift
3
1168
// // BaselineTests.swift // SteviaTests // // Created by Sacha on 09/09/2018. // Copyright © 2018 Sacha Durand Saint Omer. All rights reserved. // import XCTest import Stevia class BaselineTests: XCTestCase { var win: UIWindow! var ctrler: UIViewController! var label1 = UILabel() var label2 ...
mit
5f4cbe935847dc9e291f2542ba78491e
24.369565
104
0.634105
4.094737
false
true
false
false
Mindera/Alicerce
Tests/AlicerceTests/Utils/AssertDumpsEqualTestCase.swift
1
1207
import XCTest @testable import Alicerce class AssertDumpsEqualTestCase: XCTestCase { func test_WithEqualString_ShouldSucceed() { let s1 = "test" let s2 = "test" assertDumpsEqual(s1, s2) } func test_WithEqualInt_ShouldSucceed() { let i1 = 1337 let i2 = 1337 ...
mit
03b9e1f504799a49830bca2c7216454c
19.457627
74
0.534383
3.126943
false
true
false
false
wangjianquan/wjq-weibo
weibo_wjq/Home/View/HomeCell.swift
1
4005
// // HomeCell.swift // weibo_wjq // // Created by landixing on 2017/6/1. // Copyright © 2017年 WJQ. All rights reserved. // import UIKit import SDWebImage private let edgeMargin : CGFloat = 10 private let itemMargin : CGFloat = 12 class HomeCell: UITableViewCell { @IBOutlet var picCollectionView: ...
apache-2.0
4f932f4e31a6b1582e95ab80cda2c4ba
25.319444
147
0.556992
5.375887
false
false
false
false
pennlabs/penn-mobile-ios
PennMobile/Laundry/Cells/LaundryMachineCell.swift
1
3098
// // LaundryMachineCell.swift // PennMobile // // Created by Dominic Holmes on 10/28/17. // Copyright © 2017 PennLabs. All rights reserved. // import UIKit class LaundryMachineCell: UICollectionViewCell { static let identifier = "laundryMachineCell" var machine: LaundryMachine! { didSet { ...
mit
c958d5a638ea05b9043b2a96e8274437
30.602041
187
0.576364
4.80155
false
false
false
false
practicalswift/swift
test/Interpreter/SDK/objc_extensions.swift
35
1150
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test // REQUIRES: objc_interop import Foundation extension NSObject { @objc func frob() { print("I've been frobbed!") } @objc var asHerself : NSObject { return self } @objc var blackHoleWithHawkingRadiation : NSObject? { ...
apache-2.0
a214390f01e967deba0d54b412f4df74
18.491525
58
0.663478
3.203343
false
false
false
false
qwang216/Pokedex
PokeDex/Pokemon.swift
1
1096
// // Pokemon.swift // PokeDex // // Created by Jason Wang on 10/15/16. // Copyright © 2016 Jason Wang. All rights reserved. // import Foundation class Pokemon: NSObject { @objc let name: String let pkDexID: Int let imageUrlString: String let descriptionString: String @objc let types: [String] ...
mit
7c51b3698bb898eb21a874606a05a5d0
28.594595
111
0.607306
3.869258
false
false
false
false
AlesTsurko/AudioKit
Examples/OSX/Swift/AudioKitDemo/AudioKitDemo/FMSynthesizer.swift
1
1725
// // FMSynthesizer.swift // AudioKitDemo // // Created by Nicholas Arner on 3/1/15. // Copyright (c) 2015 AudioKit. All rights reserved. // class FMSynthesizer: AKInstrument{ override init() { super.init() // Note Properties var note = FMSynthesizerNote() addNoteP...
lgpl-3.0
6b45857d11f89855fe91aa83a1b56a59
25.151515
76
0.586667
4.434447
false
false
false
false
5calls/ios
FiveCalls/FiveCalls/MyImpactViewController.swift
1
5694
// // MyImpactViewController.swift // FiveCalls // // Created by Ben Scheirman on 2/6/17. // Copyright © 2017 5calls. All rights reserved. // import UIKit import Rswift class MyImpactViewController : UITableViewController { private var viewModel: ImpactViewModel! private var userStats: UserStats? ...
mit
731d2f9061be56ebad598e1b4c389b1f
31.346591
193
0.629896
5.21337
false
false
false
false
Tatoeba/tatoeba-ios
Tatoeba/Common/Networking/SentencesRequest.swift
1
1445
// // SentencesRequest.swift // Tatoeba // // Created by Jack Cook on 8/6/17. // Copyright © 2017 Tatoeba. All rights reserved. // import Alamofire import SwiftyJSON /// Returns sentences using the specified parameters. final class SentencesRequest: TatoebaRequest { typealias ResponseData = JSON type...
mit
ce6952628fc31839c07156330d9a3782
22.672131
86
0.578947
4.781457
false
false
false
false
netguru/inbbbox-ios
Inbbbox/Source Files/Extensions/UIImageExtension.swift
1
1368
// // UIImageExtension.swift // Inbbbox // // Created by Lukasz Wolanczyk on 2/10/16. // Copyright © 2016 Netguru Sp. z o.o. All rights reserved. // import UIKit import GPUImage extension UIImage { // MARK: Initializers /// Initializes the image with color and size. /// By default width and height a...
gpl-3.0
94d54c429129ab15f3f67eb5da938234
27.479167
83
0.630578
4.38141
false
false
false
false
alexzatsepin/omim
iphone/Maps/Bookmarks/Categories/Sharing/GuideNameViewController.swift
4
1638
protocol GuideNameViewControllerDelegate { func viewController(_ viewController: GuideNameViewController, didFinishEditing text: String) } class GuideNameViewController: MWMTableViewController { @IBOutlet weak var nextBarButton: UIBarButtonItem! @IBOutlet weak var nameTextField: UITextField! var guideName: St...
apache-2.0
df59b3969601c4f9a2867b6fe18d3139
33.851064
102
0.723443
4.94864
false
false
false
false
makhiye/flagMatching
flag Matching/GameViewController.swift
1
3722
// // GameViewController.swift // flag Matching // // Created by ishmael on 7/17/17. // Copyright © 2017 ishmael.mthombeni. All rights reserved. // import UIKit import LTMorphingLabel import MZTimerLabel class GameViewController: UIViewController, MatchingGameDelegate { var game = Game() var gameNu...
mit
c61adf968fef3b1c2e1a32ece85e2502
25.204225
161
0.529965
5.175243
false
false
false
false
exyte/Macaw
Source/model/geom2d/Transform.swift
1
4995
import Foundation public final class Transform { public let m11: Double public let m12: Double public let m21: Double public let m22: Double public let dx: Double public let dy: Double public static let identity = Transform() public init(_ m11: Double, _ m12: Double, _ m21: Double, _...
mit
8795573520bbefb3b1839e8b2549b2bb
32.3
117
0.526326
3.185587
false
false
false
false
Diederia/project
Diederick-Calkoen-Project/SettingsViewController.swift
1
8604
// // SettingsViewController.swift // Diederick-Calkoen-Project // // Created by Diederick Calkoen on 20/01/17. // Copyright © 2017 Diederick Calkoen. All rights reserved. // // In this view it is possible to see and change settings of there own account. You could change your password, id and mobile number. import...
mit
84f401c93124f30b03be0b50a3fe72ba
41.171569
216
0.651866
4.590715
false
false
false
false
milseman/swift
stdlib/public/core/CharacterUnicodeScalars.swift
5
4532
//===--- CharacterUnicodeScalars.swift ------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
193087b9e780284cadc43798e5b851ef
28.815789
80
0.649162
4.349328
false
false
false
false
milseman/swift
test/stdlib/NewStringAppending.swift
12
3860
// RUN: %target-run-stdlib-swift | %FileCheck %s // REQUIRES: executable_test // // Parts of this test depend on memory allocator specifics. The test // should be rewritten soon so it doesn't expose legacy components // like OpaqueString anyway, so we can just disable the failing // configuration // // Memory allocato...
apache-2.0
bace248148b572920948a9664412aa6c
28.389313
108
0.633247
3.293413
false
false
false
false
google-pay/flutter-plugin
pay_ios/ios/Classes/ApplePayButtonView.swift
1
8174
/** * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
2905a3f6ff6325a4801f2a39b05a3633
34.694323
118
0.70186
4.686927
false
false
false
false
danielsaidi/iExtra
iExtra/UI/Gestures/UIView+RepeatingAction.swift
1
1090
// // UIView+RepeatingAction.swift // iExtra // // Created by Daniel Saidi on 2019-05-30. // Copyright © 2019 Daniel Saidi. All rights reserved. // // Reference: https://medium.com/@sdrzn/adding-gesture-recognizers-with-closures-instead-of-selectors-9fb3e09a8f0b // /* This extension applies repeating gesture r...
mit
82da95940c1662c13aeb5dbddc8a5575
25.560976
115
0.66483
4.653846
false
false
false
false
spronin/hse-swift-course
HSEToday/TodayViewController.swift
1
1977
// // TodayViewController.swift // HSEToday // // Created by Sergey Pronin on 4/21/15. // Copyright (c) 2015 Sergey Pronin. All rights reserved. // import UIKit import NotificationCenter class TodayViewController: UIViewController, NCWidgetProviding { @IBOutlet weak var tableFlights: UITableView! ...
mit
f731841a9d6972e698f4b8da3ca96ee7
26.84507
110
0.647951
5.569014
false
false
false
false
gouyz/GYZBaking
baking/Classes/Login/Controller/GYZLoginVC.swift
1
10642
// // GYZLoginVC.swift // baking // 登录 控制器 // Created by gouyz on 2016/12/1. // Copyright © 2016年 gouyz. All rights reserved. // import UIKit import SwiftyJSON import MBProgressHUD class GYZLoginVC: GYZBaseVC { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = kW...
mit
3d3d4ce23f40e64ccf6df5aa7ecda9c6
34.911972
189
0.592509
4.625397
false
false
false
false
yujinjcho/movie_recommendations
ios_ui/Pods/Nimble/Sources/Nimble/Matchers/PostNotification.swift
38
2432
import Foundation internal class NotificationCollector { private(set) var observedNotifications: [Notification] private let notificationCenter: NotificationCenter #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) private var token: AnyObject? #else private var token: NSObjectProtocol? #en...
mit
ac9db71359022660fc07f6f254667cac
34.764706
120
0.657072
5.241379
false
false
false
false
calkinssean/woodshopBMX
WoodshopBMX/Pods/Charts/Charts/Classes/Data/Implementations/Standard/BubbleChartDataSet.swift
7
3209
// // BubbleChartDataSet.swift // Charts // // Bubble chart implementation: // Copyright 2015 Pierre-Marc Airoldi // Licensed under Apache License 2.0 // // https://github.com/danielgindi/ios-charts // import Foundation import CoreGraphics public class BubbleChartDataSet: BarLineScatterCandleBubbleChartDat...
apache-2.0
f5102e7475274ad0b8c71635349b53d0
22.253623
92
0.511374
5.045597
false
false
false
false
See-Ku/SK4Toolkit
SK4Toolkit/gui/SK4ActionSheet.swift
1
3147
// // SK4ActionSheet.swift // SK4Toolkit // // Created by See.Ku on 2016/03/24. // Copyright (c) 2016 AxeRoad. All rights reserved. // import UIKit /// ActionSheetを表示するためのクラス public class SK4ActionSheet: SK4AlertController { // ///////////////////////////////////////////////////////////// // MARK: - プロパティ&初期化 ...
mit
11dd00c5a34f05c78b70a61198a183b0
21.280303
104
0.66678
3.736976
false
false
false
false
vector-im/vector-ios
RiotSwiftUI/Modules/Room/TimelinePoll/TimelinePollModels.swift
1
2982
// // Copyright 2021 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 ...
apache-2.0
e120d834a14111d45b469a017662b109
26.611111
84
0.691482
4.57362
false
false
false
false
lanjing99/RxSwiftDemo
11-time-based-operators/final/RxSwiftPlayground/RxSwift.playground/Pages/replay.xcplaygroundpage/Contents.swift
2
2485
//: Please build the scheme 'RxSwiftPlayground' first import UIKit import RxSwift import RxCocoa let elementsPerSecond = 1 let maxElements = 5 let replayedElements = 1 let replayDelay: TimeInterval = 3 let sourceObservable = Observable<Int> .interval(RxTimeInterval(elementsPerSecond), scheduler: MainScheduler.inst...
mit
0c00167d886b81a64007d4d164ba80fd
32.581081
88
0.75493
4.406028
false
false
false
false
oxozle/OXPatternLock
Source/OXPatternLock.swift
1
5454
// // OXPatternLock.swift // OXPatternLock // // Created by Dmitriy Azarov on 11/01/2017. // Copyright © 2017 http://oxozle.com. All rights reserved. // https://github.com/oxozle/OXPatternLock // // import Foundation import UIKit /// OXPatternLock Delegate public protocol OXPatternLockDelegate: class { ...
mit
0f3102133abb4165d822afa5eff94796
25.470874
143
0.562259
4.536606
false
false
false
false
xedin/swift
test/Serialization/autolinking.swift
1
3576
// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module -parse-stdlib -o %t -module-name someModule -module-link-name module %S/../Inputs/empty.swift // RUN: %target-swift-frontend -disable-autolinking-runtime-compatibility-dynamic-replacements -runtime-compatibility-version none -emit-ir -lmagic %s -I...
apache-2.0
cabb1b879fdadf2dc34ab6728a843596
69.117647
272
0.703859
3.286765
false
false
false
false
timelessg/TLStoryCamera
TLStoryCameraFramework/TLStoryCameraFramework/Class/Controllers/TLStoryViewController.swift
1
13821
// // TLStoryCameraViewController.swift // TLStoryCamera // // Created by GarryGuo on 2017/5/10. // Copyright © 2017年 GarryGuo. All rights reserved. // import UIKit public enum TLStoryType { case video case photo } public protocol TLStoryViewDelegate: NSObjectProtocol { func storyViewRecording(runnin...
mit
35da22f2c3519443d6802a9541ff6636
32.216346
169
0.629469
5.07455
false
false
false
false
TimurBK/SwiftSampleProject
Pods/Kingfisher/Sources/KingfisherManager.swift
5
9404
// // KingfisherManager.swift // Kingfisher // // Created by Wei Wang on 15/4/6. // // Copyright (c) 2017 Wei Wang <onevcat@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 Soft...
mit
abc9acb20b65f8feff3516cec607924f
43.150235
140
0.620268
5.79064
false
false
false
false
shridharmalimca/iOSDev
iOS/Components/GooglePlaceAPI/WebonoiseAssignment/WebonoiseAssignment/APIAutoComplete.swift
3
3364
// // APIAutoComplete.swift // WebonoiseAssignment // // Created by Shridhar Mali on 4/15/17. // Copyright © 2017 Shridhar Mali. All rights reserved. // import UIKit import Gloss //Object Mapping of APIAutoComplete public struct APIAutoCompletePlaces: Decodable { let predictions: [Predictions]? public ini...
apache-2.0
7a3f4633ed7768e8d011d3c48ffefa7b
39.518072
156
0.612251
5.363636
false
false
false
false
kak-ios-codepath/everest
Everest/Everest/Models/Action.swift
1
777
// // Action.swift // Everest // // Created by user on 10/14/17. // Copyright © 2017 Kavita Gaitonde. All rights reserved. // import Foundation import SwiftyJSON class Action: NSObject { var id: String //same id from acts var createdAt: String var status: String var momentIds: [Strin...
apache-2.0
c280dff9ca3bf56604e904293403468a
22.515152
59
0.594072
3.919192
false
false
false
false