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
dwcares/DragonDrone
iOS/DragonDrone/FPVViewController.swift
1
15223
// // FPVViewController.swift // iOS-FPVDemo-Swift // import UIKit import DJISDK import VideoPreviewer import CoreImage class FPVViewController: UIViewController, DJIVideoFeedListener, DJISDKManagerDelegate, DJIBaseProductDelegate, DJICameraDelegate { var isPreviewShowing = false var camera : DJICamer...
mit
21a254d68430cae1a22e78657a3bd825
30.452479
166
0.550154
4.913815
false
false
false
false
kstaring/swift
test/SILGen/function_conversion_objc.swift
5
5925
// RUN: %target-swift-frontend -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -emit-silgen -verify | %FileCheck %s import Foundation // REQUIRES: objc_interop // ==== Metatype to object conversions // CHECK-LABEL: sil hidden @_TF24function_conversion_objc20convMetatypeToObjectFFCSo8NSObjectMS0_T_ func convMet...
apache-2.0
cd818f55c2efa1b009bbc87173d64768
51.901786
275
0.643544
3.510071
false
false
false
false
SpoaLove/AlphaAcademy
AlphaAcademy/AlphaAcademy/Models/Lessons.swift
1
21407
// // Chapter1LessonViewController.swift // AlphaAcademy // // Created by Tengoku no Spoa on 2017/12/31. // Copyright © 2017年 Tengoku no Spoa. All rights reserved. // import UIKit import JSQMessagesViewController import AVKit /** * The Lessons class is a sub-class of JSQMessagesViewController * this class prov...
mit
bdad0737e57bd38b0841d0fbfd71c968
36.095321
241
0.634835
4.834877
false
false
false
false
huangboju/HYAlertController
HYAlertController/HYAlertController.swift
1
5104
// // HYAlertController.swift // Quick-Start-iOS // // Created by work on 2016/10/25. // Copyright © 2016年 hyyy. All rights reserved. // import UIKit public enum HYAlertControllerStyle: Int { case actionSheet case shareSheet case alert } // MARK: - Class public class HYAlertController: UIViewContr...
mit
011af6e45c33e1e139ea1ff6b5109930
30.840764
173
0.608322
5.306794
false
false
false
false
egnwd/ic-bill-hack
quick-split/Pods/SwiftyJSONDecodable/SwiftyJSONDecodable/SwiftyJSONDecodable.swift
2
10900
// // SwiftyJSONDecodable.swift // SwiftyJSONDecodable // // Created by Mike Pollard on 21/01/2016. // Copyright © 2016 Mike Pollard. All rights reserved. // import Foundation import SwiftyJSON /// Conform to this if you can be instantiated from a json representation /// in the form of a SwiftyJSON.JSON public p...
mit
38f9f609d6f6c5369decc70730f8d0e6
31.831325
120
0.635838
5.112101
false
false
false
false
omaralbeik/SwifterSwift
Sources/Extensions/UIKit/UIViewControllerExtensions.swift
1
5457
// // UIViewControllerExtensions.swift // SwifterSwift // // Created by Emirhan Erdogan on 07/08/16. // Copyright © 2016 SwifterSwift // #if canImport(UIKit) && !os(watchOS) import UIKit // MARK: - Properties public extension UIViewController { /// SwifterSwift: Check if ViewController is onscreen and not hi...
mit
ffa24f4bfefd714333e29cb1aa4c78ea
41.96063
225
0.67357
5.047179
false
false
false
false
1170197998/SinaWeibo
SFWeiBo/SFWeiBo/Classes/Tools/NSDate+Category.swift
1
2493
// // NSDate+Category.swift // SFWeiBo // // Created by mac on 16/4/23. // Copyright © 2016年 ShaoFeng. All rights reserved. // import UIKit extension NSDate { class func dateWithString(time: String) -> NSDate { //将服务器下来的时间字符串转换为NSDate //创建formatter let formatter = NSDateF...
apache-2.0
569bc3ca6e48930a6582a2f87ed19ad5
25.121951
139
0.520075
4.344828
false
false
false
false
gilserrap/Bigotes
Pods/GRMustache.swift/Mustache/Goodies/NSFormatter.swift
2
6293
// The MIT License // // Copyright (c) 2015 Gwendal Roué // // 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, mo...
mit
b46a3b604170180f44178ca2644ed0aa
41.459459
203
0.577817
5.197684
false
false
false
false
whitepixelstudios/Material
Sources/iOS/ChipBar.swift
1
11822
/* * Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. * 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 t...
bsd-3-clause
b9a6208b8f6dc1d02cc8a2f23c6fbaa7
30.192612
136
0.626544
4.90743
false
false
false
false
kallahir/MarvelFinder
MarvelFinder/CharacterDetailViewController.swift
1
23008
// // CharacterDetailViewController.swift // MarvelFinder // // Created by Itallo Rossi Lucas on 08/01/17. // Copyright © 2017 Kallahir Labs. All rights reserved. // import UIKit import AlamofireImage class CharacterDetailViewController: UITableViewController, UICollectionViewDelegate, UICollectionViewDataSource ...
mit
627d1144e282352076d589a601a4822c
43.32948
199
0.586604
5.675136
false
false
false
false
SwiftGen/StencilSwiftKit
Sources/StencilSwiftKit/Filters.swift
1
3798
// // StencilSwiftKit // Copyright © 2022 SwiftGen // MIT Licence // import Foundation import Stencil /// Namespace for filters public enum Filters { typealias BooleanWithArguments = (Any?, [Any?]) throws -> Bool /// Possible filter errors public enum Error: Swift.Error { case invalidInputType case inv...
mit
4f28ab7af315639df51d316f8f52603b
32.017391
114
0.663682
4.329532
false
false
false
false
DiabetesCompass/Diabetes_Compass
BGCompass/TrendViewController.swift
1
20779
// // TrendViewController.swift // BGCompass // // Created by Steve Baker on 12/10/16. // Copyright © 2016 Clif Alferness. All rights reserved. // import UIKit // https://github.com/core-plot/core-plot/blob/master/examples/CPTTestApp-iPhone/Classes/ScatterPlotController.swift class TrendViewController : UIViewCo...
mit
3196fb279c4d89df2cb9e59deaf08250
33.979798
121
0.604822
4.466466
false
false
false
false
ZackKingS/Tasks
task/Classes/LoginRegist/Controller/ZBRegistViewController.swift
1
3328
// // ZBRegistViewController.swift // task // // Created by 柏超曾 on 2017/9/26. // Copyright © 2017年 柏超曾. All rights reserved. // import Foundation import UIKit import SVProgressHUD import SwiftyJSON class ZBRegistViewController: UIViewController ,UITextFieldDelegate { @IBOutlet weak var phon...
apache-2.0
7030a512589e72847beb2cde317bd91f
23.17037
92
0.543059
4.943939
false
false
false
false
jkolb/Swiftish
Sources/Swiftish/Bounds2.swift
1
5991
/* The MIT License (MIT) Copyright (c) 2015-2017 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, modi...
mit
b53ee9e02bd4a35c253d7cb32e25d771
31.383784
111
0.566683
4.146021
false
false
false
false
biohazardlover/ByTrain
ByTrain/Entities/TicketType.swift
1
884
import Foundation public let TicketTypeIdentifierAdult = "AdultTicket" public let TicketTypeIdentifierChild = "ChildTicket" public let TicketTypeIdentifierStudent = "StudentTicket" public let TicketTypeIdentifierDisabledOrMilitary = "DisabledOrMilitaryTicket" public let sTicketTypeDescriptions = [ TicketTypeIden...
mit
3aebe96bbbc443b5e43250d9dbef4e24
28.655172
78
0.752326
4.550265
false
false
false
false
pman215/ONH305
Sources/ONH305SvrLib/Mailer.swift
1
1752
#if os(Linux) import LinuxBridge import Dispatch #else import Darwin import Foundation #endif import Foundation import PerfectLogger import PerfectSMTP class ContactMailer { let mailQueue = DispatchQueue(label: "com.onh305.mailqueue") let client = SMTPClient(url: "smtps://smtp.gmail.com", username: "your...
apache-2.0
54f00f6c24e0a3ad0be6b72b00a13614
26.375
70
0.651256
3.26257
false
false
false
false
jjochen/JJFloatingActionButton
Example/Tests/JJFloatingActionButtonPlacementSpec.swift
1
2167
// // JJFloatingActionButtonPlacementSpecs.swift // // Copyright (c) 2017-Present Jochen Pfeiffer // // 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 wit...
mit
569d6a52a3b86925f3e291e7e2f742b6
38.4
81
0.702353
5.159524
false
false
false
false
CryptoKitten/CryptoEssentials
Sources/Random.swift
1
2312
#if os(Linux) import Glibc #else import Darwin #endif public func generateNumber(between first: Int32, and second: Int32) -> Int32 { var low : Int32 var high : Int32 if first <= second { low = first high = second } else { low = second high = first ...
mit
3d6ee489b8a498db3688d6901441c7b4
24.977528
142
0.551038
4.027875
false
false
false
false
apatronl/Left
Left/View Controller/FavoritesCollectionView.swift
1
6121
// // FavoritesCollectionView.swift // Left // // Created by Alejandrina Patron on 8/3/16. // Copyright © 2016 Ale Patrón. All rights reserved. // import Foundation import SwiftyDrop class FavoritesCollectionView: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIViewControllerPr...
mit
962f304408472e627d2eeb6f352a287b
41.79021
177
0.696682
5.613761
false
false
false
false
nsriram/No-Food-Waste
ios/NoFoodWaster/NoFoodWaster/AvailableDonationsController.swift
1
3538
// // AvailableDonationsController.swift // NoFoodWaste // // Created by Ravi Shankar on 29/11/15. // Copyright © 2015 Ravi Shankar. All rights reserved. // import UIKit class AvailableDonationsController: UIViewController { let cellIdentifier = "availableDonationsCell" @IBOutlet weak var descriptio...
apache-2.0
ea2cf0609030f17fc2b223601d979a44
28.974576
109
0.609839
5.587678
false
false
false
false
davidrauch/mds
mds/Processing/Document.swift
1
889
import Foundation // The Document class Document { // The text of the document, one line per item let text: [String] // The structure of the document let headers: [Header] /** Initializes a new Document with a given text - Parameters: - withText: The text of the document - Returns: A Document o...
mit
4ee68e0eefa43c534bed1dc2d9299d65
19.674419
66
0.673791
3.513834
false
false
false
false
ytakzk/Fusuma
Sources/FSImageCropView.swift
1
3511
// // FZImageCropView.swift // Fusuma // // Created by Yuta Akizuki on 2015/11/16. // Copyright © 2015年 ytakzk. All rights reserved. // import UIKit final class FSImageCropView: UIScrollView, UIScrollViewDelegate { var imageView = UIImageView() var imageSize: CGSize? var image: UIImage! = nil { ...
mit
99fb230ca10adf70c915cb3c0b8c8a94
28.982906
106
0.56699
4.990043
false
false
false
false
ALiOSDev/ALTableView
ALTableViewSwift/TestALTableView/TestALTableView/Master/MasterHeaderFooter.swift
1
1060
// // MasterHeaderFooter.swift // ALTableView // // Created by lorenzo villarroel perez on 22/3/18. // Copyright © 2018 lorenzo villarroel perez. All rights reserved. // import UIKit import ALTableView class MasterHeaderFooter: UITableViewHeaderFooterView, ALHeaderFooterProtocol { static let nib = "MasterHea...
mit
0a5cc5279fd4de0836f9498526e4fdfc
26.153846
79
0.646837
4.604348
false
false
false
false
grandiere/box
box/Firebase/Database/Model/FDbUser.swift
1
880
import Foundation class FDbUser:FDbProtocol { let items:[String:FDbUserItem] required init?(snapshot:Any) { var items:[String:FDbUserItem] = [:] if let snapshotDict:[String:Any] = snapshot as? [String:Any] { let snapshotKeys:[String] = Array(snapshotDict.ke...
mit
5d4d2daf2b8469754996f7b4cd2d854e
22.157895
81
0.439773
5.333333
false
false
false
false
gribozavr/swift
test/IRGen/big_types_corner_cases.swift
1
18035
// XFAIL: CPU=powerpc64le // XFAIL: CPU=s390x // RUN: %target-swift-frontend -enable-large-loadable-types %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize // REQUIRES: optimized_stdlib // UNSUPPORTED: CPU=powerpc64le public struct BigStruct { var i0 : Int32 = 0 var i1 : Int32 =...
apache-2.0
40251200c8b9d7e5b4d198e8f2573424
49.377095
472
0.679789
3.477632
false
false
false
false
qutheory/fluent
Sources/Fluent/Fluent+Pagination.swift
2
1581
import FluentKit import Vapor struct RequestPaginationKey: StorageKey { typealias Value = RequestPagination } struct RequestPagination { let pageSizeLimit: PageLimit? } struct AppPaginationKey: StorageKey { typealias Value = AppPagination } struct AppPagination { let pageSizeLimit: Int? } extension...
mit
0e026c00d6c7dc187c90c3b71f32e281
21.585714
79
0.620493
4.609329
false
false
false
false
juergen/_Playgrounds
TideInterpolation.playground/section-1.swift
1
9501
// Playground - noun: a place where people can play import UIKit import Foundation import Darwin // for pi import XCPlayground let pi = M_PI extension String { // func split(separator:String) -> [NSString] { // return self.componentsSeparatedByString(separator) as [NSString] // } func split(separator:String) ->...
mit
11fd046c9d2840c230d2ca314f044f12
30.564784
145
0.664351
3.157527
false
false
false
false
lyft/SwiftLint
Source/SwiftLintFramework/Rules/RedundantSetAccessControlRule.swift
1
3160
import Foundation import SourceKittenFramework public struct RedundantSetAccessControlRule: ASTRule, ConfigurationProviderRule { public var configuration = SeverityConfiguration(.warning) public init() {} public static let description = RuleDescription( identifier: "redundant_set_access_control",...
mit
2469a2318ee31de57d3941897d586262
35.16092
115
0.563573
5.414802
false
false
false
false
tid-kijyun/QiitaWatch
QiitaWatch WatchKit Extension/Qiita.swift
1
5348
// // Qiita.swift // QiitaWatch // // Created by tid on 2014/11/23. // Copyright (c) 2014年 tid. All rights reserved. // import Foundation public class Qiita { struct API { static let URL = "https://qiita.com/api/v1" } enum StatusCode : Int { case OK = 200 c...
mit
8ae0ed534849e60584b1ccedef23781f
42.112903
162
0.493079
5.36747
false
false
false
false
huyouare/Emoji-Search-Keyboard
Keyboard/Shapes.swift
1
13981
// // Shapes.swift // TastyImitationKeyboard // // Created by Alexei Baboulevitch on 10/5/14. // Copyright (c) 2014 Apple. All rights reserved. // import UIKit // TODO: these shapes were traced and as such are erratic and inaccurate; should redo as SVG or PDF /////////////////// // SHAPE OBJECTS // /////////////...
bsd-3-clause
99a8557ba9ee0347774e0261b5bf4d97
38.383099
241
0.684286
4.381385
false
false
false
false
SereivoanYong/Charts
Source/Charts/Highlight/Highlight.swift
1
5374
// // Highlight.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 /// Contains information needed to determine the highlighted value. open class Highli...
apache-2.0
45c015032b5cbafc8968672f47774d85
35.067114
165
0.653517
3.911208
false
false
false
false
Vienta/kuafu
kuafu/kuafu/src/Manager/KFLocalPushManager.swift
1
9777
// // KFLocalPushManager.swift // kuafu // // Created by Vienta on 15/7/5. // Copyright (c) 2015年 www.vienta.me. All rights reserved. // import UIKit import DAAlertController import AudioToolbox private let sharedInstance = KFLocalPushManager() class KFLocalPushManager: NSObject { class var sharedManage...
mit
968aeddcf225022937494ebcd9b4a0ff
48.872449
210
0.675192
5.207778
false
false
false
false
khizkhiz/swift
test/Parse/ConditionalCompilation/language_version.swift
8
1907
// RUN: %target-parse-verify-swift #if swift(>=1.0) let w = 1 #else // This shouldn't emit any diagnostics. asdf asdf asdf asdf #endif #if swift(>=1.2) #if os(iOS) let z = 1 #else let z = 1 #endif #else // This shouldn't emit any diagnostics. asdf asdf asdf asdf #if os(iOS) // This shouldn't emit an...
apache-2.0
0de7f2081cce4705d8f903fbcdb15136
19.956044
126
0.667541
3.065916
false
false
false
false
jorisvervuurt/JVSUIButton
JVSUIButton.swift
1
2590
// // JVSUIButton.swift // JVSUIButton // // Created by Joris Vervuurt on 30-06-15. // Copyright (c) 2015 Joris Vervuurt Software. All rights reserved. // // The MIT License (MIT) // // Copyright (c) 2015 Joris Vervuurt Software // // Permission is hereby granted, free of charge, to any person obtaining a copy ...
mit
d80a604c0fedcf1c2f8ac9b8d8622670
39.46875
153
0.74749
4.059561
false
false
false
false
srn214/Floral
Floral/Pods/CleanJSON/CleanJSON/Classes/_CleanJSONDecoder.swift
1
4001
// // _CleanJSONDecoder.swift // CleanJSON // // Created by Pircate(swifter.dev@gmail.com) on 2018/10/10 // Copyright © 2018 Pircate. All rights reserved. // import Foundation final class _CleanJSONDecoder: CleanDecoder { /// The decoder's storage. var storage: CleanJSONDecodingStorage /// ...
mit
9fabb444a370f055abc18b3d69a4f1d5
38.60396
107
0.62175
5.891016
false
false
false
false
iOSDevLog/InkChat
InkChat/Pods/IBAnimatable/IBAnimatable/ActivityIndicatorAnimationCubeTransition.swift
1
3143
// // Created by Tom Baranes on 23/08/16. // Copyright (c) 2016 IBAnimatable. All rights reserved. // import UIKit public class ActivityIndicatorAnimationCubeTransition: ActivityIndicatorAnimating { // MARK: Properties fileprivate let duration: CFTimeInterval = 1.6 fileprivate let timingFunction = CAMediaTi...
apache-2.0
4021e35e65a7807b59f3213558b3b13f
35.126437
128
0.728921
4.747734
false
false
false
false
hikelee/cinema
Sources/App/Models/BasicModel.swift
1
4271
import Fluent import Vapor import HTTP import Foundation public protocol RestModel : Model { var id : Node? {get set} var exists: Bool {get set} func validate(isCreate: Bool) throws ->[String:String] func makeNode(context: Context) throws -> Node func makeLeafNode() throws -> Node func makeNode(...
mit
4b4b35d260210e29cad0049baa57ea5d
30.404412
97
0.618825
4.150632
false
false
false
false
delba/Log
Source/Logger.swift
1
8974
// // Logger.swift // // Copyright (c) 2015-2019 Damien (http://delba.io) // // 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 //...
mit
a280300bacf14f9b7bf2867d170c856e
38.017391
190
0.631937
4.51863
false
false
false
false
webstersx/DataStructures
DataStructuresKit/DataStructuresKit/LinkedList2.swift
1
2600
// // LinkedList2.swift // DataStructuresKit // // Created by Shawn Webster on 26/08/2015. // Copyright © 2015 Shawn Webster. All rights reserved. // import Foundation public class LinkedNode2<T:Equatable> { public var value : T public var next : LinkedNode2<T>? = nil public var prev : LinkedNode...
mit
ff45a16e4d57b57796637553cb9eb9e6
18.548872
64
0.454021
4.274671
false
false
false
false
ArinaYauk/WetterApp
GesturesTutorial/GesturesTutorial/GesturesViewController.swift
1
3204
// // ViewController.swift // GesturesTutorial // // Copyright (c) 2015 . All rights reserved. // import UIKit class GesturesViewController: UIViewController { @IBOutlet weak var gestureName: UILabel! @IBOutlet weak var tapView: UIView! @IBOutlet weak var rotateView: UIView! @IBOutlet weak var...
apache-2.0
dd86437ab197b36bc9aff38e58cdc88b
30.106796
118
0.644195
5.15942
false
false
false
false
eminemoholic/SoruVA
soru/SettingsController.swift
1
3803
// // SettingsController.swift // soru // // Created by Aditya Gurjar on 6/25/17. // Copyright © 2017 IBM. All rights reserved. // import UIKit class SettingsController : UIViewController, UITableViewDelegate, UITableViewDataSource{ let items = ["Primary Color", "Secondary Color", "User Chat Bubble", "Wa...
mit
34311052fd61aa22cfe06153a518a6bc
31.220339
157
0.586007
5.015831
false
false
false
false
criticalmaps/criticalmaps-ios
CriticalMapsKit/Sources/Styleguide/NavigationBar.swift
1
3067
import SwiftUI public enum NavPresentationStyle { case modal case navigation } public extension View { func navigationStyle<Title: View, Trailing: View>( backgroundColor: Color = Color(.backgroundSecondary), foregroundColor: Color = Color(.textPrimary), title: Title, navPresentationStyle: NavPre...
mit
93a5b22f0b410f1d970cdc786aa0cc9c
24.773109
80
0.617216
4.970827
false
false
false
false
algolia/algoliasearch-client-swift
Sources/AlgoliaSearchClient/Models/Settings/SettingsParameters.swift
1
6280
// // SettingsParameters.swift // // // Created by Vladislav Fitc on 19/11/2020. // import Foundation public protocol SettingsParameters: CommonParameters { // MARK: - Attributes /** The complete list of attributes that will be used for searching. - Engine default: [] - [Documentation](https://www....
mit
259667dd7e5bc6cbbbbc7b4d85ec8c08
33.674033
240
0.713512
4.067401
false
false
false
false
PedroTrujilloV/TIY-Assignments
18--Mary-Samsonite/MuttCuttsHitsTheRoad/MuttCuttsHitsTheRoad/PopoverAddCityViewController.swift
1
2330
// // PopoverAddCityViewController.swift // MuttCuttsHitsTheRoad // // Created by Pedro Trujillo on 10/28/15. // Copyright © 2015 Pedro Trujillo. All rights reserved. // import UIKit class PopoverAddCityViewController: UIViewController,UITextFieldDelegate { @IBOutlet weak var cityTextFiled: UITextField! @...
cc0-1.0
2625c67e0da822c577c1dc72aa6f6ece
25.168539
106
0.613139
5.317352
false
false
false
false
lmihalkovic/WWDC-tvOS
WWDC/DetailViewController.swift
1
4367
// // DetailViewController.swift // WWDC // // Created by Guilherme Rambo on 20/11/15. // Copyright © 2015 Guilherme Rambo. All rights reserved. // import UIKit import AVFoundation import AVKit protocol DetailViewControllerDelegate:class { } class DetailViewController: UIViewController { var session: S...
bsd-2-clause
52175bcf7365902aa39903503c88e3fa
31.58209
166
0.631699
5.203814
false
false
false
false
tutsplus/unit-testing-with-swift-and-xctest
SimpleTipCalculator/SimpleTipCalculatorViewController.swift
1
4050
// // SimpleTipCalculatorViewController.swift // SimpleTipCalculator // // Created by Derek Jensen on 5/3/15. // Copyright (c) 2015 Derek Jensen. All rights reserved. // import UIKit class SimpleTipCalculatorViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var txtBillAmoun...
bsd-2-clause
878dc8f301edfc323a2a886a2fa0af87
31.4
130
0.648889
5.25974
false
false
false
false
vasarhelyia/SwiftySheetsDemo
SwiftySheetsDemo/UIViewStyleExtensions.swift
1
1369
// // UIViewStyleExtensions.swift // SwiftySheetsDemo // // Created by Agnes Vasarhelyi on 03/07/16. // Copyright © 2016 Agnes Vasarhelyi. All rights reserved. // import Foundation import UIKit @objc(SWStyle) class Style: NSObject { var font: UIFont? var fontColor: UIColor? var fontColorAndState: (UIColor, UIC...
mit
5dba44efa9dcd6f585bdda985b223d27
23.872727
106
0.754386
4.047337
false
false
false
false
Sadmansamee/quran-ios
Quran/JuzTableViewHeaderFooterView.swift
1
1584
// // JuzTableViewHeaderFooterView.swift // Quran // // Created by Mohamed Afifi on 4/22/16. // Copyright © 2016 Quran.com. All rights reserved. // import UIKit class JuzTableViewHeaderFooterView: UITableViewHeaderFooterView { let titleLabel: UILabel = UILabel() let subtitleLabel: UILabel = UILabel() ...
mit
4001335e05a34bf672dc2c9fae1e5643
27.781818
77
0.686039
4.683432
false
false
false
false
TelerikAcademy/Mobile-Applications-with-iOS
demos/OopDemos/OopDemos/main.swift
1
1264
// // main.swift // OopDemos // // Created by Doncho Minkov on 3/15/17. // Copyright © 2017 Doncho Minkov. All rights reserved. // import Foundation typealias A = Animal //let namelessAnimal = Animal() //namelessAnimal.sayName() // //let gosho = Animal(withName: "G", andAge: 17) //gosho.name = "Gesha" // //gosho...
mit
b6dc08a0fd389f1acce025dab6ebf805
18.136364
69
0.555028
2.647799
false
false
false
false
double-y/ios_swift_practice
ios_swift_practice/ViewController.swift
1
1795
// // ViewController.swift // ios_swift_practice // // Created by 安田洋介 on 7/8/15. // Copyright © 2015 安田洋介. All rights reserved. // import UIKit import WatchConnectivity import Charts import CoreData class ViewController: UIViewController{ var managedObjectContext: NSManagedObjectContext! = nil @IBOu...
mit
786c3cb0c3d8c53d42ae2c25ef05e32d
29.135593
112
0.652981
5.19883
false
false
false
false
iMetalk/TCZKit
TCZKitDemo/TCZKit/Views/Cells/标题+输入框+图标 TCZTitleTextFieldImageCell/TCZTitleTextFieldImageCell.swift
1
1446
// // TCZTitleTextFieldImageCell.swift // Dormouse // // Created by 田向阳 on 2017/8/11. // Copyright © 2017年 WangSuyan. All rights reserved. // import UIKit class TCZTitleTextFieldImageCell: TCZTitleTextFieldCell { override func tczConfigureData(aItem: TCZTableViewData) { titleLabel.text = aItem.title ...
mit
a869be8d2f388a21bddb548329798fec
28.9375
74
0.649965
4.448916
false
false
false
false
myandy/shi_ios
shishi/DB/Yun.swift
1
2225
// // Yun.swift // shishi // // Created by andymao on 2017/4/15. // Copyright © 2017年 andymao. All rights reserved. // import Foundation import FMDB public class Yun { var tone: Int! var glys: String! var section_desc: String! var tone_name: String! } class YunDB { private static let YU...
apache-2.0
429a8d7bcbc3eb22f108f8d79a217f89
21.721649
82
0.495009
3.859895
false
false
false
false
ibm-wearables-sdk-for-mobile/ios
RecordApp/RecordApp/FileUtils.swift
2
1808
/* * © Copyright 2015 IBM Corp. * * Licensed under the Mobile Edge iOS Framework License (the "License"); * you may not use this file except in compliance with the License. You may find * a copy of the license in the license.txt file in this package. * * Unless required by applicable law or agreed to in writi...
epl-1.0
d38cc494a86caa104792f6d8815e8314
30.172414
96
0.645822
4.950685
false
false
false
false
justindarc/firefox-ios
AccountTests/TokenServerClientTests.swift
2
5368
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @testable import Account import FxA import Shared import UIKit import XCTest private let ProductionTokenServerEn...
mpl-2.0
428e37eed14e8eb0443099225a782313
46.486726
135
0.605852
5.000932
false
true
false
false
IBM-MIL/IBM-Ready-App-for-Insurance
PerchReadyApp/apps/Perch/iphone/native/Perch/Views/PerchAlertView/PerchAlertViewManager.swift
1
5497
/* Licensed Materials - Property of IBM © Copyright IBM Corporation 2015. All Rights Reserved. */ import UIKit /** This class manages the Perch Alert View. Anywhere that an alert view needs to be displayed, this manager is what should be used to display it. */ public class PerchAlertViewManager: NSObject { p...
epl-1.0
96c86a0a0788785d050eb168acf4619a
37.978723
266
0.642103
5.112558
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/DelegatedSelfCustody/Sources/DelegatedSelfCustodyData/Subscriptions/SubscriptionsService.swift
1
3955
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import BlockchainNamespace import Combine import CryptoSwift import DelegatedSelfCustodyDomain import Foundation import Localization final class SubscriptionsService: DelegatedCustodySubscriptionsServiceAPI { private let accountRepository: AccountRep...
lgpl-3.0
94d95894250ad1f08e5b718f74c0735e
38.54
132
0.623672
6.27619
false
false
false
false
wujianguo/GitHubKit
Sources/WebLinking.swift
1
5330
import Foundation /// A structure representing a RFC 5988 link. public struct Link: Equatable, Hashable { /// The URI for the link public let uri: String /// The parameters for the link public let parameters: [String: String] /// Initialize a Link with a given uri and parameters public init(uri: String, ...
mit
93bf6907c4e2c9624eb80f6df035f560
25.522388
117
0.643527
4.013554
false
false
false
false
faimin/ZDOpenSourceDemo
ZDOpenSourceSwiftDemo/Pods/GDPerformanceView-Swift/GDPerformanceView-Swift/GDPerformanceMonitoring/LinkedFramesList.swift
3
3272
// // Copyright © 2017 Gavrilov Daniil // // 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...
mit
3a81ae960ed6ac9f892a47757e71aa22
31.386139
126
0.673189
4.782164
false
false
false
false
KaushalElsewhere/MockingBird
MockingBird/Controllers/DashboardCoordinator.swift
1
1606
// // DashboardCoordinator.swift // MockingBird // // Created by Kaushal Elsewhere on 03/08/16. // Copyright © 2016 Elsewhere. All rights reserved. // import UIKit import Firebase import FirebaseAuth extension DashboardCoordinator: DashboardControllerDelegate { func dashboardDidLogout() { do { ...
mit
ada51d34a7006ee5ad7d75ba9f6601ac
25.311475
101
0.690343
5.857664
false
false
false
false
Palleas/GIF-Keyboard
AdventCalendar/AppDelegate.swift
1
1127
// // AppDelegate.swift // AdventCalendar // // Created by Romain Pouclet on 2015-11-28. // Copyright © 2015 Perfectly-Cooked. All rights reserved. // import UIKit import AWSS3 import Keys @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(...
mit
370c2c562ac80b720a3e025538ad019e
31.171429
139
0.742451
5.439614
false
true
false
false
suzuki-0000/CountdownLabel
CountdownLabel/LTMorphingLabel/LTEasing.swift
1
1632
// // LTEasing.swift // LTMorphingLabelDemo // // Created by Lex on 7/1/14. // Copyright (c) 2015 lexrus.com. All rights reserved. // import Foundation // http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js // t = currentTime // b = beginning // c = change // d = duration public struct LTEasing { ...
mit
05178f834a23ddbc4ca5d505117e2d24
28.672727
101
0.429534
2.983547
false
false
false
false
haawa799/WaniKit2
Sources/WaniKit/Model/LevelProgressionInfo.swift
3
948
// // LevelProgressionInfo.swift // Pods // // Created by Andriy K. on 12/10/15. // // import Foundation public struct LevelProgressionInfo { // Dictionary keys private static let keyRadicalsProgress = "radicals_progress" private static let keyRadicalsTotal = "radicals_total" private static let keyKanji...
mit
f2d7c536111d3768726d8e5e726c67a5
25.333333
79
0.744726
3.703125
false
false
false
false
Eonil/Monolith.Swift
Standards/Sources/RFC4627/RFC4627.Extensions.swift
3
1701
// // RFC4627.Extensions.swift // Monolith // // Created by Hoon H. on 10/21/14. // // import Foundation // // Fragment description is missing due to lack of implementation in Cocoa. // We need to implement our own generator and parser. // ///// MARK: //extension RFC4627.Value: Printable { //...
mit
8ef5eeba8e9cb1bf8a7e60e177a489ad
13.538462
83
0.563786
2.573374
false
false
false
false
darrarski/DRNet
DRNet/DRNet/RequestParameters/RequestQueryStringParameters.swift
1
2525
// // RequestQueryStringParameters.swift // DRNet // // Created by Dariusz Rybicki on 21/10/14. // Copyright (c) 2014 Darrarski. All rights reserved. // import Foundation public class RequestQueryStringParameters: RequestParameters { public let parameters: [String: AnyObject] public init(_ param...
mit
8f2f8430fefb32a1235f48c888074c19
32.68
130
0.599604
5.121704
false
false
false
false
Vostro162/VaporTelegram
Sources/App/Game.swift
1
715
// // Game.swift // VaporTelegramBot // // Created by Marius Hartig on 08.05.17. // // import Foundation public struct Game { let title: String let description: String let photos: [PhotoSize] let textEntities: [MessageEntity] let text: String? let animation: Animation? pu...
mit
eda83df0ff51002e7c8fde8d5fd37c3a
22.833333
191
0.632168
4.016854
false
false
false
false
ashfurrow/FunctionalReactiveAwesome
Pods/Moya/Moya+RxSwift.swift
1
3041
// // Moya+RxSwift.swift // Moya // // Created by Andre Carvalho on 2015-06-05 // Copyright (c) 2015 Ash Furrow. All rights reserved. // import Foundation import RxSwift /// Subclass of MoyaProvider that returns Observable instances when requests are made. Much better than using completion closures. public class ...
mit
753d821b5719a4fe8e6a51aeffccea46
44.38806
349
0.59487
5.684112
false
false
false
false
velvetroom/columbus
Source/Controller/Abstract/ControllerParent+Transitions.swift
1
9238
import UIKit extension ControllerParent { //MARK: private private func slide(controller:UIViewController, left:CGFloat) { guard let view:ViewParent = self.view as? ViewParent, let currentController:UIViewController = childViewControllers.last, l...
mit
9f7e4226af1cba696111941bce70384f
27.689441
91
0.555099
6.87863
false
false
false
false
LeeWongSnail/Swift
DesignBox/DesignBox/ArtKit/pageViewController/ArtPageViewController.swift
1
10464
// // ArtPageViewController.swift // DesignBox // // Created by LeeWong on 2017/8/28. // Copyright © 2017年 LeeWong. All rights reserved. // import UIKit protocol ArtPageHeaderViewProtocol { //表示变量是可读可写的 var currentIndex:Int {get set} } class ArtPageViewController: UIViewController { //MARK: -...
mit
809a8469ff1e9c339a92c20f0447cec9
30.83792
206
0.61339
5.2003
false
false
false
false
mathcamp/swiftz
swiftz/StringExt.swift
2
744
// // StringExt.swift // swiftz // // Created by Maxwell Swadling on 8/06/2014. // Copyright (c) 2014 Maxwell Swadling. All rights reserved. // import Foundation extension String { public func lines() -> [String] { var xs: [String] = [] var line: String = "" // loop school for x in self { ...
bsd-3-clause
df5b7d14d3c6ce13a90bf1b320649d0b
19.108108
73
0.532258
3.351351
false
false
false
false
sucrewar/SwiftUEx
SwiftEx/Classes/UIViewExtension.swift
1
866
// // UIViewExtension.swift // smiity // // Created by João Borges on 16/06/16. // Copyright © 2016 Mobinteg. All rights reserved. // import Foundation public extension UIView { public func fadeIn(duration: NSTimeInterval = 1.0, delay: NSTimeInterval = 0.0, completion: ((Bool) -> Void) = {(finished: Bool) ->...
mit
e7156ea036978d644014814eaa14eff3
38.272727
148
0.66088
4.056338
false
false
false
false
tehprofessor/SwiftyFORM
Source/Cells/ButtonCell.swift
1
1419
// // ButtonCell.swift // SwiftyFORM // // Created by Simon Strandgaard on 08/11/14. // Copyright (c) 2014 Simon Strandgaard. All rights reserved. // import UIKit public struct ButtonCellModel { var title: String = "" var subtitle: String = "" var textAlignment: NSTextAlignment = NSTextAlignment.Left var d...
mit
30edc81ac520e2811a13ac8af90c8845
25.277778
80
0.737844
4.089337
false
false
false
false
dasmer/Paste
Paste/SearchTextFieldView.swift
1
2882
// // SearchTextFieldView.swift // Paste // // Created by Dasmer Singh on 12/20/15. // Copyright © 2015 Dastronics Inc. All rights reserved. // import UIKit protocol SearchTextFieldViewDelegate: class { func searchTextFieldView(searchTextFieldView: SearchTextFieldView, didChangeText text: String) func sea...
mit
2db72e7233094c40146526abd3657ac1
25.675926
158
0.669559
5.305709
false
false
false
false
brentdax/swift
test/SILGen/objc_init_ref_delegation.swift
2
1337
// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo extension Gizmo { // CHECK-LABEL: sil hidden @$sSo5GizmoC24objc_init_ref_delegationE{{[_0-9a-zA-Z]*}}fC convenience init(int i: Int) { // CHECK: bb0([[...
apache-2.0
4577f7cca6f8e4f039fd0871e0ccd8c9
62.666667
217
0.589379
3.038636
false
false
false
false
auth0/Lock.swift
LockTests/InputFieldSpec.swift
1
14835
// InputFieldSpec.swift // // Copyright (c) 2016 Auth0 (http://auth0.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 rights //...
mit
cc89f8fbcc18aeb4518a50fae26f86ff
34.746988
265
0.522481
5.47215
false
false
false
false
jessesquires/swift-proposal-analyzer
swift-proposal-analyzer.playground/Pages/SE-0169.xcplaygroundpage/Contents.swift
1
7996
/*: # Improve Interaction Between `private` Declarations and Extensions * Proposal: [SE-0169](0169-improve-interaction-between-private-declarations-and-extensions.md) * Authors: [David Hart](http://github.com/hartbit), [Chris Lattner](https://github.com/lattner) * Review Manager: [Doug Gregor](https://github.com/DougG...
mit
6634323545c1ade7a481098ad1780d9d
46.571429
623
0.746496
4.147379
false
false
false
false
Ming-Lau/DouyuTV
DouyuTV/DouyuTV/Classes/Main/View/PageContentView.swift
1
5338
// // PageContentView.swift // DouyuTV // // Created by 刘明 on 16/10/25. // Copyright © 2016年 刘明. All rights reserved. // import UIKit private let collectionViewIdenfier = "collectionViewIdenfier" protocol PageContentViewDelegate : class { func pageContentView(pageContentView : PageContentView , progress : CG...
mit
4a610d7de2d27a532e65df383e3ae7bf
32.622517
127
0.634036
5.355485
false
false
false
false
codePrincess/playgrounds
GreatStuffWithThePencil.playground/Sources/EmotionHelpers.swift
1
5371
import Foundation import UIKit public class EmotionHelpers : NSObject { var preview : UIImageView! /** Method for putting an emoji with a matching emotion over each detected face in a photo. - parameters: - photo: The photo on which faces and it's emotion shall be detected ...
mit
da47b6835337316834e59a12f6fe29c5
36.006993
201
0.519085
5.641791
false
false
false
false
lorentey/swift
test/decl/var/static_var.swift
3
14951
// RUN: %target-typecheck-verify-swift -parse-as-library // See also rdar://15626843. static var gvu1: Int // expected-error {{static properties may only be declared on a type}}{{1-8=}} // expected-error@-1 {{global 'var' declaration requires an initializer expression or getter/setter specifier}} class var gvu2: I...
apache-2.0
1862ef04b342ac7dec422ae83dd08173
54.374074
294
0.699284
3.902636
false
false
false
false
byu-oit/ios-byuSuite
byuSuite/Apps/Printers/controller/PrintersMapViewController.swift
1
1655
// // PrintersMapViewController.swift // byuSuite // // Created by Alex Boswell on 5/4/18. // Copyright © 2018 Brigham Young University. All rights reserved. // import UIKit class PrintersMapViewController: ByuMapViewController2 { //MARK: Viewcontroller lifecycle override func viewDidLoad() { sup...
apache-2.0
a45e00b1aa59917f1365da76c24e3d79
28.535714
126
0.695284
4.633053
false
false
false
false
team-pie/DDDKit
DDDKit/Classes/DDDCube.swift
1
4141
// // DDDCube.swift // Pods // // Created by Guillaume Sabran on 10/02/2016. // Copyright (c) 2016 Guillaume Sabran. All rights reserved. // import Foundation import GLKit extension DDDGeometry { /// Represents a cube face private struct Face { let verticeRef: GLKVector3 let verticeX: GLKVector3 let vert...
mit
443ebe61b70cfb2b5e2e63aa125d8cc1
27.363014
119
0.541657
2.824693
false
false
false
false
kosua20/PtahRenderer
PtahRendererDemo/Renderer.swift
1
7563
// // Renderer.swift // PtahRenderer // // Created by Simon Rodriguez on 29/12/2016. // Copyright © 2016 Simon Rodriguez. All rights reserved. // import Foundation import PtahRenderer #if os(macOS) import Cocoa import simd #endif #if os(macOS) let imageExt = ".png" #else let imageExt = ".tga" #endif struct Ca...
mit
1ce92f30764ed07b7cfc442b5e88b0e2
33.688073
185
0.715816
3.27785
false
false
false
false
Rapid-SDK/ios
Examples/RapiDO - ToDo list/RapiDO macOS/ListViewController.swift
1
9656
// // ViewController.swift // ExampleMacOSApp // // Created by Jan on 15/05/2017. // Copyright © 2017 Rapid. All rights reserved. // import Cocoa import Rapid class ListViewController: NSViewController { @IBOutlet weak var tableView: NSTableView! @IBOutlet weak var completionPopUp: NSPopUpButton! @IB...
mit
8a2a7dab42068fc69028635845108b73
31.29097
129
0.589332
5.38483
false
false
false
false
whiteath/ReadFoundationSource
Foundation/Operation.swift
2
16977
// This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
apache-2.0
579998b363a659707eb536311b55d9d7
27.677365
146
0.574189
4.832622
false
false
false
false
csujedihy/Flicks
MoviesViewer/FullScreenPhotoViewController.swift
1
2084
// // FullScreenPhotoViewController.swift // MoviesViewer // // Created by YiHuang on 2/6/16. // Copyright © 2016 c2fun. All rights reserved. // import UIKit class FullScreenPhotoViewController: UIViewController, UIScrollViewDelegate { var photoUrl:String? var image:UIImage? @IBOutlet weak var scroll...
gpl-3.0
f0b2f193144b868650f4290d8d4d2fd7
29.188406
106
0.620259
5.300254
false
false
false
false
mozilla-mobile/firefox-ios
Client/Frontend/Home/RecentlySaved/RecentlySavedDataAdaptor.swift
1
4082
// 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 Storage protocol RecentlySavedDataAdaptor { func getRecentlySavedData() -> [RecentlySave...
mpl-2.0
618aaeeb4000eae252b9a54f83b0484a
36.449541
144
0.641107
5.693166
false
false
false
false
iOSTestApps/firefox-ios
Providers/Profile.swift
1
25566
/* 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 Account import ReadingList import Shared import Storage import Sync import XCGLogger // ...
mpl-2.0
11c650999e3d7e09e28eff232c8b0659
37.674735
238
0.642466
5.280727
false
false
false
false
JaSpa/swift
test/Serialization/objc.swift
4
1731
// RUN: rm -rf %t // RUN: mkdir -p %t // RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_objc.swift -disable-objc-attr-requires-foundation-module // RUN: llvm-bcanalyzer %t/def_objc.swiftmodule | %FileCheck %s // RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-silgen -I %t %s -o - | %FileC...
apache-2.0
8c08864c74c24ac46cb42a09468c0660
43.384615
127
0.69093
3.297143
false
true
false
false
a736220388/TestKitchen_1606
TestKitchen/TestKitchen/classes/common/UILabel+Util.swift
1
715
// // UILabel+Util.swift // TestKitchen // // Created by qianfeng on 16/8/15. // Copyright © 2016年 qianfeng. All rights reserved. // import UIKit extension UILabel{ class func createLabel(text:String?,font:UIFont?,textAlignment:NSTextAlignment?,textColor:UIColor?)->UILabel{ let label = UILabel() ...
mit
69c062419fcfd7e641824218fdffc577
25.37037
113
0.609551
4.746667
false
false
false
false
GiorgioNatili/CryptoMessages
CryptoMessages/messages/view/MessagesViewController+Extension.swift
1
1227
// // MessagesViewController+Extension.swift // CryptoMessages // // Created by Giorgio Natili on 5/9/17. // Copyright © 2017 Giorgio Natili. All rights reserved. // import Foundation import UIKit extension MessagesViewController: UITableViewDataSource, UITableViewDelegate { // MARK: - Table view data so...
unlicense
e9bb0e3ec2e433dd5e9c09cef49b6595
27.511628
103
0.663132
5.424779
false
false
false
false
austinzheng/swift
test/NameBinding/Inputs/overload_vars.swift
37
557
public var something : Int = 1 public var ambiguousWithVar : Int = 2 public var scopedVar : Int = 3 public var localVar : Int = 4 public var scopedFunction : Int = 5 public var typeNameWins : Int = 6 public protocol HasFoo { var foo: Int { get } } public protocol HasBar { var bar: Int { get } } public class Ha...
apache-2.0
0a6be5de04c625b7b09bfd066fb762fc
16.40625
37
0.691203
3.355422
false
false
false
false
breadwallet/breadwallet-ios
breadwallet/src/Platform/BRAPIClient+Currencies.swift
1
9035
// // BRAPIClient+Currencies.swift // breadwallet // // Created by Ehsan Rezaie on 2018-03-12. // Copyright © 2018-2019 Breadwinner AG. All rights reserved. // import Foundation import UIKit public enum APIResult<ResultType: Codable> { case success(ResultType) case error(Error) } public struct HTTPError:...
mit
ac7b52a7c870c19a6bbd34272405e090
42.432692
165
0.584901
4.823278
false
false
false
false
dreymonde/SwiftyNURE
Sources/SwiftyNURE/Model/Group.swift
1
522
// // Group.swift // NUREAPI // // Created by Oleg Dreyman on 18.02.16. // Copyright © 2016 Oleg Dreyman. All rights reserved. // import Foundation public struct Group { public let id: Int public let name: String public init(name: String, id: Int) { self.id = id self.name = name ...
mit
b885fabdbf51cce75f8d87323b1794ad
15.83871
55
0.598848
3.36129
false
false
false
false
LuAndreCast/iOS_WatchProjects
watchOS2/timesTables/timesTables WatchKit Extension/InterfaceController.swift
1
1927
// // InterfaceController.swift // timesTables WatchKit Extension // // Created by Luis Castillo on 1/6/16. // Copyright © 2016 Luis Castillo. All rights reserved. // import WatchKit import Foundation class InterfaceController: WKInterfaceController { @IBOutlet var timesSlider: WKInterfaceSlider! @...
mit
c2d1637762c5d75a401e73ccde8b14bc
22.777778
91
0.604361
4.989637
false
false
false
false
mattiabugossi/Swifter
Swifter/Swifter.swift
1
8254
// // Swifter.swift // Swifter // // Copyright (c) 2014 Matt Donnelly. // // 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...
mit
8549f84ab873773a90247413e6ff456a
45.111732
341
0.657499
4.954382
false
false
false
false
itsaboutcode/WordPress-iOS
WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationSettingDetailsViewController.swift
1
13643
import Foundation import WordPressShared import UserNotifications /// The purpose of this class is to render a collection of NotificationSettings for a given Stream, /// encapsulated in the class NotificationSettings.Stream, and to provide the user a simple interface /// to update those settings, as needed. /// class...
gpl-2.0
fb6ab92fd6e3f1ec4e9542da9212071a
36.275956
220
0.640915
5.50121
false
false
false
false
powerytg/PearlCam
PearlCam/PearlCam/Components/MeterView.swift
2
2648
// // MeterView.swift // PearlCam // // MeterView is a slider that allows users to swipe through the specified range of values // // Created by Tiangong You on 6/11/17. // Copyright © 2017 Tiangong You. All rights reserved. // import UIKit import CRRulerControl enum MeterType { case exposureCompensation ...
bsd-3-clause
073dfd21a34461a2975a48a923f13ebe
29.77907
107
0.646392
4.339344
false
false
false
false
BlueCocoa/Maria
Maria/SettingsAria2ConfigViewController.swift
1
6141
// // SettingsAria2ViewController.swift // Maria // // Created by ShinCurry on 16/4/23. // Copyright © 2016年 ShinCurry. All rights reserved. // import Cocoa class SettingsAria2ConfigViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() // Do view setup here. ...
gpl-3.0
d492314086120fa3a5b48f3ae631afa0
35.105882
118
0.605083
4.886943
false
true
false
false
apple/swift
test/Generics/rdar28544316.swift
6
1661
// RUN: %target-swift-frontend %s -emit-ir -debug-generic-signatures 2>&1 | %FileCheck %s // REQUIRES: asserts class PropertyDataSource<O: PropertyHosting> { } protocol TableViewCellFactoryType { associatedtype Item } public protocol PropertyHosting { associatedtype PType: Hashable, EntityOwned } public pro...
apache-2.0
3ec1329e5fb4a48ef0fb62f531ecb19d
33.604167
394
0.773028
4.29199
false
false
false
false
wbaumann/SmartReceiptsiOS
SmartReceipts/Services/Local/MigrationService.swift
2
1873
// // MigrationService.swift // SmartReceipts // // Created by Bogdan Evsenev on 30/12/2017. // Copyright © 2017 Will Baumann. All rights reserved. // import Foundation import FMDB fileprivate let migrationKey = "migration_version_key" class MigrationService { // MARK: - Public Interface func m...
agpl-3.0
ec71a10a499fd58989541666d6d1a10b
28.714286
109
0.599893
4.633663
false
false
false
false
manfengjun/KYMart
Section/Product/Detail/View/KYPropertyFootView.swift
1
1528
// // KYPropertyFootView.swift // KYMart // // Created by jun on 2017/6/8. // Copyright © 2017年 JUN. All rights reserved. // import UIKit import PPNumberButtonSwift class KYPropertyFootView: UIView { @IBOutlet var contentView: UIView! @IBOutlet weak var numberButton: PPNumberButton! var CountResultCl...
mit
234289398882af99970474a4d288690c
30.229167
113
0.657105
4.370262
false
false
false
false