text stringlengths 8 1.32M |
|---|
//
// ViewController.swift
// SimulateButtons
//
// Created by Miyuki Hirose on 2018/11/27.
// Copyright © 2018 Miyuki Hirose. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let screenWidth: CGFloat = self.view.... |
//
// ServerStatusTests.swift
// NOC-AppTests
//
// Created by Hassan El Desouky on 2/26/19.
// Copyright © 2019 Hassan El Desouky. All rights reserved.
//
import XCTest
@testable import NOC_App
class ServerStatusTests: XCTestCase {
override func setUp() {
// Put setup code here. This method is calle... |
//
// NODGroup.swift
// NuoDunProject
//
// Created by lxzhh on 15/7/11.
// Copyright (c) 2015年 lxzhh. All rights reserved.
//
import UIKit
class NODGroup: NODObject {
var groupName : String?
var groupID : String?
required init?(_ map: Map) {
super.init()
mapping(map)
}
... |
//
// FundingSourceTableViewController.swift
// TheDocument
//
// Created by Scott Kacyn on 1/25/18.
// Copyright © 2018 Refer To The Document. All rights reserved.
//
import UIKit
protocol SelectedAccountProtocol {
func setSelectedAccount(account: [String: Any])
}
class FundingSourceTableViewController: UIT... |
//
// FRShareFacebook.swift
// Pods
//
// Created by Admin on 19.09.17.
//
//
import Foundation
//import FBSDKShareKit
class FRShareFacebook {
// let obj = UIReferenceLibraryViewController(
// // Create an object
// let object = FBSDKShareOpenGraphObject()
// object.setString("books.boo... |
//
// UploadSettingsViewController.swift
// piwigo
//
// Created by Eddy Lelièvre-Berna on 15/07/2020.
// Copyright © 2020 Piwigo.org. All rights reserved.
//
class UploadSettingsViewController: UITableViewController, UITextFieldDelegate {
@IBOutlet var settingsTableView: UITableView!
var stripGP... |
//
// SCTitleView.swift
// SCOptionPage
//
// Created by Kaito on 2018/1/18.
// Copyright © 2018年 kaito. All rights reserved.
//
import UIKit
protocol SCTitleViewDeleate : class {
func titleView(titleView : SCTitleView, currentIndex : Int)
}
class SCTitleView: UIView {
weak var delegate : SCTitleViewDel... |
//
// Item.swift
// TodoNow
//
// Created by Lucas Dahl on 11/24/18.
// Copyright © 2018 Lucas Dahl. All rights reserved.
//
import Foundation
import RealmSwift
class Item: Object {
// Properties
@objc dynamic var title = ""
@objc dynamic var done = false
@objc dynamic var dateCreated:Date?
... |
//
// CommodityUnitService.swift
// FarmLeadTest
//
// Created by Yeral Yamil Castillo on 8/13/16.
// Copyright © 2016 Yeral Yamil Castillo. All rights reserved.
//
import Foundation
import Alamofire
import SwiftyJSON
class CommodityUnitService{
private static var cachedCommodityUnitArray : [CommodityUni... |
//
// FooGeneric.swift
// Foo
//
// Created by Stijn Willems on 27/06/2019.
//
import Foundation
// sourcery:begin:AutoGenerateProtocol, mockAnnotations = "generic="M: Codable & Equatable"", generic="M: Codable & Equatable"
public struct FooGeneric<M: Codable & Equatable>
{
var codeAndEquate: M
}
|
import UIKit
//클로저 -> 코드에서 전달 및 사용할 수 있는 독립 기능 블록이며, 일급 객체의 역할을 할 수 있음 ( 익명함수 )
//일급객체 -> 전달 인자로 보낼 수 있고, 변수/상수 등으로 저장하거나 전달할 수있으며 함수의 반환 값이 될 수도 있다.
/*
{ (매개 변수) -> 리턴 타입 in
실행 구문
}
*/
let hello = { () -> () in
print("hello")
}
hello()
let hello2 = { (name: String) -> String in
return "Hello, \(name)"... |
//
// Post.swift
// VKClone
//
// Created by Петр on 04/11/2018.
// Copyright © 2018 DreamTeam. All rights reserved.
//
import Foundation
// Post model
class Post: NSObject, NSCoding {
// Uniq post identifier
@objc var id: String
// Group title
@objc var groupName: String
// Gro... |
//
// CategoryCell.swift
// testingArea
//
// Created by Quast, Malte on 10.11.17.
// Copyright © 2017 Quast, Malte. All rights reserved.
//
import UIKit
//definiert die einzelne Zelle in TableView
//updateviews notwendig um bilder neu zu laden bei scrollen???
class CategoryCell: UITableViewCell {
@IBOutlet weak... |
//
// ProfileViewController.swift
// HugoTwitter
//
// Created by Hieu Nguyen on 2/26/16.
// Copyright © 2016 Hugo Nguyen. All rights reserved.
//
import UIKit
import FXBlurView
class ProfileViewController: UIViewController, TweetsViewControllerDelegate, UIGestureRecognizerDelegate, ComposeViewControllerDelegate ... |
//
// PostListViewModel.swift
// Healios_IOS_Test
//
// Created by Neosoft on 31/07/21.
//
import Foundation
import Alamofire_SwiftyJSON
import SwiftyJSON
class PostListViewModel {
private var arrPostList = [PostModel]()
private lazy var postListServices: PostListServices = {
return PostListSe... |
//
// WebView.swift
// PdfTranslate
//
// Created by Viktor Kushnerov on 9/9/19.
// Copyright © 2019 Viktor Kushnerov. All rights reserved.
//
import Combine
import SwiftUI
import WebKit
struct GTranslatorRepresenter: ViewRepresentable, WKScriptsSetup {
@Binding var selectedText: TranslateAction
static va... |
//
// DayBtConverterView.swift
// animalHealthLog
//
// Created by 細川聖矢 on 2020/06/09.
// Copyright © 2020 Seiya. All rights reserved.
//
import SwiftUI
import CoreData
struct DayBtConverterView: View {
@State private var dayBtSelection = 0
init(){
UISegmentedControl.appearance().selectedSegm... |
@testable import SwiftDependencyManagerKit
import XCTest
class ManifestTests: XCTestCase {
func testInitWithFileContents() {
let manifestContents: String = """
[[dependencies]]
name = "HandySwift"
gitPath = "https://github.com/Flinesoft/HandySwift.git"
versio... |
import UIKit
class TimelineAPI:NSObject{
//先頭の10件
func latest() -> Timelines{
//let temp = jToCForTimeline("")
let temp = DummyTimelines()
let result = Timelines()
for (index, one) in temp.all().enumerate(){
if (index < 10){
let tem... |
//
// MultiAppViewModel.swift
// LearnMath
//
// Created by varmabhupatiraju on 5/15/17.
// Copyright © 2017 StellentSoft. All rights reserved.
//
import Foundation
import UIKit
import AudioToolbox
class MultiAppViewModel{
var multiAppVCDelegate:MultiAppViewController!
// Custom method for the im... |
//
// StdSocketTests.swift
// StdSocket
//
// Created by Bernardo Breder.
//
//
import XCTest
@testable import StdSocketTests
XCTMain([
])
|
//
// GenericXMLElement.swift
//
// Created by Denis Bystruev on 14/09/2019.
//
struct GenericXMLElement: XMLElement {
var attributes: [String: String]
var characters = ""
var children: [XMLElement]
var elementName: String
init(
attributes: [String: String] = [:],
characters:... |
//
// ViewController.swift
// CompatibilitySlider
//
// Created by Jay Strawn on 6/16/20.
// Copyright © 2020 Jay Strawn. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var compatibilityItemLabel: UILabel!
@IBOutlet weak var slider: UISlider!
@IBOutlet we... |
//
// ExerciseRowView.swift
// Portfolio
//
// Created by LouR on 12/9/20.
//
import SwiftUI
struct ExerciseRowView: View {
@ObservedObject var exercise: Exercise
var body: some View {
NavigationLink(destination: EditExerciseView(exercise: exercise)) {
Text(exercise.exerciseTitle)
... |
//
// ViewController.swift
// Slider-Game
//
// Created by Kaio on 1/17/18.
// Copyright © 2018 Kaio. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var sliderVal: UISlider!//value of the slider
@IBOutlet weak var NumberToMatch: UILabel!//this label shows the... |
//
// LoginController.swift
// Budgetal
//
// Created by Dillon Hafer on 6/12/15.
// Copyright (c) 2015 Budgetal. All rights reserved.
//
import Foundation
import UIKit
struct Login {
var email: String
var password: String
func valid() -> Bool {
return email != "" && password != "" ? true : fa... |
import Foundation
public enum ShellError: Error {
case fatal(Int, String, String)
case badOS(String)
}
public protocol Shell {
func run(command: String, arguments: [String]) throws -> String
}
struct ProcessShell: Shell {
public func run(command: String, arguments: [String]) throws -> String {
... |
//
// NewsFeedViewController.swift
// Showcase
//
// Created by Thi Danny on 2/17/16.
// Copyright © 2016 Spawn Camping Panda. All rights reserved.
//
import UIKit
import Firebase
class NewsFeedViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
// MARK: - Outlets -
@IBOut... |
// Checks for palindrome using built-in reverse function
func is_palindrome(s: String) -> (Bool) {
let reverse = String(s.characters.reverse())
if reverse == s{
return (true)
}
else {
return (false)
}
}
|
import UIKit
import PlaygroundSupport
/*:
### Scale To Fill
This is the default mode.
The image is stretched in both dimensions to fill the frame. The
aspect ratio of the image is not maintained.
*/
let myView = StarView(frame: CGRect(x: 0, y: 0, width:200, height:350))
myView.starImageView.contentMode = .scal... |
//
// Country.swift
// d2020
//
// Created by MacBook Pro on 3/3/20.
// Copyright © 2020 rahma. All rights reserved.
//
import UIKit
struct SubCategoryModel: Codable {
var status: Bool?
var Categories: [Data]?
struct Data: Codable {
var id: Int?
var name: String?
var seen: ... |
import Foundation
import CoreLocation
import GEOSwift
import AVFoundation
import Repeat
/**
A polygonal geographic zone within which an ambient audio stream broadcasts continuously to listeners. Speakers can overlap, causing their audio to be mixed together accordingly.
Volume attenuation happens linearly over a sp... |
//
// ViewController.swift
// TimerTime
//
// Created by E.Piper on 12/17/19.
// Copyright © 2019 E.Piper. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
... |
import Foundation
/// An Alternative is an `Applicative` with `MonoidK` capabilities.
public protocol Alternative: Applicative, MonoidK {}
|
//
// IntroViewController.swift
// SOSHospital
//
// Created by William kwong huang on 31/10/15.
// Copyright © 2015 Quaddro. All rights reserved.
//
import UIKit
///
/// ViewController para o carregamento das informações iniciais do app
///
class IntroViewController: UIViewController {
private var ident... |
//
// AAComposeView.swift
// weibo
//
// Created by dh on 16/9/5.
// Copyright © 2016年 mac. All rights reserved.
//
import UIKit
import pop
class AAComposeView: UIView {
var target: UIViewController?
var composeArray: NSArray?
lazy var buttons: [UIButton] = [UIButton]()
override in... |
//
// Movie.swift
// MovieList
//
// Created by Alexander Totsky on 03.05.2021.
//
import Foundation
struct MovieInfo: Codable, Identifiable {
var id: Int
var title: String
var posterPath: String
var releaseDate: String?
var credits: MovieCredit?
static private let yearFormatter: DateF... |
//
// VideosListView.swift
// App04-TMDB
//
// Created by David Cantú Delgado on 28/10/21.
//
import SwiftUI
struct VideosListView: View {
@ObservedObject var mediaModel: MediaModel
var media: Media
var type: String
@State var videos = [Video]()
var body: some View {
VStack {
... |
//
// ImageConstants.swift
// FindOrOfferAJobApp
//
// Created by Haroldo on 19/02/20.
// Copyright © 2020 HaroldoLeite. All rights reserved.
//
import Foundation
import UIKit
struct ImageConstants {
// TabBar
static let Home = UIImage(named: "home")
static let Job = UIImage(named: "job")
static l... |
//
// MWOtherWeatherCell.swift
// MyWeather
//
// Created by zhang zhiyao on 11/16/15.
// Copyright © 2015 NJIT656. All rights reserved.
//
import UIKit
class MWOtherWeatherDetailView : UIView {
weak var data : WeatherList? {
didSet {
self.calcData()
self.setNeedsDisplay()
... |
//
// TMSplashViewController.swift
// consumer
//
// Created by Vladislav Zagorodnyuk on 1/27/16.
// Copyright © 2016 Human Ventures Co. All rights reserved.
//
import UIKit
import SVProgressHUD
import EZSwiftExtensions
class TMSplashViewController: UIViewController {
var internalURLString: String?
... |
//
// RecipeViewController.swift
// Recipe Me
//
// Created by Jora on 10/19/18.
// Copyright © 2018 Jora. All rights reserved.
//
import UIKit
import CoreData
class RecipeViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
// Cell identifiers
let titlePhotoCell = "TitlePhoto... |
//
// JobTypeTableViewCell.swift
// TimeTracker
//
// Created by Hoang Tung on 2/23/20.
// Copyright © 2020 Hoang Tung. All rights reserved.
//
import UIKit
class JobTypeTableViewCell: UITableViewCell {
let lineView: UIView = {
let view = UIView()
view.translatesAutoresizingMaskIntoConstraints = fals... |
//
// ViewController.swift
// Tipsy
//
// Created by Angela Yu on 09/09/2019.
// Copyright © 2019 The App Brewery. All rights reserved.
//
import UIKit
class CalculatorViewController: UIViewController {
@IBOutlet weak var billTextField: UITextField!
@IBOutlet weak var zeroPctButton: UIButton!
@IBOutle... |
//
// InReadSASTableViewController.swift
// TeadsSampleApp
//
// Created by Jérémy Grosjean on 19/11/2020.
// Copyright © 2020 Teads. All rights reserved.
//
import SASDisplayKit
import TeadsSASAdapter
import TeadsSDK
import UIKit
class InReadSASTableViewController: TeadsViewController {
@IBOutlet var tableVi... |
//
// ViewController.swift
// ShareExtension
//
// Created by Sohel Rana on 15/9/21.
//
import UIKit
import WebKit
class ViewController: UIViewController, UIDocumentInteractionControllerDelegate {
@IBOutlet weak var imgView: UIImageView!
@IBOutlet weak var webView: WKWebView!
let link = "https://githu... |
//
// TTWorkspace.swift
// Vizor
//
// Created by Gábor Librecz on 2018. 10. 26..
// Copyright © 2018. Gábor Librecz. All rights reserved.
//
import AppKit
typealias TTWorkspace = NSObject
extension TTWorkspace {
@objc var windowControllers: Array<TTWindowController> {
fatalError()
}
}
|
//
// ViewController.swift
// weatherApp
//
// Created by Tia Lendor on 10/9/19.
// Copyright © 2019 Tia Lendor. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var weatherCollectionView: UICollectionView!
@IBOutlet weak var cityName: UILabel!
... |
//
// ScrumsView.swift
// Scrumdinger
//
// Created by YOU-HSUAN YU on 2020/12/27.
//
import SwiftUI
struct ScrumsView: View {
let scrums: [DailyScrum]
var body: some View {
List {
//ForEach needs a way to identify individual items in the collection. For now, because all of the scrums i... |
//
// ViewController.swift
// MyTodoList
//
// Created by JF on 04/06/16.
// Copyright © 2016 Jorge Ferreiro. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
let todoList = TodoList()
@IBOutlet weak var saveNoteButton: UIButton!
@IBOutlet weak var noteTextField:... |
//
// NetworkService.swift
// MVPtest
//
// Created by Муслим Курбанов on 18.06.2020.
// Copyright © 2020 Муслим Курбанов. All rights reserved.
//
import Foundation
import Alamofire
//MARK: - NetworkServiceProtocol
protocol NetworkServiceProtocol {
// func getComments(completion: @escaping (Result<[Model]?, Er... |
//
// PinkyPresenterProtocol.swift
// pinky
//
// Created by Lukasz on 16/01/16.
// Copyright © 2016 Lukasz. All rights reserved.
//
import Foundation
import UIKit
protocol PinkyPresenterProtocol {
func requestNewContent()
func requestTableData()
func respondWithTableData(pinkyData: [PinkyTableDa... |
//
// EqualizePIX.swift
// PixelKit
//
// Created by Anton Heestand on 2021-08-09.
//
import RenderKit
import Resolution
import CoreGraphics
import MetalKit
#if !os(tvOS) && !targetEnvironment(simulator)
// MPS does not support the iOS simulator.
import MetalPerformanceShaders
#endif
import SwiftUI
final public cl... |
//
// CategoryTableViewCell.swift
// SDKDemo1
//
// Created by Vishal on 22/08/18.
// Copyright © 2018 CL-macmini-88. All rights reserved.
//
import UIKit
class CategoryTableViewCell: UITableViewCell {
@IBOutlet weak var titleLabel: UILabel!
var cellData = HippoSupportList()
override fu... |
//
// ViewControllerWebModal.swift
// BoutTime
//
// Created by Nuno Trindade on 28/09/16.
// Copyright © 2016 Remarkable Code Ltd. All rights reserved.
//
import UIKit
import WebKit
class ViewControllerWebModal: UIViewController, WKNavigationDelegate {
@IBOutlet weak var viewContainer: UIView!
@IBOutlet... |
import XCTest
import ReactiveSwift
@testable import Relayr
final class APIPublishersTest: XCTestCase {
// API instance pointing to the environment being tested.
fileprivate var api: Relayr.API!
override func setUp() {
super.setUp()
let (hostURL, token): (String, String) = (Test.variabl... |
//
// NetworkManager.swift
// TestingTestPostApp
//
// Created by Artem Chuklov on 22.06.2021.
//
import Foundation
class NetworkManager {
static let shared = NetworkManager()
@discardableResult
func request(_ builder: URLBuilder, completion: @escaping(Result<Data, Error>) -> Void) -> URLSessionDa... |
//
// MusicSearchController.swift
// Apple Music Swiftbook
//
// Created by Алексей Пархоменко on 17/07/2019.
// Copyright © 2019 Алексей Пархоменко. All rights reserved.
//
import UIKit
import Alamofire
class MusicSearchController: UITableViewController {
let searchController = UISearchController(search... |
//
// AsyncOperation.swift
// JatApp-Foundation
//
// Created by Developer on 11.11.2019.
// Copyright © 2019 JatApp. All rights reserved.
//
import Foundation
public class AsyncOperation: Operation {
public typealias AsyncCompletionBlock = (@escaping VoidCompletion) -> Void
// MARK: - Propertie... |
func test() {
var language = "C"
var code = { [language] in
print(language)
}
code()
language = "Objc"
code()
code = {
print(language)
}
code()
language = "Swift"
code()
}
test()
|
//
// McUtils.swift
// mcwa
//
// Created by 陈强 on 15/10/13.
// Copyright © 2015年 XingfuQiu. All rights reserved.
//
import Foundation
let UMAppKey = "561bcfe1e0f55a0219005cab"
let qq_AppId = "1104907496"
let qq_AppKey = "DbdC0Qvfkj4yOLsG"
let wx_AppId = "wxc49b6a0e3c78364d"
let wx_AppKey = "d4624c36b6795d1d99dcf... |
//
// GordanView.swift
// Fish Spot
//
// Created by Sebastian Baldwin on 16/4/21.
//
import SwiftUI
struct GordanView: View {
var body: some View {
ZStack {
Image("background").resizable().aspectRatio(contentMode: .fill).ignoresSafeArea()
VStack{
Im... |
import Foundation
/// An object representing a numeric schema type.
/// Get more info: https://swagger.io/specification/#schemaObject
public struct SpecNumericSchema<T: Codable & Comparable>: Codable, Equatable, Changeable {
// MARK: - Nested Types
private enum CodingKeys: String, CodingKey {
case ra... |
//
// radioButton.swift
// Level
//
// Created by Nicholas Titzler on 5/18/21.
//
import SwiftUI
struct radioButton: View {
var body: some View {
Text("hello")
}
}
struct radioButton_Previews: PreviewProvider {
static var previews: some View {
radioButton()
}
}
|
//
// Constants.swift
// epg
//
// Created by Yakimovich, Kirill on 9/25/17.
// Copyright © 2017 Yakimovich, Kirill. All rights reserved.
//
import UIKit
struct Durations {
static let dayInMinutes = 24 * 60
}
struct Sizes {
static let channelHeight: CGFloat = 120
static let channelHeaderWidth: CGFloa... |
//
// PlayersTableViewController.swift
// ChessProfiles
//
// Created by Shawn Bierman on 9/9/20.
// Copyright © 2020 Shawn Bierman. All rights reserved.
//
import UIKit
class PlayersTableViewController: UITableViewController {
let searchController = UISearchController()
var isSearching: Bool = false { ... |
//
// ViewController.swift
// TaskNew
//
// Created by Joe on 15/04/20.
// Copyright © 2020 jess. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var taskView: UITableView!
@IBOutlet weak var searchBar: UISearchBar!
var filterdata : [CATransactionViewModel] = ... |
//
// AppReducer.swift
// weather_forecast
//
// Created by Thinh Nguyen on 9/30/20.
// Copyright © 2020 Thinh Nguyen. All rights reserved.
// Email:thinhnguyen12389@gmail.com
//
import Foundation
import ReSwift
func appReducer(action: Action, state: AppState?) -> AppState {
var state = state ?? AppState()
... |
//
// ImageSectionController.swift
// FeedExample
//
// Created by Simon Lee on 3/21/19.
// Copyright © 2019 Shao Ping Lee. All rights reserved.
//
import UIKit
import IGListKit
class ImageSectionController: ListSectionController {
var image: UIImage?
override func sizeForItem(at index: Int) -> CGSize {
... |
import UIKit
final class AddToDoItemRouter {
private let navigationController: UINavigationController
init(navigationController: UINavigationController) {
self.navigationController = navigationController
}
func returnToCallerController() {
navigationController.popViewControlle... |
//
// ViewController.swift
// TransitionAnimate
//
// Created by 句芒 on 2017/7/11.
// Copyright © 2017年 fanwei. All rights reserved.
//
import UIKit
extension TransitionAnimateType {
static func count() -> NSInteger {
return 9
}
static func value(_ index:Int) -> String {
return ["scale... |
//
// ListDiffableArray.swift
// SideMenuHUB
//
// Created by Daniel Yo on 12/17/17.
// Copyright © 2017 Daniel Yo. All rights reserved.
//
import UIKit
import IGListKit
class ListDiffableArray: NSObject, ListDiffable {
var identifier:String?
var array:Array<Any>?
override init() {
... |
//
// GCenterMagnificationFilter.swift
// imageprocessing02
//
// Created by C.H Lee on 13/05/2018.
// Copyright © 2018 LEE CHUL HYUN. All rights reserved.
//
import Foundation
import Metal
struct CenterMagnificationUniforms {
var width: Float
var height: Float
var minRadius: Float
var radius: Flo... |
//
// PlayedDominoCollectionViewLayout.swift
// MexicanTrain
//
// Created by Ceri on 27/06/2020.
//
import UIKit
class PlayedDominoCollectionViewLayout: UICollectionViewLayout {
fileprivate struct Placement {
enum Direction {
case right, down, left
}
let x: Int
let... |
//
// DetailsViewController.swift
// TodoApp
//
// Created by Fatih Nayebi on 2016-04-29.
// Copyright © 2016 Fatih Nayebi. All rights reserved.
//
import UIKit
import ReactiveCocoa
import ReactiveSwift
class DetailsViewController: UIViewController {
@IBOutlet weak var txtFieldName: UITextField!
@IBO... |
//
// DateFormatter.swift
// TrainingNote
//
// Created by Mizuki Kubota on 2020/03/02.
// Copyright © 2020 MizukiKubota. All rights reserved.
//
import Foundation
struct DateStringFormatter {
let dateFormatter = DateFormatter()
init() {
dateFormatter.dateFormat = DateFormatter.dateFormat(
... |
//
// CustomerDetailHeadTableViewCell.swift
// neversitup
//
// Created by Kasidid Wachirachai on 27/1/21.
//
import UIKit
class CustomerDetailHeadTableViewCell: UITableViewCell {
static let identifier: String = "CustomerDetailHead"
@IBOutlet weak var customerImageView: UIImageView!
@IBOutlet... |
import UIKit
// Nested Optional
let name: String??? = "Bedu"
//1.- Force Unwrap
print(name!!!)
//2.- Optional Biding
if let name = name, let almostUnwrapped = name, let unwrapped = almostUnwrapped {
print(unwrapped)
}
//3.- Guard within Function
func unwrapp(_ value: String???) {
guard let value = value,
l... |
//
// ViewController.swift
// Meal_Clone
//
// Created by 전상민 on 2021/06/11.
//
import UIKit
class ViewController: UIViewController {
var mealList: [MealModel] = [] // MealModel type의 배열 선언(MealModel은 구조체로 구현)
@IBOutlet weak var mealTableView: UITableView!
// 새로운 리스트를 추가/저장 하기위해 unwindToSeg... |
//
// PokemonService.swift
// DuckDuckGooseAPIApp
//
// Created by MAC Consultant on 3/1/19.
// Copyright © 2019 William Benfer. All rights reserved.
//
import Foundation
class CharacterService{
static let urlBeg = "https://api.duckduckgo.com/?q="
static let urlEnd = "+characters&format=json"
... |
//
// Constants.swift
// ShakeAuth
//
// Created by Mike Wang on 11/19/15.
// Copyright © 2015 Cornell Tech. All rights reserved.
//
import Foundation
import UIKit
struct UIConstants {
static let primaryColor = UIColor(red: 0.0/255, green: 212.0/255, blue: 225.0/255, alpha: 1)
static let fadedPrimaryColor... |
//
// GZEUserConvertible.swift
// Gooze
//
// Created by Yussel Paredes Perez on 4/4/18.
// Copyright © 2018 Gooze. All rights reserved.
//
import Foundation
import Gloss
class GZEUserConvertible: NSObject {
static var subClassesConstructors: [GZEUserConvertible.Type.Type] = []
static func array... |
//
// SupportTheme.swift
// Hippo
//
// Created by Vishal on 20/11/18.
//
import UIKit
public struct SupportTheme {
var supportListHeadingFont: UIFont? = UIFont.regular(ofSize: 15.0)
var supportListHeadingColor = #colorLiteral(red: 0.1725490196, green: 0.137254902, blue: 0.2, alpha: 1)
var su... |
//
// AddressBookManager.swift
// Pin
//
// Created by Ken on 6/24/14.
// Copyright (c) 2014 Bacana. All rights reserved.
//
import Foundation
class AddressBookManager: NSObject {
var addressBook: APAddressBook
var contactList: NSMutableArray = []
// MARK: - Public Methods -
override init() {
... |
//
// Articles.swift
//
//
// Created by Deja Cespedes on 03/06/2016.
//
//
import Foundation
import CoreData
import ArticleObject
class Articles: NSManagedObject {
@NSManaged var headline: String
@NSManaged var summary: String
@NSManaged var thumbnailURL: String
@NSManaged var articleObject: Art... |
import Foundation
import Combine
typealias AppStore = Store<AppState, AppAction>
typealias Reducer<State, Action> = (inout State, Action) -> Void
typealias Middleware<State, Action> = (State, Action) -> AnyPublisher<Action, Error>?
typealias Dispatcher = (AppAction) -> Void
|
//
// ViewController.swift
// ghulistios
//
// Created by f4ni on 13.12.2020.
//
import UIKit
import CoreData
class MainViewController: UITableViewController, UISearchBarDelegate {
let cellID = "cellID"
var since = Int(0)
let service = APIService()
var word: String?{
did... |
//
// CustomTextField.swift
// Follow
//
// Created by Tom Wicks on 04/04/2016.
// Copyright © 2016 Miln. All rights reserved.
//
import Foundation
import UIKit
class CustomTextField: UITextField{
var change: Bool = false {
didSet {
if change {
// Add some customizatio... |
//
// EndPointTests.swift
// StrutsTests
//
// Created by Yunarta on 24/9/18.
// Copyright © 2018 mobilesolution works. All rights reserved.
//
import XCTest
import Struts
class EndPointTests: XCTestCase {
func testDiscoverEndPoint() throws {
class TestEndPoint: EndPoint {
}
class Un... |
//
// UserDefaultView.swift
// demo_SwiftUI
//
// Created by li’Pro on 2020/11/13.
//
import SwiftUI
struct UserDefaultView: View {
var body: some View {
Text("查看 UserDefaultView.swift 文件")
}
}
struct UserDefaultView_Previews: PreviewProvider {
static var previews: some View {
UserDefa... |
//
// ProfitLossCell.swift
// APPFORMANAGEMENT
//
// Created by Chanakan Jumnongwit on 3/27/2560 BE.
// Copyright © 2560 REVO. All rights reserved.
//
import UIKit
class ProfitLossCell: UITableViewCell {
//@IBOutlet weak var sawImage:UIImageView!
@IBOutlet weak var fullname:UILabel!
@IBOu... |
//
// CheckoutController.swift
// productsApp
//
// Created by Samanta Clara Coutinho Rondon do Nascimento on 2019-07-03.
// Copyright © 2019 Sam. All rights reserved.
//
import Foundation
import UIKit
import RxSwift
import RxCocoa
import RxDataSources
class CheckoutController: BaseController {
@IBOutlet weak... |
//
// StadiumPhotosViewCell.swift
// MyApp2
//
// Created by Anıl Demirci on 6.07.2021.
//
import UIKit
class StadiumPhotosViewCell: UITableViewCell {
@IBOutlet weak var stadiumPhotosView: UIImageView!
@IBOutlet weak var commentLabel: UILabel!
override func awakeFromNib() {
super.awak... |
//
// BaseResponse.swift
// MicroMarket
//
// Created by antran on 9/16/20.
// Copyright © 2020 antran. All rights reserved.
//
import UIKit
struct ResponseServerEntity<T : Codable> : Codable {
var status: String?
var message: String?
var result: T?
}
|
import UIKit
extension CGColor {
var uiColor: UIColor { return UIColor(cgColor: self) }
}
|
//
// HomeWireframe.swift
// TestInfo
//
// Created by Thiago Santos on 28/09/2018.
// Copyright © 2018 Thiago Santos. All rights reserved.
//
import Foundation
import UIKit
class Homewireframe {
var viewController: UINavigationController?
func make() -> UINavigationController? {
... |
import GRDB
class EvmSyncSourceRecord: Record {
let blockchainTypeUid: String
let url: String
let auth: String?
init(blockchainTypeUid: String, url: String, auth: String?) {
self.blockchainTypeUid = blockchainTypeUid
self.url = url
self.auth = auth
super.init()
}
... |
//
// CaptureAndUploadController.swift
// blueunicorn
//
// Created by Thomas Blom on 6/24/16.
// Copyright © 2016 Good Karma Software. All rights reserved.
//
import UIKit
class HomeViewController: UIViewController {
var image: UIImage?
// the last image we took or chose, which the user may upload.
@IBAc... |
//
// TCButton.swift
// XXColorTheme
//
// Created by xixi197 on 16/1/20.
// Copyright © 2016年 xixi197. All rights reserved.
//
import UIKit
//TCButton
@IBDesignable public class TCButton: UIButton {
// tintColor ColorTheme
private var _normalTintColor: UIColor?
private var _highlightedTintColor: UIC... |
//
// Articulo.swift
// recetas
//
// Created by Eugenia Perez Velasco on 20/3/15.
// Copyright (c) 2015 Roberto Dehesa. All rights reserved.
//
import Foundation
import CoreData
class Articulo: NSManagedObject {
@NSManaged var categoria_id: NSNumber
@NSManaged var descripcion: String
@NSManaged var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.