text
stringlengths
8
1.32M
// // ToddsSyndromeDetector.swift // ToddsSyndromeIdentification // // Created by Marina Butovich on 9/23/16. // Copyright © 2016 Marina Butovich. All rights reserved. // import Foundation internal class ToddsSyndromeDetector: SyndromeDetector { func getSyndromeProbability(patient: Patient) -> Double { ...
// // GradeScale.swift // My GPA // // Created by Adhirath Sreekanth on 2017-08-29. // Copyright © 2017 ADDY. All rights reserved. // import UIKit protocol GradeScaleDelegate { func controller(controller: GradeScale) } class GradeScale: UITableViewController { var gradeModified = 0 var delegate...
// // OptionalTestObject+CoreDataClass.swift // KueryTests // // Created by Kishikawa Katsumi on 2017/09/22. // Copyright © 2017 Kishikawa Katsumi. All rights reserved. // // import Foundation import CoreData @objc(OptionalTestObject) public class OptionalTestObject: NSManagedObject { }
// // WebMultiPart.swift // Tools // // Created by Almaz Ibragimov on 21.03.2018. // Copyright © 2018 Flastack. All rights reserved. // import Foundation public typealias WebMultiPart = [WebMultiPartItem]
// // AddItemViewController.swift // Cafe_Manager // // Created by Lahiru on 4/28/21. // Copyright © 2021 Lahiru. All rights reserved. // import UIKit import Firebase import FirebaseDatabase import FirebaseStorage class CellClass: UITableViewCell { } class addItemViewController: UIViewController,UITableViewD...
// // Summoner.swift // ChampionCollection // // Created by HsiaoFuChien on 2020/6/15. // Copyright © 2020 黃俊維. All rights reserved. // import Foundation struct SummonerData:Decodable { let data:[String:Summoner] } struct Summoner:Decodable { let id:String let name:String let description:String ...
/// /// Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. /// Use of this file is governed by the BSD 3-clause license that /// can be found in the LICENSE.txt file in the project root. /// /// /// This signifies any kind of mismatched input exceptions such as /// when the current input does not matc...
// // CKUsers.swift // Experiment Go // // Created by luojie on 9/21/15. // Copyright © 2015 LuoJie. All rights reserved. // import Foundation import CloudKit class CKUsers: CKItem { override var recordID: CKRecordID { return (recordIDName == CKOwnerDefaultName && CKUsers.CurrentUser?.recordID != nil)...
// max gap between ones func maxGap (_ num :Int) -> Int{ let n = num var arr = [Int]() var count = 0 var countArray = [Int]() let binaryString = String(n, radix: 2) for j in binaryString.characters.indices{ arr.append(Int(String(binaryString[j]))!) } for k in arr{ if k == 0 { count += 1 } else if k...
// // SourceVC.swift // News // // Created by Taras Chernysh on 10/14/19. // Copyright © 2019 Taras Chernysh. All rights reserved. // import UIKit import SafariServices import ReactiveCocoa import ReactiveSwift final class SourceVC: BaseVC, UseCasesConsumer { typealias UseCases = NetworkUseCase @IBOu...
// // AqiViewModelMapper.swift // Dashboard // // Created by Leo on 3/10/21. // import Foundation import CleanBreezeDomain class AqiViewModelMapper: AbstractAqiViewModelMapper { func map(entity: AbstractAqiEntity, startTime: Date?) -> AbstractAqiViewModel? { let category = AqiCategory.categoryFor(aqi:...
import UIKit class MenuTableCell: UITableViewCell { var label: UILabel! var channelName: String { get { return label?.text ?? String() } set(name) { label.text = name } } var selectedBackgroundColor: UIColor { return UIColor(red:...
// // StartViewController.swift // Functions3 // // Created by Erdi Kanık on 26.01.2018. // Copyright © 2018 ekanik. All rights reserved. // import Foundation import GameKit import GoogleMobileAds class StartViewController: BaseViewController { @IBOutlet private weak var maximumScoreLabel: UILabel! filepr...
// // Presenter.swift // MVPtest // // Created by Муслим Курбанов on 20.09.2020. // Copyright © 2020 Муслим Курбанов. All rights reserved. // //MARK: - MainPresenter import Foundation protocol ViewProtocol: class { func configurate(viewController: ViewController) } protocol ViewPresetnerProtocol: class { ...
// // UIViewInspectable.swift // Rent A Dev // // Created by Dharmendra Valiya on 05/12/20. // Copyright © 2020 Dharmendra Valiya All rights reserved. // import Foundation import UIKit extension UIView { @IBInspectable var cornerRadius: CGFloat { get { return layer.cornerRadius...
// // AlertViewController.swift // Bookmark // // Created by 김희진 on 2021/07/23. // import UIKit class AlertViewController: UIViewController { let imgOn = UIImage(named: "lamp-on.png") let imgOff = UIImage(named: "lamp-off.png") let imgRemove = UIImage(named: "lamp-remove.png") var isLampOn =...
// // UserCalendarViewController.swift // Boatell-x-v2 // // Created by Austin Potts on 4/1/20. // Copyright © 2020 Potts Evolvements. All rights reserved. // import UIKit import FSCalendar class UserCalendarViewController: UIViewController { fileprivate weak var calendar: FSCalendar! @IBOutlet var detai...
// // BannersIconsBezierPaths.swift // SocialBanners // // Created by IvanVorobei on 6/17/17. // Copyright © 2017 IvanVorobei. All rights reserved. // // Generated by PaintCode // http://www.paintcodeapp.com // import Cocoa public class BannersIconsBezierPaths : NSObject { //// Cache private struct ...
// // Engine.swift // Engine // // Created by KunalSingh on 16/05/21. // import MetalKit class Engine{ public static var Device: MTLDevice! public static var CommandQueue: MTLCommandQueue! public static func Set(device: MTLDevice){ self.Device = device self.CommandQueue = device.makeComm...
// // CharactersTableViewController.swift // Assessment // // Created by Flavius Bortas on 10/29/18. // Copyright © 2018 Flavius Bortas. All rights reserved. // import UIKit class CharactersTableViewController: UITableViewController { //MARK: - Properties var allCharacters = [Character]() va...
// // GULabel.swift // GUCustomizeViews // // Created by 默司 on 2016/8/29. // Copyright © 2016年 默司. All rights reserved. // import UIKit @IBDesignable public class GULabel: UILabel { @IBInspectable public var designedFontSize: CGFloat = 0 { didSet { updateFontSize() } }...
// // PeekPopGestureRecognizer.swift // PeekPop // // Created by Roy Marmelstein on 06/03/2016. // Copyright © 2016 Roy Marmelstein. All rights reserved. // import UIKit.UIGestureRecognizerSubclass class PeekPopGestureRecognizer: UIGestureRecognizer { var context: PreviewingContext? let peekPopManage...
// // NavLog.swift // FlaskNav // // Created by hassan uriostegui on 10/31/18. // Copyright © 2018 eonflux. All rights reserved. // import UIKit class NavLog: NSObject { // static func i( // // /// The name/description of the current queue (Operation or Dispatch), if that can be found. Else, the name/d...
// // SceneDelegate.swift // DemoApp // // Created by Aastha Rajput on 12/30/19. // Copyright © 2019 Aastha Rajput. All rights reserved. // import UIKit import SwiftUI import Branch class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectT...
// // TodoClass.swift // todoey // // Created by Vinny van eesbeek on 12/05/2019. // Copyright © 2019 Vinny van eesbeek. All rights reserved. // import Foundation class Items: Codable { var title: String = "" var done: Bool = false }
// // TableViewController.swift // UICollectionInsideUITable // // Created by Gulsah Altiparmak on 19.02.2021. // import UIKit class MovieListTable: UITableViewController{ override func viewDidLoad() { super.viewDidLoad() self.tableView.separatorStyle = .none } overr...
// // MapView.swift // map // // Created by Amey Jain on 11/3/15. // Copyright © 2015 Amey Jain. All rights reserved. // import UIKit class MapView: UIView { }
// // SecondViewController.swift // Workouts // // Created by Hubert Choo on 5/5/20. // Copyright © 2020 Hubert Choo. All rights reserved. // import UIKit extension SecondViewController: UISearchResultsUpdating { func updateSearchResults(for searchController: UISearchController) { let searchBar = sear...
// // EvaluationControl.swift // secondApp // // Created by Aula11 on 22/10/19. // Copyright © 2019 Jose Antonio Parra Sánchez. All rights reserved. // import UIKit class EvaluationControl: UIView { //MARK: Atributos var botones: [UIButton] = [UIButton]() var gradoAfinidad = 0 { didS...
// // SettingsManager.swift // seugarcom // // Created by Alysson Nazareth on 02/12/15. // Copyright © 2015 RAH. All rights reserved. // import UIKit open class SettingsManager { static func get(_ config:String) -> String! { var myDict: NSDictionary? if let path = Bundle.main.path(forResource: ...
// // AlgorithmsTableViewController.swift // Cube Algorithms // // Created by Dayn Goodbrand on 27/07/2016. // Copyright © 2016 Dayn Goodbrand. All rights reserved. // import UIKit class AlgorithmsTableViewController: UITableViewController { var method: Method = (title: "Unknown", steps: []) var cubeLayo...
// // Time.swift // ESOcean // // Created by Tomohiro Kumagai on H27/06/19. // // import Darwin.C extension timespec : Equatable { public init(_ value:timeval) { self.tv_sec = value.tv_sec self.tv_nsec = Int(value.tv_usec) * Time.nanosecondPerMicrosecond } } extension timeval : Equatable { public init...
// // Airbnb.swift // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport import Foundation import ObjectMapper class Airbnb : NSObject, NSCoding, Mappable{ var exploreTabs : [ExploreTab]? var metadata : Metadata? class func newInstance(map: Map) -> Mappable?{ return Airbnb() } ...
enum DogName: String { case chiyo = "chiyo" case eru = "eru" case otome = "otome" var capitalized: String { return self.rawValue.capitalized } init?(account: String) { switch account { case DogName.chiyo.rawValue: self = .chiyo case DogName.e...
// // ProtocolDownloadDetailViewController.swift // Sohulc // // Created by 李博武 on 2018/9/18. // Copyright © 2018年 linjing. All rights reserved. // import UIKit import SnapKit import Alamofire import WebKit import SafariServices class ProtocolDownloadDetailViewController: UIViewController { //MARK - 网络异常 - ...
import UIKit /// "Open in Safari" is not available as part of the default system activities. class OpenInBrowserActivity: UIActivity { override var activityImage: UIImage? { UIImage(systemName: "safari") } override class var activityCategory: Category { .action } override var activityTitle: String? { "Open in Br...
/* * @lc app=leetcode.cn id=3 lang=swift * * [3] 无重复字符的最长子串 */ // @lc code=start class Solution { // 双指针 func lengthOfLongestSubstring(_ s: String) -> Int { var dic = [Character: Int]() var result = 0 var start = -1 var previousIndex = -1 for (index, char) in s.enum...
// // Box.swift // SignInWithAppleDemo // // Created by Virender Dall on 30/10/20. // Copyright © 2020 Developer Insider. All rights reserved. // import Foundation class Box<T> { typealias Listener = (T) -> Void // Replace your array with a dictionary mapping // I also made the Observer method ma...
// // Country.swift // // // Created by Vladislav Fitc on 12/04/2020. // import Foundation public enum Country: String, Codable { case afghanistan = "af" case alandIslands = "ax" case albania = "al" case algeria = "dz" case americanSamoa = "as" case andorra = "ad" case angola = "ao" case anguilla ...
// // Setting+Client.swift // OmiseGO // // Created by Mederic Petit on 7/8/2018. // Copyright © 2017-2018 Omise Go Pte. Ltd. All rights reserved. // extension Setting: Retrievable { @discardableResult /// Get the global settings of the provider /// /// - Parameters: /// - client: An API clie...
// // Alertas.swift // Social Media // // Created by Junior Silva on 22/01/17. // Copyright © 2017 NJDevelopment. All rights reserved. // import Foundation class Alertas { /* The password must be 6 characters long or more. The email address is badly formatted. The email a...
// // Rotation.swift // bells // // Created by Thomas Varano on 10/26/18. // Copyright © 2018 Thomas Varano. All rights reserved. // import Foundation struct Rotation { var times: [Period] let dayType: DayType let ordinal: Int let name: String init(ordinal: Int, name: String, dayType: Day...
// // Obstacles.swift // SuperSpaceMan3D // // Created by Romy Ilano on 4/18/18. // Copyright © 2018 Romy Ilano. All rights reserved. // import UIKit import SceneKit class Obstacles: NSObject { class func PyramidNode() -> SCNNode { let pyramid = SCNPyramid(width: 10.0, height: 20.0, length: 10.0) ...
// // Months.swift // DaysBetween // // Created by Ronald Joubert on 5/24/21. // import Foundation struct Months { var daysInMonth: [Int] = [] var daysPassed: Int = 0 let short:[Int] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,21, 22, 23, 24, 25, 26, 27, 28] let le...
// // RemoteSessionView.swift // Metronome Watch Extension // // Created by luca strazzullo on 14/6/20. // Copyright © 2020 luca strazzullo. All rights reserved. // import SwiftUI struct RemoteSessionView: View { @ObservedObject private(set) var viewModel: RemoteSessionViewModel var body: some View { ...
// // CategoryCell.swift // Good Eatins // // Created by Umair Latif on 07/10/2019. // Copyright © 2019 Umair Latif. All rights reserved. // import UIKit class CategoryCell: UITableViewCell { @IBOutlet weak var categoryImg: UIImageView! @IBOutlet weak var categoryLabel: UILabel! override func aw...
// // LockableTextFieldDelegate.swift // TextFields // // Created by Alex Perez on 6/29/16. // Copyright © 2016 Udacity. All rights reserved. // import Foundation import UIKit class LockableTextFieldDelegate: NSObject, UITextFieldDelegate{ }
// // MainLoop.swift // parkour // // Created by Shu Iida on 2016/03/08. // Copyright © 2016年 Shu Iida. All rights reserved. // import Foundation import UIKit class MainLoop:NSObject { var buildings:[Obstacle] = [] init(mainView:UIView) { // Instantiate ten buildings. for _ in 0...9 {...
// // swiftFile.swift // vacaOrg // // Created by Adrienne Scutellaro on 6/27/21. // import Foundation
import XCTest @testable import BCryptTests XCTMain([ testCase(BCryptTests.allTests), ])
import UIKit import HealthKit private let dateFormatter = DateFormatter() class WorkoutDetailViewController: UIViewController { var workout: HKWorkout! var hkstore: HKHealthStore! @IBOutlet var titleLabel: UILabel! @IBOutlet var samplesTableView: UITableView! @IBOutlet var heartRateGraph...
// // MessagesViewController.swift // iMessage-App MessagesExtension // // Created by Michelle Faifer dos Santos on 31/01/18. // Copyright © 2018 Michelle Faifer dos Santos. All rights reserved. // import UIKit import Messages class MessagesViewController: MSMessagesAppViewController { //MARK: - Attributes ...
// // PagingMenuItem.swift // SwiftSamples // // Created by Tsukasa Hasegawa on 2019/01/02. // Copyright © 2019 Tsukasa Hasegawa. All rights reserved. // import UIKit struct PagingMenuItem { let menuTitle: String let contentTitle: String let themeColor: UIColor }
// // RegistrationFlowContainer.swift // Navigator // // Created by Milan de Ruiter on 16/01/2020. // Copyright © 2020 ABN. All rights reserved. // import Foundation import Swinject class RegistrationFlowResolver { static var container: Container { let container = Container() con...
// // ContentView.swift // healthcare // // Created by Edward Lauv on 06/03/2021. // import UIKit class ContentView: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = .systemBackground self.title = "slide menu" } }
// // TMCardCVVTextFIeld.swift // consumer // // Created by Vladislav Zagorodnyuk on 5/23/16. // Copyright © 2016 Human Ventures Co. All rights reserved. // import UIKit // Payment import Stripe import BKMoneyKit class TMCardCVVTextField: TMPaymentTextField { // non numeric regex let nonNumericRegex...
// // DataCardsManager.swift // PlanningPoker // // Created by David González on 15/11/16. // Copyright © 2016 BEEVA. All rights reserved. // protocol DataCardsManagerInput { func getNormalCardList(isNumberType: Bool) -> [String] func getBigCardList(isNumberType: Bool) -> [String] func getBiggerCardLis...
import Foundation @objcMembers public class USZipCode: NSObject, Codable { // See "https://smartystreets.com/docs/cloud/us-zipcode-api#zipcodes" public var zipCode:String? public var zipCodeType:String? public var defaultCity:String? public var countyFips:String? public var countyName:S...
// // EventApplicationInteractor.swift // app // // Created by Иван Лизогуб on 28.12.2020. // // import Firebase final class EventApplicationInteractor { weak var output: EventApplicationInteractorOutput? private let tournament: Tournament private var users: [User] init(tournament: Tournament) { self.tour...
// // Home.swift // SpecialTraining // // Created by 尹涛 on 2018/11/16. // Copyright © 2018 youpeixun. All rights reserved. // import UIKit //MARK: //MARK: 体验专区 class ExperienceCourseModel: HJModel { var advertList = [AdvertListModel]() var courseList = [ExperienceCourseItemModel]() } class Expe...
// // ViewController.swift // Feelicity // // Created by Sonal Prasad on 8/19/18. // Copyright © 2018 Feelicity. All rights reserved. // import Foundation import UIKit class ViewController: UINavigationController { override func viewDidLoad() { super.viewDidLoad() // 1 let nav = self....
// // CalendarVc.swift // KayakFirst Ergometer E2 // // Created by Balazs Vidumanszki on 2017. 02. 16.. // Copyright © 2017. Balazs Vidumanszki. All rights reserved. // import UIKit class CalendarVc: BaseVC<VcCalendarLayout> { //MARK: constants private static let modeEvent = "mode_event" private ...
// // Config.swift // Appointment // // Created by Jeffrey Moran on 10/29/21. // Copyright © 2021 Jeff Moran. All rights reserved. // import Foundation // swiftlint:disable let_var_whitespace enum Config { @UserDefault(key: "appointmentSortingType", defaultValue: .timeAscending) static var appointmentSor...
// // File.swift // quer // // Created by Mohan Raj on 28/07/21. // import Foundation
// // DataListViewModel.swift // RoambeeDemo // // Created by Nidhi Joshi on 26/09/2021. // import Foundation final class DataListViewModel { var dataList: [DataModel]? var service: APIService = APIService() var didLoad: (() -> Void)? var failToLoad: ((String?) -> Void)? ini...
// // TheProjectViewController.swift // prkng-ios // // Created by Cagdas Altinkaya on 18/06/15. // Copyright (c) 2015 PRKNG. All rights reserved. // import UIKit class TheProjectViewController: AbstractViewController { let backgroundImageView = UIImageView(image: UIImage(named: "bg_login")) let logoView ...
// // ImageDetailViewController.swift // pkh0225 // // Created by pkh on 2021/07/16. // import UIKit private let ANIMATION_DURATUION = 0.2 protocol ImageDetailViewControllerDelegate: AnyObject { func didChange(index: Int) func getStartRect() -> CGRect func willPushStartAnimation() func didPushEndA...
// // main.swift // SimpleDomainModel // // Created by Ted Neward on 4/6/16. // Copyright © 2016 Ted Neward. All rights reserved. // import Foundation print("Hello, World!") public func testMe() -> String { return "I have been tested" } open class TestMe { open func Please() -> String { return "I have b...
// // Models.swift // AutoLayout // // Created by Stanislav Novacek on 02/10/2019. // import Foundation import UIKit /// Auto layout connection. Wraps an `NSLayoutConstraint` object. public class Connection: LayoutConnection { /// Type of the connection. public let type: LayoutConnectionType ...
import UIKit class DetailViewController: UIViewController { @IBOutlet private var labelPersonName: UILabel! @IBOutlet private var labelPersonGender: UILabel! @IBOutlet private var labelPersonHeight: UILabel! @IBOutlet private var labelPersonMass: UILabel! @IBOutlet private var labelPersonBirthYear:...
// // ElementViewController.swift // AC-iOS-MidProgramAssessment // // Created by Ashlee Krammer on 12/8/17. // Copyright © 2017 C4Q . All rights reserved. // import UIKit class ElementViewController: UIViewController { //Outlets @IBOutlet weak var tableView: UITableView! //Variabl...
// // AppDelegate.swift // ODE solver // // Created by Wern Jie Lim on 24/8/18. // Copyright © 2018 Wern Jie Lim. All rights reserved. // import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ aNotification: Notification) { // Inser...
// // Copyright © 2020 Tasuku Tozawa. All rights reserved. // import Common import Domain import RealmSwift public class TemporaryClipStorage { public struct Configuration { let realmConfiguration: Realm.Configuration } let configuration: Realm.Configuration private let logger: TBoxLoggable ...
// // ViewController.swift // FindMyListeners // // Created by Hamzah Chaudhry on 12/2/20. // import UIKit import Firebase class LoginViewController: UIViewController { @IBOutlet weak var usernameTextField: UITextField! @IBOutlet weak var passwordTextField: UITextField! @IBAction func on...
// // Structs.swift // Connect // // Created by Michael Hu on 05-06-18. // Copyright © 2018 Michael Hu. All rights reserved. // import Foundation import UIKit import Firebase import FirebaseDatabase //MARK: - Structs struct User: Codable { var name: String! var age: String! var location: String! ...
// Corona-Warn-App // // SAP SE and all other contributors // copyright owners license this file to you under the Apache // License, Version 2.0 (the "License"); you may not use this // file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2....
// // MatchViewController.swift // Nodus // // Created by Super on 5/12/17. // Copyright © 2017 Eden. All rights reserved. // import UIKit class ContactViewController: UIViewController, UITableViewDelegate, UITableViewDataSource{ @IBOutlet weak var tableView: UITableView! var connections = [User]() ...
// // favorite.swift // 新加坡中文电台 // // Created by Jiang Nan Qing on 19/2/16. // Copyright © 2016 CodeMarket.io. All rights reserved. // import Foundation class favoriteSongs: NSObject { var favoriteTracks = [String]() static let sharedInstance = favoriteSongs() override init() { super.init() ...
// // TabBarViewController.swift // Desafio_30_10_2020 // // Created by Mizia Lima on 11/4/20. // import UIKit class TabBarViewController: UITabBarController { static let shared = TabBarViewController() override func viewDidLoad() { super.viewDidLoad() loadViewControllers() } ...
// // Pokemon.swift // PocketDex // // Created by Thomas Tenzin on 6/14/20. // Copyright © 2020 Thomas Tenzin. All rights reserved. // import Foundation struct Pokemon: Codable, Identifiable, Hashable { let id: Int let identifier: String let species_id: Int let height: Int let weight: Int...
// // GLEnum.swift // GameleySDK // // Created by fitz on 2018/7/24. // Copyright © 2018年 Fitz Leo. All rights reserved. // import Foundation enum GLAccount: Int { case weChat = 1, qq, weibo var key: String { switch self { case .qq: return "qq" case .weChat: return "wx" ...
// // UIViewControllerExtension.swift // // Created by Darktt on 16/3/8. // Copyright © 2016 Darktt. All rights reserved. // import UIKit public extension UIViewController { // MARK: - Methods - // MARK: Initial Method convenience init(nibName: String) { self.init(nibName: nibName, bun...
// // InternalClassExtensions.swift // StackOverflow-Interview // // Created by Neill Barnard on 2020/06/23. // Copyright © 2020 Neill Barnard. All rights reserved. // import UIKit extension NSAttributedString { internal convenience init?(html: String, fontSize:Int) { let modifiedFont = String(format:...
// // ViewController.swift // Tips // // Created by John Boggs on 12/20/14. // Copyright (c) 2014 John Boggs. All rights reserved. // import UIKit class ViewController: AbstractTipsterView { var backingCheckAmount = 0.0 var backingTipAmount = 0.0 var tipAmountSetByUser = false var backingTi...
// // JWT.swift // AuthenticationKit // // Created by Adam Young on 25/06/2020. // import Foundation public struct JWT { private static let expireTimeWindow: TimeInterval = (5 * 60) // 5 minutes public let header: [String: Any] public let body: [String: Any] public let signature: String? publ...
// // ItemsTableViewController.swift // FruitsAndVegetableItems // // Created by SrinathCholleti on 10/02/21. // import UIKit class ItemsTableViewController: UITableViewController { var fruitsAndVegData : FruitAndVegeData? override func viewDidLoad() { super.viewDidLoad() let fru...
// // Constantes.swift // BountyHunter // // Created by Infraestructura on 01/10/16. // Copyright © 2016 Infraestructura. All rights reserved. // import CoreGraphics import UIKit struct Constantes { // FONT SIZES static let FUENTE_TITULOS:CGFloat = 24.0 static let FUENTE_SUBTITULOS:CGFloat = 17.0 ...
// // Story+Extensions.swift // hackernews // // Created by Daniel Grech on 12/10/2015. // Copyright © 2015 DGSD. All rights reserved. // import SwiftyJSON extension JSON { func toComment() -> Comment { return Comment( id: self["id"].int64Value, time: self["time"].int64Val...
import Foundation /* Q647. Palindromic Substrings Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters. Example 1: Input: "abc" Output: 3 E...
// // TaskCreatedViewController.swift // TODOIntentsUI // // Created by Ashis Laha on 05/06/20. // Copyright © 2020 Ashis Laha. All rights reserved. // import UIKit import TODOKit import Intents class TaskCreatedViewController: UIViewController { private let intent: TODOIntent private let response: TODOIntentR...
// // UIFeedView.swift // FirstApp // // FeedView // // Created by ccfyyn on 15/12/16. // Copyright © 2015年 ccfyyn. All rights reserved. // import Foundation import UIKit public class UIFeedView: UIScrollView, UIScrollViewDelegate { // 垂直边距 public var verticalSpacing:CGFloat = 4.0 // 水平边距 public v...
// // BeaconView.swift // companion // // Created by Uchenna Aguocha on 9/14/18. // Copyright © 2018 Yves Songolo. All rights reserved. // import UIKit class BeaconView: UIView { // MARK: - Properties var topLayer: CAShapeLayer! // var secondLayer: CAShapeLayer! // MARK: - UI Elemen...
// // PangZoneView.swift // pang // // Created by 김종원 on 2020/11/30. // import SwiftUI import MapKit struct PangZoneView: View { @State private var userTrackingMode: MapUserTrackingMode = .follow @State private var region = MKCoordinateRegion( center: .init(latitude: 37.5665, longitude: 126.9780), ...
// // UILabel+Extension.swift // PizzaDemo // // Created by Pietro Gandolfi on 02/01/2019. // Copyright © 2019 Pietro Gandolfi. All rights reserved. // import UIKit extension UILabel { func autoscale(_ scale: CGFloat = 0.3) { self.adjustsFontSizeToFitWidth = true self.adjustsFontForContentSize...
// // DataHotelTableViewController.swift // HotelAppsiOS // // Created by Becak Holic on 11/17/17. // Copyright © 2017 Sam Pramudana. All rights reserved. // import UIKit class DataHotelTableViewController: UITableViewController { var datas : [DataHotel] = [] var hotelNameSelected:String? va...
// // StationHelpViewController.swift // Freddys Fitness // // Created by Robert Rädel on 09.11.18. // Copyright © 2018 Robert Rädel. All rights reserved. // import UIKit class StationHelpViewController: UIViewController { var p1: String? var s1: Int? var p2: String? var s2: Int? var p3: S...
// // main.swift // SwiftServerIo // // Created by andson-zhw on 16/3/18. // Copyright © 2016年 andson. All rights reserved. // import Foundation print("Hello, World!")
// // LocalResourceRepository.swift // IVM // // Created by an.trantuan on 6/26/20. // Copyright © 2020 an.trantuan. All rights reserved. // import UIKit import SwiftyJSON class LocalResourceRepository { static let userDefault = UserDefaults.standard } struct Parser { internal static func parser<T: Codab...
// // FavoritesTableViewController.swift // MovieSearch // // Created by Jordan Bryant on 9/25/20. // Copyright © 2020 Jordan Bryant. All rights reserved. // import UIKit class FavoritesTableViewController: UITableViewController { //MARK: - Properties let movieController = MovieController.shared ...
// // CameraTabView.swift // TikTokTrainer // // Created by Hunter Jarrell on 4/3/21. // import SwiftUI struct CameraTabView: View { @Environment(\.managedObjectContext) var managedObjectContext @StateObject var camera = CameraModel() @StateObject var permissions = PermissionHandler() @State var se...