repo_name
stringlengths
6
91
path
stringlengths
8
968
copies
stringclasses
202 values
size
stringlengths
2
7
content
stringlengths
61
1.01M
license
stringclasses
15 values
hash
stringlengths
32
32
line_mean
float64
6
99.8
line_max
int64
12
1k
alpha_frac
float64
0.3
0.91
ratio
float64
2
9.89
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
jshultz/ios9-swift2-memorable-places
memorable-places/MapViewController.swift
1
9305
// // ViewController.swift // memorable-places // // Created by Jason Shultz on 10/15/15. // Copyright © 2015 HashRocket. All rights reserved. // import UIKit import CoreData import CoreLocation import MapKit class MapViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate { var pl...
mit
9cbc10f80ad8475b761c02c35789bee6
37.605809
152
0.508276
6.708003
false
false
false
false
xiaomudegithub/viossvc
viossvc/Scenes/Order/CustomView/SkillWidthLayout.swift
1
4851
// // SkillWidthLayout.swift // HappyTravel // // Created by J-bb on 16/11/5. // Copyright © 2016年 J-bb. All rights reserved. // import UIKit protocol SkillWidthLayoutDelegate : NSObjectProtocol { func autoLayout(layout:SkillWidthLayout, atIndexPath:NSIndexPath)->Float } class SkillWidthLayout: UICollectionV...
apache-2.0
8f26cf05ddc3f1bbbeac7329b99ab14f
27.598765
119
0.599611
4.976369
false
false
false
false
SvenTiigi/PerfectAPIClient
Sources/PerfectAPIClient/APIClientProtocolExtension.swift
1
10721
// // APIClientProtocolExtension.swift // PerfectAPIClient // // Created by Sven Tiigi on 29.10.17. // import PerfectHTTP import PerfectCURL import ObjectMapper // MARK: Default implementation public extension APIClient { /// The current environment. Default case: .default /// - `default`: The defaul...
mit
952decc05b80a87a6dd148df620d1dfa
40.554264
113
0.580823
5.763978
false
false
false
false
naoyashiga/CatsForInstagram
Nekobu/SettingCollectionViewController+SNS.swift
1
1530
// // SettingCollectionViewController+SNS.swift // Nekobu // // Created by naoyashiga on 2015/08/23. // Copyright (c) 2015年 naoyashiga. All rights reserved. // import Foundation import Social extension SettingCollectionViewController { func openAppStore(urlStr:String){ let url = NSURL(string:urlS...
mit
30154e4e5e876e8820e52f09415b918a
32.23913
134
0.693717
5.197279
false
false
false
false
TorIsHere/SwiftyProgressBar
SwiftyProgressBar/CircularProgressBar.swift
1
2172
// // CircularProgressBar.swift // SwiftyProgressBar // // Created by Kittikorn Ariyasuk on 2016/12/12. // Copyright © 2016 TorIsHere. All rights reserved. // import UIKit @IBDesignable open class CircularProgressBar: BaseCircleView { open var isAnimate: Bool = true open var withPercentage: Bool = true ...
apache-2.0
38e209b238da2312e0422dcd72107de0
29.152778
146
0.561492
4.476289
false
false
false
false
bastienFalcou/SoundWave
Example/SoundWave/SoundWave+Helpers.swift
1
2157
// // SoundWave+Helpers.swift // SoundWave // // Created by Bastien Falcou on 12/6/16. // Copyright © 2016 CocoaPods. All rights reserved. // import UIKit extension URL { static func checkPath(_ path: String) -> Bool { let isFileExist = FileManager.default.fileExists(atPath: path) return isFil...
mit
be08c2c352811adc3fd20afbd0e715be
31.666667
118
0.697588
3.384615
false
false
false
false
Tim77277/WizardUIKit
WizardUIKit/WizardUIKit.swift
1
34103
/********************************************************** 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
49fe9288a1a5338ec0030aaa6e9ab47d
46.365278
497
0.650031
5.804766
false
false
false
false
dictav/SwiftLint
Source/SwiftLintFramework/Extensions/File+Cache.swift
1
1186
// // File+Cache.swift // SwiftLint // // Created by Nikolaj Schumacher on 2015-05-26. // Copyright (c) 2015 Realm. All rights reserved. // import SourceKittenFramework private var structureCache = Cache({file in Structure(file: file)}) private var syntaxMapCache = Cache({file in SyntaxMap(file: file)}) private ...
mit
a98e4f82bb769c47ca187a9947a433d5
20.962963
67
0.612985
4.205674
false
false
false
false
Yummypets/YPImagePicker
Source/Helpers/Extensions/AVAsset+Extensions.swift
1
2533
// // AVAsset+Extensions.swift // YPImagePicker // // Created by Nik Kov on 23.04.2018. // Copyright © 2018 Yummypets. All rights reserved. // import AVFoundation // MARK: Trim extension AVAsset { func assetByTrimming(startTime: CMTime, endTime: CMTime) throws -> AVAsset { let timeRange = CMTimeRange...
mit
0f57f07e78b6e6bbed71a987e74a74bb
37.363636
114
0.634281
5.528384
false
false
false
false
davecom/SwiftGraph
Tests/SwiftGraphTests/UniqueElementsGraph/UniqueElementsGraphHashableInitTests.swift
2
19403
// // UnweightedUniqueElementsGraphHashableInitTests.swift // SwiftGraphTests // // Copyright (c) 2018 Ferran Pujol Camins // // 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 // // htt...
apache-2.0
aee0750dec393380816340bdca3d161d
87.195455
168
0.711024
4.026354
false
false
false
false
felixjendrusch/Matryoshka
MatryoshkaPlayground/MatryoshkaPlayground/Networking/HTTPParameterEncoding.swift
1
7575
// Copyright (c) 2014–2015 Alamofire Software Foundation (http://alamofire.org/) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the ri...
mit
6769286900e6a03e42a1be3e6dd76aa3
45.176829
555
0.645979
5.1031
false
false
false
false
mercadopago/px-ios
MercadoPagoSDK/MercadoPagoSDK/UI/PXItem/PXItemRenderer.swift
1
8404
import Foundation struct PXItemRenderer { let CONTENT_WIDTH_PERCENT: CGFloat = 86.0 // Image static let IMAGE_WIDTH: CGFloat = 48.0 static let IMAGE_HEIGHT: CGFloat = 48.0 // Font sizes static let TITLE_FONT_SIZE = PXLayout.M_FONT static let DESCRIPTION_FONT_SIZE = PXLayout.XXS_FONT st...
mit
70df0ad88f3d358a726285b430f593bc
45.949721
258
0.688125
4.894584
false
false
false
false
buttacciot/Hiragana
Hiragana/PracticeController.swift
1
7929
// // PracticeViewController.swift // Hiragana // // Created by Travis Buttaccio on 6/13/16. // Copyright © 2016 LangueMatch. All rights reserved. // import AVFoundation import SideMenu import STPopup class PracticeController: UIViewController { // MARK: - Constants lazy private var menuAnimator : Me...
mit
6731030a19e7b9301a47d8f55a5cc6e9
38.247525
203
0.677598
5.478922
false
false
false
false
HcomCoolCode/hotelowy
ListOfHotels/HotelFetcher.swift
1
1348
// // HotelFetcher.swift // ListOfHotels // // Created by Tomasz Kuzma on 24/03/2016. // Copyright © 2016 Expedia. All rights reserved. // import Foundation func hotelsURL() -> NSURL { return NSURL(string: "http://www.hotels.com/hotels.json")! } public class HotelFetcher : NSObject { private let net...
mit
1f8b81f66eaaee692c43e447566cbbfd
27.083333
82
0.566444
4.131902
false
false
false
false
ipapamagic/IPaURLResourceUI
Sources/IPaURLResourceUI/IPaURLRequestTaskOperation.swift
1
8688
// // IPaURLRequestOperation.swift // IPaURLResourceUI // // Created by IPa Chen on 2020/7/20. // import Foundation import IPaLog import Combine public typealias IPaURLRequestOperationCompletion = ((Data?,URLResponse?,Error?)->()) public class IPaURLRequestTaskOperation: Operation { var urlSession:URLSession ...
mit
afe4f8abbff928ce30da60f044e72c35
36.61039
268
0.654351
4.92238
false
false
false
false
iOkay/MiaoWuWu
Pods/Material/Sources/iOS/PulseAnimation.swift
1
6249
/* * Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain th...
gpl-3.0
e0f76bfec60fe4212bee578937901c73
39.577922
151
0.647144
4.730507
false
false
false
false
csmulhern/neptune
Neptune/Neptune/TableViewController.swift
1
1379
import UIKit public typealias TableRunning = Running<UITableView> public typealias TableItem = Item<UITableView> public typealias TableSection = Section<UITableView> // MARK: - CollectionView extension UITableView: CollectionView { public typealias RunningViewType = UITableViewHeaderFooterView public typeali...
unlicense
a8e4150f5b65a5a728886d7374f7d01a
28.978261
97
0.720087
5.263359
false
false
false
false
luckymore0520/leetcode
NextPermutation.playground/Contents.swift
1
1435
//: Playground - noun: a place where people can play import UIKit //Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. // //If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order). // //The...
mit
182db6476ef0d7c30a09cdec03fb8c4c
27.666667
121
0.546182
3.618421
false
false
false
false
AaronMT/firefox-ios
XCUITests/BaseTestCase.swift
6
6358
/* 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 MappaMundi import XCTest let serverPort = Int.random(in: 1025..<65000) func path(forTestPage page: String...
mpl-2.0
b305d91a88fafe4a1199c71a80152600
35.54023
251
0.642498
4.727138
false
true
false
false
BelledonneCommunications/linphone-iphone
Classes/Swift/Conference/ViewModels/ScheduledConferencesViewModel.swift
1
3046
/* * Copyright (c) 2010-2021 Belledonne Communications SARL. * * This file is part of linphone-android * (see https://www.linphone.org). * * 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,...
gpl-3.0
4db45d03d2f431275b49ebdcef71a2c2
33.613636
151
0.7413
3.890166
false
false
false
false
robertofrontado/OkDataSources
Library/RxSwift/OkRxViewDelegate.swift
2
1967
// // OkRxViewDelegate.swift // OkDataSources // // Created by Roberto Frontado on 4/20/16. // Copyright © 2016 Roberto Frontado. All rights reserved. // import UIKit import RxSwift public class OkRxViewDelegate<T: OkViewDataSource>: NSObject { public var dataSource: T public let onItemClicked: ...
apache-2.0
ca2de3c0dab8555b36e6679536aad1b2
34.745455
141
0.666328
4.615023
false
false
false
false
crexista/KabuKit
KabuKit/Classes/core/Swift/SceneSequenceBuilder.swift
1
4478
// // Copyright © 2017年 DWANGO Co., Ltd. // import Foundation public class BuilderState {} public class Buildable: BuilderState {} public class Unbuildable: BuilderState {} public class SceneSequenceBuilder<FirstScene: Scene, Guide: SequenceGuide, Context: BuilderState, Stage: BuilderState> { public typeal...
mit
7601d3931d82d3e4d9edeb5c68e4ddfc
41.216981
144
0.590168
4.780983
false
false
false
false
rasmusth/BluetoothKit
Example/Vendor/CryptoSwift/Sources/CryptoSwift/Generics.swift
1
3892
// // Generics.swift // CryptoSwift // // Created by Marcin Krzyzanowski on 02/09/14. // Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved. // /** Protocol and extensions for integerFrom(bits:). Bit hakish for me, but I can't do it in any other way */ protocol Initiable { init(_ v: Int) init(_ v...
mit
01d0b38c5fbf7c961b5d74de8b5166a9
27.408759
108
0.643628
3.541401
false
false
false
false
335g/TwitterAPIKit
Sources/APIs/FriendsAPI.swift
1
3360
// // Friends.swift // TwitterAPIKit // // Created by Yoshiki Kudo on 2015/07/05. // Copyright © 2015年 Yoshiki Kudo. All rights reserved. // import Foundation import APIKit // MARK: - Request public protocol FriendsRequestType: TwitterAPIRequestType {} public protocol FriendsGetRequestType: FriendsRequestType {}...
mit
f7aa44c681634715480064aa978b159a
26.983333
111
0.51832
5.237129
false
false
false
false
bluezald/DesignPatterns
DesignPatterns/DesignPatterns/BuilderPattern.swift
1
2459
// // BuilderPattern.swift // DesignPatterns // // Created by Vincent Bacalso on 05/10/2016. // Copyright © 2016 bluezald. All rights reserved. // /** The builder pattern is a good choice when designing classes whose constructors or static factorieswould have more than a handful of parameters Problems Encount...
mit
d396f393830621cbbdee2865cb373a60
25.148936
79
0.639138
4.577281
false
false
false
false
iOS-mamu/SS
P/Library/Eureka/Source/Core/NavigationAccessoryView.swift
1
3304
// NavigationAccessoryView.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 t...
mit
8156f3d1a588b2a55e8714f1e03f57c4
46.2
114
0.716404
4.781476
false
false
false
false
sunilsharma08/AppUtilityFramework
AppUtility/AUImage.swift
1
5245
// // AUImage.swift // AppUtility // // Created by Apple on 22/08/16. // Copyright © 2016 Sunil Sharma. All rights reserved. // import Foundation extension UIImage { public class func imageWithColor(color: UIColor, size: CGSize) -> UIImage { let rect: CGRect = CGRectMake(0, 0, size.width, size.he...
mit
85d657b3cdc3e2df20b4955c590c8850
43.440678
134
0.625477
5.632653
false
false
false
false
frootloops/swift
test/SILGen/tsan_instrumentation.swift
1
4733
// RUN: %target-swift-frontend -sanitize=thread -emit-silgen %s | %FileCheck %s // REQUIRES: tsan_runtime func takesInout(_ p: inout Int) { } func takesInout(_ p: inout MyStruct) { } struct MyStruct { var storedProperty: Int = 77 } class MyClass { var storedProperty: Int = 22 } var gStruct = MyStruct() var gCl...
apache-2.0
0160529f63aa214f8fe79da47998f965
68.602941
394
0.677372
3.671839
false
false
false
false
nh7a/InfoPlist
InfoPlist/InfoPlist.swift
1
3349
// // InfoPlist.swift // InfoPlist // // Created by Naoki Hiroshima on 10/2/17. // public struct InfoPlist: Decodable { public let bundleName: String public let bundleExecutable: String public let bundleIdentifier: String public let bundleVersion: String public let bundleShortVersionString: Stri...
mit
724a353582217af7d23ad4e51c036e13
40.8625
136
0.685876
4.723554
false
false
false
false
yura-voevodin/SumDUBot
Sources/App/Structures/Button.swift
1
3784
// // Button.swift // SumDUBot // // Created by Yura Voevodin on 18.09.17. // // import Foundation /// Button of Facebook Messenger structured message element. //struct Button: Codable { // /// Button type of Facebook Messenger structured message element. // /// // /// - webURL: Web URL type. // /// - ...
mit
368864285b2f554364b9e36c0c38cd4d
32.785714
171
0.526163
3.717092
false
false
false
false
ruslanskorb/CoreStore
Sources/CSXcodeDataModelSchema.swift
1
3439
// // CSXcodeDataModelSchema.swift // CoreStore // // Copyright © 2018 John Rommel Estropia // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without ...
mit
190ff56ea5887af0b4a24a85aef2f084
28.895652
125
0.682664
5.078287
false
false
false
false
AlexGivens/SwiftArmyKnife
Source/String+Extensions.swift
1
2300
// // String+Extensions.swift // // Copyright (c) 2017 Alex Givens (http://alexgivens.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 l...
mit
7d7a9d578ba024cbd05527be6e56fe54
40.071429
157
0.66913
4.315197
false
false
false
false
inkyfox/SwiftySQL
Sources/SQLInGenerator.swift
3
1420
// // SQLInGenerator.swift // SwiftySQL // // Created by Yongha Yoo (inkyfox) on 2016. 10. 24.. // Copyright © 2016년 Gen X Hippies Company. All rights reserved. // import Foundation class SQLInGenerator: SQLElementGenerator<SQLIn> { override func generate(_ element: SQLIn, forRead: Bool) -> String { ...
mit
084ab1356c892b49ba3aebf257e5d6ea
37.297297
88
0.506704
5.34717
false
false
false
false
raphacarletti/JiraTracker
JiraTracker/AppDelegate.swift
1
4773
// // AppDelegate.swift // JiraTracker // // Created by Raphael Carletti on 10/20/17. // Copyright © 2017 Raphael Carletti. All rights reserved. // import UIKit import CoreData import FirebaseCore import IQKeyboardManagerSwift @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var win...
mit
4b4b18c9d86e07e9ba4854896232a9ff
47.693878
285
0.689019
5.905941
false
false
false
false
teambition/SegmentedControl
SegmentedControlExample/ExampleViewController.swift
1
11391
// // ExampleViewController.swift // SegmentedControlExample // // Created by 洪鑫 on 15/12/29. // Copyright © 2015年 Teambition. All rights reserved. // import UIKit import SegmentedControl private let kLivelyBlueColor = UIColor(red: 3 / 255, green: 169 / 255, blue: 244 / 255, alpha: 1) class ExampleViewController...
mit
f00a2cfe2d13027f37dac665463b420b
52.49763
222
0.680369
5.442623
false
false
false
false
sivu22/AnyTracker
AnyTracker/Items.swift
1
3897
// // Items.swift // AnyTracker // // Created by Cristian Sava on 07/08/16. // Copyright © 2016 Cristian Sava. All rights reserved. // import Foundation protocol ItemOps { static func createItem(withName name: String, description: String, type: ItemType, useDate: Bool, startDate: Date, endDate: Date) throws -...
mit
86591745995047863c13cb7b4bec237a
31.739496
150
0.595226
4.654719
false
false
false
false
Draveness/RbSwift
RbSwiftTests/IO/DirSpec.swift
1
4862
// // DirSpec.swift // RbSwift // // Created by draveness on 10/04/2017. // Copyright © 2017 draveness. All rights reserved. // import Quick import Nimble import RbSwift class DirSpec: BaseSpec { override func spec() { let path: String = File.absolutePath("RbSwift/DirSpec") let originalPath = ...
mit
a9f93d421c39e9f18ed2f7a4502735ec
32.496552
94
0.481367
4.435616
false
false
false
false
playgroundscon/Playgrounds
Playgrounds/Controller/PresentationsFridayDataSource.swift
1
1065
// // FridayScheduleViewController.swift // Playgrounds // // Created by Andyy Hope on 18/11/16. // Copyright © 2016 Andyy Hope. All rights reserved. // import UIKit final class PresentationsFridayDataSource: NSObject { let day = ScheduleDay(sessions: []) } extension PresentationsFridayDataSource: UITab...
gpl-3.0
33472aa3788898c64001cae9cc0ca1c4
29.4
100
0.684211
4.728889
false
false
false
false
937447974/YJCocoa
YJCocoa/Classes/AppFrameworks/UIKit/Extension/UIControlExt.swift
1
1110
// // UIControlExt.swift // YJCocoa // // HomePage:https://github.com/937447974/YJCocoa // YJ技术支持群:557445088 // // Created by 阳君 on 2019/6/19. // Copyright © 2016-现在 YJCocoa. All rights reserved. // import UIKit public extension UIControl { /// 点击回调 var touchUpInsideClosure:((_ control: Any) -> ())...
mit
6019a4e5f9ee6b5ffb5d81bc7272ef04
26.769231
102
0.602955
4.165385
false
false
false
false
jkolb/Shkadov
Shkadov/renderer/Framebuffer.swift
1
1574
/* The MIT License (MIT) Copyright (c) 2016 Justin Kolb 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, ...
mit
3d6637968fec8f6fd8528f71b045a9c7
43.971429
81
0.78399
4.9653
false
false
false
false
IBM-MIL/IBM-Ready-App-for-Banking
HatchReadyApp/apps/Hatch/iphone/native/Hatch/Extensions/UIImageExtension.swift
1
4723
/* Licensed Materials - Property of IBM © Copyright IBM Corporation 2015. All Rights Reserved. */ import Foundation import AVFoundation import UIKit //Custom images for the project extension UIImage{ class func backArrowWhite()->UIImage{ return UIImage(named: "back_white")! } class func backA...
epl-1.0
9767fcf980807c00ff995778e52cb8dd
33.727941
167
0.636383
4.868041
false
false
false
false
jpsim/SourceKitten
Source/SourceKittenFramework/ByteRange.swift
1
1574
import Foundation /// Structure that represents a string range in bytes. public struct ByteRange: Equatable { /// The starting location of the range. public let location: ByteCount /// The length of the range. public let length: ByteCount /// Creates a byte range from a location and a length. ...
mit
380d8fd382d58376e3618fc7889694d5
29.862745
84
0.64676
4.873065
false
false
false
false
multinerd/Mia
Mia/Toolkits/CodableKit/CodableKit+Alamofire.swift
1
1249
// // CodableKit+Alamofire.swift // Alamofire // // Created by Michael Hedaitulla on 3/9/18. // import Foundation import Alamofire // MARK: - Alamofire response handlers public extension DataRequest { fileprivate func decodableResponseSerializer<T: Decodable>() -> DataResponseSerializer<T> { return Da...
mit
2eb401c45b8857c08adddc2673d5b9fc
33.694444
147
0.681345
4.976096
false
false
false
false
digice/ioscxn
Swift/Connection/ConnectionController.swift
1
2788
// // ConnectionController.swift // iOSCxn // // Created by Roderic Linguri // Copyright © 2017 Digices LLC. All rights reserved. // import UIKit class ConnectionController: UIViewController, UITextFieldDelegate, ConnectionManagerDelegate { // MARK: - IBOutlets @IBOutlet weak var scrollView: UIScrollView! ...
mit
063c206fd6af97fc05f6765b9e103bf2
21.658537
113
0.688554
4.341121
false
false
false
false
apple/swift-nio
IntegrationTests/tests_04_performance/test_01_resources/test_read_10000_chunks_from_file.swift
1
2351
//===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project // // Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIB...
apache-2.0
bd21f7f2fc2a758a5f9c5eb5f2809097
35.169231
106
0.568269
5.283146
false
false
false
false
JadenGeller/Parsley
Sources/Sequencing.swift
1
4059
// // Sequencing.swift // Parsley // // Created by Jaden Geller on 1/12/16. // Copyright © 2016 Jaden Geller. All rights reserved. // /** Constructs a `Parser` that will parse will each element of `parsers`, sequentially. Parsing only succeeds if every parser succeeds, and the resulting parser returns an a...
mit
331ab26a4654753b17a67a5ab0a27a85
38.784314
196
0.698374
4.187822
false
false
false
false
larryhou/swift
Tachograph/Tachograph/ImagePreviewController.swift
1
9422
// // ImagePreviewController.swift // Tachograph // // Created by larryhou on 01/08/2017. // Copyright © 2017 larryhou. All rights reserved. // import Foundation import UIKit extension CGAffineTransform { var scaleX: CGFloat { return sqrt(a*a + c*c) } var scaleY: CGFloat { return sqrt...
mit
f48f293e822ca79f57235ada384744ef
36.497992
123
0.621292
4.742001
false
false
false
false
belatrix/iOSAllStars
AllStarsV2/AllStarsV2/WS/UserWebModel.swift
1
6842
// // UserWebModel.swift // AllStarsV2 // // Created by Kenyi Rodriguez Vergara on 20/07/17. // Copyright © 2017 Kenyi Rodriguez Vergara. All rights reserved. // import UIKit class UserWebModel: NSObject { class func uploadPhoto(_ image: UIImage, toUserSession session: SessionBE, withSuccessful success:...
apache-2.0
9c3244ceea718994fe2ccfb77fc0fa79
39.47929
200
0.549335
4.914511
false
false
false
false
steve-holmes/music-app-2
MusicApp/Modules/Song/SongViewController.swift
1
6889
// // SongViewController.swift // MusicApp // // Created by Hưng Đỗ on 6/9/17. // Copyright © 2017 HungDo. All rights reserved. // import UIKit import XLPagerTabStrip import RxSwift import Action import RxDataSources import NSObject_Rx class SongViewController: UIViewController { @IBOutlet weak var table...
mit
5c05a0731f99b97272ab07a6bf1d56cf
35.412698
142
0.604185
5.265493
false
false
false
false
3squared/ios-charts
Charts/Classes/Renderers/ChartXAxisRenderer.swift
1
13607
// // ChartXAxisRenderer.swift // Charts // // Created by Daniel Cohen Gindi on 3/3/15. // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/ios-charts // import Foundation import CoreGraphics impor...
apache-2.0
1f5d725a515ed56df4f4ed9f455134dd
37.769231
191
0.552142
5.775467
false
false
false
false
untitledstartup/OAuthSwift
OAuthSwift/Dictionary+OAuthSwift.swift
1
1355
// // Dictionary+OAuthSwift.swift // OAuthSwift // // Created by Dongri Jin on 6/21/14. // Copyright (c) 2014 Dongri Jin. All rights reserved. // import Foundation extension Dictionary { func join(other: Dictionary) -> Dictionary { var joinedDictionary = Dictionary() for (key, value) in self...
mit
4a0347919f22050465cf50e2c4406e64
25.057692
82
0.598524
4.839286
false
false
false
false
groue/GRDB.swift
GRDB/QueryInterface/SQL/SQLOperators.swift
1
14635
extension SQLSpecificExpressible { // MARK: - Egality and Identity Operators (=, <>, IS, IS NOT) /// Compares two SQL expressions. /// /// For example: /// /// ```swift /// // name = 'Arthur' /// Column("name") == "Arthur" /// ``` /// /// When the right operand is nil, `...
mit
3ecea3506da32f61f763b3ed667449f7
31.094298
108
0.579228
4.446977
false
false
false
false
kseebaldt/KSPromise-Swift
KSPromise_Tests/Future_onFailure_Tests.swift
1
942
import XCTest import KSPromise class Future_onFailure_Tests: XCTestCase { let promise = Promise<String>() func test_whenAlreadyRejected_callsCallback() { let error = NSError(domain: "Error", code: 123, userInfo: nil) promise.reject(error) var done = false ...
mit
7e8c56e0401219c463b62ca431f8c930
26.705882
76
0.566879
4.640394
false
true
false
false
mzaks/FlatBuffersSwiftPerformanceTest
FBTest/bench_decode_unsafe_struct.swift
1
6195
// // bench_decode_direct5.swift // FBTest // // Created by Maxim Zaks on 27.09.16. // Copyright © 2016 maxim.zaks. All rights reserved. // import Foundation private func fromByteArray<T : Scalar>(buffer : UnsafePointer<UInt8>, _ position : Int) -> T{ return UnsafePointer<T>(buffer.advancedBy(position)).memo...
mit
f0e0c4a9fca01a3d67da522b7c1bfe0f
39.75
135
0.692444
4.346667
false
false
false
false
practicalswift/swift
test/Index/kinds.swift
12
13116
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s | %FileCheck %s // Enum enum AnEnumeration { // CHECK: [[@LINE-1]]:6 | enum/Swift | AnEnumeration | s:14swift_ide_test13AnEnumerationO | Def | rel: 0 // EnumElement case Element // CHECK: [[@LINE-1]]:8 | enumerator/Swift | Element | s:14s...
apache-2.0
c90a4b8b3c4b209b1544446af1ad0f56
50.035019
173
0.660186
3.076707
false
true
false
false
practicalswift/swift
test/Interpreter/SDK/class_getImageName-static.swift
37
2589
// RUN: %empty-directory(%t) // RUN: %target-build-swift -emit-library -o %t/libSimpleNSObjectSubclass.dylib %S/Inputs/SimpleNSObjectSubclass.swift -Xlinker -install_name -Xlinker @executable_path/libSimpleNSObjectSubclass.dylib // RUN: %target-codesign %t/libSimpleNSObjectSubclass.dylib // RUN: %target-build-swift %s...
apache-2.0
526ecf5ba5337b8e990e9f444ad7510a
40.758065
199
0.735033
3.916793
false
false
false
false
huonw/swift
benchmark/single-source/ArrayAppend.swift
1
11262
//===--- ArrayAppend.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
a35092e915119cf6bbfe2fc7ba4f1e0f
27.787724
154
0.624556
3.56541
false
false
false
false
farion/eloquence
Eloquence/Eloquence/MainSplitViewController.swift
1
2261
import Cocoa class MainSplitViewController:NSSplitViewController, NSPageControllerDelegate, RosterViewControllerDelegate { @IBOutlet var sidebarItem: NSSplitViewItem! @IBOutlet var mainItem: NSSplitViewItem! var messageController = [EloChatId:MessageViewController]() var rosterViewController:...
apache-2.0
6319914458bbde5a540f471da6bfefeb
38
127
0.705882
6.013298
false
false
false
false
IBM-Swift/Kitura
Sources/Kitura/staticFileServer/RangeHeader.swift
1
6743
/** * Copyright IBM Corporation 2017 * * 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
d8bb86296837b7f28ab88017e11f37bc
36.049451
131
0.586386
4.751938
false
false
false
false
zmian/xcore.swift
Sources/Xcore/SwiftUI/Components/DynamicTextField/TextField/Styles/DynamicTextFieldStyle+Prominent.swift
1
4553
// // Xcore // Copyright © 2021 Xcore // MIT license, see LICENSE file for details // import SwiftUI public struct ProminentDynamicTextFieldStyle<S: InsettableShape>: DynamicTextFieldStyle { public enum Prominence: Equatable { case fill case outline(OutlineValidationColor) public static v...
mit
c9cf8d0442fe3569e15734ea2bfdbe28
27.993631
96
0.539323
5.226177
false
true
false
false
Flar49/coin-price-widget-ios
PoloniexParser/Model/Candlestick.swift
1
461
// // Created by Eugene Tartakovsky on 21/11/2016. // Copyright (c) 2016 tartakovsky. All rights reserved. // import Foundation enum CandlestickPeriod: Int { case fiveMinutes = 300 case fifteenMinutes = 900 case thirtyMinutes = 1800 case twoHours = 7200 case fourHours = 14400 case day = 86400 ...
mit
709bbe24d1c72b5bdccfa33922e73ca9
19.043478
55
0.637744
3.87395
false
false
false
false
RajanFernandez/MotoParks
MotoParks/Controllers/MapViewController/MapViewController.swift
1
3953
// // ViewController.swift // WellingtonMotorbikeParks // // Created by Rajan Fernandez on 20/06/16. // Copyright © 2016 Rajan Fernandez. All rights reserved. // import UIKit import MapKit class MapViewController: UIViewController { @IBOutlet var mapView: MKMapView! @IBOutlet var centerOnLocationButt...
mit
ee578b20c168fb7f1bfaefad5f86be1e
35.934579
237
0.628796
5.086229
false
false
false
false
LinShiwei/HealthyDay
HealthyDay/StepLineChart.swift
1
6690
// // StepLineChart.swift // HealthyDay // // Created by Sun Haoting on 16/10/14. // Copyright © 2016年 Linsw. All rights reserved. // import UIKit class StepLineChart: UIScrollView { internal var stepEverydayViews = [StepEverydayView]() private var viewSize : CGSize = CGSize(width: UIScreen.main...
mit
683124f7e3e5be2209d0fef0f569df6e
36.621469
233
0.608049
4.424585
false
false
false
false
griotspeak/Rational
Carthage/Checkouts/SwiftCheck/Tests/PathSpec.swift
1
2398
// // PathSpec.swift // SwiftCheck // // Created by Robert Widmann on 2/10/16. // Copyright © 2016 Robert Widmann. All rights reserved. // import SwiftCheck import XCTest struct Path<A : Arbitrary> : Arbitrary { let unPath : [A] private static func pathFrom(x : A) -> Gen<[A]> { return Gen.sized { n in re...
mit
e1d34a4e85476010897c6d5ec6f6da35
22.732673
97
0.578223
2.745704
false
false
false
false
ncsrobin/Fuber
SplashScreenUI/TileGridView.swift
1
6415
/** * Copyright (c) 2016 Razeware LLC * * 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, publi...
apache-2.0
51d3883154c84c565b851c8564ecb114
35.657143
165
0.70491
4.615108
false
false
false
false
Altece/Reggie
Source/Node.swift
1
718
import Foundation /// A specific identifiable state within an automata. public struct State { fileprivate let id: UUID = UUID() /// Create a state node for an automata. public init() {} } extension State: Hashable { public static func ==(lhs: State, rhs: State) -> Bool { return lhs.id == rhs.id } pu...
mit
bd3f23f12120302835e6bead507b3ed5
23.758621
66
0.697772
3.902174
false
false
false
false
ryanbaldwin/RealmSwiftFHIR
firekit/firekit/classes/models/RealmTypes.swift
2
8432
// // RealmTypes.swift // SwiftFHIR // // Updated for Realm support by Ryan Baldwin on 2017-08-09 // Copyright @ 2017 Bunnyhug. All rights fall under Apache 2 // import Foundation import Realm import RealmSwift final public class RealmString: Object, Codable { @objc public dynamic var pk: String = UUID().uuidSt...
apache-2.0
2298b3f21c776ac5d14ef61cd887a4bc
28.795053
95
0.602585
4.653422
false
false
false
false
dbart01/Spyder
Spyder/Payload.swift
1
2974
// // Payload.swift // Spyder // // Copyright (c) 2016 Dima Bart // 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 ...
bsd-2-clause
1b9e880b3724b64fc217b65408fa6ad0
34.404762
84
0.616678
4.654147
false
false
false
false
Antondomashnev/Sourcery
SourceryTests/Stub/Performance-Code/Kiosk/Auction Listings/ListingsCountdownManager.swift
2
2744
import UIKit import RxSwift class ListingsCountdownManager: NSObject { @IBOutlet weak var countdownLabel: UILabel! @IBOutlet weak var countdownContainerView: UIView! let formatter = NumberFormatter() let sale = Variable<Sale?>(nil) let time = SystemTime() var provider: Networking! { ...
mit
a5f4ee6c5b02d26036e7430402d7cb1d
29.153846
237
0.586006
4.604027
false
false
false
false
tadija/AEConsole
Sources/AEConsole/Console.swift
1
2471
/** * https://github.com/tadija/AEConsole * Copyright © 2016-2020 Marko Tadić * Licensed under the MIT license */ import UIKit import AELog /// Facade for displaying debug log in Console UI overlay on top of your app. open class Console: LogDelegate { // MARK: - Properties /// Singleton publi...
mit
0171d838412b0650080833b5c76e2184
25.548387
98
0.609964
4.720841
false
false
false
false
theappbusiness/TABScrollingContentView
Pods/TABSwiftLayout/Sources/Constraint.swift
1
9414
/* Copyright © 2015 The App Business. 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 ...
mit
38aabb58215b8142ba9f47075910ab2a
32.379433
154
0.719749
5.04448
false
false
false
false
BellAppLab/JustTest
JustTest/JustTest/Photo+Serialising.swift
1
1555
// // Photo+Serialising.swift // JustTest // // Created by André Abou Chami Campana on 06/04/2016. // Copyright © 2016 Bell App Lab. All rights reserved. // import Foundation extension Photo: ResponseCollectionSerializable { /* For each element in the array contained in the 'data' node of the JSON respo...
mit
bd2e7eba8627ed20c5f9082760722e57
38.820513
206
0.631681
4.622024
false
false
false
false
kdw9/TIY-Assignments
Collect-Em-All/Collect-Em-All/CardsCollectionViewController.swift
1
4692
// // CardsCollectionViewController.swift // Collect-Em-All // // Created by Keron Williams on 10/22/15. // Copyright © 2015 The Iron Yard. All rights reserved. // import UIKit protocol CharacterListTableViewControllerDelegate { func characterWasChosen(chosenCharacter: String) } class CardsCollectionViewContr...
cc0-1.0
d57f4da187fb3d145154a16da3a9532e
31.804196
197
0.702196
5.651807
false
false
false
false
bananafish911/SmartReceiptsiOS
SmartReceipts/Modules/Edit Trip/EditTripFormView.swift
1
4347
// // EditTripFormView.swift // SmartReceipts // // Created by Bogdan Evsenev on 12/06/2017. // Copyright © 2017 Will Baumann. All rights reserved. // import Eureka import RxSwift fileprivate let NAME_ROW_TAG = "name" class EditTripFormView: FormViewController { let errorSubject = PublishSubject<String>...
agpl-3.0
8530fbf8c5932030086aef715fd79adf
32.953125
115
0.553843
4.673118
false
true
false
false
irisapp/das-quadrat
Source/Shared/Keychain.swift
1
3894
// // FSKeychain.swift // Quadrat // // Created by Constantine Fry on 26/10/14. // Copyright (c) 2014 Constantine Fry. All rights reserved. // import Foundation import Security /** The error domain for errors returned by `Keychain Service`. The `code` property will contain OSStatus. See SecBase.h for err...
bsd-2-clause
cd614bcfcb19d8d84a340ca7f91b26e4
34.081081
110
0.616333
5.312415
false
false
false
false
apple/swift
test/RemoteAST/parameterized_existentials.swift
5
1922
// RUN: %target-swift-remoteast-test -disable-availability-checking %s | %FileCheck %s // REQUIRES: swift-remoteast-test @_silgen_name("printDynamicTypeAndAddressForExistential") func printDynamicTypeAndAddressForExistential<T>(_: T) @_silgen_name("stopRemoteAST") func stopRemoteAST() protocol Paddock<Animal> { a...
apache-2.0
0ea456769e137e458bd516fd567d24b5
22.728395
112
0.774194
3.313793
false
false
false
false
rnystrom/GitHawk
Classes/Systems/AppRouter/AppSplitViewController.swift
1
1415
// // AppSplitViewController.swift // Freetime // // Created by Ryan Nystrom on 10/6/18. // Copyright © 2018 Ryan Nystrom. All rights reserved. // import UIKit final class AppSplitViewController: UISplitViewController { private let tabDelegateController = TabBarControllerDelegate() private let appSplitVi...
mit
5a056be8f984dd406c9f9cb56c8a1424
29.085106
92
0.711457
6.042735
false
false
false
false
fromkk/Valy
Sources/Valy.swift
1
4411
// // Valy.swift // ValidatorSample // // Created by Kazuya Ueoka on 2016/11/14. // Copyright © 2016年 Timers Inc. All rights reserved. // import Foundation public enum ValyRule: AnyValidatorRule { case required case match(String) case pattern(String) case alphabet case digit case alnum ...
mit
ebb7a0a648a441eaa19339a7bd29fdd9
29.4
104
0.538113
4.488798
false
false
false
false
tardieu/swift
test/IDE/import_as_member.swift
2
3356
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -I %t -I %S/Inputs/custom-modules -print-module -source-filename %s -module-to-print=ImportAsMember.A -always-argument-labels > %t.printed.A.txt // RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -I %t -I %S/Inputs/custom-modules -print-module -so...
apache-2.0
076aba45b5a485ea9eaf7ae1311036a8
38.482353
206
0.710072
3.255092
false
false
false
false
tardieu/swift
test/Parse/super.swift
25
2900
// RUN: %target-typecheck-verify-swift class B { var foo: Int func bar() {} init() {} init(x: Int) {} subscript(x: Int) -> Int { get {} set {} } } class D : B { override init() { super.init() } override init(x:Int) { let _: () -> B = super.init // expected-error {{partial applicat...
apache-2.0
9c8d0fc8b5432ffa0a1514efa7298356
30.521739
132
0.603793
3.771131
false
false
false
false
Antondomashnev/ADPuzzleAnimation
Source/Private/PieceAnimation.swift
1
3893
// // PieceAnimation.swift // ADPuzzleLoader // // Created by Anton Domashnev on 1/9/16. // Copyright © 2016 Anton Domashnev. All rights reserved. // import UIKit extension CAAnimation { //MARK: - Interface static func basicForwardPieceAnimation(piece: Piece, velocity: Double, delay: CFTimeInter...
mit
213d974a1fa6e92b0b79767570a04d99
45.891566
130
0.71557
5.774481
false
false
false
false
epavlov/outside
Outside/LocationManager.swift
1
1916
// // LocationManager.swift // Outside // // Created by Eugene Pavlov on 12/27/16. // Copyright © 2016 Eugene Pavlov. All rights reserved. // import Foundation import CoreLocation /// Location manager class to aquire user device location and load coordinates into another Location singleton class class LocationMan...
gpl-3.0
2c26dde2c19f007f9735562adc914c44
33.196429
122
0.688251
6.137821
false
false
false
false
swiftingio/architecture-wars-mvc
MyCards/MyCards/CardDetailsViewController.swift
1
11915
// // CardDetailsViewController.swift // MyCards // // Created by Maciej Piotrowski on 16/10/16. // import UIKit final class CardDetailsViewController: UIViewController { fileprivate var history: [Card] = [] fileprivate var card: Card { didSet { front.image = card.front bac...
mit
f3d37115d4d96c6c77fcaf04ac0fab98
36.003106
123
0.6423
4.962516
false
false
false
false
Samiabo/Weibo
Weibo/Weibo/Classes/Home/StatusViewCell.swift
1
4429
// // StatusViewCell.swift // Weibo // // Created by han xuelong on 2017/1/4. // Copyright © 2017年 han xuelong. All rights reserved. // import UIKit import SDWebImage private let edgeMargin: CGFloat = 15 private let itemMargin: CGFloat = 10 class StatusViewCell: UITableViewCell { @IBOutlet weak var contentL...
mit
3db8c951a2f91e6c18164f55f4812a68
31.072464
153
0.622684
5.041002
false
false
false
false
BaiduCloudTeam/PaperInSwift
PaperInSwift/Custom Layout/CHCollectionViewSmallLayout.swift
1
1190
// // CHCollectionViewSmallLayout.swift // PaperInSwift // // Created by PeterFrank on 10/11/15. // Copyright © 2015 Team_ChineseHamburger. All rights reserved. // Good Night import UIKit class CHCollectionViewSmallLayout: CHStickyHeaderLayout { override init() { super.init() self.setup() ...
mit
d309af7ce8a237907c509acaf4df2004
27.333333
102
0.648444
4.555556
false
false
false
false
makelove/Developing-iOS-8-Apps-with-Swift
Lession10/Smashtag/Smashtag/Twitter/MediaItem.swift
4
1376
// // MediaItem.swift // Twitter // // Created by CS193p Instructor. // Copyright (c) 2015 Stanford University. All rights reserved. // import Foundation // holds the network url and aspectRatio of an image attached to a Tweet // created automatically when a Tweet object is created public struct MediaItem { ...
apache-2.0
0555509d2310b7f638c6cea58ab76a5a
28.913043
115
0.578488
4.571429
false
false
false
false
vtourraine/ThirdPartyMailer
Example/ThirdPartyMailerExample/ViewController.swift
1
1533
// // ViewController.swift // ThirdPartyMailerExample // // Created by Vincent Tourraine on 28/03/16. // Copyright © 2016-2022 Vincent Tourraine. All rights reserved. // import UIKit import ThirdPartyMailer class ViewController: UITableViewController { let clients = ThirdPartyMailClient.clients // MARK:...
mit
477ae427b8a93748bf98a14b130afb87
30.265306
110
0.686031
4.990228
false
false
false
false
benlangmuir/swift
test/SILOptimizer/cast_folding_objc.swift
5
11593
// RUN: %target-swift-frontend -O -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xllvm -sil-disable-pass=PerfInliner -emit-sil %s | %FileCheck %s // We want to check two things here: // - Correctness // - That certain "is" checks are eliminated based on static analysis at compile-time // // In ideal world, all those ...
apache-2.0
4483e6cd4cadd7e1b45cdf5c53f18f91
30.848901
146
0.699733
3.67565
false
true
false
false
MuYangZhe/Swift30Projects
Project 10 - Interests/Interests/AppDelegate.swift
1
4584
// // AppDelegate.swift // Interests // // Created by 牧易 on 17/7/21. // Copyright © 2017年 MuYi. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishL...
mit
6b5106f39901bf79cee4741845fb4d43
48.215054
285
0.685165
5.830573
false
false
false
false
remobjects/Marzipan
CodeGen4/CGObjectiveCCodeGenerator.swift
1
20981
// // Abstract base implementation for Objective-C. Inherited by specific .m and .h Generators // public __abstract class CGObjectiveCCodeGenerator : CGCStyleCodeGenerator { public init() { keywords = ["__nonnull", "__null_unspecified", "__nullable", "__strong", "__unsafe_unretained", "__weak", "id", "in", "...
bsd-3-clause
ef330649221fc93e2e6ac3f8e284792e
25.356784
141
0.710186
3.739572
false
false
false
false
fizx/jane
swift/Jane/Sources/Jane/Storage.swift
1
2897
import Algorithm import Foundation import Promises struct Index: Hashable { var name: BytesWrapper var unique: Bool = false } protocol StorageMapper { associatedtype V func toValue(v: V) -> BytesWrapper func primaryIndex(v: V) -> BytesWrapper? func secondaryIndexes(v: V) -> [Index: BytesWrappe...
mit
1cd5b432be6268b0289839b913199775
27.401961
106
0.57853
4.051748
false
false
false
false
m-schmidt/Refracto
Refracto/FormulaInputCell.swift
1
2144
// FormulaCell.swift import UIKit class FormulaInputCell: UICollectionViewCell { static let identifier = "FormulaInputCell" private let label = UILabel() override init(frame: CGRect) { super.init(frame: frame) setup() } required init?(coder: NSCoder) { fatalError("init(...
bsd-3-clause
66e258e37f83de4852df817320a0de22
30.072464
94
0.617071
4.986047
false
false
false
false
DerLobi/Depressed
Depressed?/ViewModel/EvaluationViewModel.swift
1
5120
import Foundation /// Viewmodel transforming `Evaluation` model data for presentation to the user. public struct EvaluationViewModel { /// Diagnosis of how severe the depression is. public let diagnosis: String /// Phrase describing the diagnosis. public let diagnosisText: String /// Explanatio...
mit
99d503680d311668309729f496fb346e
42.02521
141
0.666797
5.140562
false
false
false
false
weareyipyip/SwiftStylable
Sources/SwiftStylable/Classes/Style/Stylers/ForegroundStyler.swift
1
1913
// // ButtonStyleSet.swift // SwiftStylable // // Created by Marcel Bloemendaal on 17/04/2018. // import Foundation class ForegroundStyler : Styler { private weak var _view: ForegroundStylable? private var _canBeHighlighted:Bool private var _canBeSelected:Bool private var _canBeDisabled:Bool // ---------...
mit
1684cf36635f78f68ec1aae3ef3df811
28.430769
123
0.548353
5.241096
false
false
false
false
WilliamDenniss/native-apps-ios-concept
SigninVC/WebViewWKViewController.swift
1
1320
// // WebViewWKViewController.swift // SigninVC // // Created by William Denniss on 6/27/15. // import UIKit import WebKit class WebViewWKViewController: UIViewController, WKNavigationDelegate { var webView: WKWebView! var urlToLoad: NSURL? = nil; @IBOutlet weak var activityIndicator: UIActivityIndicatorVi...
apache-2.0
e9caee2183daed7b6523a36010fa06df
21.758621
142
0.708333
4.342105
false
false
false
false
ahoppen/swift
test/SILGen/convenience_init_peer_delegation.swift
17
9819
// RUN: %target-swift-emit-silgen -enable-objc-interop -disable-objc-attr-requires-foundation-module %s | %FileCheck %s class X { init() { } // Convenience inits must dynamically dispatch designated inits... // CHECK-LABEL: sil hidden [ossa] @$s32convenience_init_peer_delegation1XC0A0ACyt_tcfC // CHECK: ...
apache-2.0
0b09fc55aa8d3087f198e7fabe62a8a1
54.162921
126
0.750178
3.588816
false
false
false
false
StanZabroda/Hydra
Hydra/HRAllMusicCell.swift
1
2979
import UIKit class HRAllMusicCell: UITableViewCell { var audioAristLabel : AttributedLabel var audioTitleLabel : AttributedLabel var audioDurationTime : AttributedLabel! var progressView : UIProgressView! var downloadButton : UIButton! var allMusic...
mit
2d9514c851c09b0d861415cdc7fd2641
37.192308
117
0.671031
5.189895
false
false
false
false
s-aska/Justaway-for-iOS
Justaway/EditorViewController.swift
1
17699
import UIKit import EventBox import Photos import Async import MediaPlayer class EditorViewController: UIViewController { struct Static { static let instance = EditorViewController() } struct UploadImage { let data: Data let asset: PHAsset } // MARK: Properties @IBOu...
mit
2d708784d22ffd3023da47d1a3e185be
37.556769
138
0.603035
5.441911
false
false
false
false
minikin/Algorithmics
Pods/Charts/Charts/Classes/Renderers/ChartYAxisRenderer.swift
5
16754
// // ChartYAxisRenderer.swift // Charts // // Created by Daniel Cohen Gindi on 3/3/15. // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/ios-charts // import Foundation import CoreGraphics #if ...
mit
2609773555b0a4efaaa6bca9011d5a2a
33.193878
184
0.523815
5.747513
false
false
false
false
chenqihui/QHAwemeDemo
QHAwemeDemo/Modules/QHNavigationControllerMan/OtherTransition/QHPresentPushTransition.swift
1
1481
// // QHPresentPushTransition.swift // QHAwemeDemo // // Created by Anakin chen on 2017/10/29. // Copyright © 2017年 AnakinChen Network Technology. All rights reserved. // import UIKit class QHPresentPushTransition: QHBaseTransition { let offSetHeight: CGFloat = 0 override func transitionDuration...
mit
f896b31266fc9bcb41d8c4f376de5580
36.897436
181
0.692152
4.877888
false
false
false
false