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
SocialObjects-Software/AMSlideMenu
AMSlideMenu/Animation/Animators/AMSlidingBlurAnimator.swift
1
2657
// // AMSlidingBlureAnimator.swift // AMSlideMenu // // The MIT License (MIT) // // Created by : arturdev // Copyright (c) 2020 arturdev. 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 ...
mit
nguyenantinhbk77/practice-swift
Notifications/Listening Notifications/Listening Notifications/AppDelegate.swift
2
1933
// // AppDelegate.swift // Listening Notifications // // Created by Domenico Solazzo on 15/05/15. // License MIT // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? /* The name of the notification that we are going to send */ class fun...
mit
natecook1000/swift-compiler-crashes
crashes-duplicates/11098-swift-sourcemanager-getmessage.swift
11
256
// 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 { func a( = { { protocol C { enum S { let a { class A { func a { class case ,
mit
digitalsurgeon/SwiftWebSocket
websocketserver/handler.swift
1
2639
// // handler.swift // websocketserver // // Created by Ahmad Mushtaq on 17/05/15. // Copyright (c) 2015 Ahmad Mushtaq. All rights reserved. // import Foundation @objc(Handler) class Handler : GCDAsyncSocketDelegate { var socket: GCDAsyncSocket? = nil func handle(var request:Request, var socket: GCDAsyncS...
mit
hyperoslo/Brick
Sources/Shared/ItemConfigurable.swift
1
480
/** A class protocol that requires configure(item: Item), it can be applied to UI components to annotate that they are intended to use Item. */ public protocol ItemConfigurable: class { /** A configure method that is used on reference types that can be configured using a view model - parameter item: A inou...
mit
rawrjustin/Bridge
Example/BridgeTest/BridgeTest/ViewController.swift
2
500
// // ViewController.swift // BridgeTest // // Created by Justin Huang on 8/6/15. // Copyright © 2015 Zumper. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typi...
mit
csontosgabor/Twitter_Post
Twitter_Post/NSTimer+Closure.swift
3
1625
// // NSTimer+Closure.swift // // Created by Sergey Demchenko on 11/5/15. // Copyright © 2015 antrix1989. All rights reserved. // import Foundation extension Timer { /** Creates and schedules a one-time `NSTimer` instance. - parameter delay: The delay before execution. - parameter handler:...
mit
sarahspins/Loop
WatchApp Extension/Models/CarbEntryUserInfo.swift
2
2068
// // CarbEntryUserInfo.swift // Naterade // // Created by Nathan Racklyeft on 1/23/16. // Copyright © 2016 Nathan Racklyeft. All rights reserved. // import Foundation enum AbsorptionTimeType { case Fast case Medium case Slow } struct CarbEntryUserInfo { let value: Double let absorptionTimeT...
apache-2.0
lllyyy/LY
U17-master/U17/U17/Procedure/Base/View/UBaseTableViewCell.swift
1
573
// // UBaseTableViewCell.swift // U17 // // Created by charles on 2017/10/24. // Copyright © 2017年 None. All rights reserved. // import UIKit import Reusable class UBaseTableViewCell: UITableViewCell, Reusable { override init(style: UITableViewCellStyle, reuseIdentifier: String?) { super.init(style: ...
mit
lllyyy/LY
U17-master/U17/Pods/HandyJSON/Source/HexColorTransform.swift
1
3043
// // HexColorTransform.swift // ObjectMapper // // Created by Vitaliy Kuzmenko on 10/10/16. // Copyright © 2016 hearst. All rights reserved. // #if os(iOS) || os(tvOS) || os(watchOS) import UIKit #else import Cocoa #endif open class HexColorTransform: TransformType { #if os(iOS) || os(tvOS) || os(watchOS) pub...
mit
jad6/DataStore
DataStore/DatStore-CommonTests/DataStoreCloudTests.swift
1
974
// // DataStoreCloudTests.swift // DataStore // // Created by Jad Osseiran on 24/11/2014. // Copyright (c) 2015 Jad Osseiran. All rights reserved. // import XCTest import CoreData import DataStore class DataStoreCloudTests: DataStoreTests { override func setUp() { // delegateObject = self ...
bsd-2-clause
Monits/swift-compiler-crashes
crashes/23892-swift-archetypebuilder-resolvearchetype.swift
1
220
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/CodaFi (Robert Widmann) public protocol F { typealias A } class B<F : F where F.A == B<F>> { let c : F }
mit
ura14h/OpenCVSample
OpenCVSample_iOS/OpenCVSample_iOS/SceneDelegate.swift
1
2222
// // SceneDelegate.swift // OpenCVSample_iOS // // Created by Hiroki Ishiura on 2020/01/04. // Copyright © 2020 Hiroki Ishiura. All rights reserved. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSess...
mit
odigeoteam/TableViewKit
Examples/Viper/TableViewKit+VIPER/AboutModule/AboutModuleProtocols.swift
1
678
import Foundation import UIKit protocol AboutWireFrameProtocol: class { func presentAboutViewModule(_ navigationController: UINavigationController) func presentHelpCenter() } protocol AboutPresenterProtocol: class { var router: AboutWireFrameProtocol? { get set } var view: AboutViewControllerProtoco...
mit
danielhour/DINC
DINC WatchKit Extension/NSDateExtensions.swift
1
711
// // NSDateExtensions.swift // DINC // // Created by dhour on 4/17/16. // Copyright © 2016 DHour. All rights reserved. // import Foundation extension Date { /** Gets the short weekday symbol for given date - returns: String */ func dayOfWeek() -> String { let format...
mit
ahoppen/swift
test/DebugInfo/sugar.swift
32
948
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s // Apart from typealiases, sugared types are just mangled as their desugared type. // // This test makes sure that we don't mess up type substitutions when mangling // types containing sugared types by virtue of all manglings getting round-tripped // t...
apache-2.0
KeithPiTsui/Pavers
Pavers/Pavers.playground/Pages/GitHotFrontPage.xcplaygroundpage/Contents.swift
2
371
import Pavers import PaversUI import UIKit final class HitRepositoriesTableViewController: UIViewController { private lazy var tableView: UITableView = UITableView() override func viewDidLoad() { super.viewDidLoad() self.bindStyle() } private func bindStyle() { self.view.addSubview(self.tableV...
mit
TENDIGI/Obsidian-UI-iOS
src/InputFormatter.swift
1
13202
// // InputFormatter.swift // Alfredo // // Created by Eric Kunz on 9/15/15. // Copyright (c) 2015 TENDIGI, LLC. All rights reserved. // import Foundation /// Formatting style options public enum InputFormattingType { /// Use with custom validation case none /// e.g. $00.00. Valid with any value great...
mit
emilstahl/swift
test/IDE/dump_swift_lookup_tables.swift
6
1732
// RUN: %target-swift-ide-test -dump-importer-lookup-table -source-filename %s -import-objc-header %S/Inputs/swift_name.h > %t.log 2>&1 // RUN: FileCheck %s < %t.log // REQUIRES: objc_interop // CHECK: Base -> full name mappings: // CHECK-NEXT: Bar --> Bar // CHECK-NEXT: Blue --> Blue // CHECK-NEXT: Green ...
apache-2.0
ben-ng/swift
validation-test/compiler_crashers_fixed/00268-swift-typechecker-typecheckexpression.swift
1
465
// 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...
apache-2.0
Anviking/Tentacle
Tentacle/Client.swift
1
8633
// // Client.swift // Tentacle // // Created by Matt Diephouse on 3/3/16. // Copyright © 2016 Matt Diephouse. All rights reserved. // import Argo import Foundation import ReactiveCocoa import Result extension Decodable { internal static func decode(JSON: NSDictionary) -> Result<DecodedType, DecodeError> { ...
mit
Suninus/SwiftFilePath
SwiftFilePath/Path.swift
1
3090
// // Path.swift // SwiftFilePath // // Created by nori0620 on 2015/01/08. // Copyright (c) 2015年 Norihiro Sakamoto. All rights reserved. // public class Path { // MARK: - Class methods public class func isDir(path:NSString) -> Bool { var isDirectory: ObjCBool = false let isFileEx...
mit
zhubofei/IGListKit
Examples/Examples-iOS/IGListKitExamples/SectionControllers/SelfSizingSectionController.swift
4
3116
/** Copyright (c) 2016-present, Facebook, Inc. All rights reserved. The examples provided by Facebook are for non-commercial testing and evaluation purposes only. Facebook reserves all rights not expressly granted. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BU...
mit
frootloops/swift
stdlib/public/core/CString.swift
1
8164
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
mrdepth/Neocom
Neocom/Neocom/Home/MenuItems/CertificatesItem.swift
2
606
// // CertificatesItem.swift // Neocom // // Created by Artem Shimanski on 3/29/20. // Copyright © 2020 Artem Shimanski. All rights reserved. // import SwiftUI struct CertificatesItem: View { var body: some View { NavigationLink(destination: CertificateGroups()) { Icon(Image("certificates"...
lgpl-2.1
micchyboy1023/Today
Today iOS App/Today iOS App/RSDFTodayDatePickerCollectionViewLayout.swift
1
451
// // RSDFTodayDatePickerCollectionViewLayout.swift // Today // // Created by UetaMasamichi on 9/10/16. // Copyright © 2016 Masamichi Ueta. All rights reserved. // import UIKit class RSDFTodayDatePickerCollectionViewLayout: RSDFDatePickerCollectionViewLayout { override func selfHeaderReferenceSize() -> C...
mit
tuannme/Up
Up+/Pods/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift
2
3771
// // NVActivityIndicatorAnimationBallSpinFadeLoader.swift // NVActivityIndicatorViewDemo // // 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 // ...
mit
kiliankoe/DVB
Sources/DVB/Models/RouteChange/RouteChange+ValidityPeriod.swift
1
412
import Foundation extension RouteChange { public struct ValidityPeriod { public let begin: Date public let end: Date? } } extension RouteChange.ValidityPeriod: Decodable { private enum CodingKeys: String, CodingKey { case begin = "Begin" case end = "End" } } extension ...
mit
siuying/SignalKit
SignalKitTests/Observables/SignalTests.swift
1
8716
// // SignalTests.swift // SignalKit // // Created by Yanko Dimitrov on 7/15/15. // Copyright (c) 2015 Yanko Dimitrov. All rights reserved. // import UIKit import XCTest class SignalTests: XCTestCase { let initialUserName = "John" var signal: Signal<Int>! var lock: MockLock! var userName: Obs...
mit
nghialv/MaterialKit
Source/MKEmbedDrawerControllerSegue.swift
2
576
// // MKEmbedDrawerControllerSegue.swift // MaterialKit // // Created by Rahul Iyer on 10/02/16. // Copyright © 2016 Le Van Nghia. All rights reserved. // import UIKit public class MKEmbedDrawerControllerSegue: UIStoryboardSegue { final override public func perform() { if let sourceViewController = s...
mit
Wakup/Wakup-iOS-SDK
Wakup/CouponAnnotationView.swift
1
2212
// // CouponAnnotationView.swift // Wakup // // Created by Guillermo Gutiérrez on 7/1/16. // Copyright © 2016 Yellow Pineapple. All rights reserved. // import Foundation import MapKit @objc open class ColorForTags: NSObject { public let tags: Set<String> public let color: UIColor public let mapIcon: S...
mit
lenglengiOS/BuDeJie
百思不得姐/Pods/Charts/Charts/Classes/Renderers/CandleStickChartRenderer.swift
20
9754
// // CandleStickChartRenderer.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...
apache-2.0
michael-yuji/spartanX
Sources/SXService.swift
2
4445
// Copyright (c) 2016, Yuji // 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 an...
bsd-2-clause
Lucky-Orange/Tenon
Pitaya/JSONNeverDie/Source/JSONNDModel.swift
1
2479
// The MIT License (MIT) // Copyright (c) 2015 JohnLui <wenhanlv@gmail.com> https://github.com/johnlui // 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 with...
mit
dfsilva/actor-platform
actor-sdk/sdk-core-ios/ActorSDK/Sources/Controllers/Content/Conversation/Layouting/AABubbleBackgroundProcessor.swift
1
11188
// // Copyright (c) 2014-2016 Actor LLC. <https://actor.im> // import Foundation private let ENABLE_LOGS = false /** Display list preprocessed list state */ class AAPreprocessedList: NSObject { // Array of items in list var items: [ACMessage]! // Map from rid to index of item var indexMap: [jl...
agpl-3.0
srn214/Floral
Floral/Pods/SwiftDate/Sources/SwiftDate/DateInRegion/DateInRegion+Compare.swift
2
11038
// // SwiftDate // Parse, validate, manipulate, and display dates, time and timezones in Swift // // Created by Daniele Margutti // - Web: https://www.danielemargutti.com // - Twitter: https://twitter.com/danielemargutti // - Mail: hello@danielemargutti.com // // Copyright © 2019 Daniele Margutti. Licensed un...
mit
allenngn/firefox-ios
Storage/History.swift
14
2517
/* 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 Shared public class IgnoredSiteError: ErrorType { public var description: String { return "Ign...
mpl-2.0
radex/swift-compiler-crashes
crashes-fuzzing/21566-no-stacktrace.swift
11
250
// 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 < { { for { case { case [ { case let { { { { deinit { class case c, class }
mit
radex/swift-compiler-crashes
crashes-duplicates/19247-swift-type-walk.swift
11
2394
// 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 g: c func b<I : d<U : a { protocol A : B<d { { class B } class B<U : A") func a<H : A class d { } A { let a { { enum A ) -> Voi func d: A" struc...
mit
justin999/gitap
gitap/StateController+AlertHelper.swift
1
494
// // AlertHelper.swift // gitap // // Created by Koichi Sato on 1/9/17. // Copyright © 2017 Koichi Sato. All rights reserved. // import UIKit extension StateController { func presentAlert(title: String, message: String?, style: UIAlertControllerStyle, actions: [UIAlertAction], completion: (() -> Void)?) { ...
mit
wenghengcong/Coderpursue
BeeFun/BeeFun/View/Event/EventCell/BFEventLayout.swift
1
24167
// // BFEventLayout.swift // BeeFun // // Created by WengHengcong on 23/09/2017. // Copyright © 2017 JungleSong. All rights reserved. // import UIKit import YYText // 异步绘制导致的闪烁解决方案:https://github.com/ibireme/YYKit/issues/64 // https://github.com/ibireme/YYText/issues/103 /// 布局样式 /// /// - pullRequest: pull req...
mit
dunkelstern/FastString
src/appending.swift
1
3123
// Copyright (c) 2016 Johannes Schriewer. // // 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 agr...
apache-2.0
BrothaStrut96/ProjectPUBG
AppDelegate.swift
1
4825
// // AppDelegate.swift // ProjectPUBG // // Created by Ruaridh Wylie on 01/10/2017. // Copyright © 2017 Ruaridh Wylie. All rights reserved. // import UIKit import CoreData import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application...
gpl-3.0
eugeneego/utilities-ios
Legacy-iOSTests/Generated/PostLightTransformer.swift
1
1652
// Generated using Sourcery 0.16.2 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT import Foundation import CoreGraphics import Legacy // swiftlint:disable all struct PostLightTransformer: LightTransformer { typealias T = Post let userIdName = "userId" let idName = "id" let titleName =...
mit
fawadsuhail/weather-app
WeatherApp/View Controllers/Home/HomeContract.swift
1
470
// // HomeContract.swift // WeatherApp // // Created by Fawad Suhail on 4/23/17. // Copyright © 2017 Fawad Suhail. All rights reserved. // import Foundation import UIKit protocol HomePresenterProtocol: BasePresenterProtocol { func didStartTyping() func didSelectSuggestion(suggestion: String) } protocol...
mit
stephentyrone/swift
test/Driver/Dependencies/check-interface-implementation-fine.swift
5
2444
/// The fine-grained dependency graph has implicit dependencies from interfaces to implementations. /// These are not presently tested because depends nodes are marked as depending in the interface, /// as of 1/9/20. But this test will check fail if those links are not followed. // RUN: %empty-directory(%t) // RUN: cp...
apache-2.0
stephentyrone/swift
test/Sema/property_wrappers.swift
3
823
// RUN: %target-swift-frontend -typecheck -disable-availability-checking -dump-ast %s | %FileCheck %s struct Transaction { var state: Int? } @propertyWrapper struct Wrapper<Value> { var wrappedValue: Value init(wrappedValue: Value, reset: @escaping (Value, inout Transaction) -> Void) { self.wrappedV...
apache-2.0
pvzig/SlackKit
SlackKit/Sources/ClientConnection.swift
2
390
// // ClientConnection.swift // SlackKit // // Created by Emory Dunn on 12/28/17. // import Foundation public class ClientConnection { public var client: Client? public var rtm: SKRTMAPI? public var webAPI: WebAPI? public init(client: Client?, rtm: SKRTMAPI?, webAPI: WebAPI?) { self.client...
mit
raulriera/Bike-Compass
App/CityBikesKit/Location.swift
1
1222
// // Location.swift // Bike Compass // // Created by Raúl Riera on 23/04/2016. // Copyright © 2016 Raul Riera. All rights reserved. // import Foundation import Decodable import CoreLocation public struct Location { public let coordinates: CLLocationCoordinate2D public let city: String public let coun...
mit
superk589/CGSSGuide
DereGuide/Unit/Information/View/UnitInformationUnitCell.swift
2
4143
// // UnitInformationUnitCell.swift // DereGuide // // Created by zzk on 2017/5/20. // Copyright © 2017 zzk. All rights reserved. // import UIKit protocol UnitInformationUnitCellDelegate: class { func unitInformationUnitCell(_ unitInformationUnitCell: UnitInformationUnitCell, didClick cardIcon: CGSSCardIconV...
mit
jboullianne/EndlessTunes
EndlessSoundFeed/NavController.swift
1
985
// // NavController.swift // EndlessSoundFeed // // Created by Jean-Marc Boullianne on 5/2/17. // Copyright © 2017 Jean-Marc Boullianne. All rights reserved. // import UIKit class NavController: UINavigationController { override func viewDidLoad() { super.viewDidLoad() // Do any additional s...
gpl-3.0
jondwillis/Swinject
Swinject/Container.swift
1
8704
// // Container.swift // Swinject // // Created by Yoichi Tagaya on 7/23/15. // Copyright © 2015 Swinject Contributors. All rights reserved. // import Foundation /// The `Container` class represents a dependency injection container, which stores registrations of services /// and retrieves registered services with...
mit
yeziahehe/Gank
Pods/Kingfisher/Sources/Utility/SizeExtensions.swift
1
4631
// // SizeExtensions.swift // Kingfisher // // Created by onevcat on 2018/09/28. // // Copyright (c) 2019 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...
gpl-3.0
ouyongyong/swiftPractice
gallery/galleryUITests/galleryUITests.swift
1
1240
// // galleryUITests.swift // galleryUITests // // Created by ouyongyong on 15/10/18. // Copyright © 2015年 kira. All rights reserved. // import XCTest class galleryUITests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before...
mit
zcill/SwiftDemoCollection
Project 09- Add Photo Fome Camera Roll/Project9- Add Photo Fome Camera RollTests/Project9__Add_Photo_Fome_Camera_RollTests.swift
1
1089
// // Project9__Add_Photo_Fome_Camera_RollTests.swift // Project9- Add Photo Fome Camera RollTests // // Created by 朱立焜 on 16/4/14. // Copyright © 2016年 朱立焜. All rights reserved. // import XCTest @testable import Project9__Add_Photo_Fome_Camera_Roll class Project9__Add_Photo_Fome_Camera_RollTests: XCTestCase { ...
mit
brendonjustin/EtherPlayer
EtherPlayer/AirPlay/StopRequester.swift
1
1361
// // StopRequester.swift // EtherPlayer // // Created by Brendon Justin on 5/5/16. // Copyright © 2016 Brendon Justin. All rights reserved. // import Cocoa class StopRequester: AirplayRequester { let relativeURL = "/stop" weak var delegate: StopRequesterDelegate? weak var requestCustomizer: Airp...
gpl-3.0
xiaoyouPrince/DYLive
DYLive/DYLive/Classes/Main/View/PageTitleView.swift
1
7415
// // PageTitleView.swift // DYLive // // Created by 渠晓友 on 2017/4/1. // Copyright © 2017年 xiaoyouPrince. All rights reserved. // import UIKit /* 1. 封装PageTitileView --> view:scrollview:Label+手势 & lineView 2. 封装PageContentView --> uicollectionView->横向滚动的cell 3. 处理PageTitleView和PageContentView的逻辑 */ // MARK:...
mit
domenicosolazzo/practice-swift
Multipeer/Multipeer/Multipeer/ViewController.swift
1
6201
// // ViewController.swift // Multipeer // // Created by Domenico on 04/05/16. // Copyright © 2016 Domenico Solazzo. All rights reserved. // import UIKit import MultipeerConnectivity class ViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UINavigationControllerDelegate, U...
mit
davidgatti/IoT-Home-Automation
GarageOpener/GarageState.swift
3
2524
// // Settings.swift // GarageOpener // // Created by David Gatti on 6/8/15. // Copyright (c) 2015 David Gatti. All rights reserved. // import Foundation import Parse class GarageState { //MARK: Static static let sharedInstance = GarageState() //MARK: Variables var user: PFUser! var isOpen: ...
apache-2.0
radubozga/Freedom
speech/Swift/Speech-gRPC-Streaming/Pods/DynamicButton/Sources/DynamicButtonStyles/DynamicButtonStyleArrowLeft.swift
1
2057
/* * DynamicButton * * Copyright 2015-present Yannick Loriot. * http://yannickloriot.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 limit...
apache-2.0
hrscy/TodayNews
News/News/Classes/Mine/View/PostCommentView.swift
1
8352
// // PostCommentView.swift // News // // Created by 杨蒙 on 2018/1/4. // Copyright © 2018年 hrscy. All rights reserved. // import UIKit import IBAnimatable class PostCommentView: UIView, NibLoadable { private lazy var emojiManger = EmojiManager() @IBOutlet weak var pageControlView: UIView! pr...
mit
nathawes/swift
test/NameLookup/scope_map_lookup_extension_extension.swift
26
247
// Ensure scope construction does not crash on this illegal code // RUN: not %target-swift-frontend -typecheck %s 2> %t.errors // RUN: %FileCheck %s <%t.errors // CHECK-NOT: Program arguments: private extension String { private extension String
apache-2.0
shmidt/ContactsPro
ContactsPro/ContactViewVC.swift
1
7466
// // ContactDetailVC.swift // ContactsPro // // Created by Dmitry Shmidt on 09/04/15. // Copyright (c) 2015 Dmitry Shmidt. All rights reserved. // import UIKit import RealmSwift class ContactViewVC: UITableViewController { private var notificationToken: NotificationToken? var person: Person! ...
mit
jklausa/VlKeynr
VlKeynr/AppDelegate.swift
1
2158
// // AppDelegate.swift // VlKeynr // // Created by Michał Kałużny on 15.11.2014. // Copyright (c) 2014 Michał Kałużny. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didF...
mit
wscheper/HealthSurvey
Survey/DBExtensions.swift
1
1461
// // DBExtensions.swift // Survey // // Created by Wesley Scheper on 06/12/15. // Copyright © 2015 Wesley Scheper. All rights reserved. // import UIKit extension NSDate { // Creates and returns an NSDate from a date string in the yyyy-MM-dd'T'HH:mm:ss'Z' format class func dateFromString(dateString: ...
mit
blockchain/My-Wallet-V3-iOS
Modules/Platform/Sources/PlatformUIKit/Views/IntroductionSheetViewController/IntroductionSheetViewController.swift
1
2020
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import Foundation import RxCocoa import RxSwift public final class IntroductionSheetViewController: UIViewController { private typealias AccessibilityIdentifiers = Accessibility.Identifier.IntroductionSheet // MARK: Private Properties priva...
lgpl-3.0
modocache/swift
test/IRGen/method_linkage.swift
3
1456
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s // Test if all methods which go into a vtable have at least the visibility of its class. // Reason: Derived classes from "outside" still have to put the less visible base members // into their vtables. class Base { // CHECK: define hidden void...
apache-2.0
adi2004/super-memo2-pod
Example/Pods/ADISuperMemo2/Classes/Card.swift
2
1613
// // Card.swift // Pods // // Created by Adrian Florescu on 30/11/2016. // // import Foundation public class Card { public let question: String public let answer: String public var repetition: Int public var eFactor: Double public var repeatOn: Date var interval: Double public ini...
mit
nodes-ios/NStack
Pods/Quick/Sources/Quick/NSString+C99ExtendedIdentifier.swift
17
1517
#if canImport(Darwin) import Foundation extension NSString { private static var invalidCharacters: CharacterSet = { var invalidCharacters = CharacterSet() let invalidCharacterSets: [CharacterSet] = [ .whitespacesAndNewlines, .illegalCharacters, .controlCharacter...
mit
lannik/SSImageBrowser
Example/Tests/Tests.swift
2
1190
// https://github.com/Quick/Quick import Quick import Nimble import SSImageBrowser class TableOfContentsSpec: QuickSpec { override func spec() { describe("these will fail") { it("can do maths") { expect(1) == 2 } it("can read") { ...
mit
3DprintFIT/octoprint-ios-client
OctoPhoneTests/VIew Related/Slicing Profiles/SlicingProfileCellTests.swift
1
2749
// // SlicingProfileCellTests.swift // OctoPhone // // Created by Josef Dolezal on 01/04/2017. // Copyright © 2017 Josef Dolezal. All rights reserved. // import Nimble import Quick @testable import OctoPhone class SlicingProfileCellTests: QuickSpec { override func spec() { describe("Slicing profile ce...
mit
jshultz/ios9-swift2-core-data-demo
Core Data Demo/ViewController.swift
1
3880
// // ViewController.swift // Core Data Demo // // Created by Jason Shultz on 10/3/15. // Copyright © 2015 HashRocket. All rights reserved. // import UIKit import CoreData class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup aft...
mit
aipeople/PokeIV
PokeIV/PopoverTemplateView.swift
1
4433
// // PopoverTemplateView.swift // PokeIV // // Created by aipeople on 8/15/16. // Github: https://github.com/aipeople/PokeIV // Copyright © 2016 su. All rights reserved. // import UIKit import Cartography typealias PopoverViewSelectionCallBack = (PopoverTemplateView, selectedIndex: Int) -> () class PopoverTemp...
gpl-3.0
Alloc-Studio/Hypnos
Hypnos/Hypnos/Configure/HypnosConfig.swift
1
790
// // HypnosConfig.swift // Hypnos // // Created by Maru on 16/5/18. // Copyright © 2016年 DMT312. All rights reserved. // import Foundation import UIKit struct HypnosConfig { // MARK: - UI Config /// 默认主题颜色,导航栏 static let DefaultThemeColor = UIColor(r: 128, g: 191, b: 232, alpha: 1) /// 主页的...
mit
Ryce/flickrpickr
Carthage/Checkouts/judokit/Source/DateInputField.swift
2
12572
// // DateTextField.swift // JudoKit // // 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, including without limit...
mit
quire-io/SwiftyChrono
Sources/Utils/Util.swift
1
2961
// // Util.swift // SwiftyChrono // // Created by Jerry Chen on 1/18/17. // Copyright © 2017 Potix. All rights reserved. // import Foundation let HALF = Int.min let HALF_SECOND_IN_MS = millisecondsToNanoSeconds(500) // unit: nanosecond /// get ascending order from two number. /// ATTENSION: func sortTwoNumbers(_...
mit
ltcarbonell/deckstravaganza
Deckstravaganza/GenericSwitchView.swift
1
632
// // GenericSwitchView.swift // Deckstravaganza // // Created by Cory Armstrong on 11/23/15. // Copyright © 2015 University of Florida. All rights reserved. // import UIKit class GenericSwitchView: UISwitch, GenericFormElements { func getDefaultFrame() -> CGRect { return UISwitch().frame; } ...
mit
austinzheng/swift-compiler-crashes
crashes-duplicates/10601-swift-sourcemanager-getmessage.swift
11
226
// 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 a { func a { for in { class A { { } class case ,
mit
eurofurence/ef-app_ios
Packages/EurofurenceModel/Sources/EurofurenceModel/Public/Builder/Configurable Dependencies/ConventionStartDateRepository.swift
1
265
import Foundation public protocol ConventionStartDateRepository { func addConsumer(_ consumer: ConventionStartDateConsumer) } public protocol ConventionStartDateConsumer: AnyObject { func conventionStartDateDidChange(to startDate: Date) }
mit
austinzheng/swift-compiler-crashes
crashes-duplicates/02356-swift-parser-skipsingle.swift
11
289
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing ( ( ) { protocol a { { } var d = [ { class a { class case , var { { { { { ( ( ( ( { [ { { ( ( [ [ { { { { ( ( { ( [ [ x
mit
anicolaspp/rate-my-meetings-ios
Pods/CVCalendar/CVCalendar/CVCalendarMonthContentViewController.swift
3
16595
// // CVCalendarMonthContentViewController.swift // CVCalendar Demo // // Created by Eugene Mozharovsky on 12/04/15. // Copyright (c) 2015 GameApp. All rights reserved. // import UIKit public final class CVCalendarMonthContentViewController: CVCalendarContentViewController { private var monthViews: [Identifie...
mit
liujinlongxa/AnimationTransition
testTransitioning/TableViewController.swift
1
631
// // TableViewController.swift // testTransitioning // // Created by Liujinlong on 8/10/15. // Copyright © 2015 Jaylon. All rights reserved. // import UIKit class TableViewController: UITableViewController { override func viewDidLoad() { super.viewDidLoad() } override func viewDidAppear(_ ...
mit
austinzheng/swift-compiler-crashes
fixed/27457-llvm-tinyptrvector-swift-valuedecl-push-back.swift
4
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 let a{{{struct B{let a class a{func b{ class B {func b{ a=B
mit
austinzheng/swift-compiler-crashes
crashes-duplicates/19788-llvm-foldingset-swift-classtype-nodeequals.swift
11
260
// 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<d { struct S<T { { } class c { enum b { enum b : A { struct B protocol A { struct B
mit
esttorhe/RxSwift
RxSwift/RxSwift/DataStructures/Queue.swift
1
3173
// // Queue.swift // Rx // // Created by Krunoslav Zaher on 3/21/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation public struct Queue<T>: SequenceType { typealias Generator = AnyGenerator<T> let resizeFactor = 2 private var storage: [T?] private var _c...
mit
ra1028/KenBurnsSlideshowView
KenBurnsSlideshowView-Demo/KenBurnsSlideshowView-Demo/ViewController.swift
1
1267
// // ViewController.swift // KenBurnsSlideshowView-Demo // // Created by Ryo Aoyama on 12/1/14. // Copyright (c) 2014 Ryo Aoyama. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var kenBurnsView: KenBurnsView! @IBOutlet weak var bottomConstraint: NSLayout...
mit
qvacua/vimr
VimR/VimR/CoreDataStack.swift
1
3318
/** * Tae Won Ha - http://taewon.de - @hataewon * See LICENSE */ import Commons import CoreData import Foundation import os final class CoreDataStack { enum Error: Swift.Error { case noCacheFolder case pathDoesNotExit case pathNotFolder case unableToComplete(Swift.Error) } enum StoreLocatio...
mit
apple/swift
test/Inputs/clang-importer-sdk/swift-modules/CoreGraphics.swift
1
1316
@_exported import ObjectiveC @_exported import CoreGraphics public func == (lhs: CGPoint, rhs: CGPoint) -> Bool { return lhs.x == rhs.x && lhs.y == rhs.y } #if !CGFLOAT_IN_COREFOUNDATION public struct CGFloat { #if arch(i386) || arch(arm) || arch(arm64_32) || arch(powerpc) public typealias UnderlyingType = Floa...
apache-2.0
NoodleOfDeath/PastaParser
runtime/swift/GrammarKit/Classes/model/grammar/scanner/GrammaticalScanner.swift
1
5238
// // The MIT License (MIT) // // Copyright © 2020 NoodleOfDeath. All rights reserved. // NoodleOfDeath // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including wi...
mit
ben-ng/swift
validation-test/compiler_crashers_fixed/27150-swift-constraints-constraintsystem-gettypeofmemberreference.swift
1
445
// 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...
apache-2.0
raulriera/HuntingKit
HuntingKit/User.swift
1
2579
// // User.swift // HuntingKit // // Created by Raúl Riera on 19/04/2015. // Copyright (c) 2015 Raul Riera. All rights reserved. // import Foundation public struct User: Model { public let id: Int public let name: String public let headline: String public let username: String public let profil...
mit
cnoon/swift-compiler-crashes
crashes-duplicates/20507-no-stacktrace.swift
11
246
// 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 { class a { func a { for { init { let P { for in { class case ,
mit
cnoon/swift-compiler-crashes
crashes-duplicates/17480-no-stacktrace.swift
11
244
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing enum A { let a = [ { { } { { class A { var d { func b ( = { { class case ,
mit
icanzilb/Retry
Example/Tests/RetryAsyncTests.swift
1
8755
import Foundation import XCTest @testable import Retry class RetryAsyncTests: XCTestCase { enum TestError: Error { case testError } //MARK: - async retries func testAsyncNoThrow() { var output = "" retryAsync { output += "try" } output += "-end" ...
mit
steelwheels/Coconut
CoconutData/Source/Value/CNMutablePointer.swift
1
3970
/* * @file CNMutablePointerValue.swift * @brief Define CNMutablePointerValue class * @par Copyright * Copyright (C) 2022 Steel Wheels Project */ import Foundation public class CNMutablePointerValue: CNMutableValue { private var mPointerValue: CNPointerValue private var mContext: CNMutableValue? public ini...
lgpl-2.1
yuanziyuer/XLPagerTabStrip
Example/Example/Helpers/PostCell.swift
2
2198
// PostCell.swift // XLPagerTabStrip ( https://github.com/xmartlabs/XLPagerTabStrip ) // // Copyright (c) 2016 Xmartlabs ( http://xmartlabs.com ) // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // i...
mit
tuanan94/FRadio-ios
SwiftRadio/NowPlayingViewController.swift
1
4420
import UIKit import AVFoundation import Firebase import FirebaseDatabase import NotificationBannerSwift class NowPlayingViewController: UIViewController { @IBOutlet weak var albumHeightConstraint: NSLayoutConstraint! @IBOutlet weak var albumImageView: SpringImageView! @IBOutlet weak var playButton: UIB...
mit
edx/edx-app-ios
Source/VideoDownloadQualityViewController.swift
1
9105
// // VideoDownloadQualityViewController.swift // edX // // Created by Muhammad Umer on 13/08/2021. // Copyright © 2021 edX. All rights reserved. // import UIKit fileprivate let buttonSize: CGFloat = 20 protocol VideoDownloadQualityDelegate: AnyObject { func didUpdateVideoQuality() } class VideoDownloadQual...
apache-2.0
indragiek/MarkdownTextView
MarkdownTextView/MarkdownSuperscriptHighlighter.swift
1
2376
// // MarkdownSuperscriptHighlighter.swift // MarkdownTextView // // Created by Indragie on 4/29/15. // Copyright (c) 2015 Indragie Karunaratne. All rights reserved. // import UIKit /** * Highlights super^script in Markdown text (unofficial extension) */ public final class MarkdownSuperscriptHighlighter: Highlig...
mit
narner/AudioKit
Playgrounds/AudioKitPlaygrounds/Playgrounds/Effects.playground/Pages/AutoPan Operation.xcplaygroundpage/Contents.swift
1
1698
//: ## AutoPan Operation //: import AudioKitPlaygrounds import AudioKit //: This first section sets up parameter naming in such a way //: to make the operation code easier to read below. let speedIndex = 0 let depthIndex = 1 extension AKOperationEffect { var speed: Double { get { return self.parameters[sp...
mit