repo_name
stringlengths
6
91
path
stringlengths
6
999
copies
stringclasses
283 values
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
hooman/swift
test/decl/protocol/special/coding/enum_codable_invalid_codingkeys.swift
3
2032
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown // Enums with a CodingKeys entity which is not a type should not derive // conformance. enum InvalidCodingKeys1 : Codable { // expected-error {{type 'InvalidCodingKeys1' does not conform to protocol 'Decodable'}} // expected-error@-1 {{type 'InvalidCodingKe...
apache-2.0
lorentey/swift
test/SILGen/vtables_multifile.swift
4
22343
// RUN: %target-swift-emit-silgen %s | %FileCheck %s // RUN: %target-swift-emit-silgen %s -primary-file %S/Inputs/vtables_multifile_2.swift | %FileCheck %S/Inputs/vtables_multifile_2.swift // RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module %s -enable-library-evolution -emit-module-path %t/vtables...
apache-2.0
vector-im/vector-ios
Riot/Modules/Application/ScreenNavigation/ScreenPresentationParameters.swift
1
2457
// // Copyright 2021 New Vector Ltd // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
apache-2.0
hanjoes/BitSet
Tests/LinuxMain.swift
1
93
import XCTest @testable import BitSetTests XCTMain([ testCase(BitSetTests.allTests), ])
mit
BlakeBarrett/wndw
wtrmrkr/VideoPreviewPlayerViewController.swift
1
804
// // VideoPreviewPlayerViewController.swift // wndw // // Created by Blake Barrett on 6/9/16. // Copyright © 2016 Blake Barrett. All rights reserved. // import Foundation import AVFoundation import AVKit class VideoPreviewPlayerViewController: UIViewController { var url :NSURL? var player :AVPlayer?...
mit
aquarchitect/MyKit
Sources/iOS/Frameworks/CollectionLayout/Parapoloid/ParaboloidFlowLayout.swift
1
1424
// // ParaboloidFlowLayout.swift // MyKit // // Created by Hai Nguyen. // Copyright (c) 2015 Hai Nguyen. // import UIKit open class ParaboloidFlowLayout: SnappingFlowLayout { // MARK: Property open var paraboloidControler: ParaboloidLayoutController? open override class var layoutAttributesClass: An...
mit
the-blue-alliance/the-blue-alliance-ios
Frameworks/MyTBAKit/Sources/Models/MyTBASubscription.swift
1
2912
import Foundation // https://github.com/the-blue-alliance/the-blue-alliance/blob/364d6da2f3fc464deef5ba580ea37b6cd2816c4a/consts/notification_type.py public enum NotificationType: String, Codable { case upcomingMatch = "upcoming_match" case matchScore = "match_score" case levelStarting = "starting_comp_lev...
mit
witekbobrowski/Stanford-CS193p-Winter-2017
Smashtag/Smashtag/TwitterUser.swift
1
1039
// // TwitterUser.swift // Smashtag // // Created by Witek on 14/07/2017. // Copyright © 2017 Witek Bobrowski. All rights reserved. // import UIKit import CoreData import Twitter class TwitterUser: NSManagedObject { class func findOrCreateTwitterUser(matching twitterInfo: Twitter.User, in context: NSManagedO...
mit
quran/quran-ios
Sources/Utilities/Extensions/Sequence+Extension.swift
1
1427
// // Sequence+Extension.swift // Quran // // Created by Mohamed Afifi on 2/19/17. // // Quran for iOS is a Quran reading application for iOS. // Copyright (C) 2017 Quran.com // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as pub...
apache-2.0
SomeSimpleSolutions/MemorizeItForever
MemorizeItForever/MemorizeItForever/VisualElements/MITextView.swift
1
1000
// // MITextView.swift // MemorizeItForever // // Created by Hadi Zamani on 11/8/16. // Copyright © 2016 SomeSimpleSolutions. All rights reserved. // import UIKit final class MITextView: UITextView, ValidatableProtocol { override init(frame: CGRect, textContainer: NSTextContainer?) { super.init(frame:...
mit
meismyles/SwiftWebVC
SwiftWebVC/SwiftWebVC.swift
1
14962
// // SwiftWebVC.swift // // Created by Myles Ringle on 24/06/2015. // Transcribed from code used in SVWebViewController. // Copyright (c) 2015 Myles Ringle & Sam Vermette. All rights reserved. // import WebKit public protocol SwiftWebVCDelegate: class { func didStartLoading() func didFinishLoading(succes...
mit
Donkey-Tao/SinaWeibo
SinaWeibo/SinaWeibo/Classes/Main/Visitor/TFVisitorView.swift
1
1546
// // TFVisitorView.swift // SinaWeibo // // Created by Donkey-Tao on 2016/9/27. // Copyright © 2016年 http://taofei.me All rights reserved. // import UIKit class TFVisitorView: UIView { //MARK:- 控件的属性 @IBOutlet weak var rotationView: UIImageView! @IBOutlet weak var iconView: UIImageView! @IBOutle...
mit
xedin/swift
test/Sema/enum_raw_representable.swift
7
6632
// RUN: %target-typecheck-verify-swift enum Foo : Int { case a, b, c } var raw1: Int = Foo.a.rawValue var raw2: Foo.RawValue = raw1 var cooked1: Foo? = Foo(rawValue: 0) var cooked2: Foo? = Foo(rawValue: 22) enum Bar : Double { case a, b, c } func localEnum() -> Int { enum LocalEnum : Int { case a, b, c ...
apache-2.0
xuzhuoxi/SearchKit
Source/cs/cache/valuecoding/WubiWordStrategyImpl.swift
1
1937
// // WubiWordStrategyImpl.swift // SearchKit // // Created by 许灼溪 on 15/12/19. // // import Foundation /** * * @author xuzhuoxi * */ class WubiWordStrategyImpl: AbstractWubiStrategy, ValueCodingStrategyProtocol, ReflectionProtocol { final func getSimplifyValue(_ value: String) ->String { retu...
mit
uber/rides-ios-sdk
source/UberCore/Authentication/Authenticators/RidesAuthenticationDeeplink.swift
1
1923
// // RidesAuthenticationDeeplink.swift // UberRides // // Copyright © 2018 Uber Technologies, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without re...
mit
zhiquan911/chance_btc_wallet
chance_btc_wallet/chance_btc_wallet/extension/UILabel+extension.swift
1
1111
// // UILabel+extension.swift // Chance_wallet // // Created by Chance on 15/12/6. // Copyright © 2015年 Chance. All rights reserved. // import Foundation extension UILabel { public func setDecimalStr( _ number: String, color: UIColor? ) { self.text = number ...
mit
kstaring/swift
validation-test/compiler_crashers_fixed/25720-swift-constraints-constraintsystem-simplifyconstraint.swift
11
496
// 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 list...
apache-2.0
wikimedia/wikipedia-ios
Wikipedia/Code/AbuseFilterAlertView.swift
1
3668
enum AbuseFilterAlertType { case warning case disallow func image() -> UIImage? { switch self { case .warning: return #imageLiteral(resourceName: "abuse-filter-flag") case .disallow: return #imageLiteral(resourceName: "abuse-filter-alert") } } } c...
mit
fgengine/quickly
Quickly/ViewControllers/Hamburger/Animation/QHamburgerViewControllerInteractiveAnimation.swift
1
10450
// // Quickly // public final class QHamburgerViewControllerInteractiveAnimation : IQHamburgerViewControllerInteractiveAnimation { public var contentView: UIView! public var currentState: QHamburgerViewControllerState public var targetState: QHamburgerViewControllerState public var contentViewCon...
mit
seanooi/DocuParse
DocuParseTests/DocuParseTests.swift
1
976
// // DocuParseTests.swift // DocuParseTests // // Created by Sean Ooi on 12/4/15. // Copyright © 2015 Sean Ooi. All rights reserved. // import XCTest @testable import DocuParse class DocuParseTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is...
mit
AgaKhanFoundation/WCF-iOS
Pods/Quick/Sources/Quick/Configuration/QCKConfiguration.swift
3
7498
import Foundation /** A closure that temporarily exposes a QCKConfiguration object within the scope of the closure. */ public typealias QuickConfigurer = (_ configuration: QCKConfiguration) -> Void /** A closure that, given metadata about an example, returns a boolean value indicating whether that exa...
bsd-3-clause
valine/octotap
octo-tap/octo-tap/ViewControllers/SetupNavigationViewController.swift
1
959
// Copyright © 2017 Lukas Valine // // 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 t...
apache-2.0
KoCMoHaBTa/MHMessageKit
MHMessageKit/Message/Implementation/NotificationCenter+MessageSubscriber.swift
1
2630
// // NSNotificationCenter+MessageSubscriber.swift // MHMessageKit // // Created by Milen Halachev on 1/15/16. // Copyright © 2016 Milen Halachev. All rights reserved. // import Foundation extension NotificationCenter: MessageSubscriber { public func subscribe<M>(_ handler: @escaping (_ message: M) -> Vo...
mit
Josscii/iOS-Demos
UIButtonDemo/UIButtonDemo/ViewController.swift
1
1528
// // ViewController.swift // UIButtonDemo // // Created by josscii on 2017/9/27. // Copyright © 2017年 josscii. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, ty...
mit
mownier/photostream
Photostream/UI/Post Discovery/PostDiscoveryViewDelegate.swift
1
4511
// // PostDiscoveryViewDelegate.swift // Photostream // // Created by Mounir Ybanez on 20/12/2016. // Copyright © 2016 Mounir Ybanez. All rights reserved. // import UIKit extension PostDiscoveryViewController { override func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectio...
mit
YevhenHerasymenko/SwiftGroup1
ConstraintsImage/ConstraintsImageUITests/ConstraintsImageUITests.swift
1
1288
// // ConstraintsImageUITests.swift // ConstraintsImageUITests // // Created by Yevhen Herasymenko on 24/06/2016. // Copyright © 2016 Yevhen Herasymenko. All rights reserved. // import XCTest class ConstraintsImageUITests: XCTestCase { override func setUp() { super.setUp() //...
apache-2.0
GocePetrovski/ListCollectionViewKit
ListCollectionViewKit/ListCollectionViewLayoutAttributes.swift
1
1636
// // ListCollectionViewLayoutAttributes.swift // ListCollectionView // // Created by Goce Petrovski on 27/01/2015. // Copyright (c) 2015 Pomarium. All rights reserved. // http://pomarium.com.au import UIKit open class ListCollectionViewLayoutAttributes: UICollectionViewLayoutAttributes { open var editing:Bo...
mit
sadawi/MagneticFields
Pod/Classes/Observation.swift
1
2068
// // Observation.swift // Pods // // Created by Sam Williams on 11/28/15. // // import Foundation /** An object that holds a closure that is to be run when a value changes. `Observation` instances are themselves `Observable`, which means they can be chained: ``` let a = Field<String>() let b = Field<String...
mit
seandavidmcgee/HumanKontactBeta
src/keyboardTest/ActivityKeys.swift
1
600
// // ActivityKeys.swift // keyboardTest // // Created by Sean McGee on 7/22/15. // Copyright (c) 2015 3 Callistos Services. All rights reserved. // import Foundation struct ActivityKeys { static let ChooseCall = "com.humankontact.keyboardtest.ChooseCall" static let ChooseText = "com.humankontact.key...
mit
bitjammer/swift
test/decl/protocol/conforms/fixit_stub_editor.swift
8
1027
// RUN: %target-typecheck-verify-swift -diagnostics-editor-mode protocol P1 { func foo1() func foo2() } protocol P2 { func bar1() func bar2() } class C1 : P1, P2 {} // expected-error{{type 'C1' does not conform to protocol 'P1'}} expected-error{{type 'C1' does not conform to protocol 'P2'}} expected-note{{do...
apache-2.0
Lickability/PinpointKit
PinpointKit/PinpointKit/Sources/Core/UIGestureRecognizer+FailRecognizing.swift
2
571
// // UIGestureRecognizer+FailRecognizing.swift // PinpointKit // // Created by Kenneth Parker Ackerson on 1/24/16. // Copyright © 2016 Lickability. All rights reserved. // import UIKit /// Extends `UIGestureRecognizer` to force a failure to recognize the gesture. extension UIGestureRecognizer { /** ...
mit
prolificinteractive/Marker
Marker/Marker/Parser/MarkdownParser.swift
1
5152
// // MarkdownParser.swift // Marker // // Created by Htin Linn on 5/4/16. // Copyright © 2016 Prolific Interactive. All rights reserved. // import Foundation /// Markdown parser. struct MarkdownParser { /// Parser error. /// /// - invalidTagSymbol: Tag symbol is not a Markdown symbol. enum P...
mit
gregomni/swift
stdlib/public/Concurrency/AsyncSequence.swift
3
19806
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
apache-2.0
SimonFairbairn/Stormcloud
Sources/Stormcloud/Error.swift
1
2010
// // Error.swift // Stormcloud // // Created by Simon Fairbairn on 25/10/2015. // Copyright © 2015 Voyage Travel Apps. All rights reserved. // import Foundation /** Errors that Stormcloud can generate: - **InvalidJSON**: The JSON file to backup was invalid - **BackupFileExists**: ...
mit
wireapp/wire-ios
Wire-iOS/Sources/Developer/DeveloperTools/PreferredAPIVersion/PreferredAPIVersionViewModel.swift
1
2764
// // Wire // Copyright (C) 2022 Wire Swiss GmbH // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This progr...
gpl-3.0
lbkchen/heis
iOS/dimo/dimo/Array2D.swift
1
641
// // Array2D.swift // dimo // // Created by Ken Chen on 8/14/16. // Copyright © 2016 heis. All rights reserved. // import Foundation class Array2D<T> { let columns: Int let rows: Int var array: Array<T?> init(columns: Int, rows: Int) { self.columns = columns self.rows = ...
mit
saagarjha/Swimat
Swimat/SwimatViewController.swift
1
3767
import Cocoa class SwimatViewController: NSViewController { let installPath = "/usr/local/bin/" @IBOutlet weak var swimatTabView: NSTabView! @IBOutlet weak var versionLabel: NSTextField! { didSet { guard let infoDictionary = Bundle.main.infoDictionary, let version = i...
mit
SuperAwesomeLTD/sa-mobile-sdk-ios-demo
AwesomeAdsDemo/SettingsDataSource.swift
1
992
// // SettingsDataSource.swift // AwesomeAdsDemo // // Created by Gabriel Coman on 10/10/2017. // Copyright © 2017 Gabriel Coman. All rights reserved. // import UIKit class SettingsDataSource: NSObject, UITableViewDelegate, UITableViewDataSource { var data: [SettingViewModel] = [] func tableView...
apache-2.0
AndrewJByrne/GoodAsOldPhones-Swift
GoodAsOldPhones/ContactViewController.swift
1
535
// // ContactViewController.swift // GoodAsOldPhones // // Created by Andrew Byrne on 3/4/16. // Copyright © 2016 Andrew Byrne. All rights reserved. // import UIKit class ContactViewController: UIViewController { @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.vie...
mit
sunshineclt/NKU-Helper
NKU Helper/今天/TodayCell/GeneralTaskCell.swift
1
1167
// // GeneralTaskCell.swift // NKU Helper // // Created by 陈乐天 on 16/7/28. // Copyright © 2016年 陈乐天. All rights reserved. // import UIKit class GeneralTaskCell: MCSwipeTableViewCell { @IBOutlet var containerView: UIView! @IBOutlet var colorView: UIView! @IBOutlet var titleLabel: UILabel! @IBOutle...
gpl-3.0
almazrafi/Metatron
Sources/MPEG/MPEGMedia.swift
1
15527
// // MPEGMedia.swift // Metatron // // Copyright (c) 2016 Almaz Ibragimov // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the ri...
mit
natecook1000/swift-compiler-crashes
fixed/00922-swift-lexer-getlocforendoftoken.swift
11
235
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing { func b(){ { protocol b{init<>( } } } } func a<T{ struct c{ } c()
mit
natecook1000/swift-compiler-crashes
fixed/26999-swift-genericsignature-profile.swift
4
268
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing let c{{enum S{struct A<h{struct S{func A{let c<{a d{b:{a{a{let:{{}struct A{let:{class A{func a{b=1
mit
18775134221/SwiftBase
SwiftTest/SwiftTest/Classes/Main/Tools/SQLite/SQLiteDatabaseTool.swift
2
6708
// // SQLiteDatabaseTool.swift // SwiftTest // // Created by MAC on 2016/12/31. // Copyright © 2016年 MAC. All rights reserved. // import UIKit class SQLiteDatabaseTool: NSObject { // 创建单例 static var sharedInstance : SQLiteDatabaseTool { struct Static { static let instance : SQLite...
apache-2.0
airspeedswift/swift-compiler-crashes
crashes-fuzzing/01941-swift-optionaltype-get.swift
1
225
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing 0 (x: BooleanType)? -> class A { class A { func a<I : a
mit
airspeedswift/swift-compiler-crashes
crashes-fuzzing/00896-void.swift
1
212
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing class A { deinit { class B : A class A : A
mit
buyiyang/iosstar
iOSStar/Scenes/Discover/Controllers/VoiceAskVC.swift
3
4229
// // VoiceAskVC.swift // iOSStar // // Created by mu on 2017/8/17. // Copyright © 2017年 YunDian. All rights reserved. // import UIKit import SVProgressHUD class VoiceAskVC: BaseTableViewController ,UITextViewDelegate{ @IBOutlet var contentText: UITextView! @IBOutlet var placeholdLabel: UILabel!...
gpl-3.0
qmathe/Confetti
Event/Input/Modifiers.swift
1
533
/** Copyright (C) 2017 Quentin Mathe Author: Quentin Mathe <quentin.mathe@gmail.com> Date: November 2017 License: MIT */ import Foundation import Tapestry public struct Modifiers: OptionSet { public let rawValue: Int public init(rawValue: Int) { self.rawValue = rawValue } pu...
mit
rxwei/dlvm-tensor
Sources/CoreTensor/Index.swift
2
5000
// // Index.swift // CoreTensor // // Copyright 2016-2018 The DLVM Team. // // 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 // // Unl...
apache-2.0
ubclaunchpad/RocketCast
RocketCast/PodcastViewCollectionViewCell.swift
1
2256
// // PodcastViewCollectionViewCell.swift // RocketCast // // Created by Milton Leung on 2016-11-09. // Copyright © 2016 UBCLaunchPad. All rights reserved. // import UIKit class PodcastViewCollectionViewCell: UICollectionViewCell { @IBOutlet weak var coverPhotoView: UIView! @IBOutlet weak var podcastTitl...
mit
JudoPay/JudoKit
Source/NSTimer+Blocks.swift
3
1879
// // NSTimer+Blocks.swift // JudoKit // // Copyright © 2016 Alternative Payments Ltd. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, in...
mit
nostramap/nostra-sdk-sample-ios
SearchSample/Swift/SearchSample/KeywordViewController.swift
1
2607
// // KeywordViewcontroller.swift // SearchSample // // Copyright © 2559 Globtech. All rights reserved. // import UIKit import NOSTRASDK class KeywordViewController: UIViewController, UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! @IB...
apache-2.0
rudkx/swift
test/Interop/Cxx/class/constructors-irgen.swift
1
9488
// Target-specific tests for C++ constructor call code generation. // RUN: %swift -module-name Swift -target x86_64-apple-macosx10.9 -dump-clang-diagnostics -I %S/Inputs -enable-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=ITANIUM_X64 // RUN: %swift -m...
apache-2.0
WebberLai/WLComics
Pods/SwiftyDropbox/Source/SwiftyDropbox/Shared/Generated/Files.swift
1
339473
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// /// Auto-generated by Stone, do not modify. /// import Foundation /// Datatypes and serializers for the files namespace open class Files { /// The GetMetadataArg struct open class GetMetadataArg: CustomStringConvertible { /// The path o...
mit
MxABC/LBXAlertAction
AlertAction/UIWindow+LBXHierarchy.swift
1
1522
// // AlertAction.swift // // // Created by lbxia on 16/6/20. // Copyright © 2016年 lbx. All rights reserved. // import UIKit /** @abstract UIWindow hierarchy category. */ public extension UIWindow { /** @return Returns the current Top Most ViewController in hierarchy. */ public func topController()->U...
mit
ahoppen/swift
test/SILGen/Inputs/struct_with_initializer.swift
51
168
struct HasInitValue { var x = 10 var y: String = "" } struct HasPrivateInitValue { private var x = 10 } public struct PublicStructHasInitValue { var x = 10 }
apache-2.0
KeithPiTsui/Pavers
Pavers/Sources/CryptoSwift/String+Extension.swift
2
2830
// // StringExtension.swift // CryptoSwift // // Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com> // This software is provided 'as-is', without any express or implied warranty. // // In no event will the authors be held liable for any damages arising from the use of this software. // // Perm...
mit
JGiola/swift
test/SILGen/noimplicitcopy_attr.swift
1
898
// RUN: %target-swift-emit-silgen -enable-experimental-move-only -parse-stdlib -disable-availability-checking %s | %FileCheck %s // RUN: %target-swift-emit-sil -enable-experimental-move-only -parse-stdlib -disable-availability-checking %s | %FileCheck -check-prefix=CHECK-SIL %s // RUN: %target-swift-emit-sil -O -enable...
apache-2.0
JackieXie168/skim
vendorsrc/andymatuschak/Sparkle/Tests/SUFileManagerTest.swift
3
17557
// // SUFileManagerTest.swift // Sparkle // // Created by Mayur Pawashe on 9/26/15. // Copyright © 2015 Sparkle Project. All rights reserved. // import XCTest class SUFileManagerTest: XCTestCase { func makeTempFiles(_ testBlock: (SUFileManager, URL, URL, URL, URL, URL, URL) -> Void) { let fileMana...
bsd-3-clause
penguing27/MarkdownViewer
MarkdownViewer/ListViewController.swift
1
6336
// // ListViewController.swift // MarkdownViewer // // Created by Gen Inagaki on 2017/04/08. // Copyright © 2017年 Gen Inagaki. All rights reserved. // import UIKit import SwiftyDropbox class ListViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tableView: UITab...
mit
charlon/scout-ios
Scout/Error.swift
1
884
// // Error.swift // Scout // // Created by Charlon Palacay on 4/6/16. // Copyright © 2016 Charlon Palacay. All rights reserved. // struct Error { static let HTTPNotFoundError = Error(title: "Page Not Found", message: "There doesn’t seem to be anything here.") static let NetworkError = Error(title: "Can’t ...
apache-2.0
emilstahl/swift
validation-test/compiler_crashers/27523-swift-lexer-leximpl.swift
9
443
// RUN: not --crash %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing struct B<T where g:C{struct d{ enum S<T{ class A var f=A enum S{ class b{ { {{ {{{ { {{{ {{{{{{ {...
apache-2.0
RocketChat/Rocket.Chat.iOS
Rocket.Chat/Theme/NotThemeableViews.swift
1
798
// // NotThemeableViews.swift // Rocket.Chat // // Created by Samar Sunkaria on 4/29/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import UIKit class NotThemeableView: UIView { override var theme: Theme? { return nil } override func applyTheme() { } } class NotThemeableTableView: UITableVi...
mit
taketo1024/SwiftyAlgebra
Sources/SwmCore/Polynomial/MultivariatePolynomial.swift
1
9018
// // MultivariatePolynomial.swift // // // Created by Taketo Sano on 2021/05/19. // public protocol MultivariatePolynomialIndeterminates: GenericPolynomialIndeterminate where Exponent == MultiIndex<NumberOfIndeterminates> { associatedtype NumberOfIndeterminates: SizeType static var isFinite: Bool { get } ...
cc0-1.0
gupuru/StreetPassBLE-iOS
Example/ViewController.swift
1
4758
// // ViewController.swift // Example // // Created by 新見晃平 on 2016/02/23. // Copyright © 2016年 kohei Niimi. All rights reserved. // import UIKit import StreetPass class ViewController: UIViewController, StreetPassDelegate, UITextFieldDelegate { @IBOutlet weak var nameTextField: UITextField! @IBOutlet...
mit
monyschuk/CwlSignal
CwlSignal.playground/Pages/Parallel composition - operators.xcplaygroundpage/Contents.swift
1
3416
/*: # Parallel composition 2 > **This playground requires the CwlSignal.framework built by the CwlSignal_macOS scheme.** If you're seeing the error: "no such module 'CwlSignal'" follow the Build Instructions on the [Introduction](Introduction) page. ## Some advanced operators There are lots of different "operator" ...
isc
rnystrom/GitHawk
Classes/Search/SearchRecentSectionController.swift
1
2737
// // SearchRecentSectionController.swift // Freetime // // Created by Ryan Nystrom on 9/4/17. // Copyright © 2017 Ryan Nystrom. All rights reserved. // import Foundation import IGListKit import SwipeCellKit protocol SearchRecentSectionControllerDelegate: class { func didSelect(recentSectionController: Search...
mit
offfffz/PHAssetImageResizer-Bolts
ImageResizer.swift
1
2384
// // ImageResizer.swift // // Created by offz on 7/21/2558 BE. // Copyright (c) 2558 off. All rights reserved. // import Bolts import Photos import FCFileManager public class ImageResizer { let maxConcurrentCount: Int let targetFolderPath: String let sizeToFit: CGSize lazy var imageProce...
mit
wisonlin/TimeSound
TimeSound/TimeSound/TSRemindCreateViewController.swift
1
2967
// // TSRemindCreateViewController.swift // TimeSound // // Created by wison on 3/6/16. // Copyright © 2016 HomeStudio. All rights reserved. // import UIKit import RealmSwift class TSRemindCreateViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, TSSoundSelectDelegate { // MARK: Prop...
mit
frootloops/swift
test/SILGen/guaranteed_self.swift
1
26248
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -emit-silgen %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership | %FileCheck %s protocol Fooable { init() func foo(_ x: Int) mutating func bar() mutating func bas() var prop1: Int { get set } var prop2: Int { get set } var prop...
apache-2.0
Bajocode/ExploringModerniOSArchitectures
Architectures/MVPTests/Presenter/MoviePresenterTests.swift
1
1388
// // MoviePresenterTests.swift // Architectures // // Created by Fabijan Bajo on 03/06/2017. // // import XCTest @testable import MVP class MoviePresenterTests: XCTestCase { // MARK: - Properties var presenter: ResultsViewPresenter! // MARK: - Configuration override f...
mit
loup-studio/Swift-Commons
SwiftCommons/Classes/Ui/View/BaseCollectionCell.swift
1
416
// // BaseCollectionCell.swift // Smartreno Pro // // Created by Lukasz on 12/07/2017. // Copyright © 2017 Smart Reno. All rights reserved. // import UIKit open class BaseCollectionCell : UICollectionViewCell { override init(frame: CGRect) { super.init(frame: CGRect.zero) setup() } ...
mit
HighBay/EasyTimer
EasyTimer/ViewController.swift
2
1463
// // ViewController.swift // EasyTimer // // Created by Niklas Fahl on 3/2/16. // Copyright © 2016 High Bay. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typi...
bsd-3-clause
Burning-Man-Earth/iBurn-iOS
iBurn/BRCDataImporter.swift
1
2768
// // BRCDataImporter.swift // iBurn // // Created by Chris Ballinger on 7/30/17. // Copyright © 2017 Burning Man Earth. All rights reserved. // import Foundation import Mapbox import CocoaLumberjack extension BRCDataImporter { /** This is where Mapbox stores its tile cache */ private static var ma...
mpl-2.0
markusschlegel/DejaTextView
DejaTextView.swift
1
45921
// // DejaTextView.swift // DejaTextView // // Created by Markus Schlegel on 17/05/15. // Copyright (c) 2015 Markus Schlegel. All rights reserved. // import UIKit let animation_duration: Double = 0.2 let animation_spring_damping: CGFloat = 0.8 let grabber_frame: CGRect = CGRectMake(0, 0, 88, 43) let selecti...
mit
srn214/Floral
Floral/Pods/AutoInch/Sources/Inch.swift
1
6082
// // Inch.swift // ┌─┐ ┌───────┐ ┌───────┐ // │ │ │ ┌─────┘ │ ┌─────┘ // │ │ │ └─────┐ │ └─────┐ // │ │ │ ┌─────┘ │ ┌─────┘ // │ └─────┐│ └─────┐ │ └─────┐ // └───────┘└───────┘ └───────┘ // // Created by lee on 2018/1/22. // Copyright © 2018年 lee. All rights reserved. // import Foundatio...
mit
MarcoSantarossa/SwiftyToggler
Tests/TestDoubles/SpyFeatureChangesObserver.swift
1
1642
// // SpyFeatureChangesObserver.swift // // Copyright (c) 2017 Marco Santarossa (https://marcosantadev.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, in...
mit
bparish628/iFarm-Health
iOS/iFarm-Health/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift
4
13322
// // XAxisRendererHorizontalBarChart.swift // Charts // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/Charts // import Foundation import CoreGraphics #if !os(OSX) import UIKit #endif open ...
apache-2.0
ric2b/Vivaldi-browser
thirdparty/macsparkle/Tests/SUSpotlightImporterTest.swift
1
3671
// // SUSpotlightImporterTest.swift // Sparkle // // Created by Mayur Pawashe on 8/27/16. // Copyright © 2016 Sparkle Project. All rights reserved. // import XCTest class SUSpotlightImporterTest: XCTestCase { func testUpdatingSpotlightBundles() { let fileManager = SUFileManager.default() l...
bsd-3-clause
radex/swift-compiler-crashes
crashes-fuzzing/07898-swift-declname-printpretty.swift
11
229
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing func b{class A{class n{let t:d{struct B<T where h:a{let:T->g
mit
Mobilette/MobiletteDashboardiOS
MobiletteDashboardIOS/Classes/AppDelegate.swift
1
2500
// // AppDelegate.swift // MobiletteDashboardIOS // // Created by Romain ASNAR on 9/15/15. // Copyright (c) 2015 Mobilette. All rights reserved. // import UIKit import OAuthSwift @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application...
mit
KeepGoing2016/Swift-
DUZB_XMJ/DUZB_XMJ/Classes/Home/Controller/GameViewController.swift
1
6502
// // GameViewController.swift // DUZB_XMJ // // Created by user on 16/12/29. // Copyright © 2016年 XMJ. All rights reserved. // import UIKit fileprivate let kGameCellId = "kGameCellId" fileprivate let kGameHeaderId = "kGameHeaderId" fileprivate let kEdgeMargin:CGFloat = 10 fileprivate let kGameCellW = (kScreenW-2...
apache-2.0
Onix-Systems/ios-mazazine-reader
MazazineReaderTests/MazazineReaderTests.swift
1
1422
// Copyright 2017 Onix-Systems // 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 writi...
apache-2.0
jtbandes/swift-compiler-crashes
crashes-duplicates/26895-swift-lexer-lexidentifier.swift
4
197
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing struct S<T:T.b{enum B{" s B
mit
wordpress-mobile/WordPress-iOS
WordPress/Classes/ViewRelated/Cells/InlineEditableMultiLineCell.swift
1
1832
import Foundation // UITableViewCell that displays an editable UITextView to allow text to be modified inline. // The cell height resizes as the text is modified. // The delegate is notified when: // - The height is updated. // - The text is updated. protocol InlineEditableMultiLineCellDelegate: AnyObject { func ...
gpl-2.0
Roommate-App/roomy
roomy/Pods/IBAnimatable/Sources/Protocols/Designable/TintDesignable.swift
3
1522
// // Created by Jake Lin on 11/24/15. // Copyright © 2015 IBAnimatable. All rights reserved. // import UIKit public protocol TintDesignable: class { /** Opacity in tint Color (White): from 0 to 1 */ var tintOpacity: CGFloat { get set } /** Opacity in shade Color (Black): from 0 to 1 */ var sha...
mit
Off-Piste/Trolley.io
Trolley/Core/Networking/Third Party/Reachability/Reachability.swift
2
10209
/* Copyright (c) 2014, Ashley Mills All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
mit
mpercich/Calendarize
ios/Calendarize/ViewController.swift
1
510
// // ViewController.swift // Calendarize // // Created by Percich Michele (UniCredit Business Integrated Solutions) on 27/01/17. // Copyright © 2017 Michele Percich. All rights reserved. // import Cocoa class ViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() ...
mit
narner/AudioKit
AudioKit/iOS/AudioKit/User Interface/AKStepper.swift
1
5871
// // AKStepper.swift // AudioKit for iOS // // Created by Aurelius Prochazka on 3/11/17. // Copyright © 2017 Aurelius Prochazka. All rights reserved. // import AudioKit import UIKit /// Incrementor view, normally used for MIDI presets, but could be useful elsehwere open class AKStepper: UIView { var plusPat...
mit
27629678/web_dev
client/Demo/websocket/WSUploadFileViewController.swift
1
889
// // WSUploadFileViewController.swift // Demo // // Created by hzyuxiaohua on 2017/1/17. // Copyright © 2017年 XY Network Co., Ltd. All rights reserved. // import UIKit class WSUploadFileViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional...
mit
touchopia/SwiftStickers
StickersApp/StickersApp/AppDelegate.swift
2
421
// // AppDelegate.swift // StickersApp // // Created by Phil Wright on 9/1/15. // Copyright © 2015 Touchopia, LLC. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishL...
mit
feliperuzg/CleanExample
CleanExample/Authentication/View/LoginPresenterProtocol.swift
1
294
// // File.swift // CleanExample // // Created by Felipe Ruz on 19-07-17. // Copyright © 2017 Felipe Ruz. All rights reserved. // import Foundation protocol LoginPresenterProtocol { func doLogin(_ user: String, password: String) func attachView(_ loginView: LoginViewProtocol) }
mit
younata/RSSClient
TethysAppSpecs/UI/Account/OAuthLoginControllerSpec.swift
1
9237
import Quick import UIKit import Nimble import Result import CBGPromise @testable import TethysKit @testable import Tethys final class OAuthLoginControllerSpec: QuickSpec { override func spec() { var subject: OAuthLoginController! var accountService: FakeAccountService! var mainQueue: Fake...
mit
alreadyRight/Swift-algorithm
循环引用/循环引用/ViewController.swift
1
1096
// // ViewController.swift // 循环引用 // // Created by 周冰烽 on 2017/12/8. // Copyright © 2017年 周冰烽. All rights reserved. // import UIKit class ViewController: UIViewController { var completionCallBack:(()->())? override func viewDidLoad() { super.viewDidLoad() //bloack 中如果出现 self. 要...
mit
thinkclay/FlourishUI
Pod/Classes/ToggleSwitch.swift
1
5375
import UIKit public class ToggleButton: UIView { var active: Bool = false public var activeBackgroundColor = UIColor(hex: "#6B60AB") { didSet { setNeedsDisplay() } } public var activeBorderColor = UIColor(hex: "#8579CE") { didSet { setNeedsDisplay() } } public var activeIn...
mit
RxLeanCloud/rx-lean-swift
src/RxLeanCloudSwift/Public/RxAVCQL.swift
1
1289
// // RxAVCQL.swift // RxLeanCloudSwift // // Created by WuJun on 14/12/2017. // Copyright © 2017 LeanCloud. All rights reserved. // import Foundation import RxSwift public class RxAVCQL<TEntity> where TEntity: IAVQueryable { public var cql: String public var placeholders: Array<Any>? public init(cql...
mit
larryhou/swift
VideoDecode/ScreenRecordingTests/ScreenRecordingTests.swift
1
978
// // ScreenRecordingTests.swift // ScreenRecordingTests // // Created by larryhou on 14/01/2018. // Copyright © 2018 larryhou. All rights reserved. // import XCTest @testable import ScreenRecording class ScreenRecordingTests: XCTestCase { override func setUp() { super.setUp() // Put setup co...
mit
lucas34/SwiftQueue
Tests/LinuxMain.swift
1
125
import XCTest import SwiftQueueTests var tests = [XCTestCaseEntry]() tests += SwiftQueueTests.__allTests() XCTMain(tests)
mit
dclelland/GridSpan
GridSpan.swift
1
3194
// // GridSpan.swift // Pods // // Created by Daniel Clelland on 11/03/17. // import UIKit /// A span object representing a rectangular range of cells in a grid. public struct Span { /// A closed range of columns in the grid. /// For example, a value of `0...0` would indicate just the first column. ...
mit
Johennes/firefox-ios
Sync/EncryptedJSON.swift
2
3231
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Shared import FxA import Account import XCGLogger private let log = Logger.syncLogger /...
mpl-2.0