text
stringlengths
8
1.32M
// // DownloadTransactionCountOperation.swift // monster-chase // // Created by Pabel Nunez Landestoy on 1/28/19. // Copyright © 2019 Pocket Network. All rights reserved. // import Foundation import PocketSwift import BigInt public enum DownloadTransactionCountOperationError: Error { case responseParsing } p...
// // CharacterCollectionViewCell.swift // MarvelEssentials // // Created by Nigel Mestach on 29/11/2018. // Copyright © 2018 Nigel Mestach. All rights reserved. // import UIKit class CharacterCollectionViewCell: UICollectionViewCell { @IBOutlet weak var image: UIImageView! @IBOutlet weak var nameLabel: U...
// // Cacheable.swift // SwiftyCache // // Created by lihao on 16/5/21. // Copyright © 2016年 Egg Swift. All rights reserved. // import Foundation public protocol Cacheable { associatedtype CacheType func archive() -> NSData? static func unarchive(data: NSData) -> CacheType? }
// // UserCell.swift // SmartLock // // Created by Sam Davies on 21/11/2015. // Copyright © 2015 Sam Davies. All rights reserved. // import UIKit class UserCell: UITableViewCell { @IBOutlet var name: UILabel! @IBOutlet var email: UILabel! @IBOutlet var addFriendButton: UIButton! var...
// // TimedRecord.swift // Timer // // Created by Saga on 9/27/14. // Copyright (c) 2014 Charles. All rights reserved. // import Foundation import UIKit class TimedRecord { var tag: String! var date: NSDate! var seconds: Double! var parent: TimedItem! init(tag: String, date: NSDate, secon...
// // DriverPageController.swift // ShuttleServiceApp // // Created by Nikhil Prashar on 11/28/16. // Copyright © 2016 Nikhil Prashar. All rights reserved. // import UIKit class DriverPageController: UITableViewController { var noofRowsInSection: [Int] = [1] //var itemStore = ItemStore() var regI...
import SwiftUI struct ContentView: View { var body: some View { Group { Image(uiImage: UIImage(named:"Lenna.png")!).resizable() .scaledToFit() } .maskedCameraBlur() .frame(width: BlurredEdgesViewApp.imageBounds.width, height: BlurredEdgesViewApp.imag...
// // CommentCell.swift // GV24 // // Created by HuyNguyen on 5/31/17. // Copyright © 2017 admin. All rights reserved. // import UIKit class CommentCell: CustomTableViewCell { @IBOutlet weak var topLabelHeight: NSLayoutConstraint! @IBOutlet weak var topLabel: UILabel! @IBOutlet weak var content: UITe...
/** * Copyright IBM Corporation 2018 * * 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...
// // UICollectionViewCell+.swift // MEOKit // // Created by Mitsuhau Emoto on 2019/01/14. // Copyright © 2019 Mitsuharu Emoto. All rights reserved. // import UIKit public extension MeoExtension where T: UICollectionViewCell { /// 自身をaddしたUICollectionViewを取得する var collectionView: UICollectionView? { ...
// // MovieMenu.swift // playr // // Created by Michel Balamou on 5/21/18. // Copyright © 2018 Michel Balamou. All rights reserved. // import Foundation class MovieMenu: UIViewController{ var categories = ["Viewed", "Movies", "Series"] var viewRow = 0 var movieRow = 1 var seriesRow = 2 ...
// // RoundedButton.swift // Animal House // // Created by Roy Geagea on 8/1/19. // Copyright © 2019 Roy Geagea. All rights reserved. // import SwiftUI struct RoundedButton : View { let title: String! let action: () -> Void var isDisabled: Bool = false var isLoading: Bool = false ini...
// // StatusBarView_Safari.swift // ReaderTranslator // // Created by Viktor Kushnerov on 10/5/19. // Copyright © 2019 Viktor Kushnerov. All rights reserved. // import SwiftUI struct StatusBarView_Safari: View { @ObservedObject var store = Store.shared var body: some View { Group { #i...
// // GradientView.swift // Weather // // Created by Alexsandre kikalia on 2/6/21. // import UIKit class GradientView: UIView{ var gradientLayer: CAGradientLayer? var top = UIColor.white var bottom = UIColor.white func setGradientBG(top: UIColor?, bottom: UIColor?) { if let top = top{...
// // RequestStatusCellLayout.swift // consumer // // Created by Vladislav Zagorodnyuk on 3/9/17. // Copyright © 2017 Human Ventures Co. All rights reserved. // import Foundation /// Used for a status layout type where a width must be defined to set correct insets. struct RequestStatusCellProtocol { /// Layou...
// // UserVM.swift // ScooterRental // // Created by ios on 08/10/18. // Copyright © 2018 ios28. All rights reserved. // import Foundation class UserVM { public static let shared = UserVM() private init() {} var userDetails: User! func signup(dict: JSONDictionary, response: @escaping resp...
class Solution { func isInterleave(_ s1: String, _ s2: String, _ s3: String) -> Bool { let s1 = Array(s1), s2 = Array(s2), s3 = Array(s3) guard s1.count + s2.count == s3.count else { return false } var result = [Bool](repeating: false, count: s2.count + 1) result[0] = true fo...
// // webview.swift // ETBAROON // // Created by imac on 10/12/17. // Copyright © 2017 IAS. All rights reserved. // import UIKit class webview: UIViewController { @IBOutlet weak var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad() getVideo(videoCode:"http://rshankar.c...
// // CalculatorViewController.swift // HoursCalculator // // Created by Sean McCue on 11/27/14. // Copyright (c) 2014 Sean McCue. All rights reserved. // import UIKit class CalculatorViewController: UIViewController, UITextViewDelegate { //instance variables var numString: String = "" var numD...
// // UserDefaults + extension.swift // MusicPlayer // // Created by Vlad Tkachuk on 27.05.2020. // Copyright © 2020 Vlad Tkachuk. All rights reserved. // import Foundation extension UserDefaults { static let favoriteTrackKey = "favoriteTrackKey" func getSavedTracks() -> [SearchViewModel.Cell] { ...
// // ConsoleLogger.swift // CouchbaseLite // // Copyright (c) 2018 Couchbase, Inc All rights reserved. // // 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/...
// // AddSkillSectionNetworking.swift // OSOM_app // // Created by Miłosz Bugla on 18.12.2017. // import Foundation import SwiftyJSON import Alamofire protocol AddSkillsSectionNetworking: class { weak var delegate: AddSkillsSectionNetworkingDelegate? { get set } func setAddSkillsSectionData(param...
// // Delegates.swift // Westeros // // Created by JOSE LUIS BUSTOS ESTEBAN on 18/7/17. // Copyright © 2017 Keepcoding. All rights reserved. // import UIKit final class Delegates { static func housesDelegate ( model: [House]) -> ArrayTableViewDelegate<House>{ // Creamos el objeto y la cluasur...
import Foundation import Alamofire class PhotosService { static var shared = PhotosService() func fetchPhotos(page: Int, completion: @escaping (Result<PagingResponce<Photo>, AFError>) -> ()) { AF.request("\(ApiConstants.baseApiUrl)photo/type?page=\(page)") .validate() .response...
// // RepositoryManagedObject+CoreDataProperties.swift // SCTestTask // // Created by Aleksey Kornienko on 20/05/2018. // Copyright © 2018 Aleksey Kornienko. All rights reserved. // // import Foundation import CoreData extension RepositoryManagedObject { @nonobjc public class func fetchRequest() -> NSFetchR...
// // DetailGarmentPresenter.swift // MyWardrobe // // Created by Tim Johansson on 2018-12-08. // Copyright © 2018 Tim Johansson. All rights reserved. // import Foundation import UIKit class DetailGarmentPresenter: DetailGarmentPresenterProtocol { var interactor: DetailGarmentInteractorInputProtocol? ...
// // AppDelegate.swift // MovieSearch // // Created by Jordan Bryant on 9/25/20. // Copyright © 2020 Jordan Bryant. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions lau...
// // WalletBalanceHistoryCell.swift // WavesWallet-iOS // // Created by Pavel Gubin on 4/30/18. // Copyright © 2018 Waves Platform. All rights reserved. // import UIKit import Extensions private enum Constants { static let height: CGFloat = 56 } final class WalletHistoryCell: UITableViewCell, NibReusable { ...
// // StoreMapService.swift // ToDoList // // Created by njliu on 1/26/15. // Copyright (c) 2015 Naijia Liu. All rights reserved. // import Foundation class StoreMapService { private var storeMarkers = [StoreMarker]() private let mapView: GMSMapView init(mapView: GMSMapView) { self.mapVie...
// ItemsViewController.swift // Copyright (c) 2010-2015 Bill Weinman. All rights reserved. import UIKit class ItemsViewController: UITableViewController { var rssdb : RSSDB! var feedID : NSNumber! var feedRecord : Dictionary<NSObject, AnyObject>? var itemRowIDs : NSArray? override func viewWil...
// // Created by maxime on 26/07/2018. // Copyright (c) 2018 maxime. All rights reserved. // import UIKit public class BoxDropLauncher { public static func startGame(in viewController: UIViewController, with model: GameUploadingModelProtocol, navi...
import UIKit import ThemeKit import MarketKit class ContactBookAddressModule { static func viewController(contactUid: String?, existAddresses: [ContactAddress], currentAddress: ContactAddress? = nil, onSaveAddress: @escaping (ContactAddress?) -> ()) -> UIViewController? { let service: ContactBookAddressSe...
// // ViewControllerAdd.swift // Projecte // // Created by 1181432 on 4/2/16. // Copyright © 2016 FIB. All rights reserved. // import UIKit import CoreData import MobileCoreServices class ViewControllerAdd: UIViewController, UITableViewDataSource, UITableViewDelegate, linksDelegate, linkAddDelegate, UIImagePicker...
// NSColorExtensions.swift - Copyright 2020 SwifterSwift #if canImport(AppKit) && !targetEnvironment(macCatalyst) import AppKit public extension NSColor { /// SwifterSwift: Create an NSColor with different colors for light and dark mode. /// /// - Parameters: /// - light: Color to use in light/uns...
// // RFC822DateFormatter.swift // Feedit // // Created by Tyler D Lawrence on 8/26/20. // import Foundation /// Converts date and time textual representations within the RFC822 /// date specification into `Date` objects class RFC822DateFormatter: DateFormatter { let dateFormats = [ "MMM d, h:mm a...
// // ContentView.swift // SVGViewboxPathTest // // Created by Noah Gilmore on 7/25/20. // import SwiftUI struct ContentView: View { var body: some View { ViewboxPathView( viewboxPath: ViewboxPath( viewbox: CGRect(x: 0, y: 0, width: 384, height: 512), pathStr...
// // AppDetailResult.swift // Assignment // // Created by Jae Kyung Lee on 27/04/2018. // Copyright © 2018 Jae Kyung Lee. All rights reserved. // import Foundation struct DetailInfo: Codable { let trackCensoredName: String let screenshotUrls: [String] let contentAdvisoryRating: String let artwork...
// // Signal.swift // analog // // Created by Philip Kronawetter on 2020-05-05. // Copyright © 2020 Philip Kronawetter. All rights reserved. // import UIKit protocol Signal { var timeRange: ClosedRange<TimeInterval> { get } var valueRange: ClosedRange<Double> { get } func value(at time: TimeInterval) -> Opaqu...
// // Email.swift // OnTheMap // // Created by Cristhian Recalde on 1/26/20. // Copyright © 2020 Cristhian Recalde. All rights reserved. // import Foundation struct Email: Codable { let verificationCodeSent: Bool let verified: Bool let address: String enum CodingKeys: String, CodingKey { ...
// // ZGNormalNoTitleAlert.swift // Pods // // Created by zhaogang on 2017/8/25. // // import UIKit class ZGNormalNoTitleAlert: ZGAlertView { weak var contentLabel:UILabel! var vLineLayer:CALayer! var contentVerticalMargin:CGFloat = 28 //如果文字高度+上下间距大于topMinHeight, 则文字垂直拒中 //最多只支持两个按钮 over...
import Foundation protocol TicketsScreenViewInput: ViewInput { func setupInitialState() func show(_ tickets: [TicketCellViewModel]) }
import UIKit extension UIContextualAction { /// Convenience init to build a UIAction from a `MenuAction` /// to be used in a `UISwipeActionsConfiguration`. convenience init(action: MenuAction, handler: @escaping Block) { let handler: Handler = { _,_, completion in ...
// // BaseUIViewController.swift // Merchant Central // // Created by Fabio Oliveira on 31/10/2014. // Copyright (c) 2014 Olive 3 Consulting Ltd. All rights reserved. // import Foundation import UIKit class BaseUIViewController: UIViewController, CentralUserInterfaceDelegate { var facade: CentralFacade? ...
// // ViewController.swift // IP Locator // // Created by Patrick Zawadzki on 5/11/15. // Copyright (c) 2015 PatZawadzki. All rights reserved. // import UIKit import Foundation import MapKit class LoadingViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! override func view...
import UIKit import CPaaSSDK class AddressbookViewController: BaseViewController, AddressBookAddUpdateDelegate { @IBOutlet weak var tblVw: UITableView! var addressbook = AddressbookBO() @IBOutlet weak var lblNoRecord: UILabel! var isToUpdate: Bool = false @IBOutlet weak var btnAddUpdate: UIBu...
// // GameViewController.swift // Pierre The Penguin // // Created by Gerard Byrne on 02/11/2019. // Copyright © 2019 Gerard Byrne. All rights reserved. // import UIKit import SpriteKit import GameplayKit class GameViewController: UIViewController { override func viewWillLayoutSubviews() { super.view...
import UIKit import SnapKit import ComponentKit import ThemeKit import HUD class IndicatorAdviceCell: BaseThemeCell { static let height: CGFloat = 229 private let headerWrapperView = UIView() private let nameLabel = UILabel() private let infoButton = SecondaryCircleButton() private var adviceView...
// // NotebooksView.swift // StudyPad // // Created by Roman Levinzon on 21/01/2019. // Copyright © 2019 Roman Levinzon. All rights reserved. // import Foundation protocol NotebooksView : BaseView { func showNotebooks(notebooks: [Notebook]) func showEmptyView() func showLoadingError() func sho...
import Foundation struct CategoryCodable: Codable { var id: Int var name: String }
// // AssetsViewController.swift // DevBoostItau-Project1 // // Created by bruna on 9/5/20. // Copyright © 2020 DevBoost-Itau. All rights reserved. // import UIKit import CoreData class AssetsViewController: BaseViewController, HasCodeView { typealias CustomView = AssetsView // MARK: Properties lazy...
// // SystemTableCellViewModel.swift // Quota // // Created by Marcin Włoczko on 06/11/2018. // Copyright © 2018 Marcin Włoczko. All rights reserved. // import UIKit import RxSwift import RxCocoa protocol SystemTableCellViewModel { var title: String { get } var detailTitle: String? { get } var accesso...
// // BeerDetailView.swift // Paging // // Created by Evgeniya Bubnova on 08.04.2020. // Copyright © 2020 Evgeniya Bubnova. All rights reserved. // import SwiftUI struct BeerDetailView: View { var beer: Beer var body: some View { VStack(alignment: .leading) { PopButton { ...
// // AEReceivedMsgDetailVC.swift // AESwiftWorking_Example // // Created by Adam on 2021/4/29. // Copyright © 2021 CocoaPods. All rights reserved. // import UIKit class AEReceivedMsgDetailVC: ICMineViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup...
// // DefaultCompletionHandler.swift // BasicNetwork // // Created by Theis Egeberg on 17/05/2017. // Copyright © 2017 Theis Egeberg. All rights reserved. // import Foundation public let defaultCompletionHandler: CompletionHandler = { (response) in switch response { case .error(let error, let report):...
// // View1.swift // project 10 // // Created by Anisha Lamichhane on 5/29/21. // import SwiftUI class User: ObservableObject, Codable { // every case in our enum is the name of a property we want to load and save enum CodingKeys: CodingKey { case name } @Published var name = "somebody" ...
//import SwiftWebSocket import Foundation typealias CentrifugeBlockingHandler = ([CentrifugeServerMessage]?, NSError?) -> Void class CentrifugeClientImpl: NSObject { var ws: CentrifugeWebSocket! var creds: CentrifugeCredentials! var conf: CentrifugeConfig! var builder: CentrifugeClientMessageBuilder! ...
struct AuthMethod { let type: AuthType let displayName: String let url: String class DisplayNames { static let basic = "Basic Auth" static let gitHub = "GitHub" static let uaa = "UAA" } init(type: AuthType, displayName: String, url: String) { self.type = type ...
// // FlickrPhotoViewController.swift // FlickrSearch // // Created by Jeff Norton on 11/20/16. // Copyright © 2016 JeffCryst. All rights reserved. // import UIKit class FlickrPhotoViewController: UIViewController { //================================================== // MARK: - _Properties //====...
import UIKit import UserNotifications import UserNotificationsUI import SharedManager import MapboxStatic import CleverTapAppEx class NotificationViewController: UIViewController, UNNotificationContentExtension { @IBOutlet var mapImageView: UIImageView! @IBOutlet var loadingIndicator: UIActivityIndicato...
// All credit to Codecademy // Declaring all variables var dogAge: Int = 10 var earlyYears: Int = 0 var laterYears: Int = 0 var humanYears = 0 //Early Years assigned a value earlyYears = 21 //Later years is calculated laterYears = (dogAge - 2) * 4 //early years and later years together //makes human years humanYear...
import Foundation import Shared extension Rating { static let fixture = Rating.init(source: "test_source", value: "test_value") }
// // PinFriend.swift // Pin // // Created by Ken on 6/21/14. // Copyright (c) 2014 Bacana. All rights reserved. // import Foundation class PinFriend: NSObject { var name: NSString? = nil var number: NSString? = nil var location: Location? = nil var map: UIImage? = nil var city: NSString? = nil // M...
// // UIHelper.swift // RBC Money Coach // // Created by Applied Innovation on 2015-06-19. // Copyright (c) 2015 Applied Innovation. All rights reserved. // import UIKit class UIHelper: UIStoryboardSegue { func prettyButtons(button: AnyObject, radius: Float, maskToBounds: Bool){ } }
// // GenreModel.swift // radio // // Created by MacBook 13 on 7/10/18. // Copyright © 2018 MacBook 13. All rights reserved. // import Foundation class GenreModel { var id:Int?=nil var name:String?=nil var img:String?=nil }
public protocol ResolveDependency { func resolve<Service>(_: Service.Type, name: String?) -> Service? } public extension ResolveDependency { func resolve<Service>(name: String? = nil) -> Service? { resolve(Service.self, name: name) } }
// // HistoryViewController.swift // TakeUrPill // // Created by Alessio Roberto on 14/07/2018. // Copyright © 2018 Alessio Roberto. All rights reserved. // import IntentsUI import UIKit struct ConfigureHistory { let controller: HistoryController } final class HistoryViewController: BaseViewController { ...
// // ViewController.swift // nuevatarea // // Created by John Balcazar on 9/05/16. // Copyright © 2016 JohnBalcazar. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var name: UITextField! @IBOutlet weak var city: UITextField! @IBOutlet weak var ...
// // PaymentCell.swift // TaxiApp // // Created by Hundily Cerqueira on 18/05/20. // Copyright © 2020 Hundily Cerqueira. All rights reserved. // import UIKit class PaymentCell: UITableViewCell { @IBOutlet weak var viewCamera: UIView! override func awakeFromNib() { super.awakeFromNib() ...
// // APIKeys.swift // desafio-ios-gabriel-leal // // Created by Gabriel Sousa on 02/04/20. // Copyright © 2020 Gabriel Sousa. All rights reserved. // import Foundation import CryptoSwift struct ParamKeys { static let apikey = "apikey" static let hash = "hash" static let timeStamp = "ts" static le...
// // Visual.swift // imagefy // // Created by Alan Magalhães Lira on 21/05/16. // Copyright © 2016 Alan M. Lira. All rights reserved. // import UIKit public class UIDesign { class func viewShadowPath(layer: CALayer, bounds: CGRect, radius: CGFloat, shadowOffset: CGSize, masksToBounds: Bool) { ...
// // LanguageInfo.swift // Westeros Translator // // Created by Raymond An on 4/6/20. // Copyright © 2020 Raymond An. All rights reserved. // import Foundation struct LanguageInfo { var translated: String? var text: String? }
public protocol SettingsStoreProtocol { var settings: Settings { get set } }
// SwiftUIPlayground // https://github.com/ralfebert/SwiftUIPlayground/ import SwiftUI struct CounterView: View { let name: String @State var count = 1 var body: some View { Button("Counter \(name) \(count)") { self.count += 1 } .padding() .border(Color.blue) } } /// ...
// // MenuViewController.swift // MenuBar // // Created by Luka Kerr on 27/3/17. // Copyright © 2017 Luka Kerr. All rights reserved. // import Cocoa class MenuViewController: NSViewController { let fieldBackgroundColor = NSColor(red:0.15, green:0.15, blue:0.15, alpha:1.0) let fieldBorderColor = NSColor(red...
// // FirebaseClient.swift // Flykeart App // // Created by Akhil Pothana on 5/28/19. // Copyright © 2019 Federico Brandt. All rights reserved. // // A singleton for performing all interactions with Firebase import Foundation import FirebaseDatabase struct FirebaseClient { static let currentOrdersRef = D...
// // HistorySummaryViewController.swift // Coremelysis // // Created by Artur Carneiro on 21/09/20. // Copyright © 2020 Rafael Galdino. All rights reserved. // import UIKit /// The representation of the History screen summary final class HistorySummaryViewController: UIViewController { // - MARK: Properties...
// // CampsDetailTableCell.swift // CureadviserApp // // Created by BekGround-2 on 24/03/17. // Copyright © 2017 BekGround-2. All rights reserved. // import UIKit class CampsDetailTableCell: UITableViewCell { @IBOutlet var iconImgbtn: UIButton! @IBOutlet var lblText: UILabel! override func ...
// // GroupLoader.swift // AdvancedCodable // // Created by Felipe Costa on 9/13/19. // Copyright © 2019 Felipe Costa. All rights reserved. // import Foundation class GroupLoader { class func load(jsonFileName: String) -> Response? { var response: Response? let jsonDecoder = JSONDecoder()...
// // AudioViewController.swift // Spot // // Created by george on 27/01/2017. // Copyright © 2017 george. All rights reserved. // import UIKit import AVFoundation class AudioViewController: UIViewController { var post: Post! = nil @IBOutlet weak var background: UIImageView! @IBOutlet weak var im...
// // PIXSprite.swift // PixelKit // // Created by Anton Heestand on 2018-08-28. // Open Source - MIT License // import RenderKit import Resolution import SpriteKit import PixelColor open class PIXSprite: PIXContent, NODEResolution { override open var shaderName: String { return "spritePIX" } /...
// // LimitPickerTableViewCell.swift // SimpleAgricolaScorer // // Created by Benjamin Wishart on 2015-04-22. // Copyright (c) 2015 Benjamin Wishart. All rights reserved. // import UIKit protocol LimitPickerDelegate { func limitPickerView(limitPicker: UIPickerView, didSelectRow row: Int) } class LimitPickerT...
// // ViewController.swift // Pursuit-Core-iOS-CocoaPods-Lab // // Created by Oscar Victoria Gonzalez on 3/3/20. // Copyright © 2020 Oscar Victoria Gonzalez . All rights reserved. // import UIKit class ViewController: UIViewController { var firstView = mainView() var randomUsers = [User]() { ...
// // ViewController.swift // Game2048 // // Created by admin on 10/26/16. // Copyright © 2016 admin. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var score: UILabel! var b = Array(repeating: Array(repeating: 0, count: 4), count: 4) overri...
// // SafariExtensionViewController.swift // ReaderTranslatorSafari // // Created by Viktor Kushnerov on 10/2/19. // Copyright © 2019 Viktor Kushnerov. All rights reserved. // import SafariServices class SafariExtensionViewController: SFSafariExtensionViewController { static let shared: SafariExtensionViewCon...
// // Mood.swift // MoodTracker // // Created by Kevin Blom on 07/07/2019. // Copyright © 2019 Atomische Droeftoeters. All rights reserved. // import SwiftUI struct EnterableMood: Hashable, Codable, Identifiable { var id: Int32 var moodName: String } class EnterableMoods { var veryGood: EnterableMood...
// // ItemList-CoreDataHelpers.swift // SimpleGoceryList // // Created by Payton Sides on 7/13/21. // import CloudKit import CoreData import Foundation import SwiftUI extension ItemList { //MARK: - Wrapped Properties var titleDisplay: String { title ?? "" } enum colors { }...
// // Auto+CoreDataProperties.swift // gestioneParcheggi // // Created by atrak on 11/10/21. // // import Foundation import CoreData extension Auto { @nonobjc public class func fetchRequest() -> NSFetchRequest<Auto> { return NSFetchRequest<Auto>(entityName: "Auto") } @NSManaged public var no...
/// Represents a Top-Level entity that has a static address /// in the compiled binary. protocol TopLevelEntity { /// The label that will resolve to this entity. var label: String { get } }
// // ViewController.swift // Quizzler // // Created by Juan Rodriguez on 2020-06-24. // Copyright © 2020 Juan Rodriguez. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var questionLabel: UILabel! @IBOutlet weak var trueButton: UIButton! @IBOutlet weak va...
func findUniques(_ arr: [Int]) -> [Int] { guard arr.count != 0 else { print("The array is empty") return [] } var uniques = [Int]() let checkForDupes = Set(arr) var runningTally = [Int : Int]() for item in checkForDupes { runningTally[item] = 0 } for item in a...
// // CoreDataStackManager.swift // CoreDataSwift // // Created by cxjwin on 10/27/14. // Copyright (c) 2014 cxjwin. All rights reserved. // import Foundation import CoreData import UIKit class CoreDataStackManager: NSObject { class var sharedInstance: CoreDataStackManager { struct Singleton { static var in...
import UIKit class shopdetailsViewController: UIViewController { var info : [userinfo]? = [] @IBOutlet var shop_image: UIImageView! @IBOutlet var shop_name: UILabel! @IBOutlet var address: UILabel! @IBOutlet var mobile: UILabel! @IBOutlet var whatsapp: UILabel! @IBOutlet var ema...
// // LocationViewModel.swift // Weather // // Created by 진재명 on 8/18/19. // Copyright © 2019 Jaemyeong Jin. All rights reserved. // import CoreData import Foundation import os class LocationViewModel: NSObject { let fetchedResultsController: NSFetchedResultsController<Location> @objc dynamic var results...
// // OfferPage.swift // Yelnur // // Created by Дастан Сабет on 27.03.2018. // Copyright © 2018 Дастан Сабет. All rights reserved. // import UIKit import SwiftMessages class OfferPage: UIViewController { enum reuseIdentifiers: String { case offer = "offerCell" } var order: Order! ...
// // DataSource.swift // CollectionViewDemo // // Created by Xueliang Zhu on 6/9/16. // Copyright © 2016 kotlinchina. All rights reserved. // import UIKit class DataSource: NSObject, UICollectionViewDataSource { var images = [0, 1, 2, 3, 4, 5 ,6 ,7 ,8 ,9 ,10 ,11] func collectionView(collectionV...
// // FileController+GetUploadsResults.swift // Server // // Created by Christopher G Prince on 8/9/20. // import Foundation import ServerShared import LoggerAPI extension FileController { func getUploadsResults(params:RequestProcessingParameters) { guard let getUploadsRequest = params.request as? GetU...
// // Member.swift // MeetupRemainder // // Created by Vegesna, Vijay V EX1 on 9/12/20. // Copyright © 2020 Vegesna, Vijay V. All rights reserved. // import SwiftUI import MapKit struct Member: Codable { let name: String let icon: CodableImage var instance: CodableMKPointAnnotation? init...
// // WashResponse.swift // carWash // // Created by Juliett Kuroyan on 09.12.2019. // Copyright © 2019 VooDooLab. All rights reserved. // import Foundation struct WashResponse: Codable { var id: Int var city: String var address: String var coordinates: [Double] var cashback: Int var s...
// // ViewController.swift // eggplant-brownie // // Created by Raphael Freitas dos Santos on 25/12/16. // Copyright © 2016 Raphael Freitas dos Santos. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet var nameField: UITextField?; @IBOutlet var happinesFiled: UITextF...
// // FindpasswordTableViewCell.swift // test // // Created by Asianark on 16/1/22. // Copyright © 2016年 Asianark. All rights reserved. // import UIKit class FindpasswordTableViewCell: UITableViewCell { @IBOutlet weak var SmallLabel: UILabel! @IBOutlet weak var BigLabel: UILabel! @IBOutlet weak v...