text stringlengths 8 1.32M |
|---|
//
// STVideoUploadManager.swift
// SpecialTraining
//
// Created by sw on 07/05/2019.
// Copyright © 2019 youpeixun. All rights reserved.
//
import Foundation
import RxSwift
class STVideoUploadManager: NSObject {
public let startUploadSubject = PublishSubject<UploadVideoInfo>()
public let uploadSuccessS... |
import Foundation
import NIO
import GraphQL
import ContextKit
class ConnectionWrapper<Connection: ConnectionProtocol> {
private let connection: Connection
private let eventLoop: EventLoopGroup
private let first: Int?
private let after: String?
private let last: Int?
private let before: String... |
//
// UIBarButton+Extensions.swift
// Weibo
//
// Created by claude on 2018/7/3.
// Copyright © 2018年 ZS. All rights reserved.
//
import UIKit
//创建UIBarButtonItem
extension UIBarButtonItem{
convenience init(title: String, fontSize: CGFloat = 16, target: AnyObject, action: Selector, isBack: Bool = false){
... |
import UIKit
class PV2Controller: UIViewController,UIPickerViewDelegate{
//d1為pv2第一列的資料源,d2為pv2第二列的資料源
var d1 = ["海賊王","死神","獵人","火影忍者"]
var d2 = ["尾田榮一郎","久保帶人","坑爹義博","岸本齊史"]
var str1 = ""
var str2 = ""
override func viewDidLoad() {
super.viewDidLoad()
}
override fu... |
func bouncingBall(_ h: Double, _ bounce: Double, _ window: Double) -> (Int)
{
// Float parameter "h" in meters must be greater than 0
// Float parameter "bounce" must be greater than 0 and less than 1
// Float parameter "window" must be less than h
if !(h > 0) || ( !(bounce > 0) || !(bounce < 1) ) || !(... |
//
// GameState.swift
// ConwaysGameOfLife
//
// Created by Jeremy Yarley on 3/3/21.
//
import Foundation
//Enum to distinguish the state of the game, whether the user is adding the seeds,
//watching the plants grow or die, or if its game over.
//Strings included as message to the player, see ContentView Player Me... |
//
// InitialFlowItemsPresenterTests.swift
// walkdelivery
//
// Created by AndreyLebedev on 03/06/2017.
// Copyright © 2017 lebedac. All rights reserved.
//
@testable import walkdelivery
import XCTest
class InitialFlowItemsRouterMock: InitialFlowItemsRouterInput {
var routeToAuthSceneCalled = false
var route... |
//
// NewRunViewController.swift
// GotHealthy
//
// Created by Josh Rosenzweig on 3/04/16.
// Copyright © 2016 Volt. All rights reserved.
//
//SOMotionDetector - Pedometer tracking
import UIKit
import AVFoundation
import CoreLocation
import CoreData
import CoreMotion
import AudioToolbox
import HealthKit
import M... |
//
// RestUrl.swift
// FundooApp
//
// Created by admin on 07/07/20.
// Copyright © 2020 admin. All rights reserved.
//
import Foundation
enum RestUrl {
private static let BASE_URL_PATH = "http://fundoonotes.incubation.bridgelabz.com/api/"
static let ADD_NOTE_URL_PATH = BASE_URL_PATH+"notes/addNote... |
//
// Stack.swift
// Mixtape
//
// Created by Eva Marie Bresciano on 7/11/16.
// Copyright © 2016 Eva Bresciano. All rights reserved.
//
import Foundation
import CoreData
class Stack {
static let sharedStack = Stack()
lazy var managedObjectContext: NSManagedObjectContext = Stack.setUpMainContext... |
//
// CX_Stores.swift
// Silly Monks
//
// Created by Sarath on 04/05/16.
// Copyright © 2016 Sarath. All rights reserved.
//
import Foundation
import CoreData
@objc(CX_Stores)
class CX_Stores: NSManagedObject {
// Insert code here to add functionality to your managed object subclass
}
|
//
// HospitalHandler.swift
// ELRDRG
//
// Created by Jonas Wehner on 06.09.18.
// Copyright © 2018 Martin Mangold. All rights reserved.
//
import UIKit
import CoreData
class HospitalHandler: NSObject {
var delegate : HospitalProtocol?
public func deleteBaseHospital(basehospital : BaseHospita... |
//
// TabBarVC.swift
// Queue
//
// Created by Apple on 14/03/19.
// Copyright © 2019 Deftsoft. All rights reserved.
//
import UIKit
class TabBarVC: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
let appearance = UITabBarItem.appearance(whenContainedInInstancesOf: [Ta... |
// Created by Jonathan Lehr on 9/1/17.
// Copyright © 2017 About Objects. All rights reserved.
import UIKit
class BookDetailController: UITableViewController
{
var book: Book?
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var yearLabel: UILabel!
@IBOutlet weak var firstNameLabel: UILab... |
//
// ButtonForTab.swift
// cjxnfs
//
// Created by zhangyr on 15/5/25.
// Copyright (c) 2015年 cjxnfs. All rights reserved.
//
// 自定义tabBar中的按钮组合
//
import UIKit
class ButtonForTab: BaseButton
{
var titleFont : CGFloat = 10
{
didSet
{
if titleFont != oldValue
{
... |
//
// UIView+Closeable.swift
// SiberianVIPER
//
// Created by Sergey Petrachkov on 31/10/2017.
// Copyright © 2017 Sergey Petrachkov. All rights reserved.
//
import UIKit
extension UIView: Closeable {
public func close(animated: Bool, completion: (() -> Void)?) {
self.removeFromSuperview()
completion?(... |
//
// Constants.swift
// Kvartirka
//
// Created by Екатерина Протасова on 18.06.2020.
// Copyright © 2020 Екатерина Протасова. All rights reserved.
//
import Foundation
let baseUrlString = "https://api.beta.kvartirka.pro/client/1.4"
struct ServerAPIMethods {
static let getFlats = "flats"
static let getC... |
//
// LineAreaSpline.swift
// Swift Examples
//
// Copyright (c) 2014 Telerik. All rights reserved.
//
import Foundation
class LineAreaSpline: TKExamplesExampleViewController {
let chart = TKChart()
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.ini... |
//
// YourPostsTableViewCell.swift
// MakeChoice
//
// Created by 吴梦宇 on 7/12/15.
// Copyright (c) 2015 ___mengyu wu___. All rights reserved.
//
import UIKit
import Bond
protocol YourPostsTableViewCellDelegate: class{
func cell(cell: YourPostsTableViewCell, didSelectAddressBookSegue post: Post)
func cell(... |
//
// Button-BitmapImages.swift
// 100Views
//
// Created by Mark Moeykens on 9/1/19.
// Copyright © 2019 Mark Moeykens. All rights reserved.
//
import SwiftUI
struct Button_WithPhotos: View {
var body: some View {
VStack(spacing: 20) {
Text("Button").font(.largeTitle)
Text("Wi... |
//
// ViewController.swift
// Swift Statement
//
// Created by 李明禄 on 2017/4/2.
// Copyright © 2017年 SocererGroup. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
var selfCompletion: (()->())?
override func viewDidLoad() {
super.viewDidLoad()
// Do any a... |
//
// Table.swift
// Messiah App
//
// Created by Thomas Martin on 10/6/16.
// Copyright © 2016 Thomas Martin. All rights reserved.
//
import UIKit
import Firebase
import FirebaseDatabase
var currentEvent: Event? = nil
class Table: UITableViewController {
override func viewDidLoad() {
super.view... |
import RxSwift
import RxRelay
import RxCocoa
import CurrencyKit
import MarketKit
class NftActivityViewModel {
private let service: NftActivityService
private let disposeBag = DisposeBag()
private let eventTypeRelay = BehaviorRelay<String>(value: "")
private let contractRelay = BehaviorRelay<String?>(v... |
import Foundation
class TokenResponse: Decodable {
var token: String
enum CodingKeys: String, CodingKey {
case token = "access_token"
}
}
|
//
// main.swift
// Simple_Sample
//
// Created by admin on 2018/9/3.
// Copyright © 2018年 admin. All rights reserved.
//
import Foundation
print("Hello, World!")
var myInt0: Int? = 5
var myInt: Int?
print(myInt0!)
|
//
// CVDate+.swift
// KayakFirst Ergometer E2
//
// Created by Balazs Vidumanszki on 2017. 02. 05..
// Copyright © 2017. Balazs Vidumanszki. All rights reserved.
//
import Foundation
import CVCalendar
extension CVDate {
func getTimeMillis() -> TimeInterval {
var dateComponents = DateComponents()... |
//
// ViewController2.swift
// ScrollView
//
// Created by TATSUYA YAMAGUCHI on 2020/04/28.
// Copyright © 2020 TATSUYA YAMAGUCHI. All rights reserved.
//
// 2. UIScrollView in full screen
// Set top, bottom, leading, trailing to scrollView (All settings are the same as '1. UIScrollView in safe area')
import UIK... |
//
// MineChangeModel.swift
// SpecialTraining
//
// Created by 徐军 on 2018/12/3.
// Copyright © 2018年 youpeixun. All rights reserved.
//
import UIKit
class MineChangeModel: HJModel {
}
|
//
// UIKit+Utils.swift
// PregBuddyTweets
//
// Created by Amit Majumdar on 07/03/18.
// Copyright © 2018 Amit Majumdar. All rights reserved.
//
import UIKit
extension UIColor{
static let twitter = UIColor(netHex: 0x1DA1F2)
convenience init(red: Int, green: Int, blue: Int) {
ass... |
import Foundation
class AwardsHomeRepository: AwardsHomeRepositoryProtocol {
let database: ManagedObjectProviding
init(provider: AwardsHomeRepositoryDependencyProviding) {
database = provider.provideDatabase()
}
func getAwardModels() -> [AwardModel] {
guard let awardsMode... |
import SwiftUI
import UIKit
import PlaygroundSupport
struct Item: Identifiable {
let id: Int
let title: String
}
struct ContentView : View {
let items = [
Item(id: 1, title: "one"),
Item(id: 2, title: "two"),
Item(id: 3, title: "three"),
]
var body: some View {
List... |
//
// UIView+Animation.swift
// Piicto
//
// Created by kawaharadai on 2018/01/25.
// Copyright © 2018年 SmartTech Ventures Inc. All rights reserved.
//
import Foundation
import UIKit
enum FadeType: TimeInterval {
case normal = 0.7
case slow = 1.0
}
extension UIView {
func fadeInAnimation(type: FadeTy... |
//
// Swingle.swift
// Swingle
//
// Created by 藤井陽介 on 2016/09/01.
// Copyright © 2016年 touyou. All rights reserved.
//
import Foundation
import APIKit
import Himotoki
open class Swingle {
public init() {}
// MARK: - Get song information
struct GetSongInfo: SwingleRequest {
let url: String
... |
//
// MasterDetailEmployeeModel.swift
// MasterDetail
//
// Created by Hussain on 24/2/16.
// Copyright © 2016 Hussain . All rights reserved.
//
import Cocoa
class MDEmployeeModel: NSObject {
var firstName : String
var lastName : String
var email : String
var designationType : String
var proj... |
//
// AppDataResponse.swift
// CMUNC
//
// Created by Cameron Hamidi on 12/29/18.
// Copyright © 2019 Cornell Model United Nations Conference. All rights reserved.
//
import Foundation
class AppDataResponse: Codable {
var advisorPassword: String
var staffPassword: String
var conferenceStartDate: Strin... |
// Copyright © 2017 Tiago Bras. All rights reserved.
public class DeckStats {
public var deckSize: Int = 0
public var numberOfCardsByType = [CardType: Int]()
public var numberOfCardsByFaction = [CardFaction: Int]()
public var numberOfCardsByCost = [Int: Int]()
public var totalCardsCount = 0
pu... |
//
// LogoutPopupVC.swift
// ClassyDrives
//
// Created by Mindfull Junkies on 20/06/19.
// Copyright © 2019 Mindfull Junkies. All rights reserved.
//
import UIKit
class LogoutPopupVC: UIViewController {
@IBOutlet var okBtn: UIButton!
@IBOutlet var cancelBtn: UIButton!
override func viewDidLoad() {
... |
//
// LoginServices.swift
// Shift
//
// Created by Scaria on 4/19/16.
// Copyright © 2016 Meredith Moore. All rights reserved.
//
import Foundation
import Firebase
import SCLAlertView
class LoginServices: NSObject{
struct User{
var firstname:String
var lastname:String
var lastLog... |
protocol IDepositView: class {
func showCopied()
}
protocol IDepositViewDelegate {
func addressItems(forCoin coinCode: CoinCode?) -> [AddressItem]
func onCopy(addressItem: AddressItem)
func onShare(addressItem: AddressItem)
}
protocol IDepositInteractor {
func adapters(forCoin coinCode: CoinCode?)... |
//
// GTLinearGradientView.swift
// GtokenBaseFramework
//
// Created by quangle on 12/7/17.
// Copyright © 2017 quangle. All rights reserved.
//
import UIKit
import CoreGraphics
import Foundation
class GTLinearGradientView:UIView{
private var begin_color: CIColor?
private var end_clolor:CIColor?
... |
import ArgumentParser
import Foundation
import Logging
import NIO
import NIOLIFX
@main
struct LIFX: ParsableCommand {
enum InitialAction: String, Codable, ExpressibleByArgument {
case on
case off
}
static var configuration: CommandConfiguration = CommandConfiguration(
comm... |
//
// GLLoginPhoneVC.swift
// GameleySDK
//
// Created by Fitz Leo on 2018/6/11.
// Copyright © 2018年 Fitz Leo. All rights reserved.
//
import UIKit
class GLLoginPhoneVC: UIViewController {
@IBOutlet weak var loginPhone: UITextField!
@IBOutlet weak var loginCode: UITextField!
@IBOutlet weak var verif... |
//
// ViewController.swift
// DriveLessonTest
//
// Created by Arsenkin Bogdan on 7/12/19.
// Copyright © 2019 Arsenkin Bogdan. All rights reserved.
//
import UIKit
import SwiftyJSON
import Alamofire
import SDWebImage
class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UI... |
//
// PointDetailsView.swift
// MapsAOPA
//
// Created by Konstantin Zyryanov on 6/2/16.
// Copyright © 2016 Konstantin Zyryanov. All rights reserved.
//
import UIKit
import UCCTransliteration
import ReactiveSwift
class PointDetailsView: UIView
{
@IBOutlet weak var titleLabel : UILabel?
@IBOutlet weak var... |
//
// Configurator.swift
// YouTubeAPI
//
// Created by Shlykov Danylo on 6/15/20.
// Copyright © 2020 Shlykov Danylo. All rights reserved.
//
import Foundation
class Configurator<V: View, P: Presenter> where P.View == V, V.Presenter == P {
private let view: V
init(view: V) {
self.view = view... |
//
// MWCityManager.swift
// MyWeather
//
// Created by zhang zhiyao on 10/31/15.
// Copyright © 2015 NJIT656. All rights reserved.
//
import UIKit
import SQLite
private let dbName = "cities.sqlite"
private let sharedInstance = MWCityManager()
class MWCityManager: NSObject {
class var sharedManager : MW... |
import UIKit
class UnlinkRouter {
weak var viewController: UIViewController?
}
extension UnlinkRouter: IUnlinkRouter {
func close() {
viewController?.dismiss(animated: true)
}
}
extension UnlinkRouter {
static func module(account: Account, predefinedAccountType: PredefinedAccountType) -> U... |
//
// MergeSortedArrayTest.swift
// LeetCode
//
// Created by zhoumin on 2019/11/21.
// Copyright © 2019 ZhouMin. All rights reserved.
//
import Cocoa
class MergeSortedArrayTest: NSObject {
override init() {
var nums1 = [1,2,3,0,0,0], m = 3
var nums2 = [2,5,6], n = 3
MergeSorted... |
//
// WordItem.swift
// Retriever
//
// Created by thekan on 26/12/2018.
// Copyright © 2018 thekan. All rights reserved.
//
import Foundation
import CloudKit
class WordItem {
enum WordDifficulty: Int {
case easy, medium, hard, undefined
static func parse(int: Int) -> WordDifficu... |
//
// DataManager.swift
// GitHubber
//
// Created by user on 3/24/18.
// Copyright © 2018 Shalom Friss. All rights reserved.
//
import Foundation
import Apollo
import RxSwift
import RxCocoa
import RealmSwift
/**
DataManager handles retrieving data from Github
*/
class DataManager {
//MARK:- Apollo rel... |
import Foundation
@objcMembers public class USCity: NSObject, Codable {
// Known in the SmartyStreets US ZIP Code API documentation as a city_state
// See "https://smartystreets.com/docs/cloud/us-zipcode-api#cities"
public var city:String?
public var mailablecity:Bool?
public var objcMai... |
//
// TemperatureModel+CoreDataClass.swift
// WeatherLogger
//
// Created by DEEPALI MAHESHWARI on 20/05/20.
// Copyright © 2020 DEEPALI MAHESHWARI. All rights reserved.
//
//
import Foundation
import CoreData
@objc(TemperatureModel)
public class TemperatureModel: NSManagedObject, Codable {
public func e... |
//
// AddJogController.swift
// JogTracker
//
// Created by MAC on 10/27/19.
// Copyright © 2019 micantia. All rights reserved.
//
import UIKit
class AddEditJogViewController: UITableViewController {
@IBOutlet weak var dateLabel: UILabel!
@IBOutlet weak var datePicker: UIDatePicker!
@IBOutlet weak va... |
//
// ScoreView.swift
// GameHM
//
// Created by s3 on 6/16/21.
//
import SwiftUI
struct ScoreView: View {
@Binding var score: Int
var username: String = ""
var body: some View {
ZStack {
Image("").frame(width: 200, height: /*@START_MENU_TOKEN@*/100/*@END_MENU_TOKEN@*/, al... |
//
// PostView.swift
// PureMVVM
//
// Created by Fa.Shapouri on 6/10/19.
// Copyright © 2019 Fa.Shapouri. All rights reserved.
//
import UIKit
class PostView: UIView, NibLoadable {
@IBOutlet var headerLBL: UILabel!
@IBOutlet var bodyLBL: UILabel!
@IBOutlet var thumbnail: UIImageView!
@IBOutlet ... |
//
// SplashScreenViewController.swift
// Walker
//
// Created by 黎铭轩 on 29/11/2020.
//
import UIKit
protocol SplashScreenViewControllerDelegate: class {
func didSelectActionButton()
}
private extension CGFloat{
static let inset: CGFloat=20
static let padding: CGFloat=12
}
class SplashScreenViewControll... |
//
// Extensions.swift
// Brizeo
//
// Created by Roman Bayik on 2/8/17.
// Copyright © 2017 Kogi Mobile. All rights reserved.
//
import UIKit
import MapKit
import Branch
import FormatterKit
// MARK: - NSLayoutConstraint
extension NSLayoutConstraint {
func constraintWithMultiplier(multiplier: CGFloat) ->... |
//
// CityValidationManager.swift
// WeatherMan
//
// Created by Jesse Tayler on 8/8/19.
// Copyright © 2019 Jesse Tayler. All rights reserved.
//
import Foundation
class CityValidationManager: NSObject {
class func validateCity(withID placeID: String, _ completion: @escaping (_ city: City?) -> Void) {
... |
//
// Line.swift
// JakeNathanson-Lab3
//
// Created by Jake N on 9/28/18.
// Copyright © 2018 JakeNathanson. All rights reserved.
//
import Foundation
import UIKit
struct pointline {
var points: [CGPoint]=[]
//var color = "blue"
//var path: [UIBezierPath]=[]
var path = UIBezierPath()
var tagge... |
//
// UIActivityIndicatorView+Chain.swift
// CocoaChain
//
// Created by nelo on 2020/7/2.
//
public extension CocoaChain where ObjectType: UIActivityIndicatorView {
@discardableResult
func activityIndicatorViewStyle(_ activityIndicatorViewStyle: UIActivityIndicatorView.Style) -> CocoaChain {
#... |
//
// ConfirmMatchScoreTVCell.swift
// Etbaroon
//
// Created by dev tl on 4/1/18.
// Copyright © 2018 IAS-Systems. All rights reserved.
//
import UIKit
class ConfirmMatchScoreTVCell: UITableViewCell {
@IBOutlet weak var team1NameLbl: UILabel!
@IBOutlet weak var team2NameLbl: UILabel!
@IBOutlet weak ... |
//
// AppDelegate.swift
// Frames-App
//
// Created by Tyler Zhao on 11/19/18.
// Copyright © 2018 Tyler Zhao. All rights reserved.
//
import UIKit
import AWSAppSync
import RxSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
private var appCoordinator:... |
//
// Enemy.swift
// TextAdventrueSwift
//
import Foundation
struct Enemy: Being {
let name: String
let strength: Int
let xpFromKill: Int
private(set) var hp: Int
func info() -> String {
return """
\(name)
HP: \(hp)
Strength: \(strength)
XP from Kill: \(... |
import SwiftUI
struct ContentView: View {
@State var pets = dummyPetData
var body: some View {
NavigationView {
List {
ForEach(pets) {
pet in
NavigationLink(destination: Image(pet... |
//
// This source file is part of the Apodini open source project
//
// SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the Apodini project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de>
//
// SPDX-License-Identifier: MIT
//
import Foundation
/// A similar to `NSNull` type that encodes `nil`
public ... |
//
// NamedSubscript.swift
// JZBUtils
//
// Created by Jose Zarzuela on 11/01/2015.
// Copyright (c) 2015 Jose Zarzuela. All rights reserved.
//
import Foundation
public class NamedSubscript<K,V> : SequenceType {
private let getter : (K)->V
private let setter : (K,V)->Void
private let generator : (... |
//
// Item.swift
// ToDoList
//
// Created by Roy Park on 12/11/20.
//
import Foundation
import RealmSwift
class Item: Object {
@objc dynamic var title: String = ""
@objc dynamic var mark: Bool = false
@objc dynamic var dateCreated: Date?
// You need to put the type fromType:
// Category i... |
//
// ReaderFontsSettings.swift
// Pods
//
// Created by Admin on 31.08.17.
//
//
import Foundation
enum FontSizeState {
case one
case two
case three
case four
case five
case six
case seven
case eight
case nine
}
class ReaderFontsMenu: UIView, UIGestureRecognizerDelegate {
... |
//
// AppDelegate.swift
// WorkingBeez
//
// Created by Brainstorm on 2/16/17.
// Copyright © 2017 Brainstorm. All rights reserved.
//
import UIKit
import Fabric
import DigitsKit
import UserNotifications
import Firebase
import FirebaseInstanceID
import FirebaseMessaging
import XMPPFramework
import AVFoundation
... |
//
// ViewController.swift
// MapKit en iOS
//
// Created by alumno on 4/04/17.
// Copyright © 2017 alumno. All rights reserved.
//
import UIKit
import MapKit
class ViewController: UIViewController, MKMapViewDelegate {
@IBOutlet weak var mapView: MKMapView!
let location = CLLocation(latitude: -12.10... |
//
// HopperAPIGetTemplateResponse.swift
// Cryptohopper-iOS-SDK
//
// Created by Kaan Baris Bayrak on 02/11/2020.
//
import Foundation
class HopperAPIGetTemplateResponse: Codable {
var data : MarketplaceTemplate?
private enum CodingKeys: String, CodingKey {
case data = "data"
}
... |
//
// MenuOptionManager.swift
// AGHSlideMenu
//
// Created by Artashes Ghazaryan on 5/20/19.
// Copyright © 2019 Artashes Ghazaryan. All rights reserved.
//
import UIKit
enum MenuOptions {
case state1
case state2
case state3
case state4
case state5
case state6
case state7
case st... |
import Foundation
import redux_swift
let state = MyState()
let store = Store(state, SyncDispatcher())
let actionInc = Action(type: MyState.INC)
let actionDec = Action(type: MyState.DEC)
let actionNop = Action(type: "NOP")
let callback: () -> Void = {
let counter = store.getState()?.counter ?? 0
print(counter... |
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
protocol ExampleProtocol{
var simpleDescription: String {get}
mutating func adjust()
}
class SimpleClass: ExampleProtocol {
var simpleDescription: String = "A very simple class."
var anotherProperty: Int ... |
//
// ViewImage.swift
// ShowListImage
//
// Created by Taof on 12/6/19.
// Copyright © 2019 Taof. All rights reserved.
//
import UIKit
struct Name {
var image: String
var label: String
}
class CustomView: UIView {
var imageView = UIImageView()
var nameLabel = UILabel()
override init... |
//
// User.swift
// NRTC
//
// Created by Wassay Khan on 15/10/2018.
// Copyright © 2018 Netpace. All rights reserved.
//
import UIKit
class User: NSObject {
var userID:String?
var orderID:String?
var insertTime:String?
var preferredDateOfDelivery:String?
var orderStatus:String?
var grandTotal:String?
... |
//
// ListService.swift
// SiberianVIPER
//
// Created by Sergey Petrachkov on 25/12/2017.
// Copyright (c) 2017 Sergey Petrachkov. All rights reserved.
//
// This file was generated by the SergeyPetrachkov VIPER Xcode Templates so
// you can apply VIPER architecture to your iOS projects.
//
import UIKit
import ... |
//
// Copyright © 2020 Tasuku Tozawa. All rights reserved.
//
import UIKit
public protocol ClipInformationPresentedAnimatorDataSource {
func animatingInformationView(_ animator: ClipInformationAnimator) -> ClipInformationView?
func clipInformationAnimator(_ animator: ClipInformationAnimator, imageFrameOnCont... |
//
// IndexPath+Extensions.swift
// NGTools
//
// Created by Fournier, Olivier on 2017-12-08.
// Copyright © 2017 Nuglif. All rights reserved.
//
import Foundation
public extension IndexPath {
static var first: IndexPath { .init(item: 0, section: 0) }
}
|
//
// RetroItem.swift
// Retrobox
//
// Created by Pivotal on 4/5/16.
// Copyright © 2016 Pivotal. All rights reserved.
//
import Foundation
import SwiftyJSON
enum RetroItemType: String {
case Happy = "HAPPY"
case Mediocre = "MEDIOCRE"
case Unhappy = "UNHAPPY"
}
enum RetroItemStatus {
case Active... |
//
// RocketModel.swift
// SpaceXRockets
//
// Created by Aleksey Usanov on 17.03.2020.
// Copyright © 2020 Aleksey Usanov. All rights reserved.
//
import Foundation
import RealmSwift
import ObjectMapper
class Rocket: Object, Mappable {
@objc dynamic var active : Bool = false
@objc dynamic var boosters : ... |
import Foundation
import UIKit
class LiftCell: UITableViewCell {
@IBOutlet weak var repsPickerView: UIPickerView!
@IBOutlet weak var weightPickerView: UIPickerView!
@IBOutlet weak var weightTextField: UITextField!
@IBOutlet weak var repsTextField: UITextField!
@IBOutlet weak var setNumberLabel: UIL... |
//
// UiTestTableViewFilter.swift
// Travel CompanionUITests
//
// Created by Stefan Jaindl on 04.11.18.
// Copyright © 2018 Stefan Jaindl. All rights reserved.
//
import Foundation
import XCTest
extension XCUIApplication {
func filterCells(containing labels: [String]) -> XCUIElementQuery {
var c... |
//
// YourTableCell.swift
// SampleChat
//
// Created by 木村 優太 on 2019/07/22.
// Copyright © 2019 木村 優太. All rights reserved.
//
import UIKit
class MyTableCell: UITableViewCell
{
@IBOutlet weak var labelTextView: UILabel!
@IBOutlet weak var labelTimestamp: UILabel!
@IBOutlet weak var autosizeView... |
//
// Tags.swift
// Comedy_Diary
//
// Created by Trevor Griffiths on 11/12/19.
// Copyright © 2019 Trevor Griffiths. All rights reserved.
//
import Foundation
import RealmSwift
class JokeTag: Object{
override static func primaryKey() -> String?{return "jokeTagID"}
@objc dynamic var jokeTagID = ... |
//
// ViewDataConfigurable.swift
// syncmoneytechnical
//
// Created by Jigar Polra on 06/10/2019.
// Copyright © 2019 JIG_R. All rights reserved.
//
protocol ViewData {}
/// Views which values are populated via ViewData
protocol ViewDataConfigurable {
associatedtype ViewDataType = ViewData
func configureView(... |
//
// FileViewControlelr.swift
// passpie-ios
//
// Created by Harjas Monga on 2/24/18.
// Copyright © 2018 Harjas Monga. All rights reserved.
//
import UIKit
class FileViewControlelr: UIViewController {
var file: RepoItem?
override func viewDidLoad() {
super.viewDidLoad()
}
}
|
//
// DetailViewController.swift
// simpleBlog
//
// Created by mahmoud khudairi on 4/27/17.
// Copyright © 2017 mahmoud khudairi. All rights reserved.
//
import UIKit
class DetailViewController: UIViewController {
var currentBlog : Blog?
@IBOutlet weak var button: UIButton!
@IBOutlet weak var textVie... |
import Bow
import SwiftCheck
// MARK: Generator for Property-based Testing
extension TracedT: Arbitrary where M: Arbitrary & Hashable & CoArbitrary, W: ArbitraryK & Functor, A: Arbitrary {
public static var arbitrary: Gen<TracedT<M, W, A>> {
Gen.from(TracedTPartial.generate >>> TracedT.fix)
}
}
// MA... |
//
// ListViewControllerTests.swift
// ShuffleSongs
//
// Created by Gilson Gil on 22/03/19.
// Copyright (c) 2019 Gilson Gil. All rights reserved.
//
// This file was generated by the Clean Swift Xcode Templates so
// you can apply clean architecture to your iOS and Mac projects,
// see http://clean-swift.com
/... |
//
// FriendDetailViewController.swift
// mealify
//
// Created by Kaybo on 2018-07-17.
// Copyright © 2018 Meal Mules. All rights reserved.
//
// ***************************************************
// ****************** Overview **********************
// ***************************************************
//This ... |
//
// RectTest.swift
// SailingThroughHistoryTests
//
// Created by Jason Chong on 20/4/19.
// Copyright © 2019 Sailing Through History Team. All rights reserved.
//
import XCTest
@testable import SailingThroughHistory
class RectTest: XCTestCase {
func testValueType() {
/// This is needed as let keywo... |
//
// APIClient.swift
// ForcedPairProject
//
// Created by Alfredo Barragan on 1/9/19.
// Copyright © 2019 Alfredo Barragan. All rights reserved.
//
import Foundation
final class APIClient {
static func getMagicCard(completionHandler: @escaping (AppError?, [MagicCardInfo]?) -> Void) {
let getEndPoint... |
import Foundation
/*
São blocos auto-suficientes de funcionalidade que podem ser passados e usados em seu código.
Encerramentos no Swift são semelhantes aos blocos em C e Objective-C e aos lambdas em outras linguagens de programação.
*/
var companyId: Int = 0
let sortedPeoplePerCompany: Array<Int>
l... |
import XCTest
@testable import Flickr
class FlickrPhotoServiceTestCase: XCTestCase {
private var service: FlickrPhotoService!
private var session: MockURLSession!
override func setUp() {
super.setUp()
session = MockURLSession()
service = FlickrPhotoService(session: session)
... |
import UIKit
import MapKit
class customPin: NSObject, MKAnnotation {
var coordinate: CLLocationCoordinate2D
var title: String?
var subtitle: String?
init(pinTitle:String, pinSubTitle:String, location:CLLocationCoordinate2D) {
self.title = pinTitle
self.subtitle = pinSubTitle
s... |
//
// AccessToken.swift
// XenZuTestProject
//
// Created by Viktor Kushnerov on 22.06.21.
//
import Foundation
enum AccessToken: String {
case apiKey = "c9856d0cb57c3f14bf75bdc6c063b8f3"
}
|
// Copyright © 2015 Venture Media Labs. All rights reserved.
//
// This file is part of BrainCore. The full BrainCore copyright notice,
// including terms governing use, modification, and redistribution, is
// contained in the file LICENSE at the root of the source code distribution
// tree.
import XCTest
import Accel... |
//
// DateExtension.swift
// WhatToBuyNotificationApp
//
// Created by 齋藤百合奈 on 2021/07/12.
//
import Foundation
extension Date {
func formatyyyMMddFromDate() -> String {
let formatter = DateFormatter()
formatter.dateFormat = "MM月dd日 HH:mm"
return formatter.string(from: se... |
// First draft
//TODO: use dictionary instead of array to sore alphabet
// to make make finding index O(1) instead of O(n)
// among other stuffs
public extension Character {
public static var alphabetCount: Int { return Character.alphabet.count }
static var alphabet : [Character] {
return Array("abcde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.