text stringlengths 8 1.32M |
|---|
//
// R.reuseIdentifier.swift
// YumaApp
//
// Created by Yuma Usa on 2018-06-18.
// Copyright © 2018 Yuma Usa. All rights reserved.
//
import Foundation
extension R
{
struct reuseIdentifier
{
fileprivate init() {}
}
}
|
//
// MockRSSUrlConstructor.swift
// AlbumRSSTests
//
// Created by Gavin Li on 8/16/20.
// Copyright © 2020 Gavin Li. All rights reserved.
//
import Foundation
@testable import AlbumRSS
class MockRSSUrlConstructor: UrlConstructorProtocol {
private let mockFile = "mockRSS"
func rssFeedUrl() -> URL? {
let... |
//
// LPaimUtilsOperators.swift
// LPaimUtils
//
// Created by LPaimUtils on 29/10/14.
// Copyright (c) 2014 LPaimUtils. All rights reserved.
//
import Foundation
prefix operator ~ {}
/**
:returns: A NSDictionary with the object atributtes
*/
prefix public func ~( _object: AnyObject) -> NSDictionary{
... |
import Cocoa
let PanelSize = 120
let NUMAXES = 2
let NUMPANELS = 4
var panelIndex = Int()
var selectIndex = Int()
var controlPickerSelection = Int()
var vcControl:ControlViewController! = nil
var panelList:[ControlPanelView]! = nil
var panelRect:[NSRect]! = nil
class ControlViewController: NSViewController {
@I... |
//
// SearchExperimentsOperation.swift
// Experiment Go
//
// Created by luojie on 9/27/15.
// Copyright © 2015 LuoJie. All rights reserved.
//
import Foundation
import CloudKit
class SearchExperimentsOperation: GetObjectsWithCreatorUserOperation {
convenience init(searchText: String?) {
self.ini... |
//
// RepositoryResponse.swift
//
// Created by Augusto Cesar do Nascimento dos Reis on 13/12/20
// Copyright (c) ACNR. All rights reserved.
//
import Foundation
struct RepositoryResponse: Decodable {
let items: [ItemResponse]?
let incompleteResults: Bool?
let totalCount: Int?
enum Coding... |
//
// FCNetworkConfiguration.swift
// icar
//
// Created by 陈琪 on 2019/12/3.
// Copyright © 2019 Carisok. All rights reserved.
//
import Foundation
struct Configs {
struct Network {
static let useStaging = true // 测试模式
static let loggingEnabled = false // 请求日志输出
static let environme... |
//
// ProductCell.swift
// FoodicsAssesment
//
// Created by mohamed gamal on 12/17/20.
//
import UIKit
class ProductCell: UICollectionViewCell {
//MARK:- OutLets
@IBOutlet weak var productImage: UIImageView!
@IBOutlet weak var productTitle: UILabel!
@IBOutlet weak var continerView: UIView!
@IB... |
//
// Model.swift
// E-card
//
// Created by EthanLin on 2018/2/6.
// Copyright © 2018年 EthanLin. All rights reserved.
//
import Foundation
|
//
// GameScene.swift
// ShootingGallery
//
// Created by Juan Francisco Dorado Torres on 22/09/19.
// Copyright © 2019 Juan Francisco Dorado Torres. All rights reserved.
//
import SpriteKit
import GameplayKit
class GameScene: SKScene {
// MARK: - Properties
var scoreLabel: SKLabelNode!
var shotsNode: SKS... |
//
// LeaveFeedbackActivityTableCell.swift
// MyLoqta
//
// Created by Kirti on 9/7/18.
// Copyright © 2018 AppVenturez. All rights reserved.
//
import UIKit
protocol LeaveFeedbackActivityTableCellDelegate: class {
func leaveFeedbackTapped(cell: LeaveFeedbackActivityTableCell)
func replyTapped(cell: LeaveF... |
//
// ForecastView.swift
// SwiftWeatherTemplate
//
// Created by Florian on 18.07.20.
// Copyright © 2020 Florian. All rights reserved.
//
import UIKit
import SnapKit
final class ForecastView: UIView {
let tableView = UITableView()
convenience init() {
self.init(frame: .zero)
tableView.a... |
//
// main.swift
// h.w.f
//
// Created by Ghada Fahad on 15/03/1443 AH.
//
import Foundation
print("Hello, World!")
|
//
// ChatMessage.swift
// Finder
//
// Created by Tai on 6/18/20.
// Copyright © 2020 DJay. All rights reserved.
//
import Foundation
//import FirebaseDatabase
class ChatMessage {
var id = ""
var senderId = ""
var receiverId = ""
var message = ""
var imgURL = ""
... |
//
// PreparePlayerViewController.swift
// Avgle
//
// Created by ChenZheng-Yang on 2018/1/7.
// Copyright © 2018年 ChenCheng-Yang. All rights reserved.
//
import UIKit
import BMPlayer
import SafariServices
import Firebase
import SVProgressHUD
class PreparePlayerViewController: BaseViewController {
// MARK: -... |
//
// UserTeaser.swift
// TinderApp
//
// Created by Serg on 13.02.2020.
// Copyright © 2020 Sergey Gladkiy. All rights reserved.
//
import Foundation
struct TinderUserTeaser: Decodable {
let type: String?
let string: String
}
struct UserJob: Decodable {
let company: CompanyJob?
let title: TitleJ... |
//
// GoogleSignINView.swift
// caffinho-iOS
//
// Created by Rafael M. A. da Silva on 8/3/16.
// Copyright © 2016 venturus. All rights reserved.
//
import Foundation
import UIKit
public class GoogleSignINView: UIView {
var contentView: GoogleSignINContentView!
public override func awakeFromNib(... |
//
// UIColor+Extensions.swift
// InAppNotification
//
// Created by Arnold Plakolli on 5/20/18.
// Copyright © 2018 Arnold Plakolli. All rights reserved.
//
import Foundation
extension UIColor {
convenience init(r: CGFloat, g: CGFloat, b: CGFloat) {
self.init(r: r, g: g, b: b, a: 255)
}
... |
import GRDB
class AccountRecordStorage {
private let dbPool: DatabasePool
init(dbPool: DatabasePool) {
self.dbPool = dbPool
}
}
extension AccountRecordStorage {
var all: [AccountRecord] {
try! dbPool.read { db in
try AccountRecord.fetchAll(db)
}
}
func s... |
//
// bigImageViewController.swift
// SlideshowApp
//
// Created by まく on 2018/07/15.
// Copyright © 2018年 sshiono. All rights reserved.
//
import UIKit
class bigImageViewController: UIViewController {
@IBOutlet weak var bigImageParts: UIImageView!
var firstValue:Int = 0
let imageList = ["cat.jpg", "... |
//
// SecondScreen.swift
// bleedApp
//
// Created by Peter Ostiguy on 11/19/16.
// Copyright © 2016 Peter Ostiguy. All rights reserved.
//
import UIKit
class SecondScreen: UIViewController, GIDSignInUIDelegate {
override func viewDidLoad() {
super.viewDidLoad()
}
override func did... |
//
// AllBreedsList.swift
// Doggy_App
//
// Created by User on 19/06/2019.
// Copyright © 2019 Maximkapitonov. All rights reserved.
//
import Foundation
struct AllBreedsList: Codable {
var status: String?
var message: [String: [String]]?
}
|
//
// ViewController.swift
// Foodie COPY - TRY DUMB SHIT OUT HERE
//
// Created by Justine Breuch on 8/30/15.
// Copyright (c) 2015 Justine Breuch. All rights reserved.
//
import UIKit
import Parse
import Bolts
class ViewController: UIViewController {
// override func viewDidLoad() {
// super... |
//
// MyAccCSViewController.swift
// YumaApp
//
// Created by Yuma Usa on 2018-02-15.
// Copyright © 2018 Yuma Usa. All rights reserved.
//
import UIKit
class MyAccCSViewController: UIViewController
{
@IBOutlet weak var navBar: UINavigationBar!
@IBOutlet weak var navTitle: UINavigationItem!
@IBOutlet weak var ... |
//
// EmojiArtDocument.swift
// EmojiArt
//
// Created by Ahmed Albaqawi on 6/27/20.
// Copyright © 2020 Ahmed Albaqawi. All rights reserved.
//
import SwiftUI
import Combine
//ViewModel
class EmojiArtDocument: ObservableObject {
private static let untitled = "EmojiArtDocument.Untitled"
//we have a ... |
//
// CategoryViewController.swift
// bundapp
//
// Created by YinZhang on 14/12/8.
// Copyright (c) 2014年 THEBUND. All rights reserved.
//
import UIKit
class CategoryViewController: UIViewController {
var key: (String, String, String?, String?, String?, String?, String?, String?, Bool) = ("","",nil,nil,nil,n... |
// DomRoundTripTableViewCell.swift
import UIKit
class AirLinesCell: UITableViewCell {
@IBOutlet weak var airlineLogo: UIImageView!
@IBOutlet weak var centerLine: UIImageView!
@IBOutlet weak var airlineName: UILabel!
@IBOutlet weak var depTime: UILabel!
@IBOutlet weak var arrTime: UILabel!
... |
//
// CreatePaymentDataSource.swift
// Hippo
//
// Created by Vishal on 21/02/19.
//
import UIKit
class CreatePaymentDataSource: NSObject {
var store: PaymentStore
var shouldSavePaymentPlan : Bool?
init(store: PaymentStore) {
self.store = store
}
enum DataSourceSecti... |
public func width(_ size: Size) -> Feature {
return .init(key: "width", value: size.value())
}
public func maxWidth(_ size: Size) -> Feature {
return .init(key: "max-width", value: size.value())
}
public func minWidth(_ size: Size) -> Feature {
return .init(key: "min-width", value: size.value())
}
|
//
// MapMarker.swift
// bm-persona
//
// Created by Kevin Hu on 2/24/20.
// Copyright © 2020 RJ Pimentel. All rights reserved.
//
import Foundation
import UIKit
import MapKit
// MARK: - KnownType
enum KnownType<T: RawRepresentable>: RawRepresentable {
typealias RawValue = T.RawValue
case known... |
//
// LPJNavigationController.swift
// LightPomodoro
//
// Created by 王嘉宁 on 2020/12/9.
// Copyright © 2020 Johnny. All rights reserved.
//
import UIKit
class LPJNavigationController: UINavigationController {
}
|
//
// ViewController.swift
// Past Paper Crawler
//
// Created by 吴浩榛 on 2018/8/26.
// Copyright © 2018年 吴浩榛. All rights reserved.
//
import Cocoa
class MainViewController: NSViewController {
@IBOutlet var quickOpComboBox: NSComboBox!
@IBOutlet var quickOpPerformButton: NSButton!
@IBOutlet var qu... |
//
// Copyright © 2020 Tasuku Tozawa. All rights reserved.
//
import Combine
import Domain
protocol SettingsViewProtocol: AnyObject {
func set(version: String)
func set(isICloudSyncEnabled: Bool)
func confirmToUnavailabilityICloudSync(shouldTurnOff: @escaping (Bool) -> Void)
func confirmToUnavailabil... |
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
var platesArray = [1,2,3,4,5,5,5,5,9,10,11,12]
for i in platesArray{
i
}
for var i = 0; i < platesArray.count; i++ {
++platesArray[i]
}
var plates = [10,0,2,0,0,0]
var thePlates = [0,0,0,0,0,0]
//1 is 45
//2 is... |
//
// AddTableViewController.swift
// FoodPin
//
// Created by 廖慶麟 on 2016/2/25.
// Copyright © 2016年 廖慶麟. All rights reserved.
//
import UIKit
import Foundation
import CoreData
import CloudKit
class AddTableViewController: UITableViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UI... |
//
// SessionManager+Exposure.swift
// Exposure
//
// Created by Fredrik Sjöberg on 2017-10-13.
// Copyright © 2017 emp. All rights reserved.
//
import Foundation
import iOSClientDownload
import iOSClientExposure
extension iOSClientDownload.SessionManager where T == ExposureDownloadTask {
/* /// Create a... |
//
// LeafEdgeImageSelectionView.swift
// florafinder
//
// Created by Andrew Tokeley on 6/05/16.
// Copyright © 2016 Andrew Tokeley . All rights reserved.
//
import Foundation
class LeafEdgeImageSelectionView: ImageSelectionView
{
override internal var cellSize: CGSize
{
return CGSizeMake(70,80)... |
//
// TimerViewController.swift
// StudyUp
//
// Created by Mitchel Eppich on 2017-03-04.
// Copyright © 2017 SFU Health++. All rights reserved.
//
// Contributions from: Owen Kwok, Leone Tory
//
import UIKit
import FirebaseAuth
class TimerViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDel... |
//
// PeripheralsTVC.swift
// Bluetooth Scanner
//
// Created by Pavan Athreya on 01/03/2019.
// Copyright (c) 2019 Pavan Athreya. All rights reserved.
//
import UIKit
import CoreBluetooth
import CoreLocation
//Class for listing the peripherals
class PeripheralsTVC: UITableViewController, CBCentralManagerDelegate... |
//
// MoreListViewController.swift
// PyConJP2016
//
// Created by Yutaro Muta on 3/7/16.
// Copyright © 2016 PyCon JP. All rights reserved.
//
import UIKit
import WebAPIFramework
import SafariServices
class MoreListViewController: UITableViewController {
override func viewDidLoad() {
super.viewD... |
//
// TeamsTableViewCell.swift
// AutosportInfo
//
// Created by Egor Salnikov on 05.10.2020.
// Copyright © 2020 Egor Salnikov. All rights reserved.
//
import UIKit
class TeamsTableViewCell: UITableViewCell {
@IBOutlet weak var cellView: UIView!
@IBOutlet weak var teamName: UILabel!
@IBOutlet weak va... |
//
// productsCollectionViewCell.swift
// D2020
//
// Created by MacBook Pro on 3/10/20.
// Copyright © 2020 Abdallah Eslah. All rights reserved.
//
import UIKit
class productsCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var productImageView: RoundedImageView!
@IBOutlet weak var product... |
//
// Mine.swift
// FudanNews
//
// Created by Lotus on 2016/11/16.
// Copyright © 2016年 Fudan University. All rights reserved.
//
import UIKit
import AlamofireImage
import MJRefresh
class SubscriptionMine: UITableViewController {
var dataArray = [Subscription]()
var dataArrayAll = [Subscription]()
... |
//
// LoginViewController.swift
// Frames-App
//
// Created by Tyler Zhao on 12/5/18.
// Copyright © 2018 Tyler Zhao. All rights reserved.
//
import UIKit
import RxSwift
import RxCocoa
class SignInViewController: UIViewController, StoryboardInitializable {
@IBOutlet weak var loginTextField: FramesTextFie... |
//
// TimeEntryCellDelegate.swift
// MPM-Sft-Eng-Proj
//
// Created by Sebastian Peden on 9/18/18.
// Copyright © 2018 Harrison Ellerm. All rights reserved.
//
import Foundation
import UIKit
protocol TimeEntryCellDelegate {
func textFieldInCell(cell: TimeEntryCell, editingChangedInTextField newText:String)
}... |
//
// Constants.swift
// Papr
//
// Created by Mitchell Sturba on 2020-03-23.
// Copyright © 2020 Mitchell Sturba. All rights reserved.
//
import Foundation
struct Constants {
struct StoryBoard {
static let homeViewController = "HomeVC"
}
}
|
//
// UIKitExtension.swift
// delinshe_ios
//
// Created by Xu on 2020/9/28.
// Copyright © 2020 com.delinshe. All rights reserved.
//
import UIKit
public enum PostingType: String {
case all = "default"
case note = "note"
case value = "value"
case remove_mines = "remove_mines"
case dynamic = "... |
//
// Enums.swift
// Adapt
//
// Created by 599944 on 11/21/18.
// Copyright © 2018 TheATeam. All rights reserved.
//
import Foundation
enum SetType {
case rep
case Tsec
case Tmin
case distMi
case distKm
case distM
case NA }
enum WorkoutType {
case superset
case fortime
ca... |
//
// ActionManagerModel.swift
// Rondo-iOS
//
// Created by Nikola Zagorchev on 19.07.22.
// Copyright © 2022 Leanplum. All rights reserved.
//
import Foundation
import Leanplum
enum MessageDisplay: String, CaseIterable {
case show = "Show"
case discard = "Discard"
case delayIndefinitely = "DelayInde... |
//
// WeeklyWeeklyPresenter.swift
// Weather
//
// Created by KONSTANTIN KUSAINOV on 21/03/2018.
// Copyright © 2018 Konstantin. All rights reserved.
//
import UIKit
class WeeklyPresenter: BasePresenter, WeeklyModuleInput, WeeklyViewOutput, WeeklyInteractorOutput {
private weak var weekyView: WeeklyViewI... |
//
// InvitePopoverViewController.swift
// CoffeeAlum Gamma
//
// Created by Trevin Wisaksana on 1/15/17.
// Copyright © 2017 Trevin Wisaksana. All rights reserved.
//
import Foundation
import Firebase
import MapKit
protocol InviteDelegate: class {
func sendInvitation()
}
final class InvitePopoverVC: UIView... |
//
// FlickrPictureConvenience.swift
// TaskOut
//
// Created by Reagan Wood on 9/28/16.
// Copyright © 2016 RW Software. All rights reserved.
//
import Foundation
class FlickrPictureConvenience: NSObject {
let urlForImage = "https://c4.staticflickr.com/9/8412/10245552163_1a7f690bc3_h.jpg"
func... |
//
// UploadFile.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//
import Foundation
/** Your file to be uploaded. */
public struct UploadFile: Codable {
/** Your base64 encoded file string. */
public var content: String
public init(content: String) {
... |
import Foundation
import CoreLocation
extension CLLocationCoordinate2D {
func location(for bearing:Double, and distanceMeters:Double) -> CLLocationCoordinate2D {
let distRadians = distanceMeters / (6372797.6) // earth radius in meters
let lat1 = latitude * Double.pi / 180
le... |
//
// SecureField_Customization2.swift
// 100Views
//
// Created by Mark Moeykens on 9/4/19.
// Copyright © 2019 Mark Moeykens. All rights reserved.
//
import SwiftUI
struct SecureField_CustomizationLayers: View {
@State private var userName = ""
@State private var password = ""
var body: some Vi... |
import Foundation
import UIKit
import LocalAuthentication
public class SendViewController : UIViewController, UITextFieldDelegate, ValidationDelegate, ScanViewControllerDelegate {
/**
This method will be called on delegate object when validation fails.
- returns: No return value.
*/
@... |
func sayHay(name: String, age: Int, planet: String) {
println("I'm \(name) and I am \(age) and I hail from \(planet)")
}
func sayHay1(name: String, age: Int, andPlanet planet: String) {
println("I'm \(name) and I am \(age) and I hail from \(planet)")
}
func sayHey(name: String, #age: Int, planet: String) { //shorth... |
//
// IntroPresenter.swift
// Bank App
//
// Created by Chrystian on 24/11/18.
// Copyright © 2018 Salgado's Productions. All rights reserved.
//
import Foundation
import UIKit
protocol IntroPresentationLogic {
func showHistoryController()
func showError(error: BankError)
func showLoading()
func c... |
//
// DaySix.swift
// AdventOfCode2017
//
// Created by Shawn Veader on 12/6/17.
// Copyright © 2017 v8logic. All rights reserved.
//
import Foundation
struct DaySix: AdventDay {
struct Memory {
/// Size of the memory bank
let size: Int
/// Value of the memory banks
var banks... |
////
//// PastOrderVC.swift
//// Qvafy
////
//// Created by ios-deepak b on 25/08/20.
//// Copyright © 2020 IOS-Aradhana-cat. All rights reserved.
////
import UIKit
class PastOrderVC: UIViewController {
//MARK: Outlets
//@IBOutlet weak var vwHeader: UIView!
// @IBOutlet weak var txtSearch: UITextFie... |
//
// TappableTextView.swift
// TappableTextView
//
// Created by Willie Johnson on 5/4/18.
// Copyright © 2018 Willie Johnson. All rights reserved.
//
import UIKit
public protocol TappableTextViewDelegate: AnyObject {
func wordViewUpdated(_ wordView: WordView)
func wordViewOpened(_ wordView: WordView)
func... |
//
// DataSettingsManager.swift
// PlanningPoker
//
// Created by david.gonzalez on 24/10/16.
// Copyright © 2016 BEEVA. All rights reserved.
//
import UIKit
protocol DataSettingsManagerInput {
func setPressToShow(state: Bool)
func setShakeToShow(state: Bool)
func setAppLanguage(language: Language)
fun... |
//
// BaseTableViewCell.swift
// final-project
//
// Created by Vinsofts on 11/16/20.
// Copyright © 2020 Vinsofts. All rights reserved.
//
import Foundation
import UIKit
class BaseTableViewCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
}
func configure<T>(_ ... |
import Foundation
public class Matrix<Real: FloatingPoint>: CustomStringConvertible {
var store: [[Real]]
//Calculation Group 0
var _determinant: Real?
var _productOfElementary: Matrix?
var _rowEchelon: Matrix?
var lu: Bool = false
//Calculation Group 1
var fullyInverted: Boo... |
//
// TestMIMEType.swift
// GenAPI_Tests
//
// Created by Lucas Best on 12/7/17.
// Copyright © 2017 CocoaPods. All rights reserved.
//
import XCTest
import struct GenAPI.MIMEType
class TestMIMEType: XCTestCase {
func testApplicationJSON() {
let mimeTypeString = "application/json"
let mimeTy... |
//
// MergeTests.swift
// DictionaryTools
//
// Created by James Bean on 2/23/16.
// Copyright © 2016 James Bean. All rights reserved.
//
import XCTest
@testable import DictionaryTools
class MergeTests: XCTestCase {
func testMergeSingleDepthNoOverlap() {
var d1 = ["k1": "v1"]
let d2 = ["k2": ... |
//
// DashboardMenuView.swift
// f26
//
// Created by David on 29/08/2017.
// Copyright © 2017 com.smartfoundation. All rights reserved.
//
import UIKit
import f26Core
/// A view class for a DashboardMenuView
public class DashboardMenuView: UIView {
// MARK: - Private Stored Properties
fileprivate var selec... |
//
// ViewController.swift
// List
//
// Created by Franck Tchouambou on 1/8/19.
// Copyright © 2019 Franck. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBOutlet weak var tex... |
//
// FloorController.swift
// Elevator System
//
// Created by Mike Van Amburg on 11/3/21.
//
import Foundation
import ElevatorKit
class FloorController {
var elevatorController = ElevatorController()
var floor = Floor()
func elevatorIsRequested(requestedFloor: Int) {
if isButtonPressed... |
//
// Image.swift
//
//
// Created by Artur Gurgul on 20/04/2016.
//
//
import Foundation
import CoreData
class Image: NSManagedObject {
func update(dictionary:NSDictionary, inContext context: NSManagedObjectContext) {
prefix = dictionary["prefix"] as? String
suffix = dictionary["suffix"] as... |
import XCTest
@testable import Polymorphic
class PolymorphicTests: XCTestCase {
static var allTests = [
("testInt", testInt),
("testUInt", testUInt),
("testArray", testArray),
("testObject", testObject),
("testFloat", testFloat),
("testDouble", testDouble),
(... |
//
// Router.swift
// desafio-ios-gabriel-leal
//
// Created by Gabriel Sousa on 04/04/20.
// Copyright © 2020 Gabriel Sousa. All rights reserved.
//
import UIKit
import Lottie
class Router {
static func pushCharacterDetailsViewController(viewModel: CharacterDetailsViewModel, navigationController: UINavigatio... |
//
// Screenshot.swift
// switui_learn
//
// Created by laijihua on 2020/10/26.
//
import SwiftUI
import Combine
import UIKit
import Photos
extension UIView {
var renderedImage: UIImage? {
// rect of capure
let rect = self.bounds
// create the context of bitmap
UIGraphicsBeginIm... |
//
// ASCAPICommunicationModel.swift
// DiscountAsciiWerehouse
//
// Created by Matheus Ruschel on 8/1/16.
// Copyright © 2016 Matheus Ruschel. All rights reserved.
//
import Foundation
typealias DataCallbackCompletionBlock = (() throws -> AnyObject?) -> Void
class ASCAPICommunicationModel {
var sessio... |
//
// BandController.swift
// Acacia Ridge Presents the Band App
//
// Created by Alex Shillingford on 10/15/19.
// Copyright © 2019 Alex Shillingford. All rights reserved.
//
import Foundation
class BandController {
// MARK: - Properties
static var shared = BandController()
private(set) var empl... |
//
// SeverManager.swift
// ServerT
//
// Created by xsj on 2021/2/9.
//
import UIKit
protocol ListenDelegate : class {
func listenStatus(startStatus: Bool,startContent: String)
}
class SeverManager: NSObject {
weak var delete: ListenDelegate?
fileprivate lazy var serverSocket : TCPServer = TCPServer(a... |
//
// RootView.swift
// DesignCode
//
// Created by Alex Ochigov on 8/13/20.
// Copyright © 2020 Alex Ochigov. All rights reserved.
//
import SwiftUI
struct RootView: View {
var body: some View {
TabView {
HomeScreen().tabItem {
Image(systemName: "play.circle.fill")
... |
//
// TMRecommendation.swift
// consumer
//
// Created by Vladislav Zagorodnyuk on 2/3/16.
// Copyright © 2016 Human Ventures Co. All rights reserved.
//
import CoreStore
import SwiftyJSON
/// Struct that represent Recommendation JSON keys
public struct TMRecommendationJSON {
static let req... |
//
// NewFollowViewController.swift
// Yeah_SalesExpert
//
// Created by DavisChing on 16/5/21.
// Copyright © 2016年 DavisChing. All rights reserved.
//
import UIKit
class NewFollowViewController: UIViewController {
@IBAction func bt_tap(sender: AnyObject) {
tf.resignFirstResponder()
}
... |
//
// UILabelExpand.swift
// FlagQuiz
//
// Created by Soohan Lee on 2019/10/28.
// Copyright © 2019 이수한. All rights reserved.
//
import Foundation
import UIKit
extension UILabel {
func textWidth() -> CGFloat {
return UILabel.textWidth(label: self)
}
class func textWidth(label: UILabel) -... |
//
// ProjectDetail.swift
// Epintra
//
// Created by Maxime Junger on 30/01/16.
// Copyright © 2016 Maxime Junger. All rights reserved.
//
import Foundation
import SwiftyJSON
class ProjectDetail: Project {
// var explanations: String?
// var userProjectStatus: String?
// var note: String?
// var userProjectCod... |
//
// ChannelListViewController.swift
// Douban-Demo
//
// Created by xzysun on 14-7-30.
// Copyright (c) 2014年 AnyApps. All rights reserved.
//
import UIKit
//定义一个切换频道的block,传入一个Int代表频道号,一个String代表频道名称
typealias ChangeChannelBlock = (Int, String) -> Void
class ChannelListViewController: UIViewController, UITable... |
//
// ForecastCell.swift
// weather
//
// Created by Baldoph Pourprix on 30/03/2016.
// Copyright © 2016 Baldoph Pourprix. All rights reserved.
//
import UIKit
import WeatherKit
import SwiftDate
private let weekdayFormatter: NSDateFormatter = {
var df = NSDateFormatter()
df.dateFormat = "EEEE"
return ... |
//
// QuestionViewController.swift
// Movement
//
// Created by Zara Perumal on 11/11/15.
// Copyright © 2015 Parse. All rights reserved.
//
import Foundation
import UIKit
import Parse
class TextFieldQuestionTableViewCell : UITableViewCell, UITextViewDelegate {
var placeholder = "Enter answer here"
@IBOut... |
//
// SingleEntryViewController.swift
// Travelogue
//
// Created by Melissa Hollingshed on 4/29/19.
// Copyright © 2019 Melissa Hollingshed. All rights reserved.
//
import UIKit
class SingleEntryViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
var dateF... |
//
// calendarSeekerClass.swift
// WorkingBeez
//
// Created by Brainstorm on 3/9/17.
// Copyright © 2017 Brainstorm. All rights reserved.
//
import UIKit
class calendarSeekerClass: UIViewController,FSCalendarDataSource, FSCalendarDelegate, FSCalendarDelegateAppearance, UITableViewDataSource, UITableViewDelegate
... |
//
// RxSwift.swift
// RotomPokedex
//
// Created by Ryo on 2020/01/12.
// Copyright © 2020 Ryoga. All rights reserved.
//
import Foundation
import RxSwift
extension Observable {
/// 空の`Observable`にフラットマップする
public func mapToVoid() -> Observable<Void> {
return map { _ -> Void in () }
}
}
|
//: Playground - noun: a place where people can play
import UIKit
var states = [String: String]()
states["MO"] = "Missouri"
states["PA"] = "Pennsylvania"
states["CA"] = "California"
for (abbrev, state) in states {
print("\(abbrev) is \(state)")
}
let stateAbbre = [String](states.keys)
for item in stateAbbre {
... |
//
// CTFMultipleChoiceIntermediateResult+SBBDataArchiveBuilder.swift
// Impulse
//
// Created by James Kizer on 2/27/17.
// Copyright © 2017 James Kizer. All rights reserved.
//
import Foundation
extension CTFMultipleChoiceIntermediateResult {
//SBBDataArchiveConvertableFunctions
override public var... |
class Solution {
func climbStairs(_ n: Int) -> Int {
var arr = [1, 1]
if n == 0 || n == 1{
return 1
}
for _ in 2...n {
let result = arr[0] + arr[1]
arr[0] = arr[1]
arr[1] = result
}
return arr[1]
}
} |
//
// ViewController.swift
// MDAnimationDemo
//
// Created by Alan on 2018/4/27.
// Copyright © 2018年 MD. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var b_btn: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
b_btn... |
//
// NewVocabViewController.swift
// Nihongo
//
// Created by Dang Nguyen Vu on 3/9/17.
// Copyright © 2017 Dang Nguyen Vu. All rights reserved.
//
import UIKit
import FirebaseDatabase
import SDWebImage
class NewVocabViewController: UIViewController {
@IBOutlet weak var jpTf: UITextField!
@IBOutlet ... |
//
// WordNode.swift
// WordWar
//
// Created by Valentin Radu on 05/07/16.
// Copyright © 2016 Valentin Radu. All rights reserved.
//
import SpriteKit
class WordNode: SKNode {
let letters:[SKLabelNode]
init(text:String) {
letters = text.characters.map {SKLabelNode(text: String($0))}
... |
//
// partCell.swift
// test
//
// Created by Alex Iakab on 07/12/2018.
// Copyright © 2018 Alex Iakab. All rights reserved.
//
import UIKit
class partCell: UICollectionViewCell {
@IBOutlet weak var descLabel: UILabel!
@IBOutlet weak var bgView: UIView!
@IBOutlet weak var imageView: UIImageView!
... |
//
// TMDropDownArrowView.swift
// consumer
//
// Created by Gregory Sapienza on 2/8/17.
// Copyright © 2017 Human Ventures Co. All rights reserved.
//
import UIKit
class TMDropDownArrowView: UIView {
//MARK: - Public iVars
/// Color of drop down arrow.
var arrowColor = UIColor.black {
di... |
//
// SettingsViewController.swift
// London Mosque
//
// Created by Yunus Amer on 2020-12-15.
//
import Foundation
import UIKit
class SettingsViewController : UIViewController, UIPickerViewDelegate, UIPickerViewDataSource{
@IBOutlet weak var lbl_volume: UILabel!
@IBOutlet weak var lbl_vibra... |
//
// InputView.swift
// YourCityEvents
//
// Created by Yaroslav Zarechnyy on 11/15/19.
// Copyright © 2019 Yaroslav Zarechnyy. All rights reserved.
//
import UIKit
class InputView: XibView {
@IBOutlet private weak var vWhite: UIView!
@IBOutlet private weak var lErrorMassage: UILabel!
@IBOutlet weak ... |
//
// FileManager+Extension.swift
// SwiftTool
//
// Created by galaxy on 2021/5/16.
// Copyright © 2021 yinhe. All rights reserved.
//
import Foundation
extension GL where Base: FileManager {
/// 获取`Document`文件夹路径
public static var documentDirectory: String {
return NSSearchPathForDirectoriesInDo... |
//
// JSONJoySpeedTests.swift
// SwiftJSONSpeed
//
// Created by Miquel, Aram on 28/04/2016.
// Copyright © 2016 Ryanair. All rights reserved.
//
import XCTest
import JSONJoy
class JSONJoySpeedTests: XCTestCase {
func testOneSimpleJSONJoy() {
let data = loadTestData("SimpleJSON")!
self.m... |
//
// DetailViewController.swift
// Bookmark
//
// Created by 김희진 on 2021/07/27.
//
import UIKit
class DetailViewController: UIViewController {
@IBOutlet var lblItem: UILabel!
var receiveItme = ""
override func viewDidLoad() {
super.viewDidLoad()
lblItem.text = receiveItme
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.