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
milseman/swift
test/type/self.swift
12
870
// RUN: %target-typecheck-verify-swift struct S0<T> { func foo(_ other: Self) { } // expected-error{{'Self' is only available in a protocol or as the result of a method in a class; did you mean 'S0'?}}{{21-25=S0}} } class C0<T> { func foo(_ other: Self) { } // expected-error{{'Self' is only available in a protoco...
apache-2.0
69510caa4dadcd7a893dd0c7e5642712
31.222222
171
0.648276
3.085106
false
false
false
false
TCA-Team/iOS
TUM Campus App/LectureDetailsManager.swift
1
1434
// // LectureDetailsManager.swift // TUM Campus App // // Created by Mathias Quintero on 1/17/16. // Copyright © 2016 LS1 TUM. All rights reserved. // import SWXMLHash import Sweeft final class LectureDetailsManager: DetailsManager { typealias DataType = Lecture var config: Config init(...
gpl-3.0
49b8c73c42d254eb51fbf4baa296004d
30.152174
101
0.526867
4.478125
false
true
false
false
EaglesoftZJ/actor-platform
actor-sdk/sdk-core-ios/ActorSDK/Sources/Controllers/Content/Dialogs List/Cells/AADialogSearchCell.swift
1
1732
// // Copyright (c) 2014-2016 Actor LLC. <https://actor.im> // import UIKit open class AADialogSearchCell: AATableViewCell, AABindedSearchCell { public typealias BindData = ACSearchResult public static func bindedCellHeight(_ item: BindData) -> CGFloat { return 76 } fi...
agpl-3.0
08c67249ad29f0363256c8b57aed63b3
31.074074
139
0.650115
4.824513
false
false
false
false
fluidsonic/JetPack
Sources/UI/z_ImageView+PHAssetSource.swift
1
3433
// File name prefixed with z_ to avoid compiler crash related to type extensions, nested types and order of Swift source files. // TODO // - allow passing PHImageRequestOptions, copy it and set .synchronous to false // - allow using a custom PHImageManager, e.g. PHCachingImageManager import Photos import UIKit publ...
mit
a9ad3f32618486ce9a71a4e48439da35
25.007576
150
0.767259
4.248762
false
false
false
false
mindz-eye/MYTableViewIndex
MYTableViewIndex/Private/IndexView.swift
1
2646
// // IndexView.swift // TableViewIndex // // Created by Makarov Yury on 02/05/16. // Copyright © 2016 Makarov Yury. All rights reserved. // import UIKit class IndexView : UIView { private(set) var items: [UIView]? private(set) var layout: ItemLayout<UIView>? // MARK: - Init overrid...
mit
6938a76ac8e00ad338c6f086739921d8
25.717172
102
0.562571
4.765766
false
false
false
false
barteljan/RocketChatAdapter
Pod/Classes/RocketChatAdapter.swift
1
8008
// // RocketChatAdapter.swift // Pods // // Created by Jan Bartel on 12.03.16. // // import VISPER_CommandBus import SwiftDDP import XCGLogger public enum RocketChatAdapterError : ErrorType { case ServerDidResponseWithEmptyResult(fileName:String,function: String,line: Int,column: Int) case RequiredResponseF...
mit
6c1674cdc76232562f8f082070200230
29.681992
185
0.600899
4.786611
false
false
false
false
keyOfVv/KEYExtension
KEYExtension/sources/UIFontExtension.swift
1
2487
// // UIFontExtension.swift // alpha // // Created by keyOfVv on 1/11/16. // Copyright © 2016 com.keyofvv. All rights reserved. // import UIKit // MARK: - UIFont扩展 public extension UIFont { /** 字体名称枚举 - Noteworthy: Noteworthy字体 - NoteworthyBold: Noteworthy-Bold字体 - HelveticaNeueLight: Helvetic...
mit
cc04f0da34f98e2fd0d8a388b9dce42e
20.762376
65
0.72202
3.381538
false
false
false
false
MingLoan/PageTabBarController
sources/PageTabBarItem.swift
1
9360
// // PageTabBarItem.swift // PageTabBarController // // Created by Keith Chan on 4/9/2017. // Copyright © 2017 com.mingloan. 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 // ...
mit
dc15d76becb103c01099761ff379205e
36.890688
145
0.640667
5.524793
false
false
false
false
roelspruit/RSMetronome
Sources/RSMetronome/Metronome.swift
1
1669
// // Metronome.swift // // Created by Roel Spruit on 16/10/15. // Copyright © 2015 DinkyWonder. All rights reserved. // import Foundation public class Metronome { public var settings: Settings = Settings() { didSet{ patternPlayer?.settings = settings } } var beatListe...
mit
900222f2b708367d700962012af97db0
23.173913
132
0.559952
4.820809
false
false
false
false
Journey321/xiaorizi
Pods/Kingfisher/Sources/String+MD5.swift
8
9688
// // String+MD5.swift // Kingfisher // // This file is stolen from HanekeSwift: https://github.com/Haneke/HanekeSwift/blob/master/Haneke/CryptoSwiftMD5.swift // which is a modified version of CryptoSwift: // // To date, adding CommonCrypto to a Swift framework is problematic. See: // http://stackoverflow.com/questio...
mit
f3e2d952797d75e0b35648eb9ea93530
34.988848
213
0.54922
3.831025
false
false
false
false
necrowman/CRLAlamofireFuture
Examples/SimpleTvOSCarthage/Carthage/Checkouts/Future/Future/TaskChain.swift
111
1725
//===--- TaskChain.swift ------------------------------------------------------===// //Copyright (c) 2016 Daniel Leping (dileping) // //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:/...
mit
2d15d2187d709b5349e1a2f08c2c913f
30.381818
84
0.607536
4.831933
false
false
false
false
citysite102/kapi-kaffeine
kapi-kaffeine/kapi-kaffeine/KPEditCommentController.swift
1
10227
// // KPEditCommentController.swift // kapi-kaffeine // // Created by YU CHONKAO on 2017/8/16. // Copyright © 2017年 kapi-kaffeine. All rights reserved. // import UIKit class KPEditCommentController: KPViewController { static let commentMaximumTextLength: Int = 200 var containerView: UIView! var d...
mit
6e95427b373c4d431ec9089e436711d4
40.190283
139
0.599961
5.922002
false
false
false
false
practicalswift/swift
test/Generics/conditional_conformances_literals.swift
1
5458
// RUN: %target-typecheck-verify-swift -typecheck -verify // rdar://problem/38461036 , https://bugs.swift.org/browse/SR-7192 and highlights the real problem in https://bugs.swift.org/browse/SR-6941 protocol SameType {} protocol Conforms {} struct Works: Hashable, Conforms {} struct Fails: Hashable {} extension Arra...
apache-2.0
d5a73a6fd15481f2d5f084ca9c60a095
39.42963
139
0.649689
3.937951
false
false
false
false
Gilbertat/SYKanZhiHu
SYKanZhihu/SYKanZhihu/Class/User/Controller/SYUserViewController.swift
1
3891
// // SYUserViewController.swift // SYKanZhihu // // Created by shiyue on 16/2/25. // Copyright © 2016年 shiyue. All rights reserved. // import UIKit class SYUserViewController: UIViewController { var userHash = "" //请求数据需要 var infoModel:userModel! var dataSource:Array<ConsentModel> = Array() ...
mit
2f32608021e1f71927f9079129318715
28.937984
126
0.598136
5.326897
false
false
false
false
apple/swift-driver
Tests/IncrementalTestFramework/Source.swift
1
1968
//===----------- PhasedSources.swift - Swift Testing --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.t...
apache-2.0
553d8d0c056863a9480d655bc210b566
32.931034
80
0.613313
4.503432
false
true
false
false
Alex-ZHOU/XYQSwift
XYQSwiftTests/Learn-from-Imooc/Play-with-Swift-2/02-Basics/01-Constants-and-Variables.playground/Contents.swift
1
679
// // 2-1 Swift 2.0基本类型之常量、变量和声明 // 01-Constants-and-Variables.playground // // Created by AlexZHOU on 16/05/2017. // Copyright © 2016年 AlexZHOU. All rights reserved. // import UIKit var str = "01-Constants-and-Variables" print(str) let maxNum = 1000 // 常量不可以被改变 //maxNum = 0 var index = 2 // 变量可以被改变 index = 3 ...
apache-2.0
25e431e4191662d6f5df3bd152a54655
14.588235
52
0.664151
2.465116
false
false
false
false
DuckDeck/GrandMenu
GrandMenuDemo/ViewControllers/Controller3.swift
1
1128
// // Controller3.swift // Demo // // Created by Tyrant on 1/14/16. // // import UIKit class Controller3: UIViewController,UITableViewDataSource { var tb:UITableView? var arrData:[String]? override func viewDidLoad() { super.viewDidLoad() tb = UITableView() tb?.dataSource = self...
mit
fc14d61de62b64abb5678450b101bee9
25.857143
100
0.611702
4.7
false
false
false
false
JaSpa/swift
stdlib/public/SDK/Intents/INGetCarLockStatusIntentResponse.swift
1
898
//===----------------------------------------------------------------------===// // // 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 https://swift.org/L...
apache-2.0
9f899ca06e4d3a7afabad8c7e08779ff
29.965517
80
0.54343
4.628866
false
false
false
false
faimin/ZDOpenSourceDemo
ZDOpenSourceSwiftDemo/Pods/lottie-ios/lottie-swift/src/Private/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift
1
1603
// // ShapeContainerLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/30/19. // import Foundation import QuartzCore /** The base layer that holds Shapes and Shape Renderers */ class ShapeContainerLayer: CALayer { private(set) var renderLayers: [ShapeContainerLayer] = [] override init() ...
mit
4da514cf0250591f59a7cdd1caa1ed04
20.958904
69
0.641298
3.881356
false
false
false
false
JaSpa/swift
validation-test/compiler_crashers/28667-result-case-not-implemented.swift
2
517
// 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/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
apache-2.0
3086ce0f56de0451bf159d311b605fbe
42.083333
79
0.725338
3.541096
false
false
false
false
mac-cain13/Xcode.swift
Example/Example/main.swift
1
1445
// // main.swift // Example // // Created by Tom Lokhorst on 2015-08-14. // Copyright (c) 2015 nonstrict. All rights reserved. // import Foundation let args = Process.arguments if args.count < 2 { print("Call with a .xcodeproj, e.g.: \"$SRCROOT/../Test projects/HelloCpp.xcodeproj\"") } // The xcodeproj file t...
mit
0f3c7a97ae85b65b985cbc54cdb41e40
26.788462
96
0.714879
4.070423
false
false
false
false
Jnosh/swift
test/stdlib/MathConstants.swift
23
432
// RUN: %target-typecheck-verify-swift #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) import Darwin #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) import Glibc #endif _ = M_PI // expected-warning {{is deprecated}} _ = M_PI_2 // expected-warning {{is deprecated}} _ = M_PI_4 // expected-warning {{is depr...
apache-2.0
ccf441f76ced7f619b8e59b2932879d3
29.857143
58
0.645833
2.899329
false
false
false
false
buscarini/Collectionist
Collectionist/Classes/List/List+Utils.swift
1
5196
// // List+Utils.swift // Pods // // Created by José Manuel Sánchez Peñarroja on 19/5/16. // // import Foundation import Miscel public extension List { typealias ListType = List<T, HeaderT, FooterT> public static func listFrom<T: Equatable>( _ items: [T], nibName: String, c...
mit
f8f1ecb766b2b21075f479ec98842f56
32.941176
178
0.669363
3.372078
false
true
false
false
thisfin/FolderSync
FolderSync/FolderCompareViewController.swift
1
16987
// // FolderCompareViewController.swift // FolderSync // // Created by wenyou on 2017/9/12. // Copyright © 2017年 wenyou. All rights reserved. // import Cocoa class FolderCompareViewController: NSViewController { private let viewSize = NSMakeSize(800, 600) var sourceOutlineView: SingleOutlineView! var...
mit
736f6ed812684d68729aae2cd55798bd
40.270936
183
0.641084
4.935493
false
false
false
false
Antondomashnev/Sourcery
Sourcery/Utils/Path+Extensions.swift
1
2005
// // Path+Extensions.swift // Sourcery // // Created by Krunoslav Zaher on 1/6/17. // Copyright © 2017 Pixle. All rights reserved. // import Foundation import PathKit typealias Path = PathKit.Path extension Path { static func cleanTemporaryDir(name: String) -> Path { guard let tempDirURL = NSURL(fil...
mit
1e59c216766cc35982e9e47c7b4d6c68
30.3125
172
0.629242
4.473214
false
false
false
false
sachinvas/Swifter
Source/Extensions/DictionaryExtensions.swift
2
2109
// // DictionaryExtensions.swift // SwifterSwift // // Created by Omar Albeik on 8/24/16. // Copyright © 2016 Omar Albeik. All rights reserved. // import Foundation // MARK: - Methods public extension Dictionary { /// SwifterSwift: Check if key exists in dictionary. /// /// - Parameter key: key to search for...
mit
1275ca338aa516aa4d63ff450a1848ff
27.876712
120
0.711101
3.889299
false
false
false
false
cwaffles/Soulcast
Soulcast/ImproveVC.swift
1
1709
// // FeedbackVC.swift // Soulcast // // Created by June Kim on 2016-09-16. // Copyright © 2016 Soulcast-team. All rights reserved. // import Foundation import UIKit protocol ImproveVCDelegate: class { func didFinishGettingImprove() } class ImproveVC: UIViewController { weak var delegate:ImproveVCDelegate...
mit
c5effe9bb53bee0d4ec42f2b8767a4ae
21.181818
70
0.680328
4.186275
false
false
false
false
cliffpanos/True-Pass-iOS
iOSApp/CheckIn/Managers/DataServices/Accounts.swift
1
5198
// // Accounts.swift // True Pass // // Created by Cliff Panos on 5/1/17. // Copyright © 2017 Clifford Panos. All rights reserved. // import Foundation import Firebase import FirebaseDatabase import FirebaseAuth //import GoogleSignIn //import FacebookCore //import FacebookLogin class Accounts { static le...
apache-2.0
93058815c8d436def8dddba10733cf4f
29.934524
126
0.609582
4.590989
false
false
false
false
igerard/MetalByExampleInSwift
Chapter2/Chapter2/GIMLView.swift
1
4626
// // GIMTLView.swift // Chapter2 // // Created by Gerard Iglesias on 01/12/2016. // Copyright © 2016 Gerard Iglesias. All rights reserved. // import AppKit class GIMTLView : NSView { // MARK: Vars var info : String var mlLayer : CAMetalLayer? = nil override var layer: CALayer? { didSet { ...
mit
65d6d1da17f33e13322d85bf99efcda6
28.458599
150
0.633081
4.579208
false
false
false
false
tbaranes/SwiftyUtils
Sources/Extensions/UIKit/UICollectionViewCell/UICollectionViewCellExtension.swift
1
2408
// // UICollectionViewCell.swift // SwiftyUtils iOS // // Created by Tom Baranes on 25/04/2020. // Copyright © 2020 Tom Baranes. All rights reserved. // #if os(iOS) import UIKit extension UICollectionViewCell { /// Apply corner radius to the cell. /// - Parameters: /// - radius: The radius that ...
mit
f92db92b89d4b7624333244ebd11ffed
39.116667
115
0.584961
5.014583
false
false
false
false
blast78/laposte-sdk-ios-ci
LaPosteEasyServices/LaPoste.swift
1
7149
// // LaPoste.swift // LaPosteEasyServices // // Created by Grunt on 02/02/2017. // Copyright © 2017 Grunt. All rights reserved. // import Foundation import Alamofire public class LaPoste { //the key used by the server to authenticate (must subscribe to the service before) static let serverKey = "VBO...
bsd-3-clause
010dc103e1fcc0d7e04d993ca64245c3
45.614379
127
0.538699
5.047417
false
false
false
false
DanielSmith1239/KosherSwift
KosherSwift/Categories/Foundation/nsdate/NSDate_Components.swift
1
4257
// // Created by Daniel Smith on 3/9/16. // Copyright (c) 2016 Dani Smith. All rights reserved. // import Foundation extension NSDate { class public func dateWithDay(day: Int, month: Int, year: Int) -> NSDate { return NSDate.dateWithDay(day, Month: month, Year: year, andCalendar: NSDate.defaultCalendar()) } ...
lgpl-3.0
6600831cd336cac64701c0e4ccb8192b
26.294872
210
0.730092
4.210682
false
false
false
false
paulofaria/SwiftHTTPServer
HTML Response/HTTPResponse+HTML.swift
3
1952
// HTTPResponse+HTML.swift // // The MIT License (MIT) // // Copyright (c) 2015 Zewo // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation th...
mit
4e67d4ba2aa01c2fd99b498e5ac2cec9
32.101695
83
0.630635
4.58216
false
false
false
false
laszlokorte/reform-swift
ReformExpression/ReformExpression/Solver.swift
1
1998
// // Solver.swift // ExpressionEngine // // Created by Laszlo Korte on 07.08.15. // Copyright © 2015 Laszlo Korte. All rights reserved. // final public class Solver { let dataSet : WritableDataSet public init(dataSet: WritableDataSet) { self.dataSet = dataSet } public func evalua...
mit
b7a7b36d5bf092445c111436ed943d5f
24.602564
92
0.529795
4.665888
false
false
false
false
cnoon/swift-compiler-crashes
crashes-duplicates/24715-no-stacktrace.swift
9
2389
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing 0.a") 0.C class A?enum S<T where B:e 0.E func b<T where B :P enum b { [] struct B<d { func b: b { func b:b st class B, leng func a<d { a { } } } } prot...
mit
cdfdd7ac2867e55e34d0bf024f02e350
11.005025
87
0.599414
2.314922
false
false
false
false
steelwheels/Coconut
CoconutData/Test/UnitTest/UTAttributedString.swift
1
5767
/** * @file UTAttrobutedString.swift * @brief Test function for CNAttributedString * @par Copyright * Copyright (C) 2019 Steel Wheels Project */ #if os(OSX) import Cocoa #endif import CoconutData import Foundation private struct TestString { var text: NSMutableAttributedString var index: Int public init(...
lgpl-2.1
8999da2728d9d6dd89e2ad578d65fc40
28.520619
119
0.685525
2.822573
false
true
false
false
ProfileCreator/ProfileCreator
ProfileCreator/ProfileCreator/Profile/Profile.swift
1
23360
// // Profile.swift // ProfileCreator // // Created by Erik Berglund. // Copyright © 2018 Erik Berglund. All rights reserved. // import Cocoa import ProfilePayloads public class Profile: NSDocument, NSCopying { // MARK: - // MARK: Constant Variables let settings: ProfileSettings // MARK: - ...
mit
0297bb5eb004e86ee9d5f7a859541ae9
47.162887
234
0.507941
5.883879
false
false
false
false
an-indya/SupportMate
SupportMate/TeamViewController.swift
1
4155
// // TeamViewController.swift // SupportMate // // Created by Anindya Sengupta on 5/10/15. // Copyright (c) 2015 Anindya Sengupta. All rights reserved. // import UIKit import CoreData let reuseIdentifier = "TeamCollectionViewCell" class TeamViewController: UICollectionViewController { var teamMembers = [T...
mit
1ff7c051525b01830cf1d5f7ade390e6
34.512821
185
0.701324
5.952722
false
false
false
false
midoks/Swift-Learning
GitHubStar/GitHubStar/GitHubStar/Vendor/GitHub/GitHubApi.swift
1
11437
// // GitHubApi.swift // GitHubStar // // Created by midoks on 15/12/18. // Copyright © 2015年 midoks. All rights reserved. // import Foundation import UIKit import SwiftyJSON import Alamofire //MARK: - 基本的设置功能 - public class GitHubApi:NSObject { public var clientID:String = "" public var clientSecr...
apache-2.0
37e1fb048c50122d79eef35018e4e2cc
30.397183
208
0.556343
4.308465
false
false
false
false
edx/edx-app-ios
Source/UserProfile.swift
1
4386
// // Profile.swift // edX // // Created by Michael Katz on 9/24/15. // Copyright © 2015 edX. All rights reserved. // import Foundation import edXCore public class UserProfile { public enum ProfilePrivacy: String { case Private = "private" case Public = "all_users" } enum Profile...
apache-2.0
1398349bba3bc1f2cac85a5dc462c59f
34.362903
161
0.627822
4.966025
false
false
false
false
edx/edx-app-ios
Source/OEXRegistrationViewController+Swift.swift
1
8794
// // OEXRegistrationViewController+Swift.swift // edX // // Created by Danial Zahid on 9/5/16. // Copyright © 2016 edX. All rights reserved. // import Foundation extension OEXRegistrationViewController { @objc func getRegistrationFormDescription(success: @escaping (_ response: OEXRegistrationDescription...
apache-2.0
23a3567217ca98110547a01028680e44
51.339286
256
0.553622
6.157563
false
false
false
false
lorentey/swift
benchmark/single-source/NSStringConversion.swift
6
10176
//===--- NSStringConversion.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
4b65aa199a0ecc1c067c6090e05e93da
43.13913
152
0.663712
4.208955
false
true
false
false
jeffreybergier/WaterMe2
WaterMe/WaterMe/PurchaseConfirmation/PurchaseThanksViewController.swift
1
6354
// // PurchaseThanksViewController.swift // WaterMe // // Created by Jeffrey Bergier on 14/1/18. // Copyright © 2018 Saturday Apps. // // This file is part of WaterMe. Simple Plant Watering Reminders for iOS. // // WaterMe is free software: you can redistribute it and/or modify // it under the terms of the GNU ...
gpl-3.0
8b046d9dd72644862ccc73a36486c526
40.796053
181
0.685031
5.186122
false
false
false
false
hooman/swift
test/IDE/complete_in_result_builder.swift
3
6534
// RUN %empty-directory(%t) // RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t @resultBuilder struct TupleBuilder<T> { static func buildBlock() -> () { } static func buildBlock(_ t1: T) -> T { return t1 } static func buildBlock(_ ...
apache-2.0
b5872337adf4a1efc1bd76b5ea2981a1
34.51087
167
0.68442
3.644172
false
false
false
false
rene-dohan/CS-IOS
Renetik/Renetik/Classes/Core/Classes/Controller/CSMBProgressController.swift
1
1297
// // Created by Rene Dohan on 1/11/20. // import Foundation import MBProgressHUD import ChameleonFramework public class CSMBProgressController: CSObject, CSHasProgressProtocol, CSHasDialogVisible { public var backgroundColor = UIColor.flatBlack()!.lighten(byPercentage: 0.03)!.add(alpha: 0.85) public var for...
mit
e00992cdaf9e3ee5ecf9374c4c0e5a35
34.054054
102
0.681573
4.632143
false
false
false
false
MKGitHub/UIPheonix
Demo/Shared/Views/Collection View/SimpleButtonModelCVCell.swift
1
3770
/** UIPheonix Copyright © 2016/2017/2018/2019 Mohsan Khan. All rights reserved. https://github.com/MKGitHub/UIPheonix http://www.xybernic.com Copyright 2016/2017/2018/2019 Mohsan Khan Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compl...
apache-2.0
665e7cf0558047502b656a77a780d8df
27.126866
137
0.632529
4.856959
false
false
false
false
PraveenSakthivel/BRGO-IOS
Pods/CVCalendar/CVCalendar/CVCalendarContentViewController.swift
2
8447
// // CVCalendarContentViewController.swift // CVCalendar Demo // // Created by Eugene Mozharovsky on 12/04/15. // Copyright (c) 2015 GameApp. All rights reserved. // import UIKit public typealias Identifier = String open class CVCalendarContentViewController: UIViewController { // MARK: - Constants open ...
mit
3d6a2245219dbbb5aae89e16145cad67
30.285185
99
0.613235
5.557237
false
false
false
false
honishi/Hakumai
Hakumai/Managers/SpeechManager/SpeechManager.swift
1
15733
// // SpeechManager.swift // Hakumai // // Created by Hiroyuki Onishi on 11/26/15. // Copyright © 2015 Hiroyuki Onishi. All rights reserved. // import Foundation import AVFoundation private let dequeuSpeechQueueInterval: TimeInterval = 0.25 private let maxSpeechCountForRefresh = 30 private let maxRecentSpeechText...
mit
7a7693d0e4e2c7fe0cb8f9b1a473c386
33.303297
148
0.629485
4.185573
false
false
false
false
hanzhuzi/XRCustomProgressView
XRCustomProgressView/Classes/Defines.swift
1
1177
// // Defines.swift // XRCustomProgressView // // Created by xuran on 2017/10/1. // Copyright © 2017年 xuran. All rights reserved. // import Foundation import UIKit //MARK: - 颜色 // 颜色(RGB) func RGBA (r:CGFloat, g:CGFloat, b:CGFloat, a:CGFloat) -> UIColor { return UIColor (red: r/255.0, green: g/255.0, blue: b/...
mit
c8c2fd44bb0931b3c00c215835aeca6f
26.902439
106
0.675699
3.100271
false
false
false
false
vector-im/riot-ios
Riot/Managers/KeyValueStorage/KeychainStore.swift
1
2859
// // Copyright 2020 Vector Creations 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 agre...
apache-2.0
3744d76954d4aeb31ad6936e6546682a
28.474227
117
0.641833
4.717822
false
false
false
false
hi-hu/Hu-Carousel
Hu-Carousel/SignInViewController.swift
1
6425
// // SignInViewController.swift // Hu-Carousel // // Created by Hi_Hu on 2/11/15. // Copyright (c) 2015 hi_hu. All rights reserved. // import UIKit class SignInViewController: UIViewController, UIAlertViewDelegate { @IBOutlet weak var loginContainer: UIView! @IBOutlet weak var signInContainer: UIView! ...
mit
bd114b496218a7fd9b6e07717e2397c9
35.702857
144
0.632882
5.719501
false
false
false
false
huangboju/Moots
Examples/SwiftUI/CreatingAmacOSApp/Complete/Landmarks/Landmarks/Models/Data.swift
1
2039
/* See LICENSE folder for this sample’s licensing information. Abstract: Helpers for loading images and data. */ import Foundation import CoreLocation import SwiftUI import ImageIO let landmarkData: [Landmark] = load("landmarkData.json") let features = landmarkData.filter { $0.isFeatured } let hikeData: [Hike] = loa...
mit
17a526e9df60fb3dbaf73b9be2770242
27.690141
95
0.632302
4.279412
false
false
false
false
Aishwarya-Ramakrishnan/sparkios
Source/Room/RoomClient.swift
1
5473
// Copyright 2016 Cisco Systems Inc // // 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,...
mit
505fcd0457618bcda566b492d6a29964
46.591304
193
0.666362
4.817782
false
false
false
false
CulturaMobile/culturamobile-api
Sources/App/Routes.swift
1
24755
import Vapor import AuthProvider import Sessions import Foundation import Storage import Random final class Routes: RouteCollection { let view: ViewRenderer init(_ view: ViewRenderer) { self.view = view } func build(_ builder: RouteBuilder) throws { } } public func splitFile...
mit
85cae77570e10da46b90b96f704ed5e7
33.963277
179
0.486467
5.36149
false
false
false
false
10686142/eChance
Iraffle/MoreVC.swift
1
4176
// // MoreVC.swift // Iraffle // // Created by Vasco Meerman on 03/05/2017. // Copyright © 2017 Vasco Meerman. All rights reserved. // import UIKit class MoreVC: UIViewController { // MARK: - Outlets. @IBOutlet weak var backHomeButton: UIButton! @IBOutlet weak var logOutButton: UIButton! @IBO...
mit
1b62964bf41ea0fafb5c455c4d460c13
36.276786
115
0.666108
4.299691
false
false
false
false
viviancrs/fanboy
Pods/SwiftMessages/SwiftMessages/WindowViewController.swift
1
1307
// // WindowViewController.swift // SwiftMessages // // Created by Timothy Moose on 8/1/16. // Copyright © 2016 SwiftKick Mobile LLC. All rights reserved. // import UIKit class WindowViewController: UIViewController { fileprivate var window: UIWindow? let windowLevel: UIWindowLevel var statusBarS...
gpl-3.0
303d50cf4c3a3e36c7a683f885378b7a
25.12
68
0.660031
5.24498
false
false
false
false
toadzky/SLF4Swift
Backend/XCGLogger/XCGLogger.swift
1
4587
// // XCGLogger.swift // SLF4Swift /* The MIT License (MIT) Copyright (c) 2015 Eric Marchand (phimage) 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 lim...
mit
7c652e36dfafc0ef9fa1bd9ed5ea48f3
30.424658
79
0.670809
4.510324
false
false
false
false
M2Mobi/Marky-Mark
markymark/Classes/Layout Builders/AttributedString/Block Builders/Block/ListAttributedStringLayoutBlockBuilder.swift
1
3896
// // Created by Jim van Zummeren on 06/05/16. // Copyright © 2016 M2mobi. All rights reserved. // import Foundation import UIKit class ListAttributedStringLayoutBlockBuilder: InlineAttributedStringLayoutBlockBuilder { // MARK: LayoutBuilder override func relatedMarkDownItemType() -> MarkDownItem.Type { ...
mit
e3f8ef41beeaa4ae54d36035d00a4546
35.726415
181
0.701516
5.69152
false
false
false
false
JadenGeller/Calcula
Sources/Term+Lossless.swift
1
4024
// // Term+Lossless.swift // Calcula // // Created by Jaden Geller on 6/12/16. // Copyright © 2016 Jaden Geller. All rights reserved. // public enum ParseError: ErrorType { case expectedCharacter(Character) case expectedIdentifier case expectedEnd } extension Term { public init?(_ description: Str...
mit
38d251ca9beea7f15354cda0aa913c08
36.222222
163
0.59403
4.631336
false
false
false
false
austinzheng/swift
test/attr/attr_objc.swift
1
94686
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -typecheck -verify %s -swift-version 4 -enable-source-import -I %S/Inputs -enable-swift3-objc-inference // RUN: %target-swift-ide-test -skip-deinit=false -print-ast-typechecked -source-filename %s -function-definitions=true -prefer-type-repr=f...
apache-2.0
b42c299b082795f6fdd7c5111b48a5cf
39.654358
350
0.703593
3.899349
false
false
false
false
zisko/swift
tools/SwiftSyntax/Syntax.swift
1
8415
//===-------------------- Syntax.swift - Syntax Protocol ------------------===// // // 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
f3952f18fdf5989c8999d19ffc8ce22c
31.365385
82
0.666904
4.459459
false
false
false
false
mozilla-mobile/firefox-ios
Tests/ClientTests/SyncStatusResolverTests.swift
2
3612
// 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 @testable import Client @testable import Sync import Shared import Storage import XCTest private class RandomError: M...
mpl-2.0
57b8da49db7ce9eb8650796db69efcbb
37.021053
111
0.680509
4.995851
false
true
false
false
koogawa/FoursquareAPIClient
Example/FoursquareAPIClient/Model/FoursquareManager.swift
1
2395
// // FoursquareManager.swift // VenueMap // // Created by koogawa on 2015/07/21. // Copyright (c) 2015 Kosuke Ogawa. All rights reserved. // import UIKit import MapKit class FoursquareManager: NSObject { var accessToken: String! var venues: [Venue] = [] class func sharedManager() -> FoursquareManag...
mit
78e71fc6935503f0662d01daf9d7ae08
30.103896
111
0.538622
4.989583
false
false
false
false
mojidabckuu/activerecord
ActiveRecord/AR/Adapters/Adapter.swift
1
2004
// // Adapter.swift // ActiveRecord // // Created by Vlad Gorbenko on 4/21/16. // Copyright © 2016 Vlad Gorbenko. All rights reserved. // import Foundation public enum DBError: ErrorType { case OpenDatabase(message: String) case Prepare(message: String) case Step(message: String) case Bind(message...
mit
e2304997abd65b293bd40c9dc2d2a7c3
24.05
78
0.565652
4.335498
false
false
false
false
DevaLee/LYCSwiftDemo
LYCSwiftDemo/Classes/live/View/LYCRoomViewController.swift
1
7572
// // LiveViewController.swift // XMGTV // // Created by apple on 16/11/9. // Copyright © 2016年 coderwhy. All rights reserved. // import UIKit import Kingfisher fileprivate let kChatToolViewHeight : CGFloat = 44.0 class LYCRoomViewController: UIViewController , LYCEmitterProtocol { // MARK: 控件属性 @IBO...
mit
d31139b3d5ce6db8bc9f4b4ae7bff420
33.593458
151
0.668243
4.541718
false
false
false
false
Johnykutty/SwiftLint
Source/SwiftLintFramework/Models/Command.swift
2
3890
// // Command.swift // SwiftLint // // Created by JP Simard on 8/29/15. // Copyright © 2015 Realm. All rights reserved. // import Foundation #if !os(Linux) private extension Scanner { func scanUpToString(_ string: String) -> String? { var result: NSString? = nil let success = scanUpTo(string, ...
mit
949a7b3566b19bafedcf70999a8e5251
30.362903
99
0.580098
4.94155
false
false
false
false
gouyz/GYZBaking
baking/Classes/Tool/3rdLib/ScrollPageView/SegmentStyle.swift
1
4461
// // SegmentStyle.swift // ScrollViewController // // Created by jasnig on 16/4/13. // Copyright © 2016年 ZeroJ. All rights reserved. // github: https://github.com/jasnig // 简书: http://www.jianshu.com/users/fb31a3d1ec30/latest_articles // // Permission is hereby granted, free of charge, to any person obtaining a c...
mit
6172b419cc1df4bb148c5e7a2c0daf2c
32.824561
162
0.72251
3.867603
false
false
false
false
oceanfive/swift
swift_two/swift_two/Classes/View(controller)/Home/HYHomeTableCell.swift
1
2283
// // HYHomeTableCell.swift // swift_two // // Created by ocean on 16/6/20. // Copyright © 2016年 ocean. All rights reserved. // import UIKit class HYHomeTableCell: UITableViewCell, HYStatusToolBarViewDelegate { //MARK: - 这里注意不要和父类有相同的属性名称,否则会冲突 let statusContentView = HYStatusContentView() let toolBa...
mit
be693e653b66fe7927ddf7e76d5c890e
24.950617
117
0.625119
4.934272
false
false
false
false
GagSquad/SwiftCommonUtil
CommonUtil/CommonUtil/Base/BaseCoreData.swift
1
6072
// // BaseCoreData.swift // CommonUtil // // Created by lijunjie on 15/12/7. // Copyright © 2015年 lijunjie. All rights reserved. // import Foundation import CoreData public class BaseCoreData { private var PSC: NSPersistentStoreCoordinator? private var persistentStoreCoordinator: NSPersistentStoreCoo...
gpl-2.0
0dbb5e1edc0f1d47bbb1515798561ee1
31.304813
173
0.559676
6.028942
false
false
false
false
mmrmmlrr/ExamMaster
Pods/ModelsTreeKit/ModelsTreeKit/Classes/SessionController/GlobalEvent.swift
2
865
// // GlobalEvent.swift // ModelsTreeKit // // Created by aleksey on 28.02.16. // Copyright © 2016 aleksey chernish. All rights reserved. // public protocol GlobalEventName { var rawValue: String { get } } public func ==(lhs: GlobalEventName, rhs: GlobalEventName) -> Bool { return lhs.rawValue == rhs.ra...
mit
dfad4e968f4aa38168f30ba3c5b77887
20.097561
89
0.681713
3.756522
false
false
false
false
teambition/CardStyleTableView
CardStyleTableView/CardStyleTableViewCell.swift
1
6896
// // CardStyleTableViewCell.swift // CardStyleTableView // // Created by Xin Hong on 16/1/20. // Copyright © 2016年 Teambition. All rights reserved. // import UIKit extension UITableViewCell { // MARK: - Properties fileprivate var tableView: UITableView? { get { let container = objc_ge...
mit
c9fd0ecb357bb3321347617937448b16
39.309942
166
0.652691
5.831641
false
false
false
false
uvmlrc/osx-languageselection
LanguageSelection/ViewController.swift
1
3495
// // ViewController.swift // LanguageSelection // // Created by Scott Martindale on 11/26/2014. // Copyright (c) 2014 Scott Martindale. All rights reserved. // import Cocoa import Foundation class ViewController: NSViewController { @IBAction func setEnglish(sender: AnyObject) { setLanguage("Engl...
mit
f81b110cb92e7491fd4d72786a14e3db
30.205357
101
0.568526
4.604743
false
false
false
false
itechline/bonodom_new
SlideMenuControllerSwift/LoginUtil.swift
1
7650
// // LoginUtil.swift // Bonodom // // Created by Attila Dán on 2016. 06. 08.. // Copyright © 2016. Itechline. All rights reserved. // // // RestApiUtil.swift // Bonodom // // Created by Attila Dán on 2016. 06. 06.. // Copyright © 2016. Itechline. All rights reserved. // import SwiftyJSON class LoginUtil: NS...
mit
c915e1ae51c9fc962f72d74150eb0b89
34.896714
127
0.572979
4.169029
false
false
false
false
Adorkable/Eunomia
Source/Core/UtilityExtensions/Views/UICollectionView+Utility.swift
1
1934
// // UICollectionView+Utility.swift // Allergy Abroad -> Eunomia // // Created by Ian Grossberg on 7/6/18. // Copyright © 2018 Adorkable. All rights reserved. // #if os(iOS) import UIKit public extension UICollectionView { func isLastCellVisible(inSection: Int) -> Bool { let lastIndexPath = IndexPath...
mit
444c4de5a4d7b654eb4f1456137d4169
30.688525
108
0.608381
4.474537
false
false
false
false
overtake/TelegramSwift
Telegram-Mac/ChatMessageAccessoryView.swift
1
10020
// // ChatMessageAccessoryView.swift // Telegram // // Created by keepcoder on 05/10/2017. // Copyright © 2017 Telegram. All rights reserved. // import Cocoa import TGUIKit import TelegramCore import Postbox class ChatMessageAccessoryView: Control { private let textView:TextView = TextView() private l...
gpl-2.0
a0ae927aae6e0b721c1225aed39e4b92
37.984436
672
0.60505
4.89448
false
false
false
false
Bijiabo/F-Client-iOS
F/F/Views/PublicCells/TextFieldTableViewCell.swift
1
1811
// // TextFieldTableViewCell.swift // RegisterAndLogIn // // Created by huchunbo on 15/10/26. // Copyright © 2015年 TIDELAB. All rights reserved. // import UIKit class TextFieldTableViewCell: PublicTableViewCell, UITextFieldDelegate { override func awakeFromNib() { super.awakeFromNib() ...
gpl-2.0
391386ac8993345fdcdf9d3b79a9b0c8
34.45098
242
0.704646
5.889251
false
false
false
false
ITzTravelInTime/TINU
TINU/CreationProcess.swift
1
4406
/* TINU, the open tool to create bootable macOS installers. Copyright (C) 2017-2022 Pietro Caruso (ITzTravelInTime) 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; either version 2 of the License, or...
gpl-2.0
b4d325d92eb87bb71321c78b1b9bf81b
26.36646
102
0.729914
3.827976
false
false
false
false
ITzTravelInTime/TINU
TINU/ChoseDriveViewController.swift
1
12383
/* TINU, the open tool to create bootable macOS installers. Copyright (C) 2017-2022 Pietro Caruso (ITzTravelInTime) 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; either version 2 of the License, or...
gpl-2.0
5cfc98f5a4487c4dfc56ee3cce269cbc
29.128954
240
0.632642
3.725331
false
false
false
false
feiin/VPNOn
VPNOnWatchKitExtension/GlanceController.swift
20
2124
// // GlanceController.swift // VPN On WatchKit Extension // // Created by Lex Tang on 3/30/15. // Copyright (c) 2015 LexTang.com. All rights reserved. // import WatchKit import Foundation import VPNOnKit class GlanceController: VPNInterfaceController { @IBOutlet weak var tableView: WKInterfaceTable! ...
mit
caeed704c7702a93084b09bd314afdb9
30.235294
130
0.572505
4.905312
false
false
false
false
rduan8/Aerial
Aerial/Source/Models/ManifestLoader.swift
1
3651
// // ManifestLoader.swift // Aerial // // Created by John Coates on 10/28/15. // Copyright © 2015 John Coates. All rights reserved. // import Foundation import ScreenSaver typealias manifestLoadCallback = ([AerialVideo]) -> (Void); class ManifestLoader { static let instance:ManifestLoader = ManifestLoader()...
mit
26b41cbae405568346d5f10b54f4f517
32.190909
149
0.482466
5.738994
false
false
false
false
devand123/cordova-plugin-opentok
src/ios/VideoView.swift
1
2084
// // VideoViewController.swift // roller // // Created by Devin Andrews on 12/16/14. // // import Foundation import UIKit import AVFoundation @objc(Video) public class Video : NSObject { var captureSession = AVCaptureSession() var previewLayer : AVCaptureVideoPreviewLayer? var captureDevice : AVC...
mit
aa99999496fba977292c30bbae23e175
30.119403
94
0.590691
5.971347
false
false
false
false
helenmasters/elephantObjectStorage
Sources/Application/Application.swift
1
1404
import Foundation import Kitura import LoggerAPI import Configuration import CloudFoundryConfig import SwiftMetrics import SwiftMetricsDash import BluemixObjectStorage public let router = Router() public let manager = ConfigurationManager() public var port: Int = 8080 internal var objectStorage: ObjectStorage? publi...
mit
50e1eb8b67121bc0a040cdd0c2994bee
28.87234
107
0.747863
4.32
false
true
false
false
Tim77277/WizardUIKit
WizardUIKit/DatePicker.swift
1
2522
/********************************************************** MIT License WizardUIKit Copyright (c) 2016 Wei-Ting Lin 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, ...
mit
07f7b6536a9e4b307cbe064b88780225
45.703704
176
0.698255
5.126016
false
false
false
false
alexcomu/swift3-tutorial
02-swift-introduction/objectOrientedProgramming.playground/Contents.swift
1
1979
//: Playground - noun: a place where people can play import UIKit class Person{ var firstname = "Alex" var lastname = "Comu" private var _age = 0 var age: Int{ return _age } func setAge(newAge: Int) { self._age = newAge } var fullname: String{ ret...
mit
6d369c8dae0b2831e7b6a5ba5fd0f268
15.221311
61
0.553815
3.813102
false
false
false
false
danielsaidi/KeyboardKit
Sources/KeyboardKit/UIKit/Gestures/UIRepeatingGestureRecognizer.swift
1
3712
// // UIRepeatingGestureRecognizer.swift // KeyboardKit // // Created by Daniel Saidi on 2019-05-30. // Copyright © 2021 Daniel Saidi. All rights reserved. // import UIKit /** This gesture recognizer will trigger a certain action, once after an `initialDelay` and repeating every `repeatInterval` until the user...
mit
4e88e701708e6dbd29927fb77265e359
27.328244
164
0.625977
5.021651
false
false
false
false
calebkleveter/BluetoothKit
Source/BKRemotePeer.swift
2
2553
// // BluetoothKit // // Copyright (c) 2015 Rasmus Taulborg Hummelmose - https://github.com/rasmusth // // 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 ...
mit
ad5d5f7c750ec4b194fffba3413c944e
33.972603
120
0.695652
4.650273
false
false
false
false
xiaowen707447083/startDemo
LanouCProject/LanouCProject/src/zhihu/ZhiHuDetailController.swift
1
2307
// // ZhiHuDetailController.swift // LanouCProject // // Created by lanou on 15/8/22. // Copyright (c) 2015年 lanou3g. All rights reserved. // import UIKit class ZhiHuDetailController: MyBaseViewController { var urlStr:String! override func viewDidLoad() { super.viewDidLoad() ...
apache-2.0
dcfbccdc6f76b6d6d99a09e6ae949234
31.7
167
0.505024
5.109375
false
false
false
false
the-grid/Disc
DiscTests/Models/ScopeSpec.swift
1
2985
import Argo import Disc import Nimble import Ogra import Quick class ScopeSpec: QuickSpec { override func spec() { describe("raw values") { describe("balance") { it("should have the correct raw value") { expect(Scope.Balance.rawValue).to(equal("balance")) ...
mit
b9086fc0c4ef4b7bdcff2e3d0473e36d
33.310345
92
0.457956
5.477064
false
false
false
false
KPRSN/Lr-backup
Lr backup/PreferencesViewController.swift
1
2606
// // PreferencesViewController.swift // Lr backup // // Created by Karl Persson on 2015-08-11. // Copyright (c) 2015 Karl Persson. All rights reserved. // import Cocoa class PreferencesViewController: NSViewController { var enableSSH: Int! { didSet { if enableSSH > 0 { host.enabled = true user.enab...
mit
6ef0b2de00ba6ecf90e7b4bcff830927
27.021505
164
0.722563
3.728183
false
false
false
false
andrew-anlu/TLImageSpring-swift
Example/TLImageSpring/CustomTableView.swift
1
1905
// // CustomTableView.swift // TLImageSpring // // Created by Andrew on 2017/1/6. // Copyright © 2017年 CocoaPods. All rights reserved. // import UIKit class CustomTableView: UITableView,UITableViewDelegate,UITableViewDataSource { var arrayData = ["Normal loading style"] public var navigationControlle...
mit
b7602df70a13aa238e35f82372c7217c
26.565217
100
0.64511
5.225275
false
false
false
false
gribozavr/swift
test/attr/attr_escaping.swift
2
9647
// RUN: %target-typecheck-verify-swift -swift-version 4 @escaping var fn : () -> Int = { 4 } // expected-error {{attribute can only be applied to types, not declarations}} func paramDeclEscaping(@escaping fn: (Int) -> Void) {} // expected-error {{attribute can only be applied to types, not declarations}} func wrongP...
apache-2.0
38c820f306af7f233e2034be159d7429
40.761905
171
0.653156
3.752236
false
false
false
false
ta2yak/loqui
loqui/Models/ReplyChats.swift
1
1667
// // Room.swift // loqui // // Created by Kawasaki Tatsuya on 2017/07/13. // Copyright © 2017年 Kawasaki Tatsuya. All rights reserved. // import Alamofire import ObjectMapper import AlamofireObjectMapper import Firebase import RxSwift import PromiseKit class ReplyChats: Mappable{ var author:String = "" ...
mit
b5abe7fe0da419c7b8d18e508dfdc555
25.412698
94
0.528846
4.622222
false
false
false
false
ontouchstart/swift3-playground
Learn to Code 1.playgroundbook/Contents/Chapters/Document7.playgroundchapter/Pages/Exercise4.playgroundpage/Sources/SetUp.swift
1
5195
// // SetUp.swift // // Copyright (c) 2016 Apple Inc. All Rights Reserved. // import Foundation // MARK: Globals let world: GridWorld = loadGridWorld(named: "7.7") let actor = Actor() public func playgroundPrologue() { placeActor() placeItems() // Must be called in `playgroundPrologue()` to ...
mit
863278acc176f33f61f1b4b4bd251915
35.584507
89
0.459865
4.463058
false
false
false
false
ahcode0919/swift-design-patterns
swift-design-patterns/unit-tests/Structural/DecoratorTests.swift
1
1545
// // DecoratorTests.swift // unit-tests // // Created by Aaron Hinton on 10/29/17. // Copyright © 2017 No Name Software. All rights reserved. // import XCTest class DecoratorTests: XCTestCase { func testVehicleDecorator() { let vehicle = Vehicle(vehicleType: .car, bumper: .standard, towingPackage: tr...
mit
3851655e7e04c8f5262daf1493c2683f
41.888889
122
0.716969
4.195652
false
true
false
false
almas-dev/APMAlertController
Pod/Classes/APMAlertAnimation.swift
1
3002
// // Created by Xander on 04.03.16. // import UIKit class APMAlertAnimation: NSObject, UIViewControllerAnimatedTransitioning { let presenting: Bool init(presenting: Bool) { self.presenting = presenting } func transitionDuration(using _: UIViewControllerContextTransitioning?) -> TimeInterval...
mit
bfc2e145e22a463e886f66846bb363c7
45.184615
141
0.547302
7.014019
false
false
false
false
noppoMan/swifty-libuv
Sources/DNSWrap.swift
1
3489
// // DNSWrap.swift // SwiftyLibuv // // Created by Yuki Takei on 6/12/16. // // #if os(Linux) import Glibc #else import Darwin.C #endif import CLibUv /** Result struct for DNS.getAddrInfo */ public struct AddrInfo { /** ipv4/6 hostname */ public let host: String /** Serv...
mit
52a86576d3a16852e097a4489cd63e4f
21.803922
162
0.561192
3.907055
false
false
false
false
VadimPavlov/Swifty
Sources/Swifty/ios/CoreData/Primitives.swift
1
1806
// // Primitives.swift // Swifty // // Created by Vadim Pavlov on 10/20/17. // Copyright © 2017 Vadym Pavlov. All rights reserved. // import CoreData public protocol Primitives: AnyObject { associatedtype PrimitiveKey: RawRepresentable } public extension Primitives where Self: NSManagedObject, PrimitiveKey.R...
mit
368ab6dde965d947db0da2be201e2a50
32.425926
90
0.624377
4.826203
false
false
false
false
RedRoma/Lexis-Database
LexisDatabase/Regex.swift
1
2189
// // Regex.swift // LexisDatabase // // Created by Wellington Moreno on 8/30/16. // Copyright © 2016 RedRoma, Inc. All rights reserved. // import Foundation import Archeota struct Regex { /** Matches the actual Latin Words. For example, Veritate. */ static let wordList = "(?<=#)(.*?)(?=\\s...
apache-2.0
87d2d96493a1b24373bec7226808c1c1
27.415584
165
0.603291
3.727428
false
false
false
false
avito-tech/Paparazzo
Paparazzo/Core/VIPER/PhotoLibrary/View/PhotoLibraryLayout.swift
1
2724
import UIKit final class PhotoLibraryLayout: UICollectionViewFlowLayout { private var attributes = [IndexPath: UICollectionViewLayoutAttributes]() private var contentSize: CGSize = .zero // MARK: - Constants private let insets = UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 6) priv...
mit
8891f8ce24ba2cc7e79d567889a74328
31.047059
122
0.578561
5.746835
false
false
false
false
thierrybucco/Eureka
Example/Example/ViewController.swift
1
68574
// ViewController.swift // Eureka ( https://github.com/xmartlabs/Eureka ) // // Copyright (c) 2016 Xmartlabs ( http://xmartlabs.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 Softwa...
mit
252e091d865e768932f0122d6d8edc7a
38.946136
229
0.425309
5.590626
false
false
false
false