text stringlengths 8 1.32M |
|---|
//
// SearchViewController.swift
// Unit4Assessment
//
// Created by Gregory Keeley on 2/11/20.
// Copyright © 2020 Alex Paul. All rights reserved.
//
import UIKit
import DataPersistence
protocol SearchFlashCardDelegate: AnyObject {
func flashCardAdded(_ savedFlashCardCell: SearchFlashCardCell, flashCard: Car... |
//
// RecursiveBugGrid.swift
// aoc2019
//
// Created by Shawn Veader on 1/4/20.
// Copyright © 2020 Shawn Veader. All rights reserved.
//
import Foundation
struct RecursiveBugGrid {
private let size = 5 // 5x5 grid
/// Location of the bugs within this recursive grid
let bugs: [DepthCoordinate]
... |
//
// LandingEntity.swift
// koshelek_ru_testAPI_VIPER
//
// Created by maksim on 06.11.2020.
//
import Foundation
enum From {
case bid
case ask
}
final class LandingResponse : Codable{
let e : String? // Event type
let E : Int? // Event time
let s : String? // Symbol
let U : Int? ... |
//
// Order.swift
// DakkenApp
//
// Created by Sayed Abdo on 10/24/18.
// Copyright © 2018 sayedAbdo. All rights reserved.
//
import Foundation
class Order{
var id : Int
var item_id : Int
var item_title : String
var item_img : String
var order_id : Int
var owner : Int
var trader : Int... |
//
// PostTableViewCell.swift
// Instagram
//
// Created by saito-takumi on 2018/01/03.
// Copyright © 2018年 saito-takumi. All rights reserved.
//
import UIKit
import Spring
protocol PostTableViewCellDelegate {
func commentButtonClicked(post: Post)
}
class PostTableViewCell: UITableViewCell {
// MARK: O... |
//
// GuideViewController.swift
// Trip
//
// Created by haojunhua on 15/3/30.
// Copyright (c) 2015年 kidsedu. All rights reserved.
//
import UIKit
class GuideViewController: UIViewController,MAMapViewDelegate, UICollectionViewDelegate, UIScrollViewDelegate, NSObjectProtocol, UICollectionViewDataSource{
... |
//
// Game.swift
//
// Created by Chuck Krutsinger on 2/12/19.
// Copyright © 2019 Countermind, LLC. All rights reserved.
//
typealias GameName = String
typealias Objective = String
struct Game {
let name: GameName
let minPlayers: Int
let maxPlayers: Int
let objective: Objective
static fun... |
//
// Serie+CoreDataClass.swift
// CoreDataSample
//
// Created by Nelson on 9/1/2017.
// Copyright © 2017 T@d. All rights reserved.
// This file was automatically generated and should not be edited.
//
import Foundation
import CoreData
public class Serie: NSManagedObject {
}
|
//
// AuthUserOpenListController.swift
// MsdGateLock
//
// Created by ox o on 2017/6/30.
// Copyright © 2017年 xiaoxiao. All rights reserved.
// 授权用户开门记录
import UIKit
class AuthUserOpenListController: UIViewController {
var tableView : UITableView!
var headView : UIView!
var isHiddenSub : Bool =... |
//
// AccountTypeSquareButton.swift
// homefinancing
//
// Created by 辰 宫 on 5/7/16.
// Copyright © 2016 wph. All rights reserved.
//
class AccountTypeSquareButton: UIButton {
static internal let buttonPadding:CGFloat = 17
static internal let buttonWidth:CGFloat = (SCREEN_WIDTH / 4 * 3 - buttonPadding... |
//
// ControlVC.swift
// FoodVoucher
//
// Created by 임명심 on 2021/09/06.
//
import UIKit
class ControlVC: UIViewController {
private let slider = UISlider()
private let star1 = UIImageView()
private let star2 = UIImageView()
private let star3 = UIImageView()
private let star4 = UIImageView... |
//
// HopperAPIGetHomePageResponse.swift
// Cryptohopper-iOS-SDK
//
// Created by Kaan Baris Bayrak on 02/11/2020.
//
import Foundation
import Foundation
class HopperAPIGetHomePageResponse: Codable {
var data : HopperAPIGetHomePageData?
private enum CodingKeys: String, CodingKey {
case da... |
//
// demo_SwiftUIApp.swift
// demo_SwiftUI
//
// Created by li’Pro on 2020/11/13.
//
import SwiftUI
@main
struct demo_SwiftUIApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
|
//
// ViewController.swift
// Guess_animal
//
// Created by slava bily on 29/1/20.
// Copyright © 2020 slava bily. All rights reserved.
//
import UIKit
import GameplayKit
class ViewController: UIViewController, Storyboarded {
var model = GuessAnimalModel()
var score = 0
var showMainView... |
import UIKit
import AGSAuth
class MemesListViewController: UITableViewController {
var memes: [AllMemesQuery.Data.Meme]? {
didSet {
tableView.reloadData()
}
}
// MARK: - View lifecycle
override func viewDidLoad() {
super.viewDidLoad()
tableView.rowHeight... |
//
// XHEnum.swift
// ObjcTools
//
// Created by douhuo on 2021/2/18.
// Copyright © 2021 wangergang. All rights reserved.
//
// MARK: - scorollview 刷新类型
enum TVloadType {
/** 没有加载效果 */
case none
/** 只有refresh效果 */
case refresh
/** 只有加载更多 */
case more
/** 刷新和加载更多都有 */
case all
}
... |
//
// Petition.swift
// WhiteHousePetitions
//
// Created by Salma Salah on 2/19/20.
// Copyright © 2020 Salma Salah. All rights reserved.
//
import Foundation
struct Petition: Codable {
var title: String
var body: String
var signatureCount: Int
}
//make sure you named all the properties in the Petitio... |
//
// JsonParser.swift
// Countries Game
//
// Created by Yoni on 01/06/2020.
// Copyright © 2020 Yoni. All rights reserved.
//
import UIKit
class JsonParser {
let url = URL(string: "https://restcountries.eu/rest/v2/all")
var countries = [Country]()
func parseCountriesJson(completion: @escap... |
//
// HomePage.swift
// N3RVE
//
// Created by Camilo Rossi on 2018-10-13.
// Copyright © 2018 Camilo Rossi. All rights reserved.
//
import UIKit
import AVFoundation
import FirebaseAnalytics
import FirebaseAuth
import Firebase
class HomePage: UIViewController {
var avPlayer: AVPlayer!
var avPlayerLay... |
//
// AddAptitudeViewController.swift
// WeNetwork
//
// Created by Josefina Bustamante on 26/08/2018.
// Copyright © 2018 BiteInc. All rights reserved.
//
import UIKit
class AddAptitudeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional ... |
//
// AddressBookModuleOutput.swift
// WavesWallet-iOS
//
// Created by Pavel Gubin on 9/23/18.
// Copyright © 2018 Waves Platform. All rights reserved.
//
import Foundation
import DomainLayer
protocol AddressBookModuleOutput: AnyObject {
func addressBookDidSelectContact(_ contact: DomainLayer.DTO.Contact)
}
|
import MetalPerformanceShaders
public class AreaMax: BasicMPSFilter {
@objc
public var kernelRadius: Float = 2.0 {
didSet {
if useMetalPerformanceShaders {
let kernelSize = roundToOdd(kernelRadius) // MPS area max kernels need to be odd
internalImageKernel = ... |
////
//// CommentView.swift
//// oneone
////
//// Created by levi.luo on 2017/10/29.
//// Copyright © 2017年 levi.luo. All rights reserved.
////
//
//import Foundation
//import UIKit
//
//class CommentView: UIView {
// private var contentView:UIView!
//
// override init() {
// super.init(frame: CGRe... |
//
// ExplorePhotosViewController.swift
// Travel Companion
//
// Created by Stefan Jaindl on 14.08.18.
// Copyright © 2018 Stefan Jaindl. All rights reserved.
//
import CoreData
import GoogleMaps
import GooglePlaces
import UIKit
class ExplorePhotosViewController: UIViewController {
@IBOutlet private var map:... |
//
// BusinessSettingViewController.swift
// Trispective
//
// Created by USER on 2017/5/12.
// Copyright © 2017年 Trispective. All rights reserved.
//
import UIKit
import Firebase
class BusinessSettingViewController: UIViewController,UITableViewDataSource,UITableViewDelegate {
@IBOutlet weak var tableView: U... |
//
// ReceiveAddressTypes.swift
// WavesWallet-iOS
//
// Created by Pavel Gubin on 10/13/18.
// Copyright © 2018 Waves Platform. All rights reserved.
//
import Foundation
import DomainLayer
import Extensions
enum ReceiveAddress {
enum DTO {
struct Info {
let assetName: String
l... |
//
// NumericAttributeFilter.swift
//
//
// Created by Vladislav Fitc on 12.03.2020.
//
import Foundation
public enum NumericAttributeFilter: Equatable, Codable {
case `default`(Attribute)
case equalOnly(Attribute)
}
extension NumericAttributeFilter: ExpressibleByStringInterpolation {
public init(stringL... |
//
// ZDXSlideMenuView.swift
// ZDXSlideMenuDemo
//
// Created by zzMBP on 2017/6/25.
//
//
import Foundation
import UIKit
fileprivate let kMenuScrollViewHeight: CGFloat = 50.0
fileprivate let kMenuLabelWidth: CGFloat = 60.0
fileprivate let kMenuLabelLeftRightMargin: CGFloat = 10.0
fileprivate let kSelectedColorR... |
//
// ViewController.swift
// IntergalacticTravelSwift
//
// Created by Peter Hitchcock on 9/30/14.
// Copyright (c) 2014 Peter Hitchcock. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup... |
//
// ServicesProtocol.swift
// SDKGithubServices
//
// Created by Gabriel Sousa on 10/04/21.
//
import Foundation
enum HTTPMethod: String {
case get = "GET"
}
struct Params {
// MARK: - Public Properties
var method: HTTPMethod = .get
var header: [String: Any] = [:]
var body: [String: Any] =... |
import Quick
import Nimble
import Clappr
class CoreFactoryTests: QuickSpec {
override func spec() {
describe("Core Factory") {
context("Creation") {
it("Should be able to create a core") {
let options = [kSourceUrl : "testUrl"]
let co... |
//
// RadiusCell.swift
// Monithor
//
// Created by Alessandro Ilardi Garofalo on 19/05/17.
// Copyright © 2017 Pipsqueaks. All rights reserved.
//
import UIKit
class RadiusCell: UITableViewCell {
@IBOutlet public weak var radiusTextField: UITextField!
@IBOutlet public weak var noteTextField: UITextF... |
//
// Comet.swift
// comets
//
// Created by Matt Ariane Clarke on 28/07/2017.
// Copyright © 2017 MN MobileDevelopers. All rights reserved.
//
import UIKit
import MapKit
import Kingfisher
class CometDetail: UIViewController, MapManagerDelegate, FlickrDelegate {
@IBOutlet weak var cometName: UILabel!
... |
//
// Wrapper.swift
// DiscountAsciiWerehouse
//
// Created by Matheus Ruschel on 8/1/16.
// Copyright © 2016 Matheus Ruschel. All rights reserved.
//
import Foundation
protocol Wrappable {
init?(data:AnyObject)
} |
//
// BlypFonts.swift
// blyp
//
// Created by Hayden Hong on 4/19/20.
// Copyright © 2020 Team Sonar. All rights reserved.
//
import Foundation
import SwiftUI
extension Font {
static let Agenda = Font(UIFont(name: "agenda-medium", size: UIFont.labelFontSize)!)
}
|
//
// Adaptive.swift
// Adaptive
//
// Created by Chris Eidhof on 21.07.17.
// Copyright © 2017 objc.io. All rights reserved.
//
import Foundation
struct T: Comparable {
static func <(lhs: T, rhs: T) -> Bool {
return lhs.time < rhs.time
}
static func ==(lhs: T, rhs: T) -> Bool {
r... |
//
// ViewController.swift
// DigitalFrame
//
// Created by 사명구 on 2018. 4. 20..
// Copyright © 2018 Quest4I. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var imgView: UIImageView!
@IBOutlet weak var toggleButton: UIButton!
@IBOutlet weak var speedSli... |
//
// SettingsView.swift
// ReaderTranslator
//
// Created by Viktor Kushnerov on 18/1/20.
// Copyright © 2020 Viktor Kushnerov. All rights reserved.
//
import SwiftUI
struct SettingsView: View {
@ObservedObject var viewStore = ViewsStore.shared
var body: some View {
Group {
if viewSt... |
//
// XRC721Events.swift
// XDC
//
// Created by Developer on 15/06/21.
//
import Foundation
import BigInt
public enum XRC721Events {
public struct Transfer: ABIEvent {
public static let name = "Transfer"
public static let types: [ABIType.Type] = [ XDCAddress.self , XDCAddress.self , BigUInt.sel... |
//
// MoreInfoView.swift
// Roboty
//
// Created by Julia Debecka on 11/05/2020.
// Copyright © 2020 Julia Debecka. All rights reserved.
//
import UIKit
@IBDesignable
class CustomView: UIView {
@IBInspectable var cornerRadius: CGFloat {
get {
return layer.cornerRadius
}set {
... |
//
// FriendCollectionViewCell.swift
// MultiSense
//
// Created by RaviSharma on 15/11/17.
// Copyright © 2017 Ravi Sharma. All rights reserved.
//
import UIKit
class FriendCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var imgVw_friend: UIImageView!
@IBOutlet weak var lbl_Name: ... |
//
// WatchCityWeatherView.swift
// WatchWeatherMan Extension
//
// Created by Jesse Tayler on 8/9/19.
// Copyright © 2019 Jesse Tayler. All rights reserved.
//
import SwiftUI
import Combine
struct WatchCityWeatherView : View {
@ObservedObject var city: City
@State private var isPresenting: Bool... |
//
// XORObfuscator.swift
// Obfuscator
//
// Created by dmytro.andreikiv@philips.com on 07/09/2017.
// Copyright © 2017 Dmytro Andreikiv. All rights reserved.
//
import Foundation
public class XORObfuscator: ObfuscationAlgorithm {
public init() {}
public func obfuscate(source: String) throws -> String {
... |
//
// Extension-UITextField.swift
// gezhongxianzhi
//
// Created by Dongze Li on 9/25/16.
// Copyright © 2016 Dongze Li. All rights reserved.
//
import UIKit
extension UITextField {
class func customInit (placeholder: String, font: CGFloat, style: UITextBorderStyle) -> UITextField {
let tf =... |
//
// DifficultyViewController.swift
// math-exercise
//
// Created by Furkan Kaan Ugsuz on 07/12/2020.
//
import UIKit
class DifficultyViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAct... |
//
// ProjectsCollectionViewCell.swift
// HowdyHack
//
// Created by Abhishek More on 9/7/19.
// Copyright © 2019 Abhishek More. All rights reserved.
//
import UIKit
class ProjectsCollectionViewCell: UICollectionViewCell {
@IBOutlet var projectName: UILabel!
}
|
//
// AppleSignInWrapperTests.swift
// AppleIDButtonWrapperTests
//
// Created by Genaro Arvizu on 05/10/20.
// Copyright © 2020 Luis Genaro Arvizu Vega. All rights reserved.
//
import XCTest
import AuthenticationServices
@testable import AppleSignInWrapper
class AppleSignInWrapperTests: XCTestCase {
var wrap... |
import XCTest
@testable import EasyImagy
private let WIDTH = 1024
private let HEIGHT = 512
private func getImage() -> Image<RGBA> {
return Image(width: WIDTH, height: HEIGHT, pixels: (0..<(WIDTH * HEIGHT)).map { RGBA(gray: UInt8($0 % 256)) })
}
class MapPerformanceTests: XCTestCase {
func testNormalMap() {
... |
//
// Address.swift
// GV24
//
// Created by HuyNguyen on 5/30/17.
// Copyright © 2017 admin. All rights reserved.
//
import UIKit
import SwiftyJSON
import CoreLocation
class Address: AppModel {
var name : String?
var location : CLLocationCoordinate2D?
override init() {
super.init()
}
// ... |
//
// UpdateUserPresenceAction.swift
// Mitter
//
// Created by Rahul Chowdhury on 22/11/18.
// Copyright © 2018 Chronosphere Technologies Pvt. Ltd. All rights reserved.
//
import Foundation
import RxSwift
class UpdateUserPresenceAction: BiParamAction {
private let userRepository: UserRepository
init... |
import AudioKit
import AudioKitUI
import AVFoundation
import SoundpipeAudioKit
import SwiftUI
//: Allows you to create a large variety of effects, usually reverbs or environments,
//: but it could also be for modeling.
struct ConvolutionData {
var dryWetMix: AUValue = 0.5
var stairwellDishMix: AUValue = 0.5
}... |
import UIKit
import ThemeKit
import ComponentKit
import SectionsTableView
class BottomSingleSelectorViewController: ThemeActionSheetController {
private let viewItems: [SelectorModule.ViewItem]
private let onSelect: (Int) -> ()
private let tableView = SelfSizedSectionsTableView(style: .grouped)
privat... |
// Copyright 2018, Oath Inc.
// Licensed under the terms of the MIT License. See LICENSE.md file in project root for terms.
import XCTest
import Nimble
import struct PlayerCore.Progress
@testable import VerizonVideoPartnerSDK
class VideoTimeDetectorTests: XCTestCase {
var detector = Detectors.VideoTime()
... |
//
// Pokemon.swift
// pokedex
//
// Created by Jonathan Bohrer on 7/31/16.
// Copyright © 2016 Jonathan Bohrer. All rights reserved.
//
import Foundation
import Alamofire
class Pokemon {
private var _name: String!
private var _pokedexId: Int!
private var _type: String!
private var _description: S... |
//
// Storyboard.swift
// Storyboard
//
// Created by Rogy on 6/22/17.
// Copyright © 2017 RogyMD. All rights reserved.
//
import UIKit
/// Represents a type that should load an `UIStoryboard` instance.
public protocol StoryboardType {
/// The bundle containing the storyboard file and its related resources. If ... |
//
// PlacesInteractorTests.swift
// MusicBrainzTests
//
// Created by BOGU$ on 21/05/2019.
// Copyright © 2019 lyzkov. All rights reserved.
//
import XCTest
@testable import MusicBrainz
final class PlacesInteractorTests: XCTestCase {
private var locationDataManagerSpy: PlacesLocationDataManagerSpy!
priv... |
protocol VersionControl {
func isBadVersion(_ n: Int) -> Bool
}
class Solution : VersionControl {
func isBadVersion(_ n: Int) -> Bool {
return false
}
func firstBadVersion(_ n: Int) -> Int {
var (s, e) = (1, n)
var mid: Int
while s < e {
mid = s + (e - s) /... |
import UIKit
import SnapKit
import MarkdownView
import WebKit
protocol ReadMeTableViewCellDelegate: class {
func didFinishLoad(_ readMeTableViewCell: ReadMeTableViewCell)
func touchedLink(_ readMeTableViewCell: ReadMeTableViewCell, link: URL)
}
final class ReadMeTableViewCell: UITableViewCell, Reusable {
... |
//
// NightscoutProfile.swift
// NightscoutUploadKit
//
import Foundation
public class ProfileSet {
public struct ScheduleItem {
let offset: TimeInterval
let value: Double
public init(offset: TimeInterval, value: Double) {
self.offset = offset
self.v... |
//
// TimersTableViewPresenter.swift
// 3Dlook
//
// Created by Тимур Кошевой on 25.08.2020.
// Copyright © 2020 homeAssignment. All rights reserved.
//
import UIKit
typealias TableViewDelegateAndDataSource = UITableViewDelegate & UITableViewDataSource
class TimersTableViewPresenter: NSObject {
private var t... |
//
// Entity+CoreDataProperties.swift
// testNotification
//
// Created by Giuseppe De Simone on 21/08/2019.
// Copyright © 2019 Giuseppe De Simone. All rights reserved.
//
//
import Foundation
import CoreData
extension Entity {
@nonobjc public class func fetchRequest() -> NSFetchRequest<Entity> {
r... |
//
// WordListViewController.swift
// FlashCards
//
// Created by Pedro Sousa on 20/10/20.
//
import UIKit
import CoreData
class TermListViewController: UIViewController {
private let termList = TermList()
private let coreDataManager = CoreDataManager.shared
private var flashCards: [NSManagedObj... |
//
// CameraResultViewController.swift
// SmartNote
//
// Created by 행복한 개발자 on 04/07/2019.
// Copyright © 2019 Alex Lee. All rights reserved.
//
import UIKit
import NVActivityIndicatorView
class CameraResultViewController: UIViewController, NVActivityIndicatorViewable {
let cameraResultImageView = UIIma... |
//
// TopupView.swift
// QuanZai
//
// Created by i-chou on 6/30/16.
// Copyright © 2016 i-chou. All rights reserved.
//
protocol TopupViewProtocol {
func openAlipay()
func openWechatPay()
func selectedButton(radioButton : DLRadioButton)
}
//import DLRadioButton
@IBDesignable class TopupView: UIView ... |
//
// Constant.swift
// RoambeeDemo
//
// Created by Nidhi Joshi on 26/09/2021.
//
import Foundation
class Constant {
static var deviceCellIdentifier = "DeviceCell"
static var dataCellIdentifier = "DataCell"
static var pinTitle = "Location"
}
|
//
// MongoPersistanceService.swift
// mongodb-mobile-sample
//
// Created by Ilya Usikov on 11/28/18.
// Copyright © 2018 Ilya Usikov. All rights reserved.
//
import Foundation
import StitchCore
import StitchLocalMongoDBService
import MongoSwift
protocol MongoStorageProtocol: StorageProtocol {
}
public class Mo... |
import Foundation
import UIKit
extension UILabel {
func setBodyFont() {
self.font = Font.preferredFontForTextStyle(UIFontTextStyleBody)
self.font = Font.body(self.font.pointSize + 2)
}
func setPickerFontLarge() {
self.font = Font.preferredFontForTextStyle(UIFontTextStyleBo... |
//
// RoundedCornerView.swift
// DeliriumOver
//
// Created by mate.redecsi on 2020. 10. 08..
// Copyright © 2020. rmatesz. All rights reserved.
//
import Foundation
import UIKit
class RoundedCornerView: UIView {
@IBInspectable var cornerRadius: CGFloat = 0 {
didSet {
layer.cornerRadius = ... |
//
// ExternalSceneDelegate.swift
// Kabetsu
//
// Created by Hai Long Danny Thi on 2020/02/25.
// Copyright © 2020 Hai Long Danny Thi. All rights reserved.
//
import UIKit
class ExternalSceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willCo... |
//
// CTFScaleFormResult.swift
// Impulse
//
// Created by James Kizer on 2/25/17.
// Copyright © 2017 James Kizer. All rights reserved.
//
import UIKit
import ResearchSuiteResultsProcessor
import ResearchKit
class CTFScaleFormResult: RSRPIntermediateResult, RSRPFrontEndTransformer {
static public let kT... |
//
// QuestionClass.swift
// PET
//
// Created by liuyal on 10/27/17.
// Copyright © 2017 TEAMX. All rights reserved.
//
import Foundation
// Enum for QuestionClass -> emotion
enum emotionID{
case happy
case sad
case angry
case scared
}
// Enum for QuestionClass -> questionState
enum state{
c... |
//
// ClaimDetailSectionGenerator.swift
// Homework2
//
// Created by Henry mo on 11/21/20.
// Copyright © 2020 Henry mo. All rights reserved.
//
import UIKit
class ClaimDetailSectionGenerator {
func generate() -> UIStackView {
let stackView = UIStackView()
stackView.axis = .vertical
... |
import Foundation
import XCTest
@testable import XcodeProj
final class PBXCopyFilesBuildPhaseTests: XCTestCase {
func test_subFolder_Path_hasTheCorrectValue() {
XCTAssertEqual(PBXCopyFilesBuildPhase.SubFolder.absolutePath.rawValue, 0)
}
func test_subFolder_producsDirectory_hasTheCorrectValue() {
... |
//
// Formulas.swift
// CheatSheetApp
//
// Created by Virtual Enteprise on 1/14/16.
// Copyright (c) 2016 NuApps. All rights reserved.
//
import UIKit
class Formulas: UIViewController {
@IBOutlet weak var quotientImg: UIImageView!
@IBAction func backBtn(sender: UIBarButtonItem) {
dismis... |
//
// PTLocationManager.swift
// Path
//
// Created by dewey on 2018. 7. 3..
// Copyright © 2018년 path. All rights reserved.
//
import UIKit
class PTLocationManager: NSObject {
}
|
//
// PagesManager.swift
// OnlineTutor
//
// Created by Rojan Bajracharya on 5/23/20.
// Copyright © 2020 Rojan Bajracharya. All rights reserved.
//
import Foundation
import UIKit
struct PagesManager {
private var pageData: [Pages]
init() {
self.pageData = []
}
// Pages(
// ... |
// Copyright 2019 Kakao Corp.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//
// ForgotPasswordViewController.swift
// Saga Plus
//
// Created by Gokul Murugan on 2021-01-09.
//
import UIKit
import Firebase
class ForgotPasswordViewController: UIViewController {
// MARK: Outlet
@IBOutlet weak var E_Mail: UITextField!
// MARK: View Did Load
override func viewDidLoad()... |
import Foundation
import Bradel
struct ArticleCellVM: TableViewCellVMProtocol {
let article: Article
var typeID: AnyTypeID
var isSelectable = true
var displayArticle: (() -> Void)?
init(article: Article, typeID: AnyTypeID) {
self.article = article
self.typeID = typeID
se... |
//
// PokerApp.swift
// Poker
//
// Created by Matthew Popov on 12.08.2021.
//
import SwiftUI
@main
struct PokerApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
|
//
// PostListView.swift
// UsersApp-SwiftUI
//
// Created by Jorge Luis Rivera Ladino on 4/09/21.
//
import SwiftUI
struct PostListView: View {
var post: PostList.Post.Domain
var body: some View {
VStack(alignment: .leading, spacing: 8) {
Text(post.title)
.for... |
import Foundation
@objc(Counter)
class Counter: NSObject {
@objc
static func requiresMainQueueSetup() -> Bool {
return true
}
private var count = 1
@objc
func increment() {
count += 1
print("count is \(count)")
}
@objc
func constantsToExport() -> Any {
return ["initialCount": 0]
... |
//
// MainTabBar.swift
// NV_ORG
//
// Created by Netventure on 28/03/20.
// Copyright © 2020 netventure. All rights reserved.
//
import Foundation
import UIKit
class MainTabBar : UITabBarController{
var viewcontroller : [UIViewController]?
required init?(coder: NSCoder) {
super.init(coder: ... |
//
// ListHeaderView.swift
// SimpleGoceryList
//
// Created by Payton Sides on 6/13/21.
//
import SwiftUI
struct ListHeaderView: View {
//MARK: - Properties
var topCircleIcon: String
var bottomCircleIcon: String
var text: String
var backgroundColor: Color
var circleColor: Color
va... |
import SwiftUI
struct DrawView: UIViewRepresentable {
func makeUIView(context: Context) -> UIView {
let view = UIView()
//white background
var rect = CGRect(x: 55, y: 20, width: 300, height: 200)
let backGroundView = UIView(frame: rect)
backGroundView.backgroundColor = UIColo... |
#if canImport(UIKit)
import UIKit
internal final class FocusIndicatorView: UIView {
@IBOutlet private weak var indicatorView: UIView! // Circle
private let baseAlpha: CGFloat = 0.5
private let movingTime: TimeInterval = 0.25
private let fadeTime: TimeInterval = 0.3
private let afterDelay: TimeIn... |
var solutions = [[String]]()
var queens = [Int]()
var columuns = Set<Int>()
var diagonal1 = Set<Int>()
var diagonal2 = Set<Int>()
var row = [String]()
func solveNQueens(_ n: Int) -> [[String]] {
queens = Array.init(repeating: -1, count: n)
row = Array.init(repeating: ".", count: n)
backtrace(row: 0, n: n)
... |
//
// CreateAccountViewController.swift
// Binder
//
// Created by Isaac on 3/26/18.
// Copyright © 2018 The University of Texas at Austin. All rights reserved.
//
import UIKit
import CoreData
class CreateAccountViewController: UIViewController {
@IBOutlet weak var usernameTextField: UITextField!
@IBOutl... |
//
// PlaySoundViewController.swift
// try
//
// Created by MAC on 29/10/2018.
// Copyright © 2018 MAC. All rights reserved.
//
import UIKit
import AVFoundation
class PlaySoundViewController: UIViewController {
@IBOutlet weak var slowOutlet: UIButton!
@IBOutlet weak var rabbitOutlet: UIButton!
@IBOutle... |
//
// main.swift
// 设计模式
//
// Created by Bert on 2/3/15.
// Copyright (c) 2015 Bert. All rights reserved.
//
import Foundation
//简单工厂模式
var factory = Factory()
var A = factory.Create("A")
A.TurnOn()
A.TurnOff()
//工厂模式
var factory1 = ContreteFactory1()
var factory2 = ContreteFactory2()
var model_a = factory1.cr... |
//
// AppDelegate.swift
// Seeing-Behind-Alpha
//
// Created by lyjtour on 2/21/18.
// Copyright © 2018 lyjtour. All rights reserved.
//
import UIKit
import NMSSH
let host_url = "35.3.119.28"
let username = "billy"
let password = "seeingbehind"
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDel... |
//
// YNPorterhouseOrderView.swift
// 2015-08-06
//
// Created by 农盟 on 15/9/6.
// Copyright (c) 2015年 农盟. All rights reserved.
//点菜
import UIKit
fileprivate func < <T : Comparable>(lhs: T?, rhs: T?) -> Bool {
switch (lhs, rhs) {
case let (l?, r?):
return l < r
case (nil, _?):
return true
default:
... |
//
// ControllerConstants.swift
// RecipeApp
//
// Created by Kishor Pahalwani on 18/02/20.
// Copyright © 2020 Kishor Pahalwani. All rights reserved.
//
import Foundation
class ControllerConstants {
static let recipeViewController = "RecipeViewController"
static let recipeCell = "RecipeCell"
static l... |
//
// AEFormPickerTCell.swift
// AESwiftWorking_Example
//
// Created by Adam on 2021/4/9.
// Copyright © 2021 CocoaPods. All rights reserved.
//
import UIKit
class AEFormPickerTCell: AEFormBaseTCell {
// var actionClosure: AEActionClosure?
// lazy var titleLabel: UILabel = {
// let label = UILabel... |
//
// ViewController.swift
// $125 Million App
//
// Created by John Gallaugher on 1/16/17.
// Copyright © 2017 Gallaugher. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var userInput: UITextField!
@IBOutlet weak var resultsLabel: UILabel!
over... |
//
// ChatViewController.swift
// Loustagram
//
// Created by Kiet on 12/23/17.
// Copyright © 2017 Kiet. All rights reserved.
//
import Foundation
import AsyncDisplayKit
import JSQMessagesViewController
import FirebaseDatabase
class ChatViewController: JSQMessagesViewController {
var messagesHandle: Dat... |
//
// AsyncTaskQueueTests.swift
// AsyncTaskQueueTests
//
// Created by SuXinDe on 2021/3/13.
// Copyright © 2021 Skyprayer Studio. All rights reserved.
//
import XCTest
@testable import AsyncTaskQueue
/// A contrived example illustrating the use of AsyncBlockOperation.
///
/// Prints the following to the console... |
//
// XRPAccount.swift
// BigInt
//
// Created by Mitch Lang on 2/3/20.
//
import Foundation
public struct XRPAccount: Codable {
public var address: String
public var secret: String
public init(address: String, secret: String) {
self.address = address
self.secret = secret
}
}
|
//
// ApplicationType.swift
// Helios
//
// Created by Lars Stegman on 24-01-17.
// Copyright © 2017 Stegman. All rights reserved.
//
import Foundation
enum ApplicationType: String {
case installed
case script
case webapp
}
|
//
// LogViewController.swift
// SWABLE
//
// Created by Rob Visentin on 1/17/18.
// Copyright © 2018 Raizlabs. All rights reserved.
//
import Anchorage
#if os(OSX)
typealias ViewController = NSViewController
typealias TextView = NSTextView
#else
typealias ViewController = UIViewController
typeali... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.