repo_name
stringlengths
6
91
ref
stringlengths
12
59
path
stringlengths
7
936
license
stringclasses
15 values
copies
stringlengths
1
3
content
stringlengths
61
711k
hash
stringlengths
32
32
line_mean
float64
4.88
60.8
line_max
int64
12
421
alpha_frac
float64
0.1
0.92
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
yunhan0/ChineseChess
refs/heads/master
ChineseChess/Model/Pieces/Rook.swift
mit
1
// // Rook.swift // ChineseChess // // Created by Yunhan Li on 5/15/17. // Copyright © 2017 Yunhan Li. All rights reserved. // import Foundation class Rook : Piece { private var obstacleNumber: Int = 0 override func nextPossibleMoves(boardStates: [[Piece?]]) -> [Vector2] { var ret: [Vector2] ...
bc6ace911c52ad1986026a702f667976
25.032258
83
0.434944
false
false
false
false
sclark01/Swift_VIPER_Demo
refs/heads/master
VIPER_Demo/VIPER_DemoTests/ModulesTests/PersonDetailsTests/PresenterTests/PersonDetailsPresenterTests.swift
mit
1
import Foundation import Quick import Nimble @testable import VIPER_Demo class PersonDetailsPresenterTests : QuickSpec { override func spec() { describe("person details presenter") { var presenter: PersonDetailsPresenter! var mockInteractor: PersonDetailsInteractorMock! ...
a05d0b5d33561a8eebccac1d5dc79e66
32.906977
119
0.603567
false
false
false
false
zisko/swift
refs/heads/master
test/SILGen/external_definitions.swift
apache-2.0
1
// RUN: %target-swift-frontend -sdk %S/Inputs %s -emit-silgen -enable-sil-ownership | %FileCheck %s // REQUIRES: objc_interop import ansible var a = NSAnse(Ansible(bellsOn: NSObject())) var anse = NSAnse hasNoPrototype() // CHECK-LABEL: sil @main // -- Foreign function is referenced with C calling conv and owners...
cac6090e683908a54952bab5d99e7e08
53.613636
167
0.671244
false
false
false
false
docopt/docopt.swift
refs/heads/master
Examples/Swift/naval_fate/main.swift
mit
1
// // calculator_example.swift // docopt // // Created by Pavel S. Mazurin on 3/9/15. // Copyright (c) 2015 kovpas. All rights reserved. // import Docopt let doc : String = """ Naval Fate. Usage: naval_fate ship new <name>... naval_fate ship <name> move <x> <y> [--speed=<kn>] naval_fate ship shoot <x> <y> ...
b500342dca622cfe0da068dc3922d5ac
24.121212
70
0.636912
false
false
false
false
Prosumma/CoreDataQueryInterface
refs/heads/master
Sources/CoreDataQueryInterface/QueryBuilder+Fetch.swift
mit
1
// // QueryBuilder+Fetch.swift // CoreDataQueryInterface // // Created by Gregory Higley on 2022-10-22. // import CoreData public extension QueryBuilder { var fetchRequest: NSFetchRequest<R> { let fetchRequest = NSFetchRequest<R>(entityName: M.entity().name!) fetchRequest.returnsDistinctResults = returns...
e812f7deb130496ed8a3a07e3d1d8074
30.336538
107
0.699908
false
false
false
false
sahandnayebaziz/Dana-Hills
refs/heads/master
Dana Hills/NewsTableViewCell.swift
mit
1
// // NewsTableViewCell.swift // Dana Hills // // Created by Sahand Nayebaziz on 10/2/16. // Copyright © 2016 Nayebaziz, Sahand. All rights reserved. // import UIKit class NewsTableViewCell: UITableViewCell { var titleLabel: UILabel? = nil var publishDateLabel: UILabel? = nil func set(forNewsArt...
ae31452a6b019222596523d819a976c2
27.849057
82
0.59843
false
false
false
false
hulab/ClusterKit
refs/heads/master
Examples/Example-swift/YandexMapViewController.swift
mit
1
// // YandexMapViewController.swift // Example-swift // // Created by petropavel on 24/01/2019. // Copyright © 2019 Hulab. All rights reserved. // import YandexMapKit import ClusterKit import ExampleData class YandexMapViewController: UIViewController, YMKMapViewDataSource, YMKMapLoadedListener, YMKMapCam...
3df53d71cbee55ec1adac796c452c92b
29.378882
107
0.629319
false
false
false
false
theMonster/KAHN
refs/heads/master
Kahn/KahnTests/KahnTests.swift
mit
1
// // KahnTests.swift // KahnTests // // Created by Caleb Jonassaint on 12/1/14. // Copyright (c) 2014 Caleb Jonassaint. All rights reserved. // import UIKit import XCTest import Kahn class HTTPBin : Endpoint { override init() { super.init() self.setBaseURL(NSURL(string: "https://httpbin.org")...
fd3b8225795dc4bba4e589a691528e9a
26.680556
111
0.610637
false
true
false
false
mdpianelli/ios-shopfinder
refs/heads/master
ShopFinder/ShopFinder/ShopFilterOptionsController.swift
mit
1
// // ShopFilterOptions.swift // ShopFinder // // Created by Marcos Pianelli on 17/07/15. // Copyright (c) 2015 Barkala Studios. All rights reserved. // import UIKit import Spring class ShopFilterOptionsController : UIViewController { @IBOutlet weak var modalView: SpringView! weak var delegate...
2c18137882312099b97524a2ef976391
24.294118
114
0.634496
false
false
false
false
mmrmmlrr/HandyText
refs/heads/master
HandyText/TextStyle.swift
mit
1
// // TextStyle.swift // HandyText // // Copyright © 2016 aleksey chernish. All rights reserved. // import UIKit //TODO: generate attributes on demand to avoid recalculations public class TextStyle { public enum BaselineOffset { case none case absolute(CGFloat) case relative(CGFlo...
3767cc8f5f489e474a4afd95efd4c135
34.635802
103
0.613199
false
false
false
false
Lohika-Mobile/css-demo-ios
refs/heads/master
CSSDemo/CommentsViewController.swift
mit
2
// // CommentsViewController.swift // CSSDemo // // Created by Vjacheslav Volodko on 18.07.15. // Copyright (c) 2015 Vjacheslav Volodko. All rights reserved. // import UIKit import InstagramKit class CommentsViewController: UITableViewController { // MARK: - Comment List var comments: [InstagramComm...
0922875b4248afd2bc0a538ea3c38c16
27
127
0.668737
false
false
false
false
kiwisip/BadgeControl
refs/heads/master
BadgeControl/BadgeView.swift
mit
1
// // BadgeView.swift // BadgeControl // // Created by Robin Krenecky on 19.08.17. // Copyright © 2017 Robin Krenecky. All rights reserved. // import UIKit open class BadgeView: UIView { // MARK: Internal properties internal var height: CGFloat { didSet { updateUI() } } internal var centerPoint: CGPoint {...
ac54e5aae731057ee973cc36113f903f
37.073529
137
0.634608
false
false
false
false
midoks/Swift-Learning
refs/heads/master
GitHubStar/GitHubStar/GitHubStar/Controllers/ad/GuideViewController.swift
apache-2.0
1
// // GuideViewController.swift // GitHubStar // // Created by midoks on 16/2/18. // Copyright © 2016年 midoks. All rights reserved. // import UIKit class GuideViewController: UIViewController { var collectionView: UICollectionView? let cellIdentifier = "GuideCell" var pageController = UIPageContr...
8cbb512c439b982524c712c2d9ea3466
32.582192
151
0.657149
false
false
false
false
gxfeng/iOS-
refs/heads/master
ShowCell.swift
apache-2.0
1
// // ShowCell.swift // ProjectSwift // // Created by ZJQ on 2016/12/23. // Copyright © 2016年 ZJQ. All rights reserved. // import UIKit class ShowCell: UITableViewCell { var dataArray = Array<RoomModel>() var title = UILabel() override init(style: UITableViewCellStyle, reuseIdenti...
9af9861a3c84ff8d2a87a7f8532cbc0f
30.091954
160
0.660998
false
false
false
false
Karumi/BothamUI
refs/heads/master
Example/Example/SeriesDetailPresenter.swift
apache-2.0
1
// // SerieDetailPresenter.swift // Example // // Created by Pedro Vicente Gomez on 21/12/15. // Copyright © 2015 GoKarumi S.L. All rights reserved. // import Foundation import BothamUI class SeriesDetailPresenter: BothamPresenter { private let seriesName: String private weak var ui: SeriesDetailUI? ...
029c38e7184103ad4114b3960877d8a7
54.366197
173
0.600865
false
false
false
false
aucl/YandexDiskKit
refs/heads/master
YandexDiskKit/YandexDiskKit/YDisk+ListFileResources.swift
bsd-2-clause
1
// // YDisk+ListFileResources.swift // // Copyright (c) 2015, Clemens Auer // 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 c...
fde3fd24fa62c16324cc9c8dc52506c3
50.114943
265
0.675961
false
false
false
false
ouch1985/IQuery
refs/heads/master
IQuery/views/FavoCell.swift
mit
1
// // FavoViewCellCollectionViewCell.swift // IQuery // // Created by ouchuanyu on 15/12/7. // Copyright © 2015年 ouchuanyu.com. All rights reserved. // import UIKit class FavoCell: FavoBaseCell { // 底部的标题 var titleLabel : UILabel? // logo图片 var logoImg : UIImageView? // 删除按钮 ...
cd9582863e39ba68c79a527ed44867c7
29.241379
102
0.629418
false
false
false
false
Bajocode/ExploringModerniOSArchitectures
refs/heads/master
Architectures/MVP/Presenter/MovieResultsPresenter.swift
mit
1
// // MovieResultsPresenter.swift // Architectures // // Created by Fabijan Bajo on 29/05/2017. // // import Foundation class MovieResultsPresenter: ResultsViewPresenter { // MARK: - Properties unowned private let view: ResultsView private var movies = [Movie]() var objectsCount: Int...
3a16a0191753c22790e7d00fefc4ee21
29.903226
166
0.646138
false
false
false
false
Sage-Bionetworks/MoleMapper
refs/heads/master
MoleMapper/Charts/Classes/Renderers/RadarChartRenderer.swift
bsd-3-clause
1
// // RadarChartRenderer.swift // Charts // // Created by Daniel Cohen Gindi on 4/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...
29a549e8e8fb6caa6f6f7f64049200cf
33.083893
273
0.551497
false
false
false
false
rcspring/RCSTextField
refs/heads/master
RCSTextField/TextField/RCSTextField.swift
mit
1
// // RCSTextField.swift // unitTextField // // Created by Ryan Spring on 4/5/17. // Copyright © 2017 Ryan Spring. All rights reserved. // import UIKit import SnapKit public enum RCSTextFieldValue { case measurment(Measurement<Unit>) case quantity(Double) case text(String) case nothing } public p...
6d6e70831d3ef82338819781f7368dea
27.733333
109
0.640113
false
false
false
false
JudoPay/JudoKitObjC
refs/heads/master
JudoKitObjCExampleAppUITests/JudoKitUIDedupTests.swift
mit
1
// // JudoKitUIDedupTests.swift // JudoKitSwiftExample // // Copyright (c) 2016 Alternative Payments Ltd // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, inclu...
6f19b5b3b0ec1555f1c2ac476faddda0
41.725275
182
0.681327
false
true
false
false
alblue/swift
refs/heads/master
test/SILGen/external_definitions.swift
apache-2.0
2
// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import ansible var a = NSAnse(Ansible(bellsOn: NSObject())) var anse = NSAnse hasNoPrototype() // CHECK-LABEL: sil @main // -- Foreign function is referenced with C calling conv and ownership semantics //...
0bb238a4ae671ef33055b710bb71f7d7
57.697674
167
0.665214
false
false
false
false
kunass2/BSSelectableView
refs/heads/master
SelectableView/Classes/SelectableView.swift
mit
2
// // SelectableView.swift // SelectableView // // Created by Bartłomiej Semańczyk on 06/22/2016. // Copyright (c) 2016 Bartłomiej Semańczyk. All rights reserved. // open class SelectableOption: NSObject { open var index: Int open var identifier: String open var title: String open var userInfo...
a0cc9d00e06c66f72f215661b2456ea8
35.060109
191
0.666465
false
false
false
false
Neft-io/neft
refs/heads/master
packages/neft-runtime-ios/Neft/Screen.swift
apache-2.0
1
import UIKit class Screen { var rect: CGRect class func register(){ App.getApp().client.onAction(.setScreenStatusBarColor) { (reader: Reader) in let val = reader.getString() if val == "Light" { UIApplication.shared.statusBarStyle = .lightContent ...
b4c8cda7967590ae6f0ff9ce9ac8a453
28.789474
104
0.603357
false
false
false
false
hirooka/chukasa-ios
refs/heads/master
chukasa-ios/src/model/database/ChukasaCoreDataOperator.swift
mit
1
import UIKit import CoreData @objc protocol ChukasaCoreDataOperatorDelegate { @objc optional func completeCreatingChukasaServerDestination() @objc optional func completeUpdatingChukasaServerDestination() @objc optional func completeCreatingChukasaPreferences() @objc optional func completeUpdatingChukas...
2406a453ef6efdb3846a503312880cef
42.379487
150
0.618513
false
false
false
false
vinivendra/jokr
refs/heads/master
jokr/Helpers/Shell.swift
apache-2.0
1
import Foundation enum Shell { struct CommandResult { let output: String let error: String let status: Int32 } @discardableResult static func runEnvCommand(_ command: String) -> CommandResult { let outputPipe = Pipe() let errorPipe = Pipe() let arguments = command.components(separatedBy: " ") let ta...
9a4b3cdc762e97a6cb834bb6c2f398ee
29.910256
72
0.699295
false
false
false
false
ben-ng/swift
refs/heads/master
validation-test/compiler_crashers_fixed/00258-swift-constraints-constraintsystem-resolveoverload.swift
apache-2.0
1
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
cc092bc64b4beb79ade56b2d19be7f26
22.694444
79
0.600234
false
false
false
false
nodes-ios/NStack
refs/heads/master
NStackSDK/NStackSDK/Classes/Logger/Logger.swift
mit
1
// // Logger.swift // NStackSDK // // Created by Dominik Hádl on 02/12/2016. // Copyright © 2016 Nodes ApS. All rights reserved. // import Foundation protocol LoggerType: class { var logLevel: LogLevel { get set } var customName: String? { get set } var detailedOutput: Bool { get set } func write...
2ba4d83738ed3ff3d432b0eb80ab777b
31.641026
115
0.569128
false
false
false
false
DrabWeb/Komikan
refs/heads/master
Komikan/Komikan/KMReaderViewController.swift
gpl-3.0
1
// // KMReaderViewController.swift // Komikan // // Created by Seth on 2015-12-31. // Copyright © 2015 DrabWeb. All rights reserved. // import Cocoa import Quartz // FIXME: comparison operators with optionals were removed from the Swift Standard Libary. // Consider refactoring the code to use the non-optional oper...
692fb8390d1b34b943de9281acc3beb3
45.708305
258
0.604438
false
false
false
false
apegroup/APEReactiveNetworking
refs/heads/master
Example/Project/Scenes/User/Controllers/UserDetailViewController.swift
mit
1
// // UserDetailViewController.swift // Example // // Created by Magnus Eriksson on 2016-10-31. // Copyright © 2016 Apegroup. All rights reserved. // import UIKit import ReactiveSwift import APEReactiveNetworking import enum Result.NoError import ReactiveObjC import ReactiveObjCBridge final class UserDetailViewCo...
222b68f0c87a133a64d2bd8a1c3d5c95
28.658228
93
0.628254
false
false
false
false
Michael-Lfx/SwiftArmyKnife
refs/heads/master
Extensions/Foundation+SwiftArmyKnife.swift
mit
1
import Foundation import AssetsLibrary // MARK: - Foundation extension NSDate { // MARK: Timestamp - 时间戳 /// **timestamp** 时间戳字符串,纯数字组成 class func dateFromTimestampString(timestamp: String) -> NSDate! { let time = timestamp.toInt()! let date = NSDate(timeIntervalSince1970: NSTime...
af4265eeaecd1de03b7514d96056a1d5
30.808824
110
0.624364
false
false
false
false
onevcat/Rainbow
refs/heads/master
Tests/RainbowTests/ConsoleStringTests.swift
mit
1
// // ConsoleStringTests.swift // Rainbow // // Created by Wei Wang on 15/12/23. // // Copyright (c) 2018 Wei Wang <onevcat@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Soft...
391642ab6617ccf822300c1abfcd1992
53.757576
185
0.673935
false
true
false
false
walkingsmarts/ReactiveCocoa
refs/heads/master
ReactiveCocoa/AppKit/NSControl.swift
mit
1
import ReactiveSwift import enum Result.NoError import AppKit extension NSControl: ActionMessageSending {} extension Reactive where Base: NSControl { /// Sets whether the control is enabled. public var isEnabled: BindingTarget<Bool> { return makeBindingTarget { $0.isEnabled = $1 } } /// Sets the value of the c...
82150bd89215adb85b9a3e00b489f190
29.989362
76
0.715414
false
false
false
false
3DprintFIT/octoprint-ios-client
refs/heads/dev
BarsAroundMe/Pods/Nimble/Sources/Nimble/Adapters/NMBExpectation.swift
apache-2.0
41
import Foundation #if _runtime(_ObjC) internal struct ObjCMatcherWrapper: Matcher { let matcher: NMBMatcher func matches(_ actualExpression: Expression<NSObject>, failureMessage: FailureMessage) -> Bool { return matcher.matches( ({ try! actualExpression.evaluate() }), failureM...
c8d1a88310abc713289e35ccbedced94
30.694656
117
0.607177
false
false
false
false
Djecksan/MobiTask
refs/heads/master
MobiTask/Helpers/Extensions/UILabel+Extension.swift
mit
1
// // UILabel+Extension.swift // MobiTask // // Created by Evgenyi Tyulenev on 01.08.15. // Copyright (c) 2015 VoltMobi. All rights reserved. // import UIKit extension UILabel { func setSpacing(spacing:CGFloat?) { self.addAttributes(spacing, nFont: nil, line: nil) } func setLineHeigh...
5816ec46c84b596a7545eb25da76ee20
29.625
166
0.654412
false
false
false
false
brorbw/Helium
refs/heads/master
Helium/Helium/HeliumPanelController.swift
mit
1
// // HeliumPanelController.swift // Helium // // Created by Jaden Geller on 4/9/15. // Copyright (c) 2015 Jaden Geller. All rights reserved. // import AppKit let optionKeyCode: UInt16 = 58 class HeliumPanelController : NSWindowController { fileprivate var webViewController: WebViewController { get ...
ff205bf5303c03a7ff87cd6c4038bec2
31.396285
186
0.610856
false
false
false
false
18775134221/SwiftBase
refs/heads/develop
02-observable-pg/challenge/Challenge1-Starter/Pods/RxSwift/RxSwift/Observables/Implementations/Do.swift
apache-2.0
57
// // Do.swift // RxSwift // // Created by Krunoslav Zaher on 2/21/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation class DoSink<O: ObserverType> : Sink<O>, ObserverType { typealias Element = O.E typealias Parent = Do<Element> private let _parent: Parent ...
cd533348300e9ce1affd5d40b91376da
28.666667
144
0.59069
false
false
false
false
anas10/Monumap
refs/heads/develop
Monumap/ViewControllers/NearbyViewController.swift
apache-2.0
1
// // NearbyViewController.swift // Monumap // // Created by Anas Ait Ali on 12/03/2017. // Copyright © 2017 Anas Ait Ali. All rights reserved. // import UIKit import RxSwift import RxCocoa import MapKit import CCHMapClusterController class NearbyViewController: UIViewController { @IBOutlet weak var collecti...
1e964d32f5b6e3ad6385c1115052a6ee
31.990099
151
0.655762
false
false
false
false
rnystrom/GitHawk
refs/heads/master
Pods/ContextMenu/ContextMenu/CGRect+DominantCorner.swift
mit
1
// // CGRect+DominantCorner.swift // ContextMenu // // Created by Ryan Nystrom on 5/28/18. // Copyright © 2018 Ryan Nystrom. All rights reserved. // import UIKit extension CGRect { func dominantCorner(in rect: CGRect) -> SourceViewCorner? { let corners: [SourceViewCorner] = [ SourceViewCo...
89542d1a28a57aa6095e903727a246db
25.787879
65
0.581448
false
false
false
false
bitboylabs/selluv-ios
refs/heads/master
Pods/SwifterSwift/Source/Extensions/Cocoa/NSAttributedStringExtensions.swift
mit
2
// // NSAttributedStringExtensions.swift // SSTests // // Created by Omar Albeik on 26/11/2016. // Copyright © 2016 Omar Albeik. All rights reserved. // #if os(macOS) import Cocoa #else import UIKit #endif // MARK: - Properties public extension NSAttributedString { #if os(iOS) /// SwifterSwift: Bolded stri...
2ec7cd3661f69e4a556cd7a704e68df2
28.586957
129
0.747612
false
false
false
false
khoogheem/GenesisKit
refs/heads/master
Shared/Internal/Reachability+Internal.swift
mit
1
// // Reachability+Internal.swift // GenesisKit // // Created by Kevin A. Hoogheem on 10/26/14. // Copyright (c) 2014 Kevin A. Hoogheem. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), ...
df218091b1c59eea9035ce6d5f4e4ff9
35.476038
160
0.760161
false
false
false
false
KrishMunot/swift
refs/heads/master
test/SourceKit/DocSupport/Inputs/main.swift
apache-2.0
3
var globV: Int class CC0 { var x: Int = 0 } class CC { var instV: CC0 func meth() {} func instanceFunc0(_ a: Int, b: Float) -> Int { return 0 } func instanceFunc1(a x: Int, b y: Float) -> Int { return 0 } class func smeth() {} init() { instV = CC0() } } func +(a : CC, b: CC0) -> CC { ...
4aec2ff4eb1efa68b51dc082dd5f9d2f
11.851613
56
0.537149
false
false
false
false
russelhampton05/MenMew
refs/heads/master
App Prototypes/Menu_Server_App_Prototype_001/Menu_Server_App_Prototype_001/RTableCell.swift
mit
1
// // RTableCell.swift // Menu_Server_App_Prototype_001 // // Created by Jon Calanio on 10/3/16. // Copyright © 2016 Jon Calanio. All rights reserved. // import UIKit class RTableCell: UITableViewCell { //IBOutlets @IBOutlet weak var tableLabel: UILabel! @IBOutlet weak var ticketLabel: UILabel! ...
b2a4adedc3c1b9f27cdad1dfd465ef0a
25.422222
65
0.631623
false
false
false
false
d4rkl0rd3r3b05/Data_Structure_And_Algorithm
refs/heads/master
LeetCode_AddTwoLinkedList.swift
mit
1
import Foundation public class ListNode<T> : NSObject{ var nodeValue : T var next : ListNode? init(value : T) { self.nodeValue = value } override public var description: String { get{ return "\(self.nodeValue)->" + (self.next != nil ? self.next!.description : ...
e98ce859b113bceff4b646ed1eb58094
32.666667
110
0.50884
false
false
false
false
RaviiOS/Swift_ReusableCode
refs/heads/master
RKSwift3Plus/RKSwift3Plus/Extensions/UIDevice.swift
mit
1
import Foundation import UIKit /** These extensions have the intention to return if the current device has certain size or not. */ public extension UIDevice { func maxScreenLength() -> CGFloat { let bounds = UIScreen.main.bounds return max(bounds.width, bounds.height) } func iPhone4() -...
317ffc96db77131efcb6a03ea718db89
32.768421
187
0.663965
false
false
false
false
mchandrra/Pitch-Perfect-iOS-Swift
refs/heads/master
Pitch Perfect/RecordSoundsViewController.swift
apache-2.0
1
// // RecordSoundsViewController.swift // Pitch Perfect // // Created by Sri Chandra Mallipeddi on 2/16/16. // Copyright © 2016 Sri Chandra Mallipeddi. All rights reserved. // import UIKit import AVFoundation class RecordSoundsViewController: UIViewController, AVAudioRecorderDelegate { @IBOutlet weak var rec...
30b85f141d959212a7e2d19707457840
34.073684
116
0.666567
false
false
false
false
byu-oit-appdev/ios-byuSuite
refs/heads/dev
byuSuite/Apps/YTime/controller/YTimePunchesViewController.swift
apache-2.0
1
// // YTimePunchesViewController.swift // byuSuite // // Created by Eric Romrell on 5/18/17. // Copyright © 2017 Brigham Young University. All rights reserved. // private let DATE_FORMAT = DateFormatter.defaultDateFormat("h:mm a") private let DELETE_DATE_FORMAT = DateFormatter.defaultDateFormat("yyyy-MM-dd") priva...
596628f18be7c5df2143c9a5ce1a8e79
39.142012
240
0.700472
false
false
false
false
XeresRazor/SMeaGOL
refs/heads/master
SmeagolMath/SmeagolMath/Geometry/Matrix4.swift
mit
1
// // Matrix4.swift // Smeagol // // Created by Green2, David on 10/5/14. // Copyright (c) 2014 Digital Worlds. All rights reserved. // import Foundation // // MARK: - Definition and initializes - // public struct Matrix4 { let m00: Float, m01: Float, m02: Float, m03: Float let m10: Float, m11: Float, m12: Fl...
7bad75bd0f4e682583e98629db1c0ef2
28.278027
238
0.610201
false
false
false
false
manGoweb/SpecTools
refs/heads/master
Example/SpecTools/LabeledView.swift
mit
1
import SnapKit import UIKit class LabeledView: UIView { let label: UILabel = Subviews.label init() { super.init(frame: .zero) addSubviews() setUpLayout() } // MARK: - Subviews private func addSubviews() { addSubview(label) } // MARK: - Layout priva...
7784516bc25738443c38bf35e51dbe25
18.56
71
0.57362
false
false
false
false
httpswift/swifter
refs/heads/stable
Xcode/Sources/String+SHA1.swift
bsd-3-clause
1
// // String+SHA1.swift // Swifter // // Copyright 2014-2016 Damian Kołakowski. All rights reserved. // import Foundation // swiftlint:disable identifier_name function_body_length public struct SHA1 { public static func hash(_ input: [UInt8]) -> [UInt8] { // Alghorithm from: https://en.wikipedia.org/...
1023b17450d3c7321cb1b47135f8df96
31.131387
135
0.510677
false
false
false
false
blockchain/My-Wallet-V3-iOS
refs/heads/master
Modules/BlockchainComponentLibrary/Sources/Examples/2 - Primitives/PrimarySegmentedControlExamples.swift
lgpl-3.0
1
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import BlockchainComponentLibrary import SwiftUI struct PrimarySegmentedControlExamples: View { @State var firstSelection: AnyHashable = "live" @State var secondSelection: AnyHashable = "1m" @State var thirdSelection: AnyHashable = "first" ...
ce864b89474873913319d93250d91a34
41.583333
117
0.573945
false
false
false
false
SamirTalwar/advent-of-code
refs/heads/main
2018/AOC_18_2.swift
mit
1
let iterations = 1_000_000_000 enum Acre: CustomStringConvertible { case openGround case trees case lumberyard var description: String { switch self { case .openGround: return "." case .trees: return "|" case .lumberyard: return "#" ...
5713c97e64fe4839825dd9424e85b09a
26.016529
117
0.507801
false
false
false
false
GENG-GitHub/weibo-gd
refs/heads/master
GDWeibo/Class/Module/Home/View/GDStatusForwardCell.swift
apache-2.0
1
// // GDStatusForwardCell.swift // GDWeibo // // Created by geng on 15/11/4. // Copyright © 2015年 geng. All rights reserved. // import UIKit class GDStatusForwardCell: GDStatusCell { //MARK: - 重写父类的属性 override var status:GDStatus? { didSet{ //设置转发的文字 let ...
1c5e224373311619cfe9ba8aa72754a3
28.481928
271
0.60237
false
false
false
false
benlangmuir/swift
refs/heads/master
test/Interop/SwiftToCxx/initializers/init-in-cxx.swift
apache-2.0
2
// RUN: %empty-directory(%t) // RUN: %target-swift-frontend %s -typecheck -module-name Init -clang-header-expose-public-decls -emit-clang-header-path %t/inits.h // RUN: %FileCheck %s < %t/inits.h // RUN: %check-interop-cxx-header-in-clang(%t/inits.h -Wno-unused-function) // CHECK: SWIFT_EXTERN struct swift_inte...
8cc8eb3e6d09acc3655dba9b6da6e5c6
40.015267
229
0.687326
false
false
false
false
Onetaway/iOS8-day-by-day
refs/heads/master
18-split-view-controller/NinjaWeapons/NinjaWeapons/Weapon.swift
apache-2.0
3
// // Copyright 2014 Scott Logic // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
3bc25e0e1c5ccb0be7dfc5010bada25d
26.532258
80
0.705917
false
false
false
false
SoySauceLab/CollectionKit
refs/heads/master
CollectionKitTests/ComposedHeaderProviderSpec.swift
mit
1
// // ComposedHeaderProviderSpec.swift // CollectionKitTests // // Created by Luke Zhao on 2018-10-17. // Copyright © 2018 lkzhao. All rights reserved. // @testable import CollectionKit import Quick import Nimble class ComposedHeaderProviderSpec: QuickSpec { override func spec() { describe("ComposedHeader...
d8a4ece87b17c19a2ccbbccfa2ea5dcf
42.162698
134
0.603567
false
true
false
false
huangboju/Moots
refs/heads/master
Examples/Lumia/Lumia/Component/Transitions/PhotoTransitioning/AssetViewController.swift
mit
1
/* Copyright (C) 2016 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: The AssetViewController is a basic view controller created to display a grid of photos or a one-up presentation of a single photo. */ import UIKit import Photos private let reus...
d7490f79705a52953f5dc14e63369b33
38.302326
179
0.649112
false
false
false
false
srochiramani/Movies
refs/heads/master
Movies/Movies/MoviesTableViewController.swift
apache-2.0
1
// // MoviesTableViewController.swift // Movies // // Created by Sunny Rochiramani on 5/5/15. // Copyright (c) 2015 Codepath. All rights reserved. // import UIKit class MoviesTableViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { let instructorKey = "dagqdghwaq3e3mxyrp7kmmj5"...
ae87a0e865d94480891601748070d8bf
34.862319
160
0.631643
false
false
false
false
shahabc/ProjectNexus
refs/heads/master
Mobile Buy SDK Sample Apps/Advanced App - ObjC/Pods/CKWaveCollectionViewTransition/Classes/Extensions/UICollectionViewExtension.swift
mit
1
// // UICollectionViewExtension.swift // CKWaveCollectionViewTransition // // Created by Salvation on 7/21/15. // Copyright (c) 2015 CezaryKopacz. All rights reserved. // import UIKit extension UICollectionView { func numberOfVisibleRowsAndColumn() -> (rows: Int, columns: Int) { var rows...
f8b3664c8864db51659ab97a3fd945de
23.763158
79
0.512221
false
false
false
false
CoderYLiu/30DaysOfSwift
refs/heads/master
Project 02 - CustomFont/CustomFont/ViewController.swift
mit
1
// // ViewController.swift // CustomFont <https://github.com/DeveloperLY/30DaysOfSwift> // // Created by Liu Y on 16/4/8. // Copyright © 2016年 DeveloperLY. All rights reserved. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. //...
6d8bc0b6ce0abc7d24cda2c4fa4402cd
30.279412
148
0.647861
false
false
false
false
tkester/swift-algorithm-club
refs/heads/master
Depth-First Search/DepthFirstSearch.playground/Sources/Graph.swift
mit
1
public class Graph: CustomStringConvertible, Equatable { public private(set) var nodes: [Node] public init() { self.nodes = [] } public func addNode(_ label: String) -> Node { let node = Node(label) nodes.append(node) return node } public func addEdge(_ source: Node, neighbor: Node)...
d8c29bd948d453e5103dd4f199e661bb
22.745455
96
0.616386
false
false
false
false
blockchain/My-Wallet-V3-iOS
refs/heads/master
Modules/Platform/Sources/PlatformUIKit/Foundation/Extensions/UITabBarItem+Conveniences.swift
lgpl-3.0
1
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import Foundation public struct TabItemContent { let title: String let image: String let selectedImage: String let accessibility: Accessibility public init( title: String, image: String, selectedImage: String, ...
8378206830ef1de4e5e58202b90a40d8
24.575758
64
0.645735
false
false
false
false
tattn/SPAJAM2017-Final
refs/heads/master
SPAJAM2017Final/Utility/Extension/UIColor+.swift
mit
1
// // UIColor+.swift // HackathonStarter // // Created by 田中 達也 on 2016/06/30. // Copyright © 2016年 tattn. All rights reserved. // import UIKit extension UIColor { convenience init(hex: Int, alpha: CGFloat = 1.0) { let r = CGFloat((hex & 0xFF0000) >> 16) / 255.0 let g = CGFloat((hex & 0x00FF00...
7324826b60d9c6e18a5bfef02b5788f6
27.971429
121
0.593688
false
false
false
false
Flinesoft/BartyCrouch
refs/heads/main
Demo/Untouched/Demo/BartyCrouch.swift
mit
1
// // This file is required in order for the `transform` task of the translation helper tool BartyCrouch to work. // See here for more details: https://github.com/Flinesoft/BartyCrouch // import Foundation enum BartyCrouch { enum SupportedLanguage: String { // TODO: remove unsupported languages from the...
d5a14bf9489e8098794bb90b42fc2ade
34.487805
131
0.62268
false
false
false
false
wangwugang1314/weiBoSwift
refs/heads/master
weiBoSwift/weiBoSwift/Classes/Main/Controller/YBTabBarController.swift
apache-2.0
1
// // YBTabBarController.swift // weiBoSwift // // Created by MAC on 15/11/25. // Copyright © 2015年 MAC. All rights reserved. // import UIKit class YBTabBarController: UITabBarController { //MARK: - 属性animated //MARK: - ViewDidLoad override func viewDidLoad() { super.viewDidLoad() ...
34902edc26fd895546464c2127e7cad7
32.75
136
0.628956
false
false
false
false
alexth/VIPER-test
refs/heads/master
ViperTest/ViperTest/Flows/Master/MasterInteractor.swift
mit
1
// // MasterInteractor.swift // ViperTest // // Created by Alex Golub on 10/29/16. // Copyright (c) 2016 Alex Golub. All rights reserved. // import UIKit import CoreData protocol MasterInteractorInput: MasterViewControllerOutput { } protocol MasterInteractorOutput { } final class MasterInteractor: MasterInterac...
4ad8b696f2b0f6656151d1574ca686f7
23.352941
96
0.719002
false
false
false
false
IngmarStein/swift
refs/heads/master
test/Interpreter/algorithms.swift
apache-2.0
32
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test func fib() { var (a, b) = (0, 1) while b < 10 { print(b) (a, b) = (b, a+b) } } fib() // CHECK: 1 // CHECK: 1 // CHECK: 2 // CHECK: 3 // CHECK: 5 // CHECK: 8 // From: <rdar://problem/17796401> // FIXME: <rdar://problem/2199369...
e946bcb9f5cf025e53ae0aa26e53c905
22.133333
132
0.615754
false
false
false
false
anhnc55/fantastic-swift-library
refs/heads/master
Example/Pods/Material/Sources/iOS/MaterialAnimation.swift
mit
2
/* * 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 the above...
79a30210fbb8ba49a36d059e7ff39970
32.057143
148
0.766638
false
false
false
false
crazypoo/PTools
refs/heads/main
Pods/Instructions/Sources/Instructions/Views/CoachMarkView.swift
mit
2
// Copyright (c) 2015-present Frédéric Maquin <fred@ephread.com> and contributors. // Licensed under the terms of the MIT License. import UIKit // swiftlint:disable force_cast /// The actual coach mark that will be displayed. class CoachMarkView: UIView { // MARK: - Internal properties /// The body of the c...
71b7dbd4e4488731c6acc4823f816188
37.716312
97
0.682909
false
false
false
false
the-blue-alliance/the-blue-alliance-ios
refs/heads/master
the-blue-alliance-ios/View Controllers/Teams/TeamsContainerViewController.swift
mit
1
import CoreData import Firebase import MyTBAKit import Photos import TBAData import TBAKit import UIKit class TeamsContainerViewController: ContainerViewController { private(set) var myTBA: MyTBA private(set) var pasteboard: UIPasteboard? private(set) var photoLibrary: PHPhotoLibrary? private(set) var...
be314e712c2b720da49d3ff639d367b0
30.40678
204
0.728009
false
false
false
false
Dormmate/DORMLibrary
refs/heads/master
Example/DORM/TabbarItem_Example2.swift
mit
1
// // TabbarItem_Example2.swift // DORM // // Created by Dormmate on 2017. 5. 4.. // Copyright © 2017 Dormmate. All rights reserved. // import UIKit // 탭바를 사용한다면 탭바 아이템으로 사용하는 뷰이다. // If you use tabbar, it is view for tabbar item class TabbarItem_Example2: UIViewController { public var id : Int? let...
3036a812bfdeffa14ec43c698456d36e
24.510638
71
0.613845
false
false
false
false
SimonGetTrick/RWPickFlavor
refs/heads/master
RWPickFlavor/PickFlavorViewController.swift
mit
1
// // ViewController.swift // IceCreamShop // // Created by Joshua Greene on 2/8/15. // Copyright (c) 2015 Razeware, LLC. All rights reserved. // import UIKit import Alamofire import MBProgressHUD public class PickFlavorViewController: UIViewController, UICollectionViewDelegate { // MARK: Instance Variables ...
a90a8c4824dda898ddaf0290ff0ddbb5
23.8
113
0.638633
false
false
false
false
DanielAsher/VIPER-SWIFT
refs/heads/master
Carthage/Checkouts/RxSwift/scripts/validate-headers.swift
apache-2.0
7
#!/usr/bin/swift // // validate-headers.swift // scripts // // Created by Krunoslav Zaher on 12/26/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation /** Validates that all headers are in this standard form // // {file}.swift // Project // // Created by {Author} on 2/14/15. //...
311837c85cdde538924301aca42974a9
28
131
0.612437
false
false
false
false
cc001/learnSwiftBySmallProjects
refs/heads/master
10-SpotifyVideoBackground/SpotifyVideoBackground/ViewController.swift
mit
1
// // ViewController.swift // SpotifyVideoBackground // // Created by 陈闯 on 2016/12/20. // Copyright © 2016年 CC. All rights reserved. // import UIKit class ViewController: VideoSplashViewController { override var preferredStatusBarStyle: UIStatusBarStyle{ return .lightContent } over...
7750d1cbff4a21608df98ddc37dc2866
23.142857
106
0.629438
false
false
false
false
Sephiroth87/C-swifty4
refs/heads/master
C64/Files/SaveState.swift
mit
1
// // SaveState.swift // C64 // // Created by Fabio Ritrovato on 07/06/2016. // Copyright © 2016 orange in a day. All rights reserved. // public final class SaveState { private(set) public var data: [UInt8] private(set) internal var cpuState: CPUState private(set) internal var memoryState: C64Memo...
4de59417459b0a6e86f91ceb794ba960
28.289474
97
0.627134
false
false
false
false
VincenzoFreeman/CATransition
refs/heads/master
CATransition/Classes/PhotoBrowser/PhotosBrowserViewController.swift
mit
1
// // PhotosBrowserViewController.swift // CATransition // // Created by wenzhiji on 16/4/28. // Copyright © 2016年 Manager. All rights reserved. // import UIKit class PhotosBrowserViewController: UIViewController { private let photosCell = "photosCell" var indexPath : NSIndexPath? var shops : [ShopIte...
8b25e3e9cacf86f2bbc7f1e2074069d6
38.25
130
0.705559
false
false
false
false
NottingHack/instrumentation-lighting
refs/heads/main
Sources/nh-lighting/MySQL/MySQLService.swift
mit
1
// // MySQLService.swift // instrumentation-lighting // // Created by Matt Lloyd on 21/09/2017. // // import PerfectLib import MariaDB import Foundation //MARK: - class MySQLService { private let host: String private let user: String private let password: String private let database: String let client ...
e1434eb9c69fe6cd1a73583b272835cd
25.408072
152
0.597385
false
false
false
false
Alexiuce/Tip-for-day
refs/heads/master
Example/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotate.swift
apache-2.0
9
// // NVActivityIndicatorBallClipRotate.swift // NVActivityIndicatorView // // The MIT License (MIT) // Copyright (c) 2016 Vinh Nguyen // 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 w...
175b9de247c8608db21f17d4f05dcf19
39.955224
137
0.701166
false
false
false
false
paulstringer/TicTacToe
refs/heads/master
TicTacToe/TicTacToeBoard.swift
mit
1
import Foundation public enum BoardPosition: Int { case topLeft = 0 case topMiddle = 1 case topRight = 2 case middleLeft = 3 case middle = 4 case middleRight = 5 case bottomLeft = 6 case bottomMiddle = 7 case bottomRight = 8 } enum BoardMarker { case none case nought ca...
0353393784ff278c734d8ae614c1fe78
21.089744
116
0.612885
false
false
false
false
cdmx/MiniMancera
refs/heads/master
miniMancera/Model/Main/Abstract/MPerkFactory.swift
mit
1
import Foundation class MPerkFactory { class func factoryPerks() -> [MPerkProtocol] { let perkReformaCrossing:MPerkReformaCrossing = MPerkReformaCrossing() let perkPollutedGarden:MPerkPollutedGarden = MPerkPollutedGarden() let perkWhistlesVsZombies:MPerkWhistlesVsZombies = MPerkWhistles...
1177baebfd93f7bb9287f03cfc71a76c
29.904762
85
0.670262
false
false
false
false
JGiola/swift
refs/heads/main
test/AutoDiff/Sema/differentiable_attr_type_checking.swift
apache-2.0
7
// RUN: %target-swift-frontend-typecheck -verify -disable-availability-checking %s // RUN: %target-swift-frontend-typecheck -enable-testing -verify -disable-availability-checking %s import _Differentiation // Dummy `Differentiable`-conforming type. public struct DummyTangentVector: Differentiable & AdditiveArithmetic...
e2683882ebfa8b6c4a89f8fc8e18fbbd
33.976
235
0.701357
false
false
false
false
HarukaMa/iina
refs/heads/master
iina/MainWindowMenuActions.swift
gpl-3.0
1
// // MainWindowMenuActions.swift // iina // // Created by lhc on 25/12/2016. // Copyright © 2016 lhc. All rights reserved. // import Cocoa // MARK: - Menu Actions extension MainWindowController { @IBAction func menuTogglePause(_ sender: NSMenuItem) { playerCore.togglePause(!playerCore.info.isPaused) } ...
b60f6e6fcdd3410abc74ae28a0d9a487
31.104265
132
0.662755
false
false
false
false
robert-hatfield/PicFeed
refs/heads/master
PicFeed/PicFeed/GalleryViewController.swift
mit
1
// // GalleryViewController.swift // PicFeed // // Created by Robert Hatfield on 3/29/17. // Copyright © 2017 Robert Hatfield. All rights reserved. // import UIKit class GalleryViewController: UIViewController { @IBOutlet weak var collectionView: UICollectionView! var allPosts = [Post]() { d...
e88c4c0e9b25f4fded0eb63d20d2cb6b
24.45
130
0.642436
false
false
false
false
4oby/TableTop-Ambience
refs/heads/master
TableTop Ambience/SoundPadItem.swift
gpl-3.0
1
// // SoundPadItem.swift // TableTop Ambience // // Created by Victor Cebanu on 8/23/16. // Copyright © 2016 Victor Cebanu. All rights reserved. // import Foundation private enum EncodeDictionaryAttributes: String { case fileAddress = "fileAddress" case icon = "icon" case name = "name" ...
09610232868622677ef97d043021bd3c
33.345238
106
0.630849
false
false
false
false
SwiftKitz/Appz
refs/heads/master
Appz/AppzTests/AppsTests/Camera360Tests.swift
mit
1
// // Camera360Tests.swift // Appz // // Created by Mariam AlJamea on 1/27/16. // Copyright © 2016 kitz. All rights reserved. // import XCTest @testable import Appz class Camera360Tests: XCTestCase { let appCaller = ApplicationCallerMock() func testConfiguration() { let camera36...
0ec800e7d7afdc7db6aad6c2770bd4a1
25.322581
120
0.656863
false
true
false
false
sunnychan626/project-window
refs/heads/master
Pods/SwiftState/Sources/StateMachine.swift
apache-2.0
1
// // StateMachine.swift // SwiftState // // Created by Yasuhiro Inami on 2015-12-05. // Copyright © 2015 Yasuhiro Inami. All rights reserved. // /// /// State-machine which can `tryState()` (state-driven) as well as `tryEvent()` (event-driven). /// /// - Note: /// Use `NoEvent` type to ignore event-handlings when...
d84432065113e11af3743f81925a9084
33.353704
155
0.579376
false
false
false
false
zilaiyedaren/MLSwiftBasic
refs/heads/master
MLSwiftBasic/Classes/PhotoBrowser/MLPhotoBrowserPhotoScrollView.swift
mit
1
// // MLPhotoBrowserPhotoScrollView.swift // MLSwiftBasic // // Created by 张磊 on 15/8/31. // Copyright (c) 2015年 MakeZL. All rights reserved. // import UIKit import Kingfisher @objc protocol MLPhotoBrowserPhotoScrollViewDelegate: NSObjectProtocol{ func photoBrowserPhotoScrollViewDidSingleClick() } class MLPh...
58e4aac89e6ffa800d8db0ae59843602
35.087774
170
0.640375
false
false
false
false
Esri/arcgis-runtime-samples-ios
refs/heads/main
arcgis-ios-sdk-samples/Layers/Display KML network links/DisplayKMLNetworkLinksViewController.swift
apache-2.0
1
// Copyright 2018 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing,...
0280a8141439b82db57b9462ff395762
41.688172
142
0.682116
false
false
false
false
overtake/TelegramSwift
refs/heads/master
Telegram-Mac/VideoAvatarModalController.swift
gpl-2.0
1
// // VideoAvatarModalController.swift // Telegram // // Created by Mikhail Filimonov on 11/06/2020. // Copyright © 2020 Telegram. All rights reserved. // import Cocoa import TGUIKit import TelegramCore import Postbox import AVKit import SwiftSignalKit private var magicNumber: CGFloat { return 8 / 370 } pr...
aea57f7c143291b573cbe30bf0d80080
38.754305
233
0.619072
false
false
false
false
nlsteers/learning-ios
refs/heads/master
Cat Age/Cat Age/ViewController.swift
mit
1
// // ViewController.swift // Cat Age // // Created by Nathaniel Steers on 13/10/2015. // Copyright © 2015 nlsteers. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var catAge: UILabel! @IBOutlet weak var textField1: UITextField! @IBOutlet weak var label1:...
c13877d48dfb2e26cd0702603e9351d8
20.232558
51
0.601314
false
false
false
false
zeroc-ice/ice-demos
refs/heads/3.7
swift/Chat/views/MessageView.swift
gpl-2.0
1
// // Copyright (c) ZeroC, Inc. All rights reserved. // import InputBarAccessoryView import MessageKit import PromiseKit import SwiftUI final class MessageSwiftUIVC: MessagesViewController { // MARK: - Public properties var client: Client! // MARK: - Overriding UIViewController methods override fun...
23be5132ac84be7e308f8d69661cc08b
41.917241
120
0.62028
false
false
false
false
rudkx/swift
refs/heads/main
test/Constraints/result_builder_pairwise_build_block.swift
apache-2.0
1
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-pairwise-build-block) | %FileCheck %s // REQUIRES: executable_test // TODO: This test is for the old method name `buildBlock(combining:into:)`. Delete this file once // clients have moved to `buildPartialBlock`. struct Values<T> { var values: T ini...
653139d1e5463337d7597553c5d51919
19.5
120
0.600092
false
false
false
false
itsaboutcode/WordPress-iOS
refs/heads/develop
WordPress/Classes/Services/LikeUserHelpers.swift
gpl-2.0
1
import Foundation /// Helper class for creating LikeUser objects. /// Used by PostService and CommentService when fetching likes for posts/comments. /// @objc class LikeUserHelper: NSObject { @objc class func createOrUpdateFrom(remoteUser: RemoteLikeUser, context: NSManagedObjectContext) -> LikeUser { let...
37e7ccd78cc48ac3c69daf2de5345050
43.619048
179
0.673426
false
false
false
false
anicolaspp/rate-my-meetings-ios
refs/heads/master
RateMyMeetings/NewTeamViewController.swift
mit
1
// // NewTeamViewController.swift // RateMyMeetings // // Created by Nicolas Perez on 11/23/15. // Copyright © 2015 Nicolas Perez. All rights reserved. // import UIKit class NewTeamViewController: UIViewController { let teamRepository: ICompanyRepository? = nil var user: User? @IBOutlet wea...
1d2f312c4f599041b2d62a6dc9cfa076
27.555556
132
0.640078
false
false
false
false
AfricanSwift/TUIKit
refs/heads/master
TUIKit/Source/Ansi/Ansi+Window.swift
mit
1
// // File: Ansi+Window.swift // Created by: African Swift import Darwin // MARK: - // MARK: Window manipulation (from dtterm, as well as extensions) - public extension Ansi { /// Window manipulation (from dtterm, as well as extensions). public enum Window { /// Move window to x,y /// ...
c0c491ee1415ee80c3e6a848be2340a2
26.307985
91
0.559176
false
false
false
false
FotiosTragopoulos/Core-Geometry
refs/heads/master
Core Geometry/Tri1ViewLine.swift
apache-2.0
1
// // Tri1ViewLine.swift // Core Geometry // // Created by Fotios Tragopoulos on 14/01/2017. // Copyright © 2017 Fotios Tragopoulos. All rights reserved. // import UIKit class Tri1ViewLine: UIView { override func draw(_ rect: CGRect) { let context = UIGraphicsGetCurrentContext() ...
1220376de4113dd37260d5cd2738e0ba
37.133333
219
0.634033
false
false
false
false
CaseyApps/HackingWithSwift
refs/heads/master
project36/Project36/GameScene.swift
unlicense
24
// // GameScene.swift // Project36 // // Created by Hudzilla on 19/09/2015. // Copyright (c) 2015 Paul Hudson. All rights reserved. // import GameplayKit import SpriteKit enum GameState { case ShowingLogo case Playing case Dead } class GameScene: SKScene, SKPhysicsContactDelegate { var player: SKSpriteNode! ...
eaa5638260ad5246a28946f5302ba05f
29.358621
166
0.728842
false
false
false
false
SuEric/SVU_iOS
refs/heads/master
SVU/AlumnoViewController.swift
gpl-3.0
1
// // ViewController.swift // SVU // // Created by Eric García on 12/10/15. // Copyright © 2015 Eric García. All rights reserved. // import UIKit class AlumnoViewController: UIViewController { @IBOutlet weak var matricula: UITextField! @IBOutlet weak var password: UITextField! var firstLaunch : ...
f238fd56ae0c700d4e5c4caddfec19cd
36.302632
159
0.64515
false
false
false
false
apple/swift-nio
refs/heads/main
Sources/NIOCore/BSDSocketAPI.swift
apache-2.0
1
//===----------------------------------------------------------------------===// // // 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...
79a7e842c694cefc9c4d1c74bdfa64ab
33.325926
228
0.696806
false
false
false
false
ChrisXu1221/accountTest
refs/heads/master
Demo/Demo/AccountCellViewModel.swift
mit
1
// // AccountCellViewModel.swift // Demo // // Created by Chris Xu on 09/08/2016. // Copyright © 2016 CXCreation. All rights reserved. // import UIKit class AccountCellViewModel: ViewModeling { private(set) var account: Account! var didViewExpand: Bool = false init(account: Account) { ...
04d972a02f425836ec3813688f684f15
37.25
128
0.671935
false
false
false
false