text
stringlengths
8
1.32M
// // ChallengesOverviewPresenter.swift // StudyPad // // Created by Roman Levinzon on 03/02/2019. // Copyright (c) 2019 Roman Levinzon. All rights reserved. // import Foundation class ChallengesOverviewPresenter { // MARK: - Properties let interactor: ChallengesOverviewInteractorInput weak var coordi...
// // Photo.swift // GalleryApp // // Created by Eojin Yang on 2021/01/08. // import Foundation struct Photo: Codable { let id: String? let width: Int? let height: Int? let urls: Urls? let user: User? struct Urls: Codable { let regular: String? } struct User: Codab...
// // Render.swift // EasyList // // Created by Alexey Zverev on 26.11.2019. // Copyright © 2019 Alexey Zverev. All rights reserved. // import UIKit // MARK: - View public typealias AZView = UIView & AZConfigurable & AZAnyModelConfigurableView public protocol AZConfigurable { associatedtype Model: ViewAssoci...
// // JSONCompareMatch.swift // Foci // // Created by Losonczi László on 22/04/16. // Copyright © 2016 Losi. All rights reserved. // import UIKit import SwiftyJSON class JSONCompareMatch: NSObject { init(json: JSON) { home = json["home"].stringValue; away = json["away"].stringValue; ho...
// // ViewController.swift // app02 // // Created by developer on 04.02.2021. // import UIKit class ViewController: UIViewController { @IBOutlet var imgView: UIImageView? @IBOutlet var speedField: UITextField? @IBOutlet var btnRotation: UIButton? var isRotating = true var timer = Timer() ...
// // OverlayView.swift // MobileCapture2SDKTest // // Created by PF Olthof on 30/08/16. // Copyright © 2016 CumulusPro. All rights reserved. // import UIKit public class OverlayView : UIView { public var start: CGPoint! public var end: CGPoint! override public init(frame: CGRect) { super...
// // UIColor+LGL.swift // LGLExtension // // Created by Passer on 2021/2/17. // import UIKit extension UIColor: LGLCompatible {} public extension LGL where Base == UIColor { /** 创建一个适配暗黑模式的颜色 - parameter darkColor: 暗黑模式的时候展示的颜色 - parameter lightColor: 其他模式的时候展示的颜色 */ static func tra...
// // ChaosBag.swift // ArkhamHorrorKit // // Created by Tiago Bras on 10/11/2017. // Copyright © 2017 Tiago Bras. All rights reserved. // import Foundation public struct ChaosBag: Equatable { public let id: Int public var p1: Int public var zero: Int public var m1: Int public var m2: Int ...
// // RenderableAssetManager.swift // Visualiser // // Created by Douglas Finlay on 06/03/2017. // Copyright © 2017 Douglas Finlay. All rights reserved. // import MetalKit enum RenderableAssetError: Error { case couldNotLoad } class RenderableAssetManager { private var meshStore = [Mesh]() ...
// // HTTPTask.swift // EvaluationTestiOS // // Created by Денис Магильницкий on 16.01.2021. // Copyright © 2021 Денис Магильницкий. All rights reserved. // import Foundation public typealias HTTPHeaders = [String: String] // Configure request parameters public enum HTTPTask { case request case requestP...
// // Stack.swift // ChaosKit // // Created by Fu Lam Diep on 11.06.15. // Copyright (c) 2015 Fu Lam Diep. All rights reserved. // import Foundation public struct Stack<T> : Collection, CountLimited { public typealias Element = T private var _array : [T] = [] public var count : Int {get {return _array.co...
// // SecondViewController.swift // Delegates and Protocols // // Created by Yamusa Dalhatu on 10/6/20. // import UIKit protocol CanRecieve { func dataReceived(data: String) } class SecondViewController: UIViewController { var delegate : CanRecieve? @IBOutlet weak var messageLabel2: UILabel! ...
// // ServerJsonManager.swift // ISOSuSwiftV // // Created by Amit Tiwari on 5/18/17. // Copyright © 2017 amit tiwari. All rights reserved. // import UIKit protocol ReponseObjectOfJson: class { func Respondata(_ text: Any) } class ServerJsonManager: NSObject { // class var sharedInstance: ServerJsonManag...
import UIKit extension UIImage { func scaleImageToSize(newSize: CGSize) -> UIImage? { let widthRatio = newSize.width / size.width let heightRatio = newSize.height / size.height let ratio = max(widthRatio, heightRatio) var scaledImageRectangle = CGRect.zero scaledIm...
// // PersistenceManager.swift // login // // Created by Lim Teck Kian, Adam (HLB) on 26/09/2019. // Copyright © 2019 Lim Teck Kian, Adam (HLB). All rights reserved. // import UIKit class PersistencyManager: NSObject { func saveImage(_ image: UIImage, filename: String) { let path = NSHomeDirectory() +...
// // FooterView.swift // Freesurf // // Created by Sahand Nayebaziz on 9/17/16. // Copyright © 2016 Sahand Nayebaziz. All rights reserved. // import UIKit @objc protocol FooterViewDelegate { func didTapAdd() } class FooterView: UIView { let delegate: FooterViewDelegate init(delegate: Foote...
// // ParcelableModel.swift // BTCUSDChart // // Created by Андрей Ежов on 28.10.17. // Copyright © 2017 Андрей Ежов. All rights reserved. // import Foundation import ObjectMapper class ParcelableModel: Mappable { // MARK: - Construction required init?(map: Map) { self.mapping(map: map) ...
// // JournalNotification.swift // InoJournal // // Created by Luis Orozco on 3/25/17. // Copyright © 2017 Luis Orozco. All rights reserved. // import Foundation class JournalNotification: NSObject, NSUserNotificationCenterDelegate{ static let shared = JournalNotification() func userNotification...
// // IconCollectionViewCell.swift // ToDoList // // Created by Roy Park on 12/15/20. // import UIKit class IconCollectionViewCell: UICollectionViewCell { @IBOutlet weak var testImage: UIImageView! @IBOutlet weak var iconImage: UIImageView! override func awakeFromNib() { super.awakeFromNib() /...
// // LightTableViewCell.swift // PicassoHouse // // Created by Antony Alkmim on 26/03/17. // Copyright © 2017 CoderUP. All rights reserved. // import UIKit import RxSwift import RxCocoa class LightTableViewCell: UITableViewCell { var disposeBag = DisposeBag() var viewModel: LightItemViewModel? ...
import UIKit class VariableTitleValueCell: EditableTitleValueTableViewCell { override class var textLabelDefaultTextColor: UIColor { return AppColor.Text.VariableName } override class var detailTextLabelDefaultTextColor: UIColor { return AppColor.Text.VariableValue } } extension VariableTitleValueCell...
// // TicTacToeViewController.swift // Pruebas // // Created by Julio Banda on 11/23/18. // Copyright © 2018 Julio Banda. All rights reserved. // import UIKit class TicTacToeViewController: UIViewController { let X: String = "X" let O: String = "O" var game: [[String]] = [["", "", ""], ...
// // ViewController.swift // Window // // Created by mac on 12/3/15. // Copyright © 2015 JY. All rights reserved. // import Cocoa class ViewController: NSViewController { @IBOutlet var text: NSTextView! override func viewDidLoad() { super.viewDidLoad() // 显示或者隐藏标尺 text.toggleRuler(nil) }...
// // ZGraphEditor.swift // Seriously // // Created by Jonathan Sand on 10/29/16. // Copyright © 2016 Jonathan Sand. All rights reserved. // import Foundation import CloudKit #if os(OSX) import Cocoa #elseif os(iOS) import UIKit #endif let gGraphEditor = ZMapEditor() // mix of zone mutations and web ...
// // Vector3Tests.swift // // // Created by David Green on 10/9/20. // import XCTest @testable import SwiftGame final class Vector3Tests: XCTestCase { func testInitializers () { let expectedResult = Vector3(1, 2, 3) let expectedResult2 = Vector3(2.2, 2.2, 2.2) XCTAssertEqual(expectedR...
// // Post.swift // tablle_json // // Created by Tonya on 10/11/2018. // Copyright © 2018 Tonya. All rights reserved. // import Foundation import UIKit struct Post { var name = "" var type = "" var episodes = "" var episode_length = "" var description = "" var imageforsecond: UIImage? }...
// // ConversionViewController.swift // TemperatureConverter // // Created by Dilpreet Singh on 20/10/16. // Copyright © 2016 Dilpreet Singh. All rights reserved. // import UIKit class ConversionViewController: UIViewController, UITextFieldDelegate { private var fahrenheitValue: Double? { didSet ...
// // Triangle.swift // GameDevConcepts // // Created by Gabriel Anderson on 8/7/15. // Copyright (c) 2015 Gabriel Anderson. All rights reserved. // import Cocoa import SpriteKit class Triangle: Shape { var width: CGFloat, height: CGFloat //var angle: Float init(x: CGFloat, y: CGFloat, width: CGF...
// // UIView+Nib.swift // FinanteqInterview // // Created by Patryk Domagala on 12/06/2018. // Copyright © 2018 Dom-Pat. All rights reserved. // import UIKit extension Bundle { public static func nibView<V: UIView>(for viewType: V.Type, owner: Any? = nil) -> V? { let bundle = Bundle(for: viewType) ...
// // File.swift // Schuylkill-App // // Created by Sam Hicks on 3/1/21. // import Foundation import Resolver #if !os(watchOS) import OSLog #endif public protocol ServiceNaming { var name: String { get } init() }
// // LampType.swift // cityos-led // // Created by Said Sikira on 9/21/15. // Copyright © 2015 CityOS. All rights reserved. // import CoreLocation import MapKit /// Structures adopting LampType procotol can be used to represent single LED /// Lamp public protocol LampType { /// Device meta data var ...
// // PopOver.swift // SpotMenu // // Created by Miklós Kristyán on 2017. 07. 16.. // Copyright © 2017. KM. All rights reserved. // import Cocoa import Spotify class PopOver: NSView { var lastArtworkUrl = "" var rightTimeIsDuration: Bool = true public var timer: Timer! public var defaultImage...
// // PhotoHeaderView.swift // FlickrSearch // // Created by Jeff Norton on 11/20/16. // Copyright © 2016 JeffCryst. All rights reserved. // import UIKit class PhotoHeaderView: UICollectionReusableView { //================================================== // MARK: - _Properties //===============...
import Foundation // dğişkenler let x = 7 var y = 65 var z = 45 print("z=\(z)") print("x=\(x)") y = y + 4 print("y=\(y)") var c : Double = 0.0 print("c=\(c)") // diziler var d : [Int] = [2,232,4,54,56,767,0,6878,8,8] var dizi : Dictionary <Int, String> = [12: "sed", 123 : "kub", 35 : "dil" , 57: "cal" ] pri...
import Foundation import Bow public typealias Algebra<F, A> = (Kind<F, A>) -> A public typealias Coalgebra<F, A> = (A) -> Kind<F, A> public extension Functor { static func hylo<A, B>(_ algebra : @escaping Algebra<Self, Eval<B>>, _ coalgebra : @escaping Coalgebra<Self, A>, ...
// // World.swift // TextAdventrueSwift // import Foundation struct World { private(set) var areas: [Area] private(set) var currentArea: Area mutating func movePlayer(_ player: Player, inDirection direction: Direction) { updateArea(currentArea) guard let area = findArea(atPosition: cur...
import Foundation public final class URLSessionRequestDispatcher: RequestDispatcher { // MARK: - Dependencies private let session: URLSession private let responseDecoder: ResponseDecoder // MARK: - Init init(session: URLSession, responseDecoder: ResponseDecoder) { self.session = s...
// // WFMeetingViewController.swift // niinfor // // Created by 王孝飞 on 2017/8/23. // Copyright © 2017年 孝飞. All rights reserved. // import UIKit import SDCycleScrollView import JavaScriptCore import WebKit import ObjectiveC import MJRefresh class WFMeetingViewController: BaseViewController,UIWebViewDelegate { //...
// // StringExtensions.swift // FindOrOfferAJobApp // // Created by Haroldo on 12/02/20. // Copyright © 2020 HaroldoLeite. All rights reserved. // import Foundation extension String { static func localize(_ string: String) -> String { return NSLocalizedString(string, comment: "") } }
// // getAbilities.swift // PocketDex // // Created by Thomas Tenzin on 8/10/20. // Copyright © 2020 Thomas Tenzin. All rights reserved. // import Foundation func getAbilities(pokemonAbilitiesList: [PokemonAbilities], pkmnID: Int) -> [PokemonAbilities] { var finalList = [PokemonAbilities]() if let j ...
// // CrewPageViewController.swift // Reached // // Created by John Wu on 2016-08-04. // Copyright © 2016 ReachedTechnologies. All rights reserved. // // // CrewPage.swift // Reached // // Created by John Wu on 2016-08-04. // Copyright © 2016 ReachedTechnologies. All rights reserved. // class CrewPageViewCont...
// // SelectLocationWireframe.swift // Weather // // Created by Milan Shah on 5/27/19. // Copyright (c) 2019 Milan Shah. All rights reserved. // // import UIKit final class SelectLocationWireframe: BaseWireframe { // MARK: - Module setup - init() { let moduleViewController = SelectLocationViewCo...
//: Playground - noun: a place where people can play import UIKit /// "class"和"static"都可以用来声明一个类属性和方法。不同的是利用"class"关键字修饰的类属性或方法,是可以有子类重写的。而用"static"关键字修饰的,就相当于加了final关键字,子类不能重写相关的属性。因为储值属性是不能被子类重写的,故也不能用"class"关键字修饰。 class SomeClass { static var someValue : String = "" class var someValue1 : Int{ retu...
// // LoginInteractor.swift // BoardlyLogin // // Created by Mateusz Dziubek on 07/12/2018. // Copyright © 2018 Mateusz Dziubek. All rights reserved. // import Foundation import RxSwift class LoginInteractorImpl: LoginInteractor { private let loginService: LoginService init(loginService: LoginSe...
// // BookmarksViewController.swift // TreeNote // // Created by Evgenii Loshchenko on 11.11.2020. // import UIKit class BookmarksViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, ContentionTableViewCellDelegate { @IBOutlet weak var tableView: UITableView! var cells: [Contenti...
// // newsdetialModel.swift // huicheng // // Created by lvxin on 2018/3/19. // Copyright © 2018年 lvxin. All rights reserved. // //"id": 2950,//ID //"title": "致全体惠诚同仁",//标题 //"content": "<p><br/>全体惠诚同仁明年胜今年!快乐、吉祥、健康、幸 //福永远伴随您! <\/p>",//正文 //"object": "全体职员",//接收对象 //“state”:1//状态 0-未发布;1-已发布;2-已撤回 "stateStr": "已发...
// Controller for the Home menu section. class HomeViewController: UIViewController { // Menu buttons. @IBOutlet weak var btnMusicCorner: UIButton! @IBOutlet weak var btnAbout: UIButton! @IBOutlet weak var btnContact: UIButton! override func viewDidLoad() { // Set background co...
// // ExercisesPage.swift // Tracker // // Created by Nicholas Coffey on 11/6/20. // import SwiftUI struct ExercisesPage: View { @State var text = "" var body: some View { NavigationView { ScrollView { ExercisesHeader() } .navigationBarTitle(...
// // LoginViewController.swift // projecttracking // // Created by Kong Mono on 12/19/15. // Copyright © 2015 River Engineering. All rights reserved. // import UIKit class LoginViewController: UIViewController { @IBOutlet weak var mUsername:UITextField! @IBOutlet weak var mPassword:UITextField! ...
// // ListDetailsViewController.swift // // Created by Dmitry Vorozhbicki on 30/10/2020. // Copyright © 2020 Dmitry Vorozhbicki. All rights reserved. // import UIKit class ListDetailsViewController: BaseViewController { private let tableView = UITableView() private var safeArea: UILayoutGuide! pri...
// // AppearanceView.swift // assignment3-group // // Created by Chau Phuoc Tuong on 5/8/19. // https://stackoverflow.com/questions/27093226/changing-background-color-of-all-views-in-project-from-one-view-controller import UIKit import Foundation class AppearanceView { class var sharedService : Appearance...
// Refuge.swift // *プロパティを追加した時は、古い.realmファイルを更新するため、simulator内のアプリアイコンを一度削除してから再ビルドを行う。 import RealmSwift class Refuge: Object { // 管理用プライマリーキー dynamic var id = 1 // カテゴリ dynamic var category: Category? // 場所 dynamic var place = "" // 住所 dynamic var address = "" ...
// // AddCardVC.swift // ClassyDrives // // Created by Mindfull Junkies on 18/06/19. // Copyright © 2019 Mindfull Junkies. All rights reserved. // import UIKit class AddCardVC: BaseVC, UITextFieldDelegate{ @IBOutlet var cardNoView: UIView! @IBOutlet var expMonthView: UIView! @IBOutlet var expYearView:...
// // ShoppingListItemRow.swift // Juicies // // Created by Brianna Lee on 5/7/20. // Copyright © 2020 Brianna Zamora. All rights reserved. // import SwiftUI struct ShoppingListItemRow: View { @Environment(\.managedObjectContext) var context @ObservedObject var shoppingListItem: ShoppingListItem...
// // ActivityVC.swift // losAngelesPlaces // // Created by Andrew Foster on 3/31/17. // Copyright © 2017 Andrii Halabuda. All rights reserved. // import UIKit class ActivityVC: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.navigationController?.isNavigationBarHid...
// // ADWebViewController.swift // bundapp // // Created by YinZhang on 1/14/15. // Copyright (c) 2015 THEBUND. All rights reserved. // import UIKit class ADWebViewController: UIViewController { @IBOutlet weak var webView: UIWebView! @IBAction func close(sender: AnyObject) { self.dismissViewC...
// // Leisure.swift // TermProject // // Created by kpugame on 2021/05/18. // import Foundation struct TimeInfo { var time: String? var pop: String? var t3h: String? } var globalMeasurements: [TimeInfo] = [] var measurementsCount: Int = 0
// // PopoverDatePickerViewController.swift // RentBuddy // // Created by Steve Leeke on 5/11/16. // Copyright © 2016 Steve Leeke. All rights reserved. // import UIKit protocol PopoverPickerControllerDelegate { // MARK: PopoverPickerControllerDelegate Protocol func stringPicked(_ string:String?) } e...
// // CompositionTests.swift // // Created by Chuck Krutsinger on 2/15/19. // Copyright © 2019 Countermind, LLC. All rights reserved. // import XCTest @testable import CMUtilities class CompositionTests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invo...
import Flutter import UIKit func getMyPerson() -> Person { let p = Person.with { $0.name = "TruongSinh" $0.supervisorOf = [ Person.with { $0.name = "Jane Dane" $0.addresses = [ UsaAddress.with{ $0.streetNameAndN...
// // tsuutiCustomCell.swift // しゅくまる // // Created by miyu.s on 2017/11/14. // Copyright © 2017年 miyu.s. All rights reserved. // import UIKit import NCMB class setTsuutiCell { var iconView: String var title: String init(icon: String, title: String) { self.iconView = icon ...
// // CommentCell.swift // TemplateSwiftAPP // // Created by wenhua on 2018/9/2. // Copyright © 2018年 wenhua yu. All rights reserved. // import Foundation import UIKit class CommentCell: BaseTCell { /// 懒加载 lazy var iconView: UIImageView = { let view = UIImageView() return view }(...
// // Author+CoreDataProperties.swift // ChallengeApp // // Created by Jayr Atamosa on 21/08/2019. // Copyright © 2019 Jayr Atamosa. All rights reserved. // // import Foundation import CoreData extension Author { @nonobjc public class func fetchRequest() -> NSFetchRequest<Author> { return NSFetchRequ...
// // VAsset.swift // TG // // Created by Andrii Narinian on 9/23/17. // Copyright © 2017 ROLIQUE. All rights reserved. // import Foundation import SwiftyJSON import Alamofire typealias TelemetryCompletion = ([ActionModel]) -> Void class VAsset: VModel { var url: String? var contentType: String? var ...
// // AddTwoNumbersViewController.swift // LeetCode-Swift-master // // Created by lengain on 2019/1/14. // Copyright © 2019 Lengain. All rights reserved. // import UIKit public class ListNode { public var val: Int public var next: ListNode? public init(_ val: Int) { self.val = val self...
// Youtube.swift // Youtube ( https://github.com/xmartlabs/XLActionController ) // // Copyright (c) 2015 Xmartlabs ( http://xmartlabs.com ) // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the ...
import UIKit // Declaring static variables // price for the tax, based on this table https://www.theitaliantimes.it/economia/calcolo-bollo-auto-online-quando-pagamento_060619/ let euroStandardPrice = [3.00,2.90,2.80,2.70,2.58,2.58,2.58] let euroElevatedPrice = [4.50,4.35,4.20,4.05,3.87,3.87,3.87] let overPrice185kw ...
// // GenericProtocol.swift // Driveo // // Created by Admin on 6/3/18. // Copyright © 2018 ITI. All rights reserved. // import Foundation protocol GenericProtocol { func showAlert(ofError error:ErrorType)->Void func presentToNextScreen() }
import Foundation import JavaScriptCore @objc protocol MusicMakerJSExports: JSExport { static func playSound(_ file: String) } /** Class exposed to a JS context. */ @objc class MusicMaker: NSObject, MusicMakerJSExports { /// Keeps track of all sounds currently being played. private static var audioPlayers...
// // AppTheme.swift // Nightscouter // // Created by Peter Ina on 8/4/15. // Copyright (c) 2015 Peter Ina. All rights reserved. // import UIKit public struct Theme { public struct Color { public static let windowTintColor = NSAssetKit.predefinedNeutralColor public static let headerTextColor ...
/* Copyright Airship and Contributors */ import Foundation /// The Config object provides an interface for passing common configurable values to `UAirship`. /// The simplest way to use this class is to add an AirshipConfig.plist file in your app's bundle and set /// the desired options. @objc(UAConfig) public class C...
// // LocationService.swift // DailyLifeV2 // // Created by Lý Gia Liêm on 8/20/19. // Copyright © 2019 LGL. All rights reserved. // import Foundation import CoreLocation import AlamofireObjectMapper import Alamofire class WeatherApiService { let weatherTitles = ["time", "summary", "latitude", "longitude", "te...
import Foundation class PipelineDataDeserializer { func deserialize(_ data: Data) -> (pipelines: [Pipeline]?, error: DeserializationError?) { var pipelinesJSONObject: Any? do { pipelinesJSONObject = try JSONSerialization.jsonObject(with: data, options: .allowFragments) } catch {...
// // TimelineViewController.swift // J.YoutubeWatcher // // Created by JinYoung Lee on 21/02/2019. // Copyright © 2019 JinYoung Lee. All rights reserved. // import Foundation import UIKit class TimelineVideoController: UIViewController { @IBOutlet weak var searchBar: UISearchBar! @IBOutlet weak var timel...
// // ArtistaDashboardController.swift // IVO // // Created by user on 12/30/16. // Copyright © 2016 3dlink. All rights reserved. // import Foundation import UIKit class ArtistaDashboardController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout { ...
// // MainView.swift // MedDesktop // // Created by Igor Ogai on 05.07.2021. // import UIKit class MainView: UIView { //MARK:- Private Properties private lazy var fullNameHeaderLabel: UILabel = { let label = UILabel() label.text = "ФИО пациента" label.textColor = .black ...
// // CategoriesViewController.swift // NasiShadchanHelper // // Created by user on 4/24/20. // Copyright © 2020 user. All rights reserved. // import UIKit import Firebase import ObjectMapper class CategoriesViewController: UIViewController { var ref: DatabaseReference! var messages = [[String: ...
// // GitHubSearchViewReactor.swift // RxMVVMDemo // // Created by mengxiangjian on 2018/11/2. // Copyright © 2018 mengxiangjian. All rights reserved. // import Foundation import ReactorKit import RxCocoa import RxSwift class GitHubSearchViewReactor: Reactor { var initialState = State() enum Ac...
import Bow import SwiftCheck // MARK: Generator for Property-based Testing extension Zipper: Arbitrary where A: Arbitrary { public static var arbitrary: Gen<Zipper<A>> { Gen.zip([A].arbitrary, A.arbitrary, [A].arbitrary) .map(Zipper.init(left:focus:right:)) } } // MARK: Instance of Arbitr...
// // HomeViewController.swift // BeforAfter // // Created by 石井晃 on 2015/05/23. // Copyright (c) 2015年 Mobile Interaction Researcher. All rights reserved. // import UIKit class HomeViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { private var timelines: [Timeline] = [] ...
// // UsefulLinkCell.swift // companion // // Created by Uchenna Aguocha on 11/14/18. // Copyright © 2018 Yves Songolo. All rights reserved. // import Foundation import UIKit class UsefulLinkSectionCell: UITableViewCell { // MARK: Properties static let cellId = "UsefulLinkCellId" // MA...
import UIKit import FriendTabFramework import PlaygroundSupport PlaygroundPage.current.needsIndefiniteExecution = true let bundle = Bundle(for: MainViewController.self) let storyboard = UIStoryboard(name: "Main", bundle: bundle) let vc = storyboard.instantiateInitialViewController()! PlaygroundPage.current.liveView ...
/** Copyright Alexander Oldroyd 2020 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, software ...
// // InvocationCounterSinceEver.swift // Invoke // // Created by Gruppioni Michele on 14/08/16. // // import Foundation final class InvocationCounterSinceEver { fileprivate let kInvocationsLabels = "kInvocationsLabels" fileprivate let kInvocationsCountPrefix = "kInvocationsLabelsCount." filepriva...
// // ChatViewController.swift // FlowTest // // Created by Šimun on 09.05.2015.. // Copyright (c) 2015. Manifest Media ltd. All rights reserved. // import UIKit import Starscream import SwiftyJSON import AVFoundation import AVKit class ChatViewController: UIViewController, UITextViewDelegate, WebSocketDelegate, ...
// // TSDiscoverViewController.swift // TVShow // // Created by lkx on 16/4/28. // Copyright © 2016年 imeng. All rights reserved. // import UIKit import AlamofireObjectMapper import Alamofire import SwiftyJSON private let reuseIdentifier = "Cell" //let DiscoverSectionURL = "http://api.douban.com/v2/movie/top250" ...
// // ScoreBoardCellView.swift // Blueprint // // Created by Samuel Proulx on 2020-01-26. // Copyright © 2020 SP. All rights reserved. // import SwiftUI struct ScoreBoardCellView: View { @State var team: String = "" var body: some View { TextField("Red1", text: $team) } } struct ScoreBoardCel...
// // SavedPasswordTableViewCell.swift // PasswordSaver // // Created by Victor Martins Rabelo on 03/02/18. // Copyright © 2018 Victor Martins Rabelo. All rights reserved. // import UIKit class SavedPasswordTableViewCell: UITableViewCell { @IBOutlet weak var logo: UIImageView! @IBOutlet weak var url: UIL...
// // ContentView.swift // VolumeConversion // // Created by Mike Pattee on 6/9/20. // Copyright © 2020 Mike Pattee. All rights reserved. // import SwiftUI struct ContentView: View { @State private var fromVolumeTypeIndex = 0 @State private var toVolumeTypeIndex = 0 @State private var valueString = ""...
// // GameView.swift // bowtie2 // // Created by Jake Runzer on 2020-11-21. // import SwiftUI fileprivate class GameViewSheetState: Identifiable { var addingScore: PlayerScore? var playerHistory: PlayerScore? init(adding addingScore: PlayerScore?, history playerHistory: PlayerScore?) { ...
// // SourceViewController.swift // News Today import UIKit import NVActivityIndicatorView import DropDown class SourceViewController: UIViewController,NVActivityIndicatorViewable { @IBOutlet weak var languageButton: UIButton! @IBOutlet weak var countryCode: UIButton! @IBOutlet weak var categoryTy...
// // AppColors.swift // HSAPP-iOS // // Created by Tony Cioara on 6/7/18. // Copyright © 2018 Tony Cioara. All rights reserved. // import UIKit extension UIColor { struct AppColors { static var lightBlue: UIColor { return UIColor(red: 0 / 255, green: 122 / 255, blue: 255 / 255, alpha: 1.0) } ...
// Corona-Warn-App // // SAP SE and all other contributors // copyright owners license this file to you 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....
// // GZEMenuMain.swift // Gooze // // Created by Yussel Paredes Perez on 5/19/18. // Copyright © 2018 Gooze. All rights reserved. // import UIKit import ReactiveSwift import ReactiveCocoa import enum Result.NoError class GZEMenuMain { static let shared = GZEMenuMain() let menuItemTitleProfile = "menu.i...
// // SellerEmptyProfileViewC.swift // MyLoqta // // Created by Shivansh Jaitly on 7/4/18. // Copyright © 2018 AppVenturez. All rights reserved. // import UIKit class SellerEmptyProfileViewC: BaseViewC { // MARK: - IBOutlets @IBOutlet weak var containerView: UIView! @IBOutlet weak var lblSta...
// // GalleryViewController.swift // App // // Created by developer on 05.05.16. // Copyright © 2016 developer. All rights reserved. // import UIKit import SnapKit class GalleryViewController: UIViewController, UIScrollViewDelegate { @IBOutlet var viewC: UIView! @IBOutlet weak var scrollView: UIScrollVie...
// // NextHandsOverViewController.swift // Your Projects // // Created by Carlos Modinez on 04/06/19. // Copyright © 2019 Carlos Modinez. All rights reserved. // import UIKit class NextHandsOverViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tbvActivities: UI...
// // Collection+Extensions.swift // Just Do It // // Created by Pavel Shadrin on 21/06/2017. // Copyright © 2017 Pavel Shadrin. All rights reserved. // import Foundation extension Collection where Index == Int { func randomElement() -> Iterator.Element? { return isEmpty ? nil : self[Int(arc4random_un...
// // SecondChapter.swift // TDD // // Created by tangyuhua on 2017/4/10. // Copyright © 2017年 tangyuhua. All rights reserved. // import UIKit class ItemListViewController: UIViewController { @IBOutlet var dataProvider: protocol<UITableViewDataSource, UITableViewDelegate,ItemManagerSettable>! @...
// // SlideMenuTableViewController.swift // SlideOutMenus // // Created by Jagadish Uppala on 3/15/16. // Copyright © 2016 Jagadish Uppala. All rights reserved. // import UIKit class SlideMenuTableViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UIGestureRecognizerDelegate { priv...