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
halonsoluis/MiniRev
MiniRev/MiniRev/ReviewManager/RateFlowViewController.swift
1
1932
// // RateFlowViewController.swift // MiniRev // // Created by Hugo on 12/22/15. // Copyright © 2015 Hugo Alonso. All rights reserved. // import Foundation import UIKit class RateFlowViewController: UIViewController { @IBOutlet weak var firstPageTitle: UILabel! @IBOutlet weak var giveAReviewTitle: UI...
mit
6d9808d8e6fbca8a5005e16509ea2796
29.650794
98
0.601761
5.094987
false
false
false
false
ivlevAstef/DITranquillity
Sources/Core/API/DIModificators.swift
1
3833
// // DIModificators.swift // DITranquillity // // Created by Alexander Ivlev on 25/08/2017. // Copyright © 2017 Alexander Ivlev. All rights reserved. // /// Short syntax for get object by tag /// Using: /// ``` /// let object: YourType = by(tag: YourTag.self, on: *container) /// ``` /// also can using in injectio...
mit
1be46266017f0eede4096de2186c5eb6
28.705426
148
0.63596
3.21207
false
false
false
false
LouXiaXiaoHei/LXMagicRecordCamera
LXMagicRecordCamera/Classes/LXMagicRecordCameraConfig.swift
1
1429
// // LXMagicRecordCameraConfig.swift // Pods // // Created by 邓小涛 on 2017/7/13. // // import Foundation import AVFoundation class LXMagicRecordCameraConfig:NSObject { //Max Recording Video Time public static let maxRecordingTime:TimeInterval = 30 //Min Recording Video Time public static ...
mit
3719bbd9064af6f6c5898d5bd2dcc702
27.14
139
0.655295
4.885417
false
false
false
false
GreenBeanD/LCTool
LCTool/Main/AppDelegate.swift
1
2494
// // AppDelegate.swift // LCTool // // Created by 懒猫 on 2017/10/16. // Copyright © 2017年 懒猫. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOption...
mit
2a497518334620349a47a705a475e136
41.084746
285
0.741845
5.505543
false
false
false
false
visenze/visearch-sdk-swift
Example/Example/Lib/ALCameraViewController/Utilities/UIButtonExtensions.swift
2
1390
// // UIButtonExtensions.swift // ALCameraViewController // // Created by Alex Littlejohn on 2016/03/26. // Copyright © 2016 zero. All rights reserved. // import UIKit typealias ButtonAction = () -> Void extension UIButton { private struct AssociatedKeys { static var ActionKey = "ActionKey" ...
mit
70bb667955cd97fba3d71483549b6a46
24.722222
114
0.574514
5.106618
false
false
false
false
DivineDominion/mac-multiproc-code
RelocationManager/BoxAndItemData.swift
1
1257
// // BoxAndItemData.swift // RelocationManager // // Created by Christian Tietze on 02/12/14. // Copyright (c) 2014 Christian Tietze. All rights reserved. // import Foundation public protocol HandlesItemListEvents: class { func createBox() func createItem() func changeBoxTitle(boxId: BoxId, titl...
mit
c0024b576609830d98bec18b8e49b664
22.716981
75
0.634845
3.675439
false
false
false
false
zhiquan911/chance_btc_wallet
chance_btc_wallet/Pods/CHPageCardView/CHPageCardView/Classes/CHPageCardView.swift
2
9585
// // CHPageCardView.swift // Pods // // Created by Chance on 2017/2/27. // // import UIKit /// 组件委托代理方法 @objc public protocol CHPageCardViewDelegate: class { /// 卡片单元总数量 /// /// - Parameter pageCardView: 卡片切换组件 /// - Returns: 委托的卡片的数量 func numberOfCards(in pageCardView: CHPageCardV...
mit
f1560a4457588958d4552a27f2f39e4b
29.07047
128
0.608414
4.907448
false
false
false
false
lzpfmh/actor-platform
actor-apps/app-ios/ActorCore/Conversions.swift
1
4608
// // Copyright (c) 2014-2015 Actor LLC. <https://actor.im> // import Foundation extension NSData { func toJavaBytes() -> IOSByteArray { return IOSByteArray(bytes: UnsafePointer<jbyte>(self.bytes), count: UInt(self.length)) } func readUInt8() -> UInt8 { var raw: UInt8 = 0; se...
mit
fa1835e03cb8896be59f6b9714f4e47b
21.930348
94
0.551649
4.024454
false
false
false
false
brunodlz/Couch
Couch/Couch/View/Show/ShowView.swift
1
2481
import UIKit import SnapKit class ShowView: UIView { let containerView: UIView = { let view = UIView(frame: .zero) view.backgroundColor = ColorPalette.black return view }() let banner: UIImageView = { let image = UIImageView(frame: .zero) image.backgroundCo...
mit
f58d65e6d674b39326f6bbc87645dbdd
27.193182
78
0.588069
4.663534
false
false
false
false
arslanbilal/cryptology-project
Cryptology Project/Cryptology Project/Classes/Models/ActiveUser.swift
1
3274
// // ActiveUser.swift // Cryptology Project // // Created by Bilal Arslan on 17/03/16. // Copyright © 2016 Bilal Arslan. All rights reserved. // import UIKit import RealmSwift class ActiveUser: NSObject { private let realm = try! Realm() var user = RealmUser() var chatList = [MessageList](...
mit
74a4195b7781c2e3e5892a8c10cb49e6
31.405941
145
0.568286
4.571229
false
false
false
false
hadiariawan/iOS-Simple-Weather-App
MyWeather/DetailViewController.swift
1
2465
// // DetailViewController.swift // MyWeather // // Created by Hadi Ariawan on 5/19/17. // Copyright © 2017 Niltava Media. All rights reserved. // import UIKit class DetailViewController: UIViewController { @IBOutlet weak var labelCityName: UILabel! @IBOutlet weak var weatherImageView: UIImageView! @...
mit
48e9dbd45be4efe677d81189e49f609c
34.2
156
0.668425
4.756757
false
false
false
false
Eonil/EditorLegacy
Modules/EditorUIComponents/EditorUIComponents/EditorCommonWindowController3.swift
1
4174
// // EditorCommonWindowController3.swift // EditorUIComponents // // Created by Hoon H. on 2015/02/21. // Copyright (c) 2015 Eonil. All rights reserved. // import Foundation import AppKit /// A window controller which fixes some insane behaviors. /// /// - This creates and binds `contentViewController` itself. ...
mit
d191c16f9e0daca20c43afc8c4ef15e9
25.929032
149
0.727599
3.952652
false
false
false
false
ilyahal/VKMusic
VkPlaylist/SettingsTableViewController.swift
1
5890
// // SettingsTableViewController.swift // VkPlaylist // // MIT License // // Copyright (c) 2016 Ilya Khalyapin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restrictio...
mit
10ad210a42ed9651f9d8930cd45bf67c
36.963504
226
0.703519
4.449102
false
false
false
false
southfox/jfwindguru
JFWindguru/Classes/Model/TimeWeather.swift
1
3214
// // TimeWeather.swift // Xoshem-watch // // Created by Javier Fuchs on 10/7/15. // Copyright © 2015 Fuchs. All rights reserved. // import Foundation /* * TimeWeather * * Discussion: * Represents a model information of the weather schedule every 3 hours from the time of * recovering. * Here th...
mit
0e9c6bd1cd9ab91e2f75cf82c0777912
22.282609
99
0.372549
2.997201
false
false
false
false
Zewo/Reflection
Sources/Reflection/Construct.swift
1
2801
/// Create a struct with a constructor method. Return a value of `property.type` for each property. public func construct<T>(_ type: T.Type = T.self, constructor: (Property.Description) throws -> Any) throws -> T { return try constructGenericType(constructor: constructor) } func constructGenericType<T>(_ type: T.T...
mit
4bc917c33e8c21122602d3662419fb69
42.765625
177
0.68904
4.296012
false
false
false
false
suragch/aePronunciation-iOS
aePronunciation/IpaKeyboard.swift
1
13590
import UIKit // View Controllers must adopt this protocol protocol KeyboardDelegate: class { func keyWasTapped(_ character: String) func keyBackspace() } class IpaKeyboard: UIView, KeyboardKeyDelegate { private let numberKeysDouble = 43 private let numberKeysSingle = 47 var mode = SoundMode....
unlicense
c466ca41fe998019f7aa05485b806f67
31.12766
82
0.561001
3.941415
false
false
false
false
UIKonf/uikonf-app
UIKonfApp/UIKonfApp/Bouncer.swift
1
1312
import Foundation /** Creates and returns a new debounced version of the passed block which will postpone its execution until after wait seconds have elapsed since the last time it was invoked. It is like a bouncer at a discotheque. He will act only after you shut up for some time. This technique is impor...
mit
16782ad12b96b155ee0ecb4decb3bc94
38.757576
175
0.700229
3.960725
false
false
false
false
grandiere/box
box/Model/GridVisor/Render/Main/MGridVisorRenderVertexes.swift
1
1092
import UIKit import MetalKit class MGridVisorRenderVertexes { let vertexStandby:MTLBuffer let vertexTargeted:MTLBuffer init(device:MTLDevice) { let imageStandby:UIImage = #imageLiteral(resourceName: "assetTextureAidStandBy") let imageTargeted:UIImage = #imageLiteral(resourceName: "...
mit
f1e61247148cec6332e4e16f0ed793fd
35.4
91
0.699634
4.810573
false
false
false
false
ali-zahedi/AZViewer
AZViewer/AZPhotoCollectionViewCell.swift
1
2280
// // AZPhotoCollectionViewCell.swift // AZViewer // // Created by Ali Zahedi on 7/22/17. // Copyright © 2017 Ali Zahedi. All rights reserved. // import UIKit class AZPhotoCollectionViewCell: AZCollectionViewCell { // MARK: Public // MARK: Internal static var size: CGSize{ let wh: CG...
apache-2.0
d4ab48339902eff238b171af3f86cbdc
21.79
114
0.580079
4.848936
false
false
false
false
colemancda/Pedido
Pedido Admin/Pedido Admin/NewMenuItemViewController.swift
1
2759
// // NewMenuItemViewController.swift // Pedido Admin // // Created by Alsey Coleman Miller on 12/27/14. // Copyright (c) 2014 ColemanCDA. All rights reserved. // import Foundation import UIKit class NewMenuItemViewController: NewManagedObjectViewController { // MARK: - IB Outlets @IBOutlet weak...
mit
6c1adf7f4a8086515ee0f99fdc654390
26.6
115
0.595143
6.2
false
false
false
false
designbychemisax/cordova-plugin-cbeacon
src/ios/Cbeacon.swift
2
4849
// // CBeacon.swift // // Created by José María Campaña Rojas on 14/11/15. // // import Foundation import CoreLocation import CoreBluetooth @objc(CBeacon) class CBeacon : CDVPlugin, CLLocationManagerDelegate, CBCentralManagerDelegate { var centralManager:CBCentralManager! let locationManager = CLLocati...
mit
60a37dded7d6debdfcc204d7e67c08c2
40.042373
124
0.649804
5.534857
false
false
false
false
yuxiuyu/TrendBet
TrendBetting_0531换首页/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift
6
3600
// // BarHighlighter.swift // Charts // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/Charts // import Foundation import CoreGraphics @objc(BarChartHighlighter) open class BarHighlighter: ChartH...
apache-2.0
e06eba818169c5e85f565ffe00440071
29.508475
136
0.524444
5.034965
false
false
false
false
louisdh/lioness
Sources/Lioness/Config.swift
1
752
// // Config.swift // Lioness // // Created by Louis D'hauwe on 06/05/2017. // Copyright © 2017 Silver Fox. All rights reserved. // import Foundation #if NUMBER_TYPE_DECIMAL public typealias NumberType = Decimal extension Decimal { var intValue: Int { return NSDecimalNumber(decimal: self).intValue ...
mit
0bd2153154de635d57dbde5fffe06c24
15.688889
71
0.631158
3.460829
false
false
false
false
appdev-academy/DuckDate
DuckDate/Classes/Date.swift
1
16520
// // Date.swift // App Dev Academy // // Created by App Dev Academy on 09.05.2016 // Copyright © 2016 App Dev Academy. All rights reserved. // import Foundation // MARK: - DuckDate class /// Class for setting first day of the week open class DuckDate { /// Weekday enum Monday-Sunday public enum Weekday: ...
mit
de4f317b050929d58e483bfa9b2674ce
27.285959
137
0.664084
4.308555
false
false
false
false
creatubbles/ctb-api-swift
CreatubblesAPIClient/Sources/Model/ToybooCreation.swift
1
1598
// // ToybooCreation.swift // CreatubblesAPIClient // // Copyright (c) 2017 Creatubbles Pte. Ltd. // // 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 wi...
mit
70c093f95242f28be96fa02358a6918a
39.974359
105
0.737797
4.194226
false
false
false
false
carlo-/ipolito
iPoliTO2/MapViewController.swift
1
20617
// // MapViewController.swift // iPoliTO2 // // Created by Carlo Rapisarda on 30/07/2016. // Copyright © 2016 crapisarda. All rights reserved. // import UIKit import MapKit class MapViewController: UIViewController { @IBOutlet fileprivate var searchResultsTable: UITableView! @IBOutlet fileprivate var map...
gpl-3.0
af568bc151ad39784552d89e00e23754
30.522936
219
0.600213
5.480064
false
false
false
false
frootloops/swift
test/Interpreter/protocol_extensions.swift
3
7692
// RUN: %target-run-simple-swift // REQUIRES: executable_test import StdlibUnittest var ProtocolExtensionTestSuite = TestSuite("ProtocolExtensions") // Extend a protocol with a property. extension Sequence { var myCount: Int { var result = 0 for _ in self { result += 1 } return result } } ...
apache-2.0
421157d53a84155b4df5241b655295d5
20.790368
79
0.652106
3.406554
false
true
false
false
megabitsenmzq/PomoNow-iOS
PomoNow/PomoNow/AnimationFromList.swift
1
3539
// // AnimationFromList.swift // PomoNow // // Created by Megabits on 15/10/2. // Copyright © 2015年 Jinyu Meng. All rights reserved. // import UIKit class AnimationFromList: NSObject, UIViewControllerAnimatedTransitioning { func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?...
mit
509459ac1355e7752d5cb152e56d8a3d
39.627907
131
0.576989
5.063768
false
false
false
false
threemonkee/VCLabs
VCLabs/Spring Animation/Source Code/CodeViewController.swift
52
2532
// // CodeViewController.swift // DesignerNewsApp // // Created by Meng To on 2015-01-05. // Copyright (c) 2015 Meng To. All rights reserved. // import UIKit import Spring class CodeViewController: UIViewController { @IBOutlet weak var modalView: SpringView! @IBOutlet weak var codeTextView: UITextView! ...
gpl-2.0
c403032358686b39fae587e9d41c502f
31.883117
105
0.56872
4.227045
false
false
false
false
SoCM/iOS-FastTrack-2014-2015
04-App Architecture/Swift 4/Playgrounds/Enumerated Types.playground/Pages/Introduction.xcplaygroundpage/Contents.swift
2
6694
//: ![banner](banner-with-plym.png) //: //: # Enumerated Types //: //: (c) Nicholas Outram 2016 //: Version 1.02 //: Change Log: //: 18-11-2016 Released to iTunes U //: 23-11-2016 Improved example on equating enums with assoc. values //: 24-11-2016 Added support for iPad - results from the UI were previously not visibl...
mit
1665af2bfc386d8e90072b2798171958
49.712121
461
0.716612
4.155183
false
false
false
false
mcrollin/safecaster
safecaster/SCRMeasurementScaleView.swift
1
816
// // SCRMeasurementScaleView.swift // safecaster // // Created by Marc Rollin on 5/17/15. // Copyright (c) 2015 safecast. All rights reserved. // import UIKit class SCRMeasurementScaleView: UIView { override func drawRect(rect: CGRect) { let gradient = CAGradientLayer() let lut = ...
cc0-1.0
f8818b43618d62d99a9a4bdc870bab4c
27.137931
111
0.578431
3.961165
false
false
false
false
mitochrome/complex-gestures-demo
apps/GestureRecognizer/Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/ElementIndexPair.swift
15
510
// // ElementIndexPair.swift // Tests // // Created by Krunoslav Zaher on 6/12/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // struct ElementIndexPair<E: Equatable, I: Equatable> : Equatable { let element: E let index: I init(_ element: E, _ index: I) { self.element = elem...
mit
42f18ae104aa7ca412d8d80c397dd409
23.238095
82
0.618861
3.326797
false
false
false
false
mitochrome/complex-gestures-demo
apps/GestureRecognizer/Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/Observable+WindowTests.swift
11
5689
// // Observable+WindowTests.swift // Tests // // Created by Krunoslav Zaher on 4/29/17. // Copyright © 2017 Krunoslav Zaher. All rights reserved. // import XCTest import RxSwift import RxTest class ObservableWindowTest : RxTest { } extension ObservableWindowTest { func testWindowWithTimeOrCount_Basic() { ...
mit
0dbc32d243a445c5cb52a2644b3023b7
30.425414
115
0.476617
4.412723
false
true
false
false
sunfei/RxSwift
RxSwift/RxSwift/Observables/Implementations/RefCount.swift
11
2630
// // RefCount.swift // Rx // // Created by Krunoslav Zaher on 3/5/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation class RefCount_<O: ObserverType> : Sink<O>, ObserverType { typealias Element = O.Element let parent: RefCount<Element> typealias ParentState = RefCoun...
mit
25e714df2dfc192a56ce21e948108e4f
27.912088
145
0.553612
4.77314
false
false
false
false
saoudrizwan/Disk
Sources/Disk+[UIImage].swift
1
8596
// The MIT License (MIT) // // Copyright (c) 2017 Saoud Rizwan <hello@saoudmr.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the ...
mit
5ea0c2b3aa93a5c3dab456626aace4be
42.634518
135
0.541066
5.135006
false
false
false
false
yongju-hong/thrift
lib/swift/Sources/TSet.swift
12
5564
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
apache-2.0
cb9ccdcda971fd71cd73f28dc68aca97
29.075676
133
0.698239
4.381102
false
false
false
false
XiaoChenYung/GitSwift
GitSwift/Login/LoginViewController.swift
1
5212
// // LoginViewController.swift // GitSwift // // Created by tm on 2017/8/3. // Copyright © 2017年 tm. All rights reserved. // import UIKit import Alamofire import RxAlamofire import RxSwift import GitClient class LoginViewController: BaseViewController { let dis = DisposeBag() @IBOutlet weak va...
mit
3d8054bf3667fa71ea5e64eb1a99a48c
35.567376
264
0.558573
4.034429
false
false
false
false
prebid/prebid-mobile-ios
InternalTestApp/PrebidMobileDemoRenderingUITests/UITests/PrebidVideoInterstitialUITest.swift
1
4808
/*   Copyright 2018-2021 Prebid.org, Inc.  Licensed under the Apache License, Version 2.0 (the "License");  you may not use this file except in compliance with the License.  You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing,...
apache-2.0
5ff487af30c867f3cbb9c2edd7712335
35.618321
113
0.636439
5.054795
false
true
false
false
EyreFree/EFQRCode
Source/EFUIntPixel.swift
2
1579
// // EFUIntPixel.swift // EFQRCode // // Created by EyreFree on 2018/11/14. // // Copyright (c) 2017 EyreFree <eyrefree@eyrefree.org> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Soft...
mit
e0c9137c9a006e8b67ca619f1b755bd2
37.512195
81
0.713743
4.028061
false
false
false
false
SauvageP/Notes
Notes/Document.swift
1
15483
// // Document.swift // Notes // // Created by Perry Gabriel on 11/18/16. // Copyright © 2016 Perry R. Gabriel. All rights reserved. // import Cocoa import MapKit /// Names of files/directories in the package enum NoteDocumentFileNames : String { case TextFile = "Text.rtf" case AttachmentsDirectory = "Attachm...
gpl-3.0
a9d075df5b590c1e0caff7b99771a579
32.877462
192
0.72594
4.369743
false
false
false
false
davedelong/DDMathParser
MathParser/Tests/MathParserTests/RewriterTests.swift
1
3687
// // RewriterTests.swift // DDMathParser // // Created by Dave DeLong on 8/27/15. // // import XCTest import MathParser func TestRewrite(_ original: String, expected: String, substitutions: Substitutions = [:], evaluator: Evaluator = Evaluator.default, rewriter: ExpressionRewriter = ExpressionRewriter.default, fi...
mit
16f1f230082a1106ab47d9f74d766782
44.518519
241
0.574722
3.804954
false
true
false
false
notbenoit/tvOS-Twitch
Code/Common/Networking/Responses/Channel.swift
1
1785
// Copyright (c) 2015 Benoit Layer // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, ...
bsd-3-clause
944b2de1687553ab23bb101124ff0dab
30.875
80
0.735014
4.02027
false
false
false
false
angelvasa/AVLighterStickyHeaderView
AVLighterStickyHeaderView/AVLighterStickyHeaderView.swift
1
1884
// // AVLighterStickyHeaderView.swift // AVLighterStickyHeaderView // // Created by Angel Vasa on 13/04/16. // Copyright © 2016 Angel Vasa. All rights reserved. // import UIKit @IBDesignable open class AVLighterStickyHeaderView: UIView { @IBInspectable var minimumHeight: CGFloat = 64 typealias pr...
mit
1e3686d8e5989d45cb4d6813dbce55eb
32.035088
156
0.673394
5.048257
false
false
false
false
Bunn/macGist
macGist/PasteboardHelper.swift
1
1712
// // PasteboardHelper.swift // macGist // // Created by Fernando Bunn on 17/06/17. // Copyright © 2017 Fernando Bunn. All rights reserved. // import Foundation import AppKit struct PasteboardHelper { func getPasteboardString() -> String? { let pasteboard = NSPasteboard.general if let cop...
mit
a4e3d82ddbfeaf6df3587394aca8faa4
31.283019
119
0.611338
4.902579
false
false
false
false
snit-ram/MultiPageController
MultiPageController/Source/MultiPageController.swift
1
14521
// // MultiPageController.swift // MultiPageController // // Created by Rafael Martins on 10/2/16. // Copyright © 2016 Snit. All rights reserved. // import UIKit let TransformIdentity: CATransform3D = { var identity = CATransform3DIdentity identity.m34 = 1.0 / 200 return identity }() struct LayoutAtt...
mit
057b09c778282e4d591eaf92ff26e9d9
36.040816
155
0.644421
5.334313
false
false
false
false
TechnologySpeaks/smile-for-life
smile-for-life/UserDefaultsSet.swift
1
1404
// // UserDefaultsSet.swift // smile-for-life // // Created by Lisa Swanson on 9/4/16. // Copyright © 2016 Technology Speaks. All rights reserved. // import Foundation class UserDefaultsSet { var currentUserCalendarDefaults = User() { didSet { print("i am in currentUserDidSet") setCalendarU...
mit
06742dce93d9266e2598507a46a443ec
23.189655
101
0.641483
4.150888
false
false
false
false
saagarjha/iina
iina/ControlBarView.swift
3
2341
// // ControlBarView.swift // iina // // Created by lhc on 16/7/16. // Copyright © 2016 lhc. All rights reserved. // import Cocoa class ControlBarView: NSVisualEffectView { @IBOutlet weak var xConstraint: NSLayoutConstraint! @IBOutlet weak var yConstraint: NSLayoutConstraint! var mousePosRelatedToView: CG...
gpl-3.0
1d2573aed4ff057047e316041d1bfea0
31.5
97
0.701282
4.201077
false
false
false
false
milseman/swift
benchmark/single-source/Phonebook.swift
21
2429
//===--- Phonebook.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
fe26303b4b25454da5a41b30e565c75c
31.386667
81
0.579251
3.225764
false
false
false
false
milseman/swift
test/Reflection/typeref_decoding_imported.swift
12
3791
// RUN: %empty-directory(%t) // RUN: %target-build-swift %S/Inputs/ImportedTypes.swift %S/Inputs/ImportedTypesOther.swift -parse-as-library -emit-module -emit-library -module-name TypesToReflect -o %t/libTypesToReflect.%target-dylib-extension -I %S/Inputs // RUN: %target-swift-reflection-dump -binary-filename %t/libTy...
apache-2.0
fb8dce524217b1c0529d0cd21c37d6dd
29.087302
268
0.646531
3.135649
false
false
false
false
jingyu982887078/daily-of-programmer
WeiBo/WeiBo/Classes/View/Main/WBMainViewController.swift
1
3492
// // WBMainViewController.swift // WeiBo // // Created by wangjingyu on 2017/5/4. // Copyright © 2017年 wangjingyu. All rights reserved. // import UIKit class WBMainViewController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() setupChildController() setcompose...
mit
998dcef5a4f7877da4ae12964e53bc57
26.919643
125
0.597697
4.429178
false
false
false
false
pkc456/Roastbook
Roastbook/Roastbook/Business Layer/FeedBusinessLayer.swift
1
1365
// // FeedBusinessLayer.swift // Roastbook // // Created by Pradeep Choudhary on 4/8/17. // Copyright © 2017 Pardeep chaudhary. All rights reserved. // import Foundation class FeedBusinessLayer: NSObject { class var sharedInstance: FeedBusinessLayer { struct Static { static let instance: F...
mit
20e9eb2bde2253694757de5d8b46d22d
33.1
304
0.673754
4.385852
false
false
false
false
rustedivan/tapmap
tapmap/Persistence/LocalProfile.swift
1
1454
// // LocalProfile.swift // tapmap // // Created by Ivan Milles on 2020-07-11. // Copyright © 2020 Wildbrain. All rights reserved. // import Foundation var persistentProfileUrl: URL { try! FileManager.default .url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: true) .app...
mit
3f383a9fa98799801dc5b431e83ad63a
31.288889
103
0.748796
3.65995
false
false
false
false
duliodenis/buzzlr
buzzlr/Frameworks/OAuthSwift/OAuthSwift/OAuthSwiftCredential.swift
19
2511
// // OAuthSwiftCredential.swift // OAuthSwift // // Created by Dongri Jin on 6/22/14. // Copyright (c) 2014 Dongri Jin. All rights reserved. // import Foundation public class OAuthSwiftCredential: NSObject, NSCoding { var consumer_key: String = String() var consumer_secret: String = String() publ...
mit
296b1fb6cbf1065261627fc525949e99
41.559322
114
0.688172
4.524324
false
false
false
false
Stitch7/mclient
mclient/PrivateMessages/Chat/ChatMessage.swift
1
1671
// // ChatMessage.swift // mclient // // Copyright © 2014 - 2019 Christopher Reitz. Licensed under the MIT license. // See LICENSE file in the project root for full license information. // import Foundation //import CoreLocation //import MessageKit private struct ImageMediaItem: MediaItem { var url: URL? ...
mit
7b468f9e45ba79f7b80e6a58f2a07b8c
26.833333
124
0.668263
4.103194
false
false
false
false
mengxiangyue/Swift-Design-Pattern-In-Chinese
Design_Pattern.playground/Pages/Prototype.xcplaygroundpage/Contents.swift
1
2757
/*: ### **Prototype Pattern** --- [回到列表](Index) 1. 定义:原型模式(Prototype Pattern):使用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象。原型模式是一种对象创建型模式。。 2. 问题:例如下面例子中需要创建戈登计划乐队的三名成员。(真的不理解外国人下面这个破例子,有点强行解释的意思) 3. 解决方案:定义一个原型,然后通过 clone,创建一个新的实例,修改对应的属性。 4. 使用方法: 1. 定义一个原型类,提供 clone 方法。 2. 创建原型类,调用 clone 方法,获取新的实例,然后根据需要修改...
mit
4bab7cfd93938c91ffe7a377deeb0bd2
26.711538
106
0.752255
2.03819
false
false
false
false
P0ed/Fx
Sources/Fx/Structs/Closures.swift
1
1020
/// Escaping inout value @propertyWrapper public struct IO<A> { public var get: () -> A public var set: (A) -> Void public var value: A { get { get() } nonmutating set { set(newValue) } } public init(get: @escaping () -> A, set: @escaping (A) -> Void) { self.get = get self.set = set } public var wrapp...
mit
02c499f2a3ae3da49915e84b0123eb46
16.586207
70
0.609804
2.939481
false
false
false
false
mactive/rw-courses-note
advanced-swift-types-and-operations/TypesAndOps.playground/Pages/invalid-state-challenge.xcplaygroundpage/Contents.swift
1
2056
//: [Previous](@previous) import Foundation import struct CoreGraphics.CGFloat import struct CoreGraphics.CGPoint import struct CoreGraphics.CGSize import struct CoreGraphics.CGRect struct CGAngle { var radians: CGFloat } extension CGAngle { @inlinable init(degrees: CGFloat) { radians = degrees / 180...
mit
eabfa26ec7e7805ccbc0dd8a3c6a492c
22.857143
72
0.584331
4.16632
false
false
false
false
rafaelcpalmeida/UFP-iOS
UFP/UFP/PageViewController.swift
1
3749
// // PageViewController.swift // UFP // // Created by Rafael Almeida on 29/03/17. // Copyright © 2016 Vladimir Romanov. All rights reserved. // https://github.com/VRomanov89/EEEnthusiast---iOS-Dev // import Foundation import UIKit class PageViewController: UIPageViewController, UIPageViewControllerDataSource, U...
mit
5b8ef491824eb44ad891da4d21963b2e
31.877193
156
0.611259
5.198336
false
false
false
false
AllenOoo/SliderMenu-CollectionView
MyDemosInSwift/ViewController.swift
1
2617
// // ViewController.swift // MyDemosInSwift // // Created by zW on 16/8/13. // Copyright © 2016年 allen.wu. All rights reserved. // import UIKit class ViewController: UIViewController, SliderMenuInfoViewDelegate, SliderMenuViewDelegate { var sliderMenu :SliderMenuView! var collection : SliderMenuInfoView...
apache-2.0
dc02ef4b5c9659ddf3e9bbf46ff898f2
37.553846
150
0.638468
4.343154
false
false
false
false
a1049145827/WebViewTest1
WebView/ViewController.swift
1
4697
// // ViewController.swift // WebView // // Created by LiuBruce on 15/11/26. // Copyright © 2015年 LiuBruce. All rights reserved. // import UIKit class ViewController: UIViewController, UIWebViewDelegate { var button = UIButton.init(type: UIButtonType.Custom) var backbutton = UIButton.init(type:...
mit
f0428c6d512220c16ebb47e3f2f1f603
39.486957
130
0.656572
4.70303
false
false
false
false
plumhead/OSXUtilityPanel
OSXUtilityPanel/OSXUtilityPanel/UtilityWindowController.swift
1
1736
// // UtilityWindowController.swift // OSXUtilityPanel // // Created by Andrew Calderbank on 21/09/2015. // Copyright © 2015 Andrew Calderbank. All rights reserved. // import Cocoa class UtilityWindowController: NSWindowController { lazy var mainStoryboard : NSStoryboard = { let story = NSStorybo...
mit
c48ce2d42af517a686353d91ac6257f9
28.913793
120
0.656484
5.404984
false
false
false
false
AlesTsurko/DNMKit
DNM_iOS/DNM_iOS/BeamJunction.swift
1
7187
// // BeamJunction.swift // denm_view // // Created by James Bean on 8/23/15. // Copyright © 2015 James Bean. All rights reserved. // import QuartzCore import DNMModel public class BeamJunction: CustomStringConvertible { public var description: String { get { return getDescription() } } public v...
gpl-2.0
2b39264f802613cb9e79c87bd08ed986
39.370787
95
0.57612
4.202339
false
false
false
false
AlesTsurko/DNMKit
DNM_iOS/DNM_iOS/_RadioGroupPanel.swift
1
1918
// // RadioGroupPanel.swift // denm_view // // Created by James Bean on 10/2/15. // Copyright © 2015 James Bean. All rights reserved. // import UIKit /* public class RadioGroupPanel: ButtonSwitchPanel { public var currentButtonSelectedID: String = "" public init( left: CGFloat = 0, ...
gpl-2.0
cea6977dc0abf6b796d0261cff18d67d
28.060606
101
0.597809
4.710074
false
false
false
false
auswahlaxiom/Briggs
Source/AdaptiveInterface.swift
1
13638
// // AdaptiveInterface.swift // Briggs // // Copyright (c) 2017 Ada Turner (https://github.com/auswahlaxiom) // // 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
319bed30f2e2898ac715620f336beb96
60.432432
318
0.756856
5.047372
false
false
false
false
koba-uy/chivia-app-ios
src/Pods/MapboxNavigation/MapboxNavigation/RoutePageViewController.swift
1
3990
import UIKit import MapboxDirections import MapboxCoreNavigation protocol RoutePageViewControllerDelegate: class { var currentLeg: RouteLeg { get } var currentStep: RouteStep { get } var upComingStep: RouteStep? { get } func stepBefore(_ step: RouteStep) -> RouteStep? func stepAfter(_ step: RouteSt...
lgpl-3.0
294e298ce4bde984839cd16b5be5dce3
45.941176
190
0.7401
5.919881
false
true
false
false
fespinoza/linked-ideas-osx
LinkedIdeas-Shared/Sources/Models/Link.swift
1
5966
// // <.swift // LinkedIdeas // // Created by Felipe Espinoza Castillo on 26/11/15. // Copyright © 2015 Felipe Espinoza Dev. All rights reserved. // #if os(iOS) import UIKit public typealias Color = UIColor #else import AppKit public typealias Color = NSColor #endif public class Link: NSObject, NSCoding, E...
mit
4357c400fbd413997a5c4dfce63bf8fa
33.281609
115
0.708634
4.200704
false
false
false
false
Prosumma/Guise
Sources/Guise/Resolver/Array.swift
1
1429
// // Array.swift // Guise // // Created by Gregory Higley on 2022-09-21. // public enum ArrayResolutionConfig { static var throwResolutionErrorWhenNotFound = false } extension Array: ResolutionAdapter { static func resolve<A>( tags: Set<AnyHashable>, args: A, with resolver: Resolver ) throws -> ...
mit
38114b58451f4e972e69eead746c19dc
30.065217
88
0.668999
3.68299
false
true
false
false
OatmealCode/Oatmeal
Pod/Classes/Extensions/Swift/Range.swift
1
350
//// //// Range.swift //// Cent //// //// Created by Ankur Patel on 6/30/14. //// Copyright (c) 2014 Encore Dev Labs LLC. All rights reserved. //// // //import Foundation // // //public func ==<T: ForwardIndexType>(left: Range<T>, right: Range<T>) -> Bool { // return left.startIndex == right.startIndex && left.e...
mit
6784d81643570e0e16d32685dcc026d6
24
83
0.614286
3.431373
false
false
false
false
ntwf/TheTaleClient
TheTale/Controllers/StartScreen/StartViewController.swift
1
4080
// // StartViewController.swift // the-tale // // Created by Mikhail Vospennikov on 21/05/2017. // Copyright © 2017 Mikhail Vospennikov. All rights reserved. // import UIKit protocol SegueHandlerDelegate: class { func segueHandler(identifier: String) } protocol AuthPathDelegate: class { var authPath: String?...
mit
4d78da97628654657dab6b90266e7529
27.725352
116
0.68154
5.163291
false
false
false
false
trill-lang/trill
Sources/Sema/ConstraintGenerator.swift
2
7653
/// /// ConstraintGenerator.swift /// /// Copyright 2016-2017 the Trill project authors. /// Licensed under the MIT License. /// /// Full license text available at https://github.com/trill-lang/trill /// import AST import Foundation final class ConstraintGenerator: ASTTransformer { var goal: DataType = .error var...
mit
ea62d6444bc79123c745e8839ea871ab
24.681208
79
0.621848
3.884772
false
false
false
false
CatchChat/Yep
Yep/Services/YepDownloader.swift
1
16547
// // YepDownloader.swift // Yep // // Created by NIX on 15/6/29. // Copyright (c) 2015年 Catch Inc. All rights reserved. // import Foundation import ImageIO import YepKit import RealmSwift final class YepDownloader: NSObject { static let sharedDownloader = YepDownloader() lazy var session: NSURLSession ...
mit
90dcbdf0ebeda967e77aa8d60b152037
37.551643
187
0.593801
6.425274
false
false
false
false
samsymons/Photon
Photon/Geometry/Sphere.swift
1
2291
// Sphere.swift // Copyright (c) 2017 Sam Symons // // 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, me...
mit
21957716ec7122ea105e7780bbb1dcd2
30.383562
178
0.701004
4.026362
false
false
false
false
Erin-Mounts/BridgeAppSDK
BridgeAppSDK/IntroductionViewController.swift
1
3678
/* Copyright (c) 2015, Apple Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
bsd-3-clause
a04f252fb5eaa17d356da7d9ae6f659a
42.785714
168
0.746873
5.684699
false
false
false
false
ben-ng/swift
benchmark/single-source/ArrayOfRef.swift
1
2350
//===--- ArrayOfRef.swift -------------------------------------------------===// // // 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
d18f689df8d0e40cf43755e3eed51a2a
20.962617
80
0.634043
3.507463
false
false
false
false
Esri/arcgis-runtime-samples-ios
arcgis-ios-sdk-samples/Edit data/Update geometries (feature service)/EditGeometryViewController.swift
1
7629
// Copyright 2016 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing,...
apache-2.0
8ae1e893ecbf16e6d51f3e5ca5936138
41.149171
158
0.639664
4.865434
false
false
false
false
aslanyanhaik/Quick-Chat
QuickChat/Presenter/Conversations/ConversationCell.swift
1
2718
// MIT License // Copyright (c) 2019 Haik Aslanyan // 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, mod...
mit
769b06928c4a58f6c28cb9e91b5ed481
38.391304
113
0.728109
4.545151
false
false
false
false
karivalkama/Agricola-Scripture-Editor
TranslationEditor/USXStyle.swift
1
7289
// // USXStyle.swift // TranslationEditor // // Created by Mikko Hilpinen on 4.10.2016. // Copyright © 2017 SIL. All rights reserved. // import Foundation // This is a common protocol between all USX style definitions. // The style should be convertable to and from a string protocol USXStyle { var code: String {...
mit
73c2971709fcec9844120a93ac72f462
23.705085
244
0.715148
3.404017
false
false
false
false
Mazy-ma/DemoBySwift
Solive/Solive/Tools/PageScrollView/PageScrollView.swift
1
1987
// // PageScrollView.swift // Solive // // Created by Mazy on 2017/8/29. // Copyright © 2017年 Mazy. All rights reserved. // import UIKit class PageScrollView: UIView { fileprivate var topTitlesView: PageTitleView! fileprivate var contentView: PageContentView! fileprivate var titles: [String] ...
apache-2.0
5021e2ec3b472c08f02552b93ca6efc1
27.342857
135
0.68246
4.923077
false
false
false
false
treejames/firefox-ios
Account/FxAClient10.swift
3
14932
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Alamofire import Shared import Foundation import FxA public let FxAClientErrorDomain = "org.mozilla.fxa.er...
mpl-2.0
8882fba229f699d26de020ff2d6cceee
40.248619
138
0.621082
4.964096
false
false
false
false
treejames/firefox-ios
Sync/Synchronizers/HistorySynchronizer.swift
3
8678
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Shared import Storage import XCGLogger private let log = Logger.syncLogger private let H...
mpl-2.0
d80fb8214cc2b1111270e0993033b892
45.159574
218
0.649113
5.016185
false
false
false
false
rchatham/CoordinatorType
CoordinatorType-macOS/TabCoordinatorType.swift
1
1206
// // TabCoordinatorType.swift // CoordinatorType // // Created by Reid Chatham on 2/26/17. // // import Cocoa public protocol TabCoordinatorType: CoordinatorType { weak var tabController: NSTabViewController? { get set } func rootViewControllers() -> [NSViewController] } extension TabCoordinatorType { ...
mit
68cbecd281076ce49239123cd0a8a183
26.409091
90
0.669983
5.457014
false
false
false
false
lorentey/swift
test/Parse/subscripting.swift
6
4556
// RUN: %target-typecheck-verify-swift struct X { } // expected-note {{did you mean}} // Simple examples struct X1 { var stored: Int subscript(i: Int) -> Int { get { return stored } mutating set { stored = newValue } } } struct X2 { var stored: Int subscript(i: Int) -> Int...
apache-2.0
708560f00ea4772b655c2d465acda125
18.808696
166
0.557946
3.659438
false
false
false
false
xiabob/ZhiHuDaily
ZhiHuDaily/ZhiHuDaily/DataSource/GetNewsDetail.swift
1
1749
// // GetNewsDetail.swift // ZhiHuDaily // // Created by xiabob on 17/3/22. // Copyright © 2017年 xiabob. All rights reserved. // import UIKit import SwiftyJSON class GetNewsDetail: XBAPIBaseManager, ManagerProtocol, XBAPILocalCache { var newsID = 0 var model: NewsModel? var path: String { ...
mit
fc46b2c7f526fd8706517d592d99c53d
29.857143
93
0.565972
4.476684
false
false
false
false
cojoj/BuildaUtils
BuildaUtils/JSON.swift
1
3917
// JSON.swift // Buildasaur // // Created by Honza Dvorsky on 12/12/2014. // Copyright (c) 2014 Honza Dvorsky. All rights reserved. // import Foundation public protocol JSONSerializable { init?(json: NSDictionary) throws func jsonify() -> NSDictionary } public class JSON { private class func parseD...
mit
cac0bab7b763683df8ca336513e3a1a7
25.113333
97
0.596119
4.451136
false
false
false
false
JadenGeller/Graham
Graham/Graham/Base.swift
1
1245
// // Base.swift // Graham // // Created by Jaden Geller on 10/26/15. // Copyright © 2015 Jaden Geller. All rights reserved. // // Note that implementation details of Digit require Radix be less than sqrt(Backing.max) // so make sure to choose an acceptably large Backing type! public protocol Base { typealias ...
mit
17829fed07983b9f629c367e0e2510d5
27.930233
134
0.689711
3.658824
false
false
false
false
watson-developer-cloud/ios-sdk
Sources/AssistantV2/Models/LogMessageSource.swift
1
2954
/** * (C) Copyright IBM Corp. 2021. * * 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
9108439ee50d2f8db5c3ae9873ed3aa2
33.348837
157
0.598849
5.02381
false
false
false
false
shitoudev/v2ex
v2ex/PostDetailViewController.swift
1
17483
// // PostDetailViewController.swift // v2ex // // Created by zhenwen on 6/8/15. // Copyright (c) 2015 zhenwen. All rights reserved. // import UIKit import SnapKit import TTTAttributedLabel import v2exKit import SnapKit import Kanna class PostDetailViewController: BaseViewController { @IBOutlet weak var ...
mit
857b53bb3b108e761e6a9c04afab7824
42.09901
202
0.580782
5.761416
false
false
false
false
MR-Zong/ZGResource
Project/FamilyEducationApp-master/家教/SystemSettingVewController.swift
1
3113
// // SystemSettingVewController.swift // 家教 // // Created by goofygao on 15/11/4. // Copyright © 2015年 goofyy. All rights reserved. // import UIKit class SystemSettingVewController: UITableViewController { @IBOutlet weak var settingTableView: UITableView! override func viewDidLoad() { super.view...
gpl-2.0
1eb055af966b2e0bd97577e1f9736d3f
31.645161
118
0.588603
4.865385
false
false
false
false
nearspeak/iOS-SDK
NearspeakKit/NSKApi.swift
1
18537
// // NSKApi.swift // NearspeakKit // // Created by Patrick Steiner on 21.01.15. // Copyright (c) 2015 Mopius OG. All rights reserved. // import UIKit enum HTTPMethod: String { case POST = "POST" case GET = "GET" } /** The NearspeakKit API communication class. */ public class NSKApi: NSObject { ...
lgpl-3.0
da68e85d5d24fa08b9caa75c3aaabd9f
42.310748
186
0.539731
5.37772
false
false
false
false
kstaring/swift
test/SILGen/super.swift
4
3915
// RUN: rm -rf %t // RUN: mkdir -p %t // RUN: %target-swift-frontend -I %t -emit-module -emit-module-path=%t/resilient_struct.swiftmodule -module-name resilient_struct %S/../Inputs/resilient_struct.swift // RUN: %target-swift-frontend -I %t -emit-module -emit-module-path=%t/resilient_class.swiftmodule -module-name resi...
apache-2.0
088e10ad7c6fdccea10b3ea20a32851a
33.955357
165
0.667944
3.786267
false
false
false
false
jbourjeli/SwiftLabelPhoto
Photos++/MosaicCollectionViewLayout.swift
1
6088
// // MosaicCollectionViewLayout.swift // Photos++ // // Created by Joseph Bourjeli on 9/7/16. // Copyright © 2016 WorkSmarterComputing. All rights reserved. // // Algorithm from http://blog.vjeux.com/2012/image/image-layout-algorithm-google-plus.html import UIKit protocol MosaicCollectionViewLayoutDelegate { ...
mit
875743e15505ef7f5b3eef25aae49744
39.311258
166
0.570724
5.797143
false
false
false
false
Gilbertat/SYKanZhiHu
SYKanZhihu/SYKanZhihu/Class/Manager/Refresh/RefreshHeaderView.swift
1
6577
// // RefreshHeaderView.swift // SYKanZhihu // // Created by shiyue on 16/3/5. // Copyright © 2016年 shiyue. All rights reserved. // import UIKit class RefreshHeaderView: RefreshBaseView { class func header() -> RefreshHeaderView { let header:RefreshHeaderView = RefreshHeaderView(frame: CGRect(x: 0,y: ...
mit
505fbc6a7a293ee1653067e66077b932
32.978947
152
0.577757
5.173077
false
false
false
false
dxdp/Stage
Stage/Scanners/RuleScanner.swift
1
6318
// // RuleScanner.swift // Stage // // Copyright © 2016 David Parton // // 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 t...
mit
b610905ffe260ab2924404bb0fdafe7e
40.834437
166
0.614216
4.848043
false
false
false
false
terflogag/BadgeSegmentControl
Sources/BadgeSegmentControl.swift
1
7458
// // SegmentView.swift // BadgeSegmentControl // // Created by terflogag on 03/02/2017. // Copyright (c) 2017 terflogag. All rights reserved. // import UIKit open class BadgeSegmentControl: UIControl { public var segmentAppearance: BadgeSegmentControlAppearance? { didSet { self.applyAppe...
mit
d3562c873ee382b97daf686d338b0245
29.317073
113
0.586887
5.222689
false
false
false
false
akamatsu/FunikiIllumi
FunikiIllumi WatchKit Extension/InterfaceController.swift
1
4045
// // InterfaceController.swift // FunikiIllumi WatchKit Extension // // Created by aka on 2015/04/22. // Copyright (c) 2015 Masayuki Akamatsu. All rights reserved. // import WatchKit import Foundation class InterfaceController: WKInterfaceController { let appGroup = "group.org.akamatsu.FunikiIllumi" var wormh...
mit
beafaaff637e8c2c761f33c022c09be2
34.324561
96
0.770052
3.554281
false
false
false
false
bnotified/motified-iOS
motified/Event.swift
1
6788
// // Event.swift // Motified // // Created by Giancarlo Anemone on 3/10/15. // Copyright (c) 2015 Marcus Molchany. All rights reserved. // import Foundation import MapKit class Event: NSObject { var id: Int? var title: String? var desc: String? var startDate: NSDate? var endDate: NSDate? ...
mit
3e70309817a01f4a34d07f16179f24b9
32.771144
282
0.599146
4.72373
false
false
false
false
rohan-panchal/Scaffold
Scaffold/Classes/Foundation/SCAFFoundation.swift
1
708
// // SCAFFoundation.swift // Pods // // Created by Rohan Panchal on 9/26/16. // // import Foundation public struct Platform { public static var iPhone: Bool { return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.Phone } public static var iPad: Bool { return UI_USER_INTERF...
mit
5e11afb1a5fb762cbaac873c7593bc60
17.631579
70
0.583333
4.068966
false
false
false
false
rudedogg/Highlightr
Pod/Classes/Theme.swift
1
12110
// // Theme.swift // Pods // // Created by Illanes, J.P. on 4/24/16. // // import Foundation #if os(iOS) || os(tvOS) import UIKit public typealias RPColor = UIColor public typealias RPFont = UIFont #else import AppKit public typealias RPColor = NSColor public typealias RPFont = NSFont #end...
mit
70a33fe3fb26350e2e2ac6a4074d93fd
33.403409
157
0.514781
5.450045
false
false
false
false
guillermo-ag-95/App-Development-with-Swift-for-Students
4 - Tables and Persistence/6 - Intermediate Table Views/lab/FavoriteBook/FavoriteBook/BookFormViewController.swift
1
1179
import UIKit class BookFormViewController: UIViewController { struct PropertyKeys { static let unwind = "UnwindToBookTable" } var book: Book? @IBOutlet weak var titleTextField: UITextField! @IBOutlet weak var authorTextField: UITextField! @IBOutlet weak var genreTextFiel...
mit
4c48992d0601571947a357cba07d24dd
27.071429
79
0.631043
5.081897
false
false
false
false
AugustRush/Stellar
StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/TimingFunction.swift
1
5779
//Copyright (c) 2016 // //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, distribute, sublicense, ...
mit
292df61e3908def830474bb3b65b351c
36.044872
462
0.518083
3.71879
false
false
false
false