blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
625
content_id
stringlengths
40
40
detected_licenses
listlengths
0
47
license_type
stringclasses
2 values
repo_name
stringlengths
5
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
643 values
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
80.4k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
16 values
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_language
stringclasses
85 values
src_encoding
stringclasses
7 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
4
6.44M
extension
stringclasses
17 values
content
stringlengths
4
6.44M
duplicates
listlengths
1
9.02k
39e0d0d959445af10b371a7e0e6a1aef19280774
28beea67608593ef31f2c09e105b152192c22b19
/SkyVPN/Views/BaseView.swift
28c7b7b21316f1ae69704f8a394253d069dc096a
[]
no_license
muneerkk66/SkyVPN
4176238b3a8b8aa8136276e351dc858515e7d019
335cdae4f2f54586bfb2f7fac5be351640970e79
refs/heads/main
2023-02-27T13:31:44.553130
2021-02-04T13:23:15
2021-02-04T13:23:15
335,634,489
3
0
null
null
null
null
UTF-8
Swift
false
false
537
swift
// // BaseView.swift // SkyVPN // // Created by x218507 on 04/02/21. // import SwiftUI //MARK:- Base view is used to support common features through all the views // Eg: Keyboard hide,Alerts etc struct BaseView<Content: View>: View { private var content: Content init(@ViewBuilder content: @escaping () -> Content) { self.content = content() } var body: some View { Color.white .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) .overlay(content) } }
[ -1 ]
13786ea9fa96334b1647e7eebb978ce9109fd742
d2e31d0ef2b7caa5c724db1e4626996bb74e3168
/letscoin/Community.swift
aac0b11af8fb5be18eab0f730f495d3f23effb82
[]
no_license
rajatpathak/letscoin
7a9b9d916c24462cfd55891fa5e317249760817d
9072038b1925d2cf4f402a2c896d0525090d60d1
refs/heads/master
2020-05-16T16:49:20.685756
2019-04-24T07:42:30
2019-04-24T07:42:30
183,175,229
0
0
null
null
null
null
UTF-8
Swift
false
false
5,150
swift
// // Community.swift // letscoin // // Created by Love on 16/05/18. // Copyright © 2018 Love. All rights reserved. // import UIKit class Community: AnimationPresent , UICollectionViewDelegate, UICollectionViewDataSource { @IBOutlet weak var categoryOne: UICollectionView! @IBOutlet weak var categoryTwo: UICollectionView! @IBOutlet weak var profile: UIButton! var catOneProductName = ["Bags","Bags","Bags","Bags","Bags","Bags","Bags","Bags","Bags",] var catOneProductImage = ["person","person","person","person","person","person","person","person","person"] var catOnePrice = ["12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC"] var catTwoProductName = ["Bags","Bags","Bags","Bags","Bags","Bags","Bags","Bags","Bags",] var catTwoProductImage = ["person","person","person","person","person","person","person","person","person"] var catTwoPrice = ["12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC","12.0LC"] override func viewDidLoad() { super.viewDidLoad() self.categoryOne.delegate = self self.categoryTwo.delegate = self self.categoryOne.dataSource = self self.categoryTwo.dataSource = self // Do any additional setup after loading the view. } func numberOfSections(in collectionView: UICollectionView) -> Int { if collectionView == categoryOne{ return 1 } else if collectionView == categoryTwo{ return 1 } else{ return 1 } } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { if collectionView == categoryOne{ return catOneProductName.count } else if collectionView == categoryTwo{ return catTwoProductName.count } else{ return 0 } // return names.count } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { if collectionView == categoryOne{ let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "CategoryOne", for: indexPath) as! CategoryOne cell.productName.text = self.catOneProductName[indexPath.row] cell.productImage.image = UIImage(named: catOneProductImage[indexPath.row]) cell.productPrce.text = self.catOnePrice[indexPath.row] // cell.layer.borderColor = UIColor.gray.cgColor // cell.layer.borderWidth = 2.0 cell.layer.masksToBounds = true cell.layer.cornerRadius = 4.0 cell.CatOneView.dropShadow(color: UIColor.darkGray, opacity: 1, offSet: CGSize(width: -1, height: 1), radius: 8, scale: true) return cell } else if collectionView == categoryTwo{ let cellTwo = collectionView.dequeueReusableCell(withReuseIdentifier: "CategoryTwo", for: indexPath) as! CategoryTwo cellTwo.productNameCatTwo.text = self.catTwoProductName[indexPath.row] cellTwo.productImageCatTwo.image = UIImage(named: catTwoProductImage[indexPath.row]) cellTwo.productPrceCatTwo.text = self.catTwoPrice[indexPath.row] cellTwo.layer.masksToBounds = true cellTwo.layer.cornerRadius = 4.0 // cellTwo.layer.borderColor = UIColor.gray.cgColor // cellTwo.layer.borderWidth = 2.0 cellTwo.catTwoView.dropShadow(color: UIColor.darkGray, opacity: 1, offSet: CGSize(width: -1, height: 1), radius: 8, scale: true) return cellTwo } else{ let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "CategoryTwo", for: indexPath) return cell } } @IBAction func profileAc(_ sender: UIButton) { self.viewPresent(centerPoint: self.view.center, storyBoard: "Main", viewId: "CommunityDetails") } @IBAction func back(_ sender: Any) { self.dismiss(animated: true, completion: nil) } } extension Community : UICollectionViewDelegateFlowLayout{ func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { return UIEdgeInsets(top: 20, left: 10, bottom: 10, right: 0) } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let collectionViewWidth = collectionView.bounds.width return CGSize(width: 151, height: 193) } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { return 0 } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { return 20 } }
[ -1 ]
f099f4dc2fc4a2181599a656bce60e368187ac62
3121b7fdacd67b63c8eaafd27f7491cbb80ec72b
/MoviesMVVM-Demo/View Model/State.swift
493fb5da0f570d557d8b95019175157b48c2bbb6
[]
no_license
mokoranyAli/Movies-MVVM-iOS-Demo
f8fd8131758719ec085cfca960411eac5893585a
2fa3dbd86a3d5729ac3e9b3ebfeb3eaa5979d11f
refs/heads/master
2020-09-16T17:06:37.749512
2019-11-25T19:15:42
2019-11-25T19:15:42
223,837,435
0
0
null
null
null
null
UTF-8
Swift
false
false
262
swift
// // State.swift // MoviesMVVM-Demo // // Created by Mohamed Korany Ali on 11/25/19. // Copyright © 2019 Mohamed Korany Ali. All rights reserved. // import Foundation public enum State { case loading case error case empty case populated }
[ -1 ]
8fbb19a13734adfac28671cdc097ba6d9ff856eb
d7540e1e2ca74349f2f9f46a8f8edc7afc7c0cd6
/XiongBaobao/Expand(扩展)/Tools(工具)/拍摄/View/ShootCenterButton.swift
011617bc5e5e73bcf7bec87f05c84c1ee11a8fc9
[]
no_license
LQ434239/XiongBaobao
8aeab16cc136fa0995e6b45fd03d4ba79da70480
0ea3c80d20b70bc35420d57c345e49157cd6e522
refs/heads/master
2020-04-01T22:36:15.274798
2019-03-06T03:30:24
2019-03-06T03:30:24
153,716,765
1
0
null
null
null
null
UTF-8
Swift
false
false
1,901
swift
// // ShootCenterButton.swift // XiongBaobao // // Created by 双双 on 2018/11/23. // Copyright © 2018 双双. All rights reserved. // import UIKit protocol ShootCenterButtonDelegate: NSObjectProtocol { func shootStart(button: ShootCenterButton) func shootEnd(button: ShootCenterButton) } class ShootCenterButton: UIView { weak var delegate: ShootCenterButtonDelegate? var path = UIBezierPath() var centerLayer = CAShapeLayer() override init(frame: CGRect) { super.init(frame: frame) xbb_setupView() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func layoutSubviews() { self.centerLayer.frame = self.bounds //设置绘制路径 self.centerLayer.path = UIBezierPath(ovalIn: self.bounds).cgPath } } extension ShootCenterButton { func xbb_setupView() { self.centerLayer.frame = self.bounds self.centerLayer.path = self.path.cgPath self.centerLayer.strokeColor = UIColor(hex: "dad9d6").cgColor self.centerLayer.fillColor = kThemeColor.cgColor self.centerLayer.lineWidth = 15 //设置轮廓结束位置 self.centerLayer.strokeEnd = 1 self.layer.addSublayer(self.centerLayer) let gesture = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gesture:))) self.isUserInteractionEnabled = true addGestureRecognizer(gesture) } @objc func longPress(gesture: UILongPressGestureRecognizer) { if gesture.state == .began { self.centerLayer.lineWidth = 18 self.delegate?.shootStart(button: self) } if gesture.state == .ended { self.centerLayer.lineWidth = 10 self.delegate?.shootEnd(button: self) } } }
[ -1 ]
9958d387e581a478b4a055ad431a6e555759fc1a
c84966156b0d7cc5fec2e4a05891dd705161b1c6
/swift_code_is_so_fast/0-main.swift
531d52c4989009e0945df485c284324e1d6da25b
[]
no_license
WaBlueKey/holbertonschool-higher_level_programming
0398ca7f70d1dee10cfb4eea293c83e6dbe2a061
595d6ad03ae28f22c32866459b36109a068068ba
refs/heads/master
2020-12-29T02:32:10.881531
2017-04-22T06:49:01
2017-04-22T06:49:01
51,226,856
0
0
null
null
null
null
UTF-8
Swift
false
false
376
swift
/* project directory: https://github.com/WaBlueKey/holbertonschool-higher_level_programming task #: 0 file name: 0-main.swift summary: this script prints the string Hello Holberton school! in reverse. by Zee Adams, May 2016 */ let str = "Hello Holberton school!" let strReverse = String(str.characters.reverse()) print(strReverse)
[ -1 ]
39812b78c59088810672d5b3f72b4c43fb0c1fec
1429fb71b65d64acc847b7f211191b86ff1c0fb4
/swiftSandboxTests/swiftSandboxTests.swift
fdf0125e51f288bb81008b9457e5409f05456b9e
[]
no_license
takahia1988/swiftSandbox
8beb974ffe88e64ac875e44085b41056b5d27848
22e4b53ba4a1f8547ac8218a82d85845c20c9846
refs/heads/master
2020-12-31T01:35:19.802916
2015-11-03T12:36:36
2015-11-03T12:36:36
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,006
swift
// // swiftSandboxTests.swift // swiftSandboxTests // // Created by Hiasa Takahiro on 2015/11/03. // Copyright © 2015年 Hiasa Takahiro. All rights reserved. // import XCTest @testable import swiftSandbox class swiftSandboxTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measureBlock { // Put the code you want to measure the time of here. } } }
[ 98333, 278558, 16419, 229413, 204840, 278570, 360491, 344107, 155694, 253999, 229424, 229430, 319542, 286788, 352326, 311372, 196691, 278615, 237663, 278634, 278638, 319598, 352368, 131189, 237689, 131198, 278655, 311435, 311438, 278677, 278685, 311458, 278691, 49316, 196773, 32941, 278704, 278708, 131256, 278714, 254170, 229597, 286958, 327929, 180493, 254226, 319763, 278810, 278816, 98610, 262450, 278842, 287041, 139589, 319813, 311621, 319821, 254286, 344401, 155990, 106847, 246127, 246136, 139640, 246137, 311681, 246178, 311727, 377264, 278961, 278965, 278970, 319930, 33211, 336317, 278978, 188871, 278989, 278993, 278999, 328152, 369116, 188894, 287198, 279008, 279013, 279018, 319981, 279022, 319987, 279029, 279032, 279039, 287241, 279050, 303631, 279065, 180771, 377386, 279094, 352829, 115270, 295519, 66150, 344680, 279146, 295536, 287346, 287352, 279164, 189057, 303746, 311941, 279177, 369289, 344715, 311949, 287374, 352917, 230040, 271000, 303771, 205471, 279206, 295590, 287404, 295599, 205487, 303793, 164533, 230072, 287417, 287422, 66242, 287439, 279252, 295652, 279269, 246503, 279280, 312052, 230134, 279294, 205568, 295682, 336671, 344865, 279336, 262954, 295724, 353069, 312108, 164656, 303920, 262962, 328499, 353078, 230199, 353079, 336702, 279362, 353094, 353095, 353109, 230234, 295776, 279392, 303972, 230248, 246641, 246648, 279417, 361337, 254850, 287622, 213894, 58253, 295824, 279456, 189348, 279464, 353195, 140204, 353197, 304051, 287677, 189374, 353216, 213960, 279498, 50143, 123881, 304110, 320494, 287731, 295927, 304122, 320507, 328700, 328706, 320516, 230410, 320527, 418837, 140310, 230423, 197657, 336929, 345132, 238639, 238651, 230463, 238664, 296019, 353367, 156764, 156765, 304222, 230499, 279660, 156785, 312434, 353397, 337017, 279685, 222343, 296086, 238743, 296092, 238765, 279728, 238769, 230588, 279747, 353479, 353481, 353482, 279760, 189652, 279765, 189653, 148696, 296153, 279774, 304351, 304356, 279785, 279792, 353523, 279814, 312587, 328971, 173334, 320796, 304421, 345396, 116026, 222524, 279875, 230729, 222541, 296270, 238927, 296273, 222559, 230756, 230765, 279920, 312689, 296307, 116084, 181625, 378244, 296335, 230799, 279974, 173491, 279989, 296375, 296387, 296391, 296392, 361927, 280010, 370123, 148940, 280013, 312782, 222675, 353750, 239068, 280032, 280041, 296425, 361963, 329197, 329200, 321009, 280055, 288249, 230921, 296461, 149007, 304656, 329232, 230959, 312880, 288309, 288318, 280130, 124485, 288326, 288327, 280147, 239198, 312940, 222832, 247416, 288378, 337535, 239237, 288392, 239250, 345752, 255649, 206504, 321199, 198324, 296628, 337591, 321207, 296632, 280251, 280257, 321219, 280267, 313041, 280278, 280280, 18138, 67292, 321247, 313065, 280300, 239341, 419569, 313081, 124669, 288512, 288516, 280327, 280329, 321302, 116505, 321310, 247590, 321337, 345919, 345929, 304977, 18262, 280410, 370522, 345951, 362337, 345955, 296806, 288619, 288620, 280430, 362352, 313203, 124798, 182144, 305026, 67463, 329622, 337815, 124824, 214937, 214938, 247712, 354212, 124852, 288697, 214977, 280514, 280519, 247757, 231375, 280541, 337895, 247785, 296941, 329712, 362480, 313339, 313357, 182296, 305179, 313375, 239650, 354343, 354345, 223274, 124975, 346162, 124984, 288833, 288834, 313416, 280649, 354385, 223316, 280661, 223318, 329814, 338007, 354393, 288857, 280675, 280677, 313447, 288879, 223350, 280694, 288889, 215164, 313469, 215166, 280712, 215178, 141450, 346271, 239793, 125109, 182456, 280762, 223419, 379071, 280768, 338119, 280778, 321745, 280795, 280802, 338150, 125169, 338164, 157944, 125183, 125188, 313608, 125193, 125198, 125203, 125208, 305440, 125217, 125235, 280887, 125240, 321860, 280902, 182598, 272729, 379225, 354655, 321894, 280939, 313713, 354676, 280961, 248194, 362881, 395659, 395661, 240016, 190871, 141728, 289189, 281040, 281072, 223767, 289304, 223769, 182817, 338490, 322120, 281166, 281171, 354911, 436832, 191082, 313966, 281199, 330379, 133774, 330387, 330388, 289434, 338613, 166582, 314040, 158394, 199366, 363211, 289502, 363230, 338662, 346858, 289518, 199414, 35583, 363263, 191235, 322316, 322319, 166676, 207640, 281377, 289576, 289598, 281408, 420677, 281427, 281433, 322395, 330609, 207732, 158593, 240518, 289698, 289703, 363458, 19399, 52172, 183248, 338899, 248797, 207838, 314342, 289774, 183279, 314355, 240630, 314362, 134150, 322570, 322582, 281625, 281626, 175132, 248872, 322612, 207938, 314448, 281697, 314467, 281700, 322663, 207979, 363644, 150657, 248961, 339102, 330913, 306338, 208058, 339130, 290000, 298208, 363744, 298212, 290022, 330984, 298228, 216315, 208124, 388349, 363771, 322824, 126237, 339234, 199971, 306494, 216386, 224586, 372043, 314709, 314710, 134491, 224606, 314720, 142689, 281962, 314739, 290173, 306559, 224640, 298374, 314758, 314760, 281992, 388487, 314766, 306579, 282007, 290207, 314783, 314789, 282022, 314791, 282024, 241066, 314798, 380357, 339398, 306631, 191981, 282096, 306673, 306677, 191990, 290300, 290301, 282114, 306692, 306693, 323080, 192010, 323087, 282129, 282136, 282141, 282146, 306723, 290358, 282183, 290390, 282213, 323178, 314998, 175741, 192131, 282245, 224901, 282246, 290443, 323217, 282259, 282271, 282273, 282276, 298661, 323236, 290471, 282280, 298667, 282303, 323263, 306890, 241361, 298712, 216795, 298720, 12010, 282348, 282358, 175873, 323331, 323332, 216839, 249626, 282400, 241441, 339745, 257830, 159533, 282417, 282427, 315202, 307011, 282438, 307025, 413521, 216918, 307031, 282474, 282480, 241528, 315264, 339841, 282504, 110480, 184208, 282518, 282519, 44952, 298909, 118685, 298920, 200627, 290746, 151497, 298980, 282612, 282633, 241692, 307231, 102437, 233517, 159807, 315476, 307289, 200794, 315487, 315497, 315498, 299121, 233589, 233590, 241808, 323729, 233636, 233642, 299187, 184505, 299198, 299203, 282831, 356576, 176362, 233715, 184570, 168188, 184575, 299293, 233762, 217380, 282919, 151847, 332085, 332089, 315706, 282939, 307517, 241986, 332101, 323916, 348492, 250192, 323920, 348500, 323935, 242029, 291192, 225670, 291224, 283038, 61857, 315810, 61859, 315811, 340398, 299441, 61873, 283064, 61880, 127427, 127428, 283075, 324039, 176601, 242139, 160225, 242148, 291311, 233978, 291333, 340490, 283153, 291358, 283182, 283184, 234036, 315960, 70209, 348742, 70215, 348749, 332378, 111208, 291454, 184962, 348806, 152203, 184973, 111253, 316053, 111259, 299699, 299700, 225997, 226004, 226007, 226019, 299770, 234234, 299776, 242433, 234241, 209670, 226058, 234250, 234253, 291604, 234263, 283419, 234268, 234277, 283430, 234283, 152365, 234286, 234289, 242485, 234294, 234301, 234311, 234312, 299849, 283467, 234317, 201551, 234323, 234326, 234331, 349026, 234340, 234343, 275303, 177001, 201577, 234346, 308076, 242541, 234355, 209783, 234360, 209785, 234361, 177019, 234366, 234367, 234372, 226181, 226184, 308107, 308112, 234386, 234387, 234392, 209817, 324506, 324507, 234400, 234404, 324517, 283558, 234409, 275371, 234419, 234425, 234427, 234430, 349121, 234436, 234438, 316364, 234444, 234445, 234451, 234454, 234457, 340955, 234463, 340961, 234466, 234472, 234473, 324586, 234477, 340974, 234482, 316405, 201720, 234498, 234500, 234506, 324625, 234514, 316437, 201755, 234531, 300068, 234534, 357414, 234542, 300084, 234548, 324666, 234555, 308287, 234560, 21569, 234565, 234569, 300111, 234577, 341073, 234583, 234584, 234587, 250981, 300135, 300136, 316520, 275565, 316526, 357486, 275571, 300151, 234616, 398457, 160891, 341115, 300158, 234622, 349316, 349318, 275591, 234632, 169104, 177296, 234642, 308372, 185493, 119962, 119963, 300188, 300187, 234656, 234659, 234663, 275625, 300201, 300202, 226481, 283840, 259268, 283847, 62665, 283852, 283853, 357595, 234733, 234742, 292091, 316669, 242954, 292107, 251153, 177428, 226608, 300343, 226624, 193859, 300359, 226632, 234827, 177484, 251213, 234831, 120148, 283991, 357719, 218462, 292195, 333160, 284014, 243056, 112017, 112018, 234898, 357786, 333220, 316842, 210358, 284089, 292283, 415171, 292292, 300487, 300489, 284116, 366037, 210390, 210391, 210393, 226781, 144867, 316902, 54765, 251378, 300535, 300536, 300542, 210433, 366083, 316946, 308756, 398869, 308764, 349726, 349741, 169518, 194110, 235070, 349763, 218696, 276040, 366154, 292425, 333388, 276045, 243274, 128587, 333393, 300630, 128599, 235095, 243292, 374372, 317032, 54893, 276085, 366203, 235135, 276120, 276126, 218819, 276173, 333517, 333520, 333521, 333523, 276195, 153319, 284401, 276210, 276219, 325371, 194303, 194304, 300811, 284429, 276238, 366360, 284442, 325404, 276253, 325410, 341796, 300848, 317232, 276282, 276283, 276287, 325439, 276294, 153415, 276298, 341836, 325457, 284507, 284512, 284514, 276327, 292712, 325484, 292720, 325492, 300918, 276344, 194429, 325503, 333701, 243591, 243597, 325518, 300963, 292771, 333735, 284587, 292782, 243637, 276408, 276421, 276430, 301008, 153554, 194515, 276444, 219101, 292836, 292837, 276454, 276459, 325619, 333817, 292858, 292902, 227370, 309295, 276534, 358456, 227417, 194656, 309345, 227428, 276582, 194666, 276589, 227439, 284788, 333940, 292988, 292992, 194691, 227460, 333955, 235662, 325776, 276627, 317587, 276632, 284826, 333991, 333992, 284842, 129203, 301251, 309444, 276682, 227548, 301279, 211193, 243962, 309503, 194820, 375051, 325905, 325912, 309529, 211235, 260418, 227658, 276813, 325968, 6481, 6482, 366929, 366930, 6489, 391520, 276835, 416104, 276847, 285040, 317820, 211326, 227725, 178578, 293274, 317852, 285090, 375207, 293303, 276920, 276925, 293310, 317901, 326100, 285150, 227809, 358882, 342498, 227813, 195045, 301571, 276998, 342536, 186893, 342553, 375333, 293419, 244269, 236081, 23092, 277048, 301638, 55881, 309846, 244310, 277094, 277101, 277111, 301689, 244347, 277133, 227990, 342682, 285353, 285361, 342706, 318130, 293556, 342713, 285371, 285373, 154316, 334547, 203477, 96984, 318173, 285415, 342762, 277227, 129773, 154359, 228088, 162561, 285444, 285466, 326429, 326433, 318250, 318252, 301871, 293693, 162621, 162626, 277316, 318278, 277325, 293711, 301918, 293730, 351077, 342887, 400239, 277366, 228215, 277370, 269178, 359298, 277381, 113542, 228233, 228234, 56208, 293781, 318364, 310176, 310178, 293800, 236461, 293806, 130016, 64485, 277479, 277492, 318461, 277509, 277510, 146448, 277523, 310317, 252980, 359478, 277563, 302139, 359495, 277597, 113760, 285798, 228458, 15471, 187506, 285814, 285820, 187521, 285828, 302213, 253063, 302216, 228491, 228493, 285838, 162961, 326804, 187544, 302240, 343203, 253099, 367799, 277690, 64700, 343234, 367810, 244940, 228563, 310497, 195811, 228588, 253167, 302325, 204022, 228600, 228609, 245019, 277792, 130338, 130343, 277800, 113966, 351537, 286018, 15686, 294218, 318805, 294243, 163175, 327025, 327031, 179587, 368011, 318875, 310692, 286129, 228795, 302529, 302531, 163268, 163269, 310732, 64975, 327121, 228827, 286172, 310757, 187878, 343542, 343543, 286202, 286205, 302590, 294400, 228867, 253452, 65041, 146964, 204313, 286244, 245287, 278060, 245292, 286254, 56902, 228943, 286288, 196187, 147036, 343647, 310889, 204397, 138863, 188031, 294529, 286343, 229001, 310923, 188048, 229020, 245412, 40613, 40614, 40615, 229029, 278191, 286388, 286391, 319162, 286399, 302797, 212685, 212688, 245457, 302802, 286423, 278233, 278234, 294622, 278240, 212716, 212717, 229113, 286459, 278272, 319233, 311042, 278291, 294678, 278299, 286494, 294700, 360252, 188251, 237408, 253829, 40853, 294807, 294809, 294814, 319392, 294823, 294843, 98239, 294850, 163781, 344013, 212946, 294886, 253929, 327661, 311282 ]
d46331cc6ff8b771f688592417d9327f1151eb94
c054eb0592fc285405be6feb16e04f4ced43068c
/Carthage/Checkouts/FluxCapacitor/Examples/Flux+MVVM/Carthage/Checkouts/NoticeObserveKit/NoticeObserveKitSample/NoticeObserveKitSample/ViewController/NextViewController.swift
2841fbe4f7e5338696c4eb45231489699512c9d0
[ "MIT" ]
permissive
ks-cap/iOS-DesignPattrn-Prac
7dca53d64c08dc90c7c36db6b39cf5ce4a5bb902
8ea227899bba3d6ce7c1fb0f98e028e02f9fd7fd
refs/heads/master
2020-03-07T14:00:41.790422
2018-04-13T13:50:16
2018-04-13T13:50:16
127,516,303
1
0
null
null
null
null
UTF-8
Swift
false
false
886
swift
// // NextViewController.swift // NoticeObserveKitSample // // Created by 鈴木大貴 on 2016/12/28. // Copyright © 2016年 marty-suzuki. All rights reserved. // import UIKit class NextViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ -1 ]
96679d0e2cf6cb619d29212ae4c8d666a8a44b73
fe42e81de308fe7ce76783b9c04db08ded4b13ce
/alarm2.0/alarm/AlarmNC.swift
c41c59ab14bf47b893d1b2fd9e22b116b9499bca
[]
no_license
TomEnChih/Alarm-clone
6f0515019c0724b0dbbeeabe394a19c3cddde6fb
4f6511c968ad98de1b1c8676e70f2fbb0fb3cc42
refs/heads/master
2023-07-02T22:23:17.352409
2021-07-25T13:40:09
2021-07-25T13:40:09
331,600,700
0
0
null
null
null
null
UTF-8
Swift
false
false
508
swift
// // AlarmNC.swift // alarm2.0 // // Created by 董恩志 on 2021/1/21. // import UIKit class AlarmNC: UINavigationController { override func viewDidLoad() { super.viewDidLoad() let navigationBarAppear = UINavigationBar.appearance() navigationBarAppear.tintColor = UIColor.orange navigationBarAppear.barTintColor = UIColor.black navigationBarAppear.titleTextAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white] } }
[ -1 ]
1da13fc2523f095ee7b0cd51099fd1ef1f789a21
6162f72cbdc4f90986d241fd9492a3b91e00399e
/Vocabulator/HelperFunctions.swift
22e6a4c15606c7db9dec802915d821a63f67a5d2
[]
no_license
haxie1/Vocabulator
65a2101c71af73ec4462a35c2f81241f2d748396
23df6f9cf01f447f8bf30ba84b36daa5897b0995
refs/heads/master
2021-03-27T18:50:52.355159
2017-01-08T22:38:25
2017-01-08T22:38:25
77,926,899
0
0
null
null
null
null
UTF-8
Swift
false
false
451
swift
// // HelperFunctions.swift // Vocabulator // // Created by Kam Dahlin on 1/2/17. // Copyright © 2017 Kam Dahlin. All rights reserved. // import Foundation func todo(_ msg: String..., _ file: String = #file, _ line: Int = #line, _ function: String = #function) { #if DEBUG let url = URL(fileURLWithPath: file) print("--- TODO: \"\(msg.joined(separator: " "))\", --- [ \(url.lastPathComponent):\(line) - \(function) ]") #endif }
[ -1 ]
5b99f64e032c1a19829bc7b764878c2193edbf34
56a89057337c57841f753a9e36745024d971d6e8
/iOS_Storage/Contents/积累/UIKit相关/TableViewDemos/泛型tableView/泛型tableView+泛型cell/BaseGenericsCell.swift
8b2ab960ae07310345bc886861b7e619f628068b
[]
no_license
476139183/iOS_Storage
45bc895140dc74ddad0eb4146f878557e2e3d294
22dcdd22213b4c7e84a4b5cab92eb952247c0821
refs/heads/master
2022-12-31T13:35:17.841715
2020-10-17T08:58:12
2020-10-17T08:58:12
null
0
0
null
null
null
null
UTF-8
Swift
false
false
856
swift
// // BaseGenericsCell.swift // iOS_Storage // // Created by caiqiang on 2020/6/16. // Copyright © 2020 蔡强. All rights reserved. // import UIKit /// M is model class BaseGenericsCell<M>: UITableViewCell { var model: M? { didSet { guard let model = self.model else { return } configModel(model: model) } } /// override in subclass func configModel(model: M) { } /// override in subclass func configUI() { } required override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) configUI() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
[ -1 ]
5279d2771c8cfa69484aff7513588ac35e8466b0
e1e04d4d6cd9f6e9768beeb198e97eca3f81c832
/Carthage/Checkouts/ios-sdk/Source/ToneAnalyzerV3/Models/ToneScore.swift
7903ef43af316bb14f033ec66b694a172111dd5f
[ "Apache-2.0" ]
permissive
dingwilson/BackTrack
34883e1f7d1cadd87ee7d43d94374c90d5bd4a99
69da0174157b3a98375e3a93b044374d43ae1ef0
refs/heads/master
2021-01-14T12:45:39.770640
2017-11-16T22:45:46
2017-11-16T22:45:46
65,093,454
5
0
null
null
null
null
UTF-8
Swift
false
false
1,308
swift
/** * Copyright IBM Corporation 2016 * * 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 in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **/ import Foundation import Freddy /** The score of a particular tone. */ public struct ToneScore: JSONDecodable { /// A unique number identifying this particular tone. public let id: String /// The name of this particular tone. public let name: String /// The raw score of the tone, computed by the algorithms. This can be /// compared to other raw scores and used to build your own normalizations. public let score: Double /// Used internally to initialize a `ToneScore` model from JSON. public init(json: JSON) throws { id = try json.string("tone_id") name = try json.string("tone_name") score = try json.double("score") } }
[ 229897 ]
51df11f93275660e7596b41bb47ca7bf5e38b213
ea61e7468573febeea6f5073f35793fda34d4960
/tracking_prompt_bayut/ViewController.swift
38e38d2fb9a5ead2421cfeee7287851af22508f3
[]
no_license
kanaanzafar7/tracking_prompt_bayut
fa9e36014423eda5ad0826ad0daa527e408e5135
404ddd6f08fbb8fdc06435d35454430f4674ce93
refs/heads/main
2023-08-11T16:46:34.154241
2021-09-14T08:30:29
2021-09-14T08:30:29
404,682,474
0
0
null
null
null
null
UTF-8
Swift
false
false
655
swift
// // ViewController.swift // tracking_prompt_bayut // // Created by Kanaan Zafar on 09/09/2021. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } @IBAction func askPermission(_ sender: UIButton) { let sb = UIStoryboard(name: "TrackingPrompt", bundle: nil) let trackingPromptVC = sb.instantiateViewController(withIdentifier: "TrackingPrompt") trackingPromptVC.modalPresentationStyle = .fullScreen present(trackingPromptVC, animated: true) { } } }
[ -1 ]
fa398fce0888893a9060033a7e0358dca9e096c3
9a8f1fc959cd407ae4a0b79083da8124dcf15309
/ModulBankApp/SceneDelegate.swift
38e9f1fa884fe72359fb71b25559cf3ba977c794
[]
no_license
Anya481516/ModulBank_iOS
94589062bae85a22dfc291394f0a47b3b79854db
71009503e3f0afa63429d688b473f08f8219f7ae
refs/heads/master
2022-09-23T23:52:05.095459
2020-06-03T20:20:46
2020-06-03T20:20:46
266,365,703
0
0
null
null
null
null
UTF-8
Swift
false
false
2,561
swift
// // SceneDelegate.swift // ModulBankApp // // Created by Анна Мельхова on 22.05.2020. // Copyright © 2020 Anna Melkhova. All rights reserved. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let _ = (scene as? UIWindowScene) else { return } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. // Save changes in the application's managed object context when the application transitions to the background. (UIApplication.shared.delegate as? AppDelegate)?.saveContext() } }
[ 393221, 163849, 393228, 393231, 393251, 352294, 344103, 393260, 393269, 213049, 376890, 16444, 393277, 376906, 327757, 254032, 286804, 368728, 254045, 368736, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 286889, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 180432, 377047, 418008, 385243, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 336124, 385281, 336129, 262405, 180491, 336140, 164107, 262417, 368913, 262423, 377118, 377121, 262437, 254253, 336181, 262455, 393539, 262473, 344404, 213333, 418135, 270687, 262497, 418145, 262501, 213354, 246124, 262508, 262512, 213374, 385420, 262551, 262553, 385441, 385444, 262567, 385452, 262574, 393649, 385460, 262587, 344512, 262593, 336326, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 98819, 164362, 328204, 328207, 410129, 393748, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 270922, 385610, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 336517, 344710, 385671, 148106, 377485, 352919, 98969, 336549, 344745, 361130, 336556, 434868, 164535, 336568, 164539, 328379, 328387, 352969, 418508, 385743, 385749, 189154, 369382, 361196, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 262943, 369439, 418591, 418594, 336676, 418600, 418606, 271154, 328498, 369464, 361274, 328516, 336709, 328520, 336712, 361289, 328523, 336715, 361300, 213848, 426842, 361307, 197469, 361310, 254813, 361318, 344936, 361323, 361335, 328574, 369544, 222129, 345036, 386004, 345046, 386012, 386019, 386023, 328690, 435188, 328703, 328710, 418822, 377867, 328715, 386070, 336922, 345119, 377888, 328747, 214060, 345134, 345139, 361525, 361537, 377931, 197708, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 361594, 410746, 214150, 345224, 386187, 337048, 345247, 361645, 345268, 337076, 402615, 361657, 402636, 328925, 165086, 165092, 328933, 222438, 328942, 386286, 206084, 115973, 328967, 345377, 345380, 353572, 345383, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 345449, 99692, 271731, 378232, 337278, 271746, 181639, 353674, 181644, 361869, 181650, 181655, 230810, 181671, 181674, 181679, 181682, 337330, 181687, 370105, 181691, 181697, 361922, 337350, 181704, 337366, 271841, 329192, 361961, 329195, 116211, 337399, 402943, 337416, 329227, 419341, 419345, 329234, 419351, 345626, 419357, 345631, 419360, 370208, 394787, 419363, 370214, 419369, 394796, 419377, 419386, 206397, 419401, 353868, 419404, 173648, 419408, 214611, 419412, 403040, 345702, 222831, 370298, 353920, 345737, 198282, 403085, 403092, 345750, 419484, 345758, 345763, 419492, 345766, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 419518, 403139, 337607, 419528, 419531, 419536, 272083, 394967, 419543, 419545, 345819, 419548, 181982, 419551, 345829, 419560, 337643, 419564, 337647, 370416, 141052, 337661, 337671, 362249, 362252, 395022, 362256, 321300, 395033, 345888, 116512, 362274, 378664, 354107, 354112, 247618, 370504, 329545, 345932, 354124, 370510, 247639, 337751, 370520, 313181, 182110, 354143, 354157, 345965, 345968, 345971, 345975, 182136, 403321, 1914, 354173, 395148, 247692, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 247760, 346064, 346069, 329699, 354275, 190440, 247790, 354314, 346140, 337980, 436290, 395340, 378956, 436307, 338005, 329816, 100454, 329833, 329853, 329857, 329868, 411806, 329886, 346273, 362661, 100525, 387250, 379067, 387261, 256193, 395467, 346317, 411862, 256214, 411865, 411869, 411874, 379108, 411877, 387303, 395496, 346344, 338154, 387307, 346350, 338161, 436474, 321787, 379135, 411905, 411917, 43279, 379154, 395539, 387350, 387353, 338201, 182559, 338212, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 182642, 321911, 420237, 379279, 272787, 354728, 338353, 338363, 338382, 272849, 248279, 256474, 182755, 338404, 338411, 330225, 248309, 199165, 248332, 330254, 199182, 199189, 420377, 330268, 191012, 412215, 330320, 199250, 191069, 346722, 248427, 191085, 338544, 191093, 346743, 330384, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 273109, 264919, 338661, 264942, 330479, 363252, 338680, 207620, 264965, 191240, 338701, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 355185, 330612, 330643, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 437219, 257009, 265208, 330750, 199681, 379908, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 330830, 248915, 183384, 412765, 339037, 257121, 322660, 265321, 330869, 248952, 420985, 330886, 330890, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 126148, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 339199, 396552, 175376, 175397, 208167, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 437576, 437584, 331089, 396634, 175451, 437596, 429408, 175458, 208228, 175461, 175464, 265581, 331124, 175478, 249210, 175484, 175487, 249215, 175491, 249219, 249225, 249228, 249235, 175514, 175517, 396703, 396706, 175523, 355749, 396723, 388543, 380353, 339401, 380364, 339406, 372177, 339414, 249303, 413143, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 339464, 249355, 208399, 175637, 134689, 339504, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 339572, 224885, 224888, 224891, 224895, 126597, 421509, 224905, 11919, 224911, 224914, 126611, 224917, 224920, 126618, 208539, 224923, 224927, 224930, 224933, 257705, 224939, 224943, 257713, 224949, 257717, 257721, 224954, 257725, 224960, 257733, 224966, 224970, 257740, 224976, 257745, 257748, 224982, 257752, 224987, 257762, 224996, 225000, 339696, 225013, 225021, 339711, 257791, 225027, 257796, 339722, 257805, 225039, 249617, 225044, 167701, 372500, 257815, 225049, 257820, 225054, 184096, 397089, 257825, 225059, 339748, 225068, 257837, 413485, 225074, 257843, 225077, 225080, 397113, 225083, 397116, 257853, 225088, 225094, 225097, 323404, 257872, 225105, 339795, 397140, 225109, 257881, 225113, 257884, 225120, 413539, 225128, 257897, 225138, 339827, 257909, 372598, 225142, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 380919, 393215, 405534, 266295, 266298, 217158, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 250012, 225439, 135328, 192674, 225442, 438434, 225445, 225448, 438441, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 225476, 389322, 225485, 225488, 225491, 266454, 225494, 225497, 225500, 225503, 225506, 356580, 225511, 225515, 225519, 381177, 397572, 389381, 356631, 356638, 356641, 356644, 356647, 266537, 389417, 356650, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 332098, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 332130, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 250239, 332162, 348548, 356741, 332175, 160152, 373146, 373149, 70048, 356783, 266688, 324032, 201158, 127473, 217590, 340473, 324095, 324100, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324150, 324156, 168509, 348734, 324161, 324165, 356935, 348745, 381513, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 119432, 340628, 184983, 373399, 340639, 258723, 332455, 332460, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 348926, 389927, 348979, 152371, 398141, 127815, 357202, 389971, 357208, 136024, 389979, 430940, 357212, 357215, 201580, 201583, 349041, 340850, 201589, 381815, 430967, 324473, 398202, 340859, 324476, 430973, 119675, 324479, 340863, 324482, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 373672, 324525, 5040, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 349173, 381947, 201724, 349181, 431100, 431107, 349203, 209944, 209948, 250915, 250917, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 431180, 209996, 349268, 250968, 210011, 373853, 341094, 210026, 210028, 210032, 349296, 210037, 210042, 210045, 349309, 160896, 349313, 152704, 210053, 210056, 349320, 259217, 373905, 210068, 210072, 210078, 210081, 210085, 210089, 210096, 210100, 324792, 210108, 357571, 210116, 210128, 333010, 210132, 333016, 210139, 210144, 218355, 251123, 218361, 275709, 128254, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 251211, 210261, 365912, 259423, 374113, 251236, 374118, 234867, 390518, 357756, 374161, 112021, 349591, 357793, 333222, 210357, 259516, 415168, 366035, 415187, 366039, 415192, 415194, 415197, 415200, 333285, 415208, 366057, 366064, 415217, 415225, 415258, 415264, 366118, 415271, 382503, 349739, 144940, 415279, 415282, 349748, 415286, 210488, 415291, 415295, 333387, 333396, 333400, 366173, 333415, 423529, 423533, 333423, 210547, 415354, 333440, 267910, 267929, 333472, 333512, 259789, 358100, 366301, 333535, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333593, 333595, 210720, 366384, 358192, 210740, 366388, 358201, 399166, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 268144, 358256, 358260, 399222, 325494, 186233, 333690, 243584, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 358336, 333767, 358348, 333777, 219094, 358372, 350190, 333819, 350204, 325633, 325637, 350214, 333838, 350225, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350260, 350272, 243782, 350281, 350286, 374865, 252021, 342134, 374904, 268435, 333989, 333998, 334012, 260299, 350411, 350417, 350423, 350426, 334047, 350449, 375027, 358645, 350454, 350459, 350462, 350465, 350469, 325895, 268553, 194829, 350477, 268560, 350481, 432406, 350487, 350491, 350494, 325920, 350500, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 366991, 342431, 375209, 326059, 342453, 334263, 326087, 358857, 195041, 334312, 104940, 375279, 416255, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 252483, 219719, 399957, 244309, 334425, 326240, 375401, 334466, 334469, 391813, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 334530, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 342769, 203508, 375541, 342777, 391938, 391949, 375569, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 375616, 326468, 244552, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 326503, 433001, 326508, 400238, 326511, 211826, 211832, 392061, 351102, 252801, 260993, 400260, 211846, 342921, 252823, 400279, 392092, 400286, 359335, 211885, 400307, 351169, 359362, 170950, 187335, 326599, 359367, 359383, 359389, 383968, 343018, 359411, 261109, 261112, 244728, 383999, 261130, 261148, 359452, 261155, 261160, 261166, 359471, 375868, 384099, 384102, 384108, 367724, 326764, 187503, 343155, 384115, 212095, 384136, 384140, 384144, 384152, 384158, 384161, 351399, 384169, 367795, 384182, 384189, 384192, 343232, 351424, 244934, 367817, 244938, 384202, 253132, 326858, 343246, 384209, 146644, 351450, 384225, 359650, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 343307, 384270, 359695, 261391, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 343399, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 343453, 245152, 245155, 155045, 245158, 40358, 245163, 327090, 343478, 359867, 384444, 146878, 327108, 327112, 384457, 327118, 359887, 359891, 343509, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 359948, 359951, 400977, 400982, 179803, 138865, 155255, 155274, 368289, 245410, 425639, 245415, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 245495, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 155488, 376672, 155492, 327532, 261997, 376686, 262000, 262003, 425846, 262006, 147319, 262009, 327542, 262012, 155517, 155523, 155526, 360327, 376715, 155532, 262028, 262031, 262034, 262037, 262040, 262043, 155550, 253854, 262046, 262049, 262052, 327590, 155560, 155563, 155566, 327613, 393152, 311244, 212945, 393170, 155604, 155620, 253924, 155622, 253927, 327655, 360432, 393204, 360439, 253944, 393209, 155647 ]
ded334723c058aeb6e036ae263b03b1d66d22e8d
4a0f61b07c3faf130f05661dcb8f925d3b95a21f
/Doctor App/Login Module/Model/UserDetailModel.swift
bc80e958e0b64bb43d7bc729589eeac5e8465fe1
[]
no_license
infograinssoftware/Lux-Dent-Doctor
f342dc29ba2e3133b2b6eb0d0ddf95a437e7a033
8dc608fa98b4447905fbeb02b58ad61ccc3e2250
refs/heads/main
2023-01-22T17:46:19.979688
2020-11-17T10:52:43
2020-11-17T10:52:43
313,588,429
0
0
null
null
null
null
UTF-8
Swift
false
false
181
swift
// // UserDetailModel.swift // Doctor App // // Created by mac on 6/22/20. // Copyright © 2020 mac. All rights reserved. // import UIKit class UserDetailModel: NSObject { }
[ -1 ]
7390f954f8145f42952c4c19bbfb40b614cc7904
fb92d7fc0e766e72284ad77c83f4d6836018e2d1
/BGT/SettingsViewController.swift
a6256f7fe5f097a91d0aecc6c3412b3146d0d5dd
[]
no_license
alexmocci/BGT
4ddb558b21672a029ac8850ff54a4e162bbc150f
8832729a3f1d3ac12c50b6d7e1aa1fff7eeb7fa2
refs/heads/master
2020-07-12T06:26:35.061382
2019-08-27T16:28:24
2019-08-27T16:28:24
191,908,159
0
0
null
null
null
null
UTF-8
Swift
false
false
1,016
swift
// // ThirdViewController.swift // BGT // // Created by user153403 on 4/22/19. // Copyright © 2019 alexmocci. All rights reserved. // import UIKit class SettingsViewController: UITableViewController { @IBOutlet weak var NameLabel: UITextField! @IBOutlet weak var NameLenghtMax: UILabel! @IBOutlet weak var AccountImageView: UIImageView! @IBAction func NameLabelEntered(_ sender: Any) { NameLenghtMax.isHidden = false var string = NameLabel.text if(string != nil) { NameLenghtMax.text = String(25 - string!.count) } } @IBAction func NameLabelExit(_ sender: Any) { NameLenghtMax.isHidden = true } override func viewDidLoad() { super.viewDidLoad() /* AccountImageView.layer.cornerRadius = AccountImageView.frame.size.width / 2 AccountImageView.clipsToBounds = true*/ // Do any additional setup after loading the view. } } class SettingsCell: UITableViewCell { }
[ -1 ]
6c2b24458a12ec1686da3179548a59771981c515
98d2211510a9ec4aec281ac47c24cb9039086f9c
/TwitchSwiftUI/EnvironmentKey/ImageDecoderEnvironmentKey.swift
291e57dd7001fb74cf0cf1d80b4fbc950cb23991
[]
no_license
Banannzza/TwitchSwiftUI
0dce71c68d4b71166ea0e557ca2a9e6749089656
0f802a00b959e7c01bf991b8159cefc07d150542
refs/heads/master
2023-02-18T12:08:05.666648
2021-01-18T11:27:01
2021-01-18T11:27:01
330,632,787
2
1
null
null
null
null
UTF-8
Swift
false
false
428
swift
// // ImageDecoderEnvironmentKey.swift // Twitch // // Created by Aleksey Ostapenko on 15.01.2021. // import SwiftUI fileprivate struct ImageDecoderEnvironmentKey: EnvironmentKey { static var defaultValue = ImageDecoder() } extension EnvironmentValues { var imageDecoder: ImageDecoder { get { self[ImageDecoderEnvironmentKey.self] } set { self[ImageDecoderEnvironmentKey.self] = newValue } } }
[ -1 ]
aef9c136329166cf58a5b8ca58077272260782f0
9a3167f27a866d9ccd0f0fe12ab4c7d82146641e
/client/roomiesApp/roomiesApp/App Journey/UserProfileViewController.swift
42d13e3b3d7a401a5f55b78c199a88d792b35a17
[]
no_license
rishijatania/Roomies-App
51235450fbcc138ae167a4c1f0d284939963e9f2
0278918f2aae30e70e4dfe481dc048b188c65612
refs/heads/main
2021-06-27T16:34:10.949086
2020-11-29T02:14:12
2020-11-29T02:14:12
183,520,009
0
0
null
null
null
null
UTF-8
Swift
false
false
4,810
swift
// // UserProfileViewController.swift // roomiesApp // // Created by Rishi Jatania on 4/20/20. // Copyright © 2020 Rishi Jatania. All rights reserved. // import UIKit class UserProfileViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var email: UITextField! @IBOutlet weak var userName: UITextField! @IBOutlet weak var firstNameTF: UITextField! @IBOutlet weak var LastNameTF: UITextField! @IBOutlet weak var phoneNoTF: UITextField! @IBAction func logout(_ sender: Any) { performSegue(withIdentifier: "logoutsg", sender: self) } override func viewDidLoad() { super.viewDidLoad() initializeTextFields() // Do any additional setup after loading the view. } @IBAction func update(_ sender: Any) { guard let fName = firstNameTF.text, !fName.isEmptyOrWhitespace() else { showAlert(title: "Enter correct First Name") return } guard let lName = LastNameTF.text, !lName.isEmptyOrWhitespace() else { showAlert(title: "Enter correct Last Name") return } guard let phone = phoneNoTF.text, phone.isValidPhone() else { showAlert(title: "Enter correct Phone No") return } //call api updateUserInfo(userName.text!,email.text!,fName,lName,Int(phone)!) } func textFieldShouldReturn(_ textField: UITextField) -> Bool { //delegate method textField.resignFirstResponder() return true } func initializeTextFields() { userName.delegate=self email.delegate=self firstNameTF.delegate=self LastNameTF.delegate=self phoneNoTF.delegate=self userName.text=Singleton.shared.userInfo?.username email.text=Singleton.shared.userInfo?.email firstNameTF.text=Singleton.shared.userInfo?.firstName LastNameTF.text=Singleton.shared.userInfo?.lastName phoneNoTF.text="\(Singleton.shared.userInfo?.phoneNo ?? 0)" } func showAlert(title: String){ let alert = UIAlertController(title:title, message:"", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil)) self.present(alert, animated: true) } // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. let vc:UIViewController = segue.destination switch vc { case _ as LoginNavigationViewController: let appDelegate = UIApplication.shared.delegate! as! AppDelegate let appscene = LoginNavigationViewController.instantiateFromAppStoryBoard(appStoryBoard: .Main) // let initialViewController = self.storyboard!.instantiateViewController(withIdentifier: "myTabbarControllerID") as! TabBarViewController appDelegate.window?.rootViewController = appscene appDelegate.window?.makeKeyAndVisible() Singleton.shared.logout() // case let ct as CreateTrainViewController: // ct.isCreate = true default: print("") } } func getUserInfo () { UserInfoRequest() .dispatch( onSuccess: { (successResponse) in Singleton.shared.userInfo=successResponse self.initializeTextFields() }, onFailure: { (errorResponse, error) in print(errorResponse?.message ?? "") self.initializeTextFields() self.showAlert(title:errorResponse?.message ?? "Unable to get User Info\nPlease try again!") }) } func updateUserInfo(_ username:String,_ email:String,_ fName:String, _ lName:String, _ phone:Int) { ProfileUpdateRequest(username:username,email:email,firstName:fName,lastName:lName,phoneNo:phone) .dispatch( onSuccess: { (successResponse) in self.getUserInfo() self.showAlert(title: "User Info Update Successfully") }, onFailure: { (errorResponse, error) in print(errorResponse?.message ?? "") self.initializeTextFields() self.showAlert(title:errorResponse?.message ?? "Unable to update User Info\nPlease try again!") }) } }
[ -1 ]
82d381246de0406b3f68850be7fbaf586d0f89b1
643081056a0b8bd9eef5829477cb0c19ea7f7735
/<5>导航/swiftWeiBo/swiftWeiBo/Common/SinaBaseViewController.swift
d116cd00d0ed79ea79875b6ac519dd192f703386
[ "MIT" ]
permissive
stevendinggang/iOS-Demo-
aaf0bb295395a0fd1f2a3c34be6b2b144b31f096
7fed104899ab968947eb63d2bb165bf16d131f0a
refs/heads/master
2021-04-09T16:28:41.011281
2018-03-18T03:13:06
2018-03-18T03:13:06
125,688,409
1
0
null
null
null
null
UTF-8
Swift
false
false
1,655
swift
// // SinaBaseViewController.swift // swiftWeiBo // // Created by yuan on 16/3/1. // Copyright © 2016年 yuan. All rights reserved. // import UIKit class SinaBaseViewController: UIViewController { var isTabBarHiden : Bool?{ didSet{ let tempAppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate let leftVC = tempAppDelegate.window?.rootViewController as! LeftSlideViewController let tabBarVC = leftVC.mainVC as! SinaTabBarViewController tabBarVC.tabBar.hidden = isTabBarHiden! } } var isPanEnabled : Bool?{ didSet{ let tempAppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate let leftVC = tempAppDelegate.window?.rootViewController as! LeftSlideViewController leftVC.setPanEnabled(isPanEnabled!) } } override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ } // 版权属于原作者 // http://code4app.com (cn) http://code4app.net (en) // 发布代码于最专业的源码分享网站: Code4App.com
[ -1 ]
ac823c0b2fda9ffcabac630a6e9aa847aa07de3c
23b43684720c66e48cca7d3dc0a639ee94b58b05
/ScriptTests/ScriptTests.swift
7e6f131613b0e361982a4c0e2c42b3a83c009414
[]
no_license
Zerui18/NeoHana
8a4f308634de600972597504e46e17d12e9b00d6
adb83a70a1be647f78e4901765dda974f840114e
refs/heads/main
2023-06-15T14:20:07.984316
2021-06-29T02:58:33
2021-06-29T02:58:33
378,026,031
0
0
null
null
null
null
UTF-8
Swift
false
false
472
swift
// // ScriptTests.swift // ScriptTests // // Created by Zerui Chen on 16/6/21. // import XCTest import Script class ScriptTests: XCTestCase { override func setUpWithError() throws { } override func tearDownWithError() throws { } func testSummerScript() throws { let script = try IGScript(fromPath: "/Users/zeruichen/Downloads/script/02a_00001.s") while let op = script.nextOperation() { print(op) } } }
[ -1 ]
34e93382fbf079f1910efc76600ec68cdc593d2c
9ad53935c4c08c495027dff1a0b51e8b1b74236f
/Fitness/ViewControllers/Main/MainViewController.swift
ed1cf546fef4417c4c53c039efbeda6438d54025
[]
no_license
Brydeful/Fitness
8b04904bfcfbcc20fa79cf584cd223bef454320d
24d95d19964b973e848a1f42eb120fc3540c5123
refs/heads/master
2021-01-26T11:19:07.165647
2020-02-27T05:40:08
2020-02-27T05:40:08
243,418,583
0
0
null
null
null
null
UTF-8
Swift
false
false
2,962
swift
// // MainViewController.swift // Fitness // // Created by Вячеслав on 25.02.2020. // Copyright © 2020 Вячеслав. All rights reserved. // import UIKit import FSCalendar class MainViewController: UIViewController { let networkManager = NetworkManager() var responseSchedule = ResponseSchedule(cells: []) var schedules: [Schedule] = [] @IBOutlet weak var calendar: FSCalendar! @IBOutlet weak var tableView: UITableView! @IBOutlet weak var calendarHeightConstraint: NSLayoutConstraint! override func viewDidLoad() { super.viewDidLoad() setupTableView() setupFSCalendar() loadData() } private func setupFSCalendar(){ calendar.dataSource = self calendar.delegate = self self.calendar.select(Date()) self.calendar.scope = .week } private func setupTableView(){ tableView.delegate = self tableView.dataSource = self tableView.tableFooterView = UIView() title = "Schedule" let nib = UINib(nibName: "ScheduleCell", bundle: nil) tableView.register(nib, forCellReuseIdentifier: ScheduleCell.reuseId) } private func loadData(){ networkManager.fetchSchedule { (responseSchedule) in let currentDay = Calendar.current.component(.weekday, from: Date()) - 1 if let responseSchedule = responseSchedule{ self.responseSchedule = responseSchedule } self.returnScheduleForWeekDay(day: currentDay) } } private func returnScheduleForWeekDay(day: Int){ schedules = responseSchedule.returnSchedule(for: day) self.tableView.reloadData() } } extension MainViewController: UITableViewDataSource, UITableViewDelegate{ func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return schedules.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: ScheduleCell.reuseId, for: indexPath) as! ScheduleCell let viewModel = schedules[indexPath.row] cell.set(viewModel: viewModel) return cell } } extension MainViewController: FSCalendarDataSource, FSCalendarDelegate{ func calendar(_ calendar: FSCalendar, boundingRectWillChange bounds: CGRect, animated: Bool) { self.calendarHeightConstraint.constant = bounds.height self.view.layoutIfNeeded() } func calendar(_ calendar: FSCalendar, didSelect date: Date, at monthPosition: FSCalendarMonthPosition) { let weekDayNumber = Calendar.current.component(.weekday, from: date) - 1 returnScheduleForWeekDay(day: weekDayNumber) if monthPosition == .next || monthPosition == .previous { calendar.setCurrentPage(date, animated: true) } } }
[ -1 ]
2147989215ded6c3b4d64462de0ef3d842d6431d
7fa72fe78a21b75ef4b881b1dbe001ad0003f207
/syncTunes/Playlist.swift
470fae48fea6e0f19706aca1a8546cad9744b958
[ "MIT" ]
permissive
joshbuhler/syncTunes
2a69daa2338a86a6c0f65022a6c10e09127ba855
b99cb989f6008084ad80dd2c549ae9e221a231a9
refs/heads/master
2021-06-05T13:29:55.302005
2018-04-25T21:05:23
2018-04-25T21:05:23
129,669,144
0
0
null
null
null
null
UTF-8
Swift
false
false
2,027
swift
// // Playlist.swift // syncTunes // // Created by Joshua Buhler on 4/17/18. // import Cocoa class Playlist { let filePath:String var fileName:String? var tracks:[Track] = [Track]() // Most of the guts of SyncTunes will be moved here. This will handle the parsing of a playlist file, track creation, and a toString() method for writing the playlist file. syncTunes can handle the actual file writing. // SyncTunes will also be responsible for scanning a directory, and feeding the files to Playlist init(filePath:String) { self.filePath = filePath } func openFile (_ playlistFile:String) -> String? { do { let textURL = URL.init(fileURLWithPath: playlistFile) self.fileName = textURL.lastPathComponent let textString = try String.init(contentsOf: textURL, encoding: .utf8) return textString } catch let error { ConsoleIO.writeMessage(error.localizedDescription, to: .error) return nil } } func processPlaylist () { ConsoleIO.writeMessage("Scanning playlist file: \(self.filePath)") guard let playlistText = self.openFile(self.filePath) else { print ("ERROR: playlistText is empty") return } splitIntoTracks(pText: playlistText) } func splitIntoTracks (pText:String) { let trackStrings = pText.components(separatedBy: "#EXTINF:") for t in trackStrings { let newTrack = Track(trackTxt: t) if (newTrack.supportedType) { tracks.append(newTrack) } } print ("Found \(tracks.count) tracks") } func getPlaylistString () -> String { var outputString = "#EXTM3U\n" for t in tracks { outputString += t.toString() outputString += "\n" } return outputString } }
[ -1 ]
bdcbc916c672d76742eb382830dc4e419b986ff6
8ff9d6947db079e7684d44ccc6cdcdd7669ccb3c
/ColorSwitch/Scenes/GameScene.swift
50f847de0d40e5b018413e428fc84ed0927798e0
[]
no_license
veilvokay/ColorSwitch-SpriteKit
5a34418ff487e4f1f310427673383242e21add58
a738e275eab0a8a519c478494218d6518faa9ea7
refs/heads/main
2023-08-28T12:05:48.803678
2021-10-16T16:00:25
2021-10-16T16:00:25
417,876,453
0
0
null
null
null
null
UTF-8
Swift
false
false
6,167
swift
// // GameScene.swift // ColorSwitch // // Created by Roman Yakovliev on 13.10.2021. // import SpriteKit enum PlayColors { static let colors = [ UIColor(red: 231/255, green: 76/255, blue: 60/255, alpha: 1.0), UIColor(red: 241/255, green: 196/255, blue: 15/255, alpha: 1.0), UIColor(red: 46/255, green: 204/255, blue: 113/255, alpha: 1.0), UIColor(red: 52/255, green: 152/255, blue: 219/255, alpha: 1.0) ] } enum SwitchState: Int { case red, yellow, green, blue } class GameScene: SKScene { var colorSwitch: SKSpriteNode! var switchState: SwitchState = SwitchState.red var currentColorIndex: Int? var gravity: CGFloat = -2.5 var gravityUpdateLabel = SKLabelNode(text: "Gravity increased") var gravityUpdateBreakpoint = 2 let scoreLabel = SKLabelNode(text: "0") var score = 0 override func didMove(to view: SKView) { setupPhysics() layoutScene() } func setupPhysics() { physicsWorld.gravity = CGVector(dx: 0.0, dy: gravity) physicsWorld.contactDelegate = self } func layoutScene() { backgroundColor = UIColor(red: 44/255, green: 62/255, blue: 80/255, alpha: 1.0) gravityUpdateLabel.fontName = "AvenirNext-Bold" gravityUpdateLabel.fontSize = 40.0 gravityUpdateLabel.fontColor = UIColor(red: 214/255, green: 56/255, blue: 102/255, alpha: 1.0) gravityUpdateLabel.position = CGPoint(x: frame.midX, y: frame.midY + (scoreLabel.frame.size.height + gravityUpdateLabel.frame.size.height)) gravityUpdateLabel.zPosition = ZPositions.label gravityUpdateLabel.alpha = 0.0 addChild(gravityUpdateLabel) colorSwitch = SKSpriteNode(imageNamed: "ColorCircle") colorSwitch.size = CGSize(width: frame.size.width/3, height: frame.size.width/3) colorSwitch.position = CGPoint(x: frame.midX, y: frame.minY + colorSwitch.size.height) colorSwitch.zPosition = ZPositions.colorSwitch colorSwitch.physicsBody = SKPhysicsBody(circleOfRadius: colorSwitch.size.width/2) colorSwitch.physicsBody?.categoryBitMask = PhysicsCategories.switchCategory colorSwitch.physicsBody?.isDynamic = false addChild(colorSwitch) scoreLabel.fontName = "AvenirNext-Bold" scoreLabel.fontSize = 60.0 scoreLabel.fontColor = UIColor.white scoreLabel.position = CGPoint(x: frame.midX, y: frame.midY) scoreLabel.zPosition = ZPositions.label addChild(scoreLabel) spawnBall() } func updateScoreLabel() { scoreLabel.text = "\(score)" } func spawnBall() { currentColorIndex = Int(arc4random_uniform(UInt32(4))) let ball = SKSpriteNode(texture: SKTexture(imageNamed: "ball"), color: PlayColors.colors[currentColorIndex!], size: CGSize(width: 30.0, height: 30.0)) ball.colorBlendFactor = 1.0 ball.name = "Ball" ball.position = CGPoint(x: frame.midX, y: frame.maxY - colorSwitch.size.height) ball.zPosition = ZPositions.ball ball.physicsBody = SKPhysicsBody(circleOfRadius: ball.size.width/2) ball.physicsBody?.categoryBitMask = PhysicsCategories.ballCategory ball.physicsBody?.contactTestBitMask = PhysicsCategories.switchCategory ball.physicsBody?.collisionBitMask = PhysicsCategories.none addChild(ball) } func turnWheel() { if let newState = SwitchState(rawValue: switchState.rawValue + 1) { switchState = newState } else { switchState = .red } colorSwitch.run(SKAction.rotate(byAngle: .pi/2, duration: 0.25)) } func updateGravity() { let tempScore = score != 0 ? ceil(Float(score)/10) : 1 if tempScore == Float(gravityUpdateBreakpoint) { let fadeIn = SKAction.fadeAlpha(to: 1.0, duration: 0.3) let fadeOut = SKAction.fadeAlpha(to: 0.0, duration: 0.3) let scaleUp = SKAction.scale(to: 1.1, duration: 0.3) let scaleDown = SKAction.scale(to: 1.0, duration: 0.3) let sequence = SKAction.sequence([fadeIn, fadeOut]) let scaleSequence = SKAction.sequence([scaleUp, scaleDown]) gravityUpdateLabel.run(sequence) gravityUpdateLabel.run(scaleSequence) gravity -= 1 physicsWorld.gravity = CGVector(dx: 0.0, dy: gravity) gravityUpdateBreakpoint += 1 } } func gameOver() { UserDefaults.standard.set(score, forKey: "RecentScore") if score > UserDefaults.standard.integer(forKey: "Highscore") { UserDefaults.standard.set(score, forKey: "Highscore") } let menuScene = MenuScene(size: view!.bounds.size) view!.presentScene(menuScene) } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { turnWheel() } } extension GameScene: SKPhysicsContactDelegate { func didBegin(_ contact: SKPhysicsContact) { // contactMasks // 01 ball // 10 switch // adds up on contact // 11 result (10 + 01) let contactMask = contact.bodyA.categoryBitMask | contact.bodyB.categoryBitMask if contactMask == PhysicsCategories.ballCategory | PhysicsCategories.switchCategory { if let ball = contact.bodyA.node?.name == "Ball" ? contact.bodyA.node as? SKSpriteNode : contact.bodyB.node as? SKSpriteNode { if currentColorIndex == switchState.rawValue { run(SKAction.playSoundFileNamed("bling", waitForCompletion: false)) score += 1 updateScoreLabel() updateGravity() ball.run(SKAction.fadeOut(withDuration: 0.25)) { ball.removeFromParent() self.spawnBall() } } else { gameOver() } } } } }
[ -1 ]
fb3dfc4f729135034c70d0a51bb21687fe87470f
f6d17adac746cf7207dca245dc15aa54aa7cef06
/groupPractice2/Person.swift
6157926e0906493a2e738fd8ef5ecffa482b9607
[]
no_license
brmendez/F2iOSHW3
31d3ecc82e7e744bd0e9a051b23156f83d3968a8
4e3458ab50550ac0ba4d3bd21d0784c40b952503
refs/heads/master
2021-01-18T14:18:51.039871
2014-08-21T01:08:28
2014-08-21T01:08:28
null
0
0
null
null
null
null
UTF-8
Swift
false
false
485
swift
// // Person.swift // groupPractice2 // // Created by Brian Mendez on 8/17/14. // Copyright (c) 2014 Brian Mendez. All rights reserved. // import Foundation import UIKit class Person { var firstName : String var lastName : String var image : UIImage? init (fName: String, lName: String){ self.firstName = fName self.lastName = lName } func fullName() -> String { return self.firstName + " " + self.lastName } }
[ -1 ]
4ca41e285daad2a367fb488a141f547110cc86fd
96d768941e70b2c71802b67a219ab8021557e157
/DynamicFeaturesInSwift/DynamicFeaturesInSwift-Starter/DynamicFeaturesInSwift.playground/Pages/DogMirror.xcplaygroundpage/Contents.swift
6c9c2a2f7a9f43f67d913ef8d1382e8adfbdd848
[]
no_license
passt0r/SwiftDynamicFeatures
18d506fda24d329671ff7b2aac45e8ad7bd45b0a
9e5c2bbb2f03235b0a8578f789d7584b0e73811d
refs/heads/master
2020-03-27T11:56:50.391236
2018-08-29T23:34:00
2018-08-29T23:34:00
146,516,217
0
0
null
null
null
null
UTF-8
Swift
false
false
3,123
swift
/// Copyright (c) 2018 Razeware LLC /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, /// distribute, sublicense, create a derivative work, and/or sell copies of the /// Software in any work that is designed, intended, or marketed for pedagogical or /// instructional purposes related to programming, coding, application development, /// or information technology. Permission for such use, copying, modification, /// merger, publication, distribution, sublicensing, creation of derivative works, /// or sale is expressly withheld. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. import Foundation enum CustomerReviewStars { case one, two, three, four, five } class Dog { var name: String = randomName() // var age: Int = Int.random(in: 0 ..< 10) // Swift 4.2 var age: Int = 8 // Swift 4.2 class func randomName() -> String { let names = ["Abby", "Bernie", "Lassie", "Max", "Sandy"] return names.first! // return names.randomElement()! // Swift 4.2 } } class DogCatcherNet { let customerReviewStars: CustomerReviewStars let weightInPounds: Double // ☆ Add Optional called dog of type Dog here init(stars: CustomerReviewStars, weight: Double) { customerReviewStars = stars weightInPounds = weight } } let net = DogCatcherNet(stars: .two, weight: 2.6) debugPrint("Printing a net: \(net)") debugPrint("Printing a date: \(Date())") print() // Simple output customization for the DogCatcherNet type. // MARK: - CustomDebugStringConvertible // ☆ Add Conformance to CustomDebugStringConvertible for DogCatcherNet here dump(net) print() dump(Date()) print() // More advanced output customization for the type and its properties. // ☆ Create log function here //net.dog = Dog() // ☆ Uncomment assigning the dog // ☆ Log out the net and a Date object here // CustomReflectable empowers you to control what is output and // what text labels to associate with the displayed values. // MARK: - CustomReflectable // ☆ Add Conformance to CustomReflectable for DogCatcherNet here
[ -1 ]
c5292119b78077bb4533b999900f6f77cc338827
c2dbd31031ed187fd199fd971f8ce16ca6f570e6
/BMI Calculator/Controllers/ViewController.swift
9d4360a13fa2b188a9aec751341ac33482f6cce3
[]
no_license
HassanAfnan/BMICalculatorSwift
0d0aa2f49d938b41586e7f960296280e2f0df7c6
54e24fd3f6e5244696a371e66c208ace4b6d6712
refs/heads/main
2023-04-28T20:05:12.451155
2021-05-23T08:44:20
2021-05-23T08:44:20
370,001,898
3
0
null
null
null
null
UTF-8
Swift
false
false
1,692
swift
// // ViewController.swift // BMI Calculator // // Created by Angela Yu on 21/08/2019. // Copyright © 2019 Angela Yu. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var heightOutlet: UISlider! @IBOutlet weak var weightOutlet: UISlider! @IBOutlet weak var heightLabel: UILabel! @IBOutlet weak var weightLabel: UILabel! var bmi = CalculatorBrain() @IBAction func heightSlider(_ sender: UISlider) { print(String(format: "%.2f", sender.value)) let height:String = String(format: "%.2f",sender.value); heightLabel.text = "\(height) m" } @IBAction func weightSlider(_ sender: UISlider) { print(String(format: "%.0f", sender.value)) let weight:String = String(format: "%.0f", sender.value); weightLabel.text = "\(weight) Kg" } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } @IBAction func calculateBMI(_ sender: UIButton) { let height = heightOutlet.value; let weight = weightOutlet.value; bmi.calculateBMI(height: height,weight: weight) self.performSegue(withIdentifier: "goToResult",sender:self) } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "goToResult" { let destinationVC = segue.destination as! ResultViewController destinationVC.bmiValue = bmi.getBMI() destinationVC.advice = bmi.getAdvice() destinationVC.color = bmi.getColor() } } }
[ 249240, 268771 ]
995c9e6721487145e8323c27ae914c32a39f8362
ad42f362e051d0d45be6ed9fc56073851c12b9ca
/ParseChat/ChatMessage.swift
be1cc6b25dc0a78b2e9def58576baac47ce484fe
[ "Apache-2.0" ]
permissive
dakin4/ParseChat
76307b711618ef471cb1b6d002401af6bf32e090
fd1a9daf718a7d480eeb9d0142e01ab2070c7b01
refs/heads/master
2021-04-27T00:08:17.100442
2018-03-05T17:41:03
2018-03-05T17:41:03
123,755,093
0
0
null
null
null
null
UTF-8
Swift
false
false
639
swift
// // ChatMessage.swift // ParseChat // // Created by David King on 3/3/18. // Copyright © 2018 David King. All rights reserved. // import Foundation import Parse class ChatMessage: PFObject, PFSubclassing{ @NSManaged var text: String @NSManaged var user: PFUser class func parseClassName () -> String { return "Message" } class func send (mess: String) -> Void { let chat = ChatMessage () chat.user = PFUser.current()! chat.text = mess chat.saveInBackground() print("sent") } }
[ -1 ]
408154e70f8bf47cd232183bf909249329c90f8c
3d144a23e67c839a4df1c073c6a2c842508f16b2
/test/Serialization/default-witness-table-deserialization.swift
bf18e827a4971a94adb277c59d3255a2c57df0b8
[ "Apache-2.0", "Swift-exception" ]
permissive
apple/swift
c2724e388959f6623cf6e4ad6dc1cdd875fd0592
98ada1b200a43d090311b72eb45fe8ecebc97f81
refs/heads/main
2023-08-16T10:48:25.985330
2023-08-16T09:00:42
2023-08-16T09:00:42
44,838,949
78,897
15,074
Apache-2.0
2023-09-14T21:19:23
2015-10-23T21:15:07
C++
UTF-8
Swift
false
false
345
swift
// RUN: %target-swift-frontend %s -module-name Test -emit-module -emit-module-path - -o /dev/null | %target-sil-opt -enable-sil-verify-all -module-name="Test" | %FileCheck %s // Check that default witness tables are properly deserialized. // rdar://problem/29173229 // CHECK: import Swift public class MyType { } public protocol MyProto { }
[ 70496, 81408 ]
fcd563c5e7d8ad1931fd4179fcece818b58c40f5
9e38580c3598faf31533ea34213f2242260809e9
/Search/Source/Manager/RecentQueryManager.swift
27f587da88cc83775d66b70e151334a974d0f05e
[]
no_license
GwangBeomPark/Search
0aabcdf39da75cea7b32630eb7c522eb28f9516d
0a43e30d5a90611fcdabeb126430877e7f89caaa
refs/heads/master
2020-05-04T16:17:06.892223
2019-04-03T11:21:42
2019-04-03T11:21:42
179,274,238
0
0
null
null
null
null
UTF-8
Swift
false
false
1,014
swift
// // RecentQueryManager.swift // Search // // Created by gwangbeom on 03/04/2019. // Copyright © 2019 Search. All rights reserved. // import Foundation extension Notification.Name { static let DidChangeRecentQueries = Notification.Name("DidChangeRecentQueries") } struct RecentQueryManager { static func add(query: String) { var queries = self.queries() if let index = queries.firstIndex(of: query) { queries.remove(at: index) } else if queries.count >= maxCount { queries.removeFirst() } queries.append(query) UserDefaults.standard.set(queries, forKey: recentQueryKey) NotificationCenter.default.post(name: Notification.Name.DidChangeRecentQueries, object: nil) } static func queries() -> [String] { return UserDefaults.standard.value(forKey: recentQueryKey) as? [String] ?? [] } private static let maxCount = 5 private static let recentQueryKey = "recentQueryKey" }
[ -1 ]
15e751b88f5146bbeb4b73384077d9bb72d63113
a4ee6a2d115ab3ef2ef1b4ad201b5f5a08f324d5
/AppDelegate.swift
e06ccc8d9ed5306a5ecebe38b26259ee4c608244
[]
no_license
karlcridland/Workout_iOS
64deed851d640ebeeba9837eec6900e4fb81c5e2
89b84a6325fdc552ba187c8cf1357b3a30b35f1e
refs/heads/main
2023-04-29T11:37:33.053432
2021-02-18T22:45:25
2021-02-18T22:45:25
340,196,960
0
0
null
null
null
null
UTF-8
Swift
false
false
1,354
swift
// // AppDelegate.swift // work it out // // Created by Karl Cridland on 07/01/2021. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 254030, 368727, 368735, 180320, 376931, 368752, 417924, 262283, 377012, 180416, 377036, 180431, 377046, 418007, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 385280, 262404, 180490, 164106, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 262566, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 197159, 377383, 352821, 197177, 418363, 188987, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 328378, 164538, 328386, 352968, 344776, 418507, 352971, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 361288, 336711, 328522, 336714, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 345043, 386003, 386011, 386018, 386022, 435187, 328714, 361489, 386069, 336921, 386073, 336925, 345118, 377887, 345133, 345138, 386101, 361536, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 361598, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 345267, 386258, 328924, 66782, 222437, 328941, 386285, 386291, 345376, 353570, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 181673, 181681, 337329, 181684, 361917, 181696, 337349, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 345701, 394853, 222830, 370297, 403070, 353919, 403075, 198280, 345736, 403091, 345749, 419483, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 419517, 337599, 419527, 419530, 419535, 272081, 419542, 394966, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 370415, 337659, 337668, 362247, 395021, 362255, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 345930, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 354150, 354156, 345967, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 329885, 346272, 362660, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 379134, 411903, 411916, 379152, 395538, 387349, 338199, 387352, 182558, 248111, 362822, 436555, 190796, 379233, 354673, 248186, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 256472, 338403, 248308, 199164, 330252, 420376, 354855, 10828, 199249, 174695, 248425, 191084, 338543, 191092, 346742, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 347176, 158761, 199728, 330800, 396336, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 412764, 339036, 257120, 265320, 248951, 420984, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330958, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 347437, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249227, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 388542, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 249308, 339420, 339424, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 175635, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 126596, 421508, 224904, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 257801, 339721, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 225058, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 323402, 257868, 257871, 225103, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 274280, 257896, 257901, 225137, 257908, 225141, 257912, 257916, 225148, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 266294, 266297, 421960, 356439, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 397571, 389380, 61722, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 348488, 332106, 332117, 348502, 250199, 250202, 250210, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 373148, 389550, 324030, 266687, 160234, 127471, 340472, 381436, 324094, 266754, 324111, 340500, 381481, 356907, 324142, 356916, 324149, 324155, 348733, 324164, 348743, 381512, 324173, 324176, 389723, 332380, 373343, 381545, 340627, 373398, 184982, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 152370, 348978, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 349040, 340849, 430965, 381813, 324472, 398201, 340858, 324475, 430972, 340861, 324478, 119674, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 324524, 324533, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 381946, 349180, 439294, 431106, 357410, 250914, 185380, 357418, 209979, 341071, 349267, 250967, 210010, 341091, 210025, 210030, 210036, 349308, 349311, 160895, 152703, 210052, 349319, 210055, 218247, 210067, 251044, 185511, 210107, 332997, 210127, 333009, 210131, 333014, 210143, 218354, 218360, 251128, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 415033, 251210, 210260, 365911, 259421, 365921, 333154, 333162, 234866, 390516, 333175, 357755, 374160, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 366172, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 153227, 333498, 210631, 333511, 259788, 358099, 153302, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 268041, 210698, 366348, 210706, 399128, 210719, 358191, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 341851, 350045, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 358371, 350189, 350193, 350202, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 374902, 432271, 334011, 260289, 260298, 350410, 350416, 350422, 211160, 350425, 268507, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 325891, 350467, 350475, 375053, 268559, 350480, 432405, 350486, 325914, 350490, 325917, 350493, 325919, 350498, 194852, 350504, 358700, 350509, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 375216, 334262, 334275, 326084, 358856, 334304, 334311, 375277, 334321, 350723, 391690, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 383536, 358961, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 391894, 154328, 416473, 64230, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 326460, 375612, 260924, 244540, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 384107, 367723, 187502, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 367800, 384191, 351423, 384198, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 384249, 343306, 261389, 359694, 384269, 253200, 261393, 384275, 245020, 245029, 171302, 351534, 376110, 245040, 384314, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 343398, 367980, 425328, 343409, 253303, 154999, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 327084, 359865, 384443, 146876, 327107, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 368122, 409091, 359947, 359955, 359983, 343630, 179802, 155239, 327275, 138864, 155254, 155273, 368288, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 245475, 155371, 245483, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 417595, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 262005, 147317, 425845, 262008, 262011, 155516, 155521, 155525, 360326, 376714, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 384977, 393169, 155611, 155619, 253923, 155621, 253926, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
675fe355afb44ab6aa916155b8f00e1aaa745fd9
d532fe71b51cf3bebe6fd7905eaa47232e8a6b2c
/CheckLists/CheckLists/Model/DataModel.swift
5a7dccd1129931e0d7bb30a65a768d0025349b9d
[]
no_license
Wismin-Effendi/iOS_Apprentice_NoStoryboard
91908a8a248f7b8718679c0a69bef31f876b137e
06b9c4f02f6e26532f4d5befac317cdf24ae4a60
refs/heads/master
2021-07-25T06:50:04.107330
2017-11-05T15:40:21
2017-11-05T15:40:21
109,426,556
0
0
null
null
null
null
UTF-8
Swift
false
false
1,413
swift
// // DataModel.swift // CheckLists // // Created by Wismin Effendi on 11/5/17. // Copyright © 2017 Wismin Effendi. All rights reserved. // import Foundation class DataModel { var lists = [Checklist]() init() { loadChecklists() print("Document directory: \(documentsDirectory())") } func documentsDirectory() -> URL { let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) return paths[0] } func dataFilePath() -> URL { return documentsDirectory().appendingPathComponent("Checklists.plist") } func saveChecklists() { print("Calling save data...") let encoder = PropertyListEncoder() do { let data = try encoder.encode(lists) try data.write(to: dataFilePath(), options: Data.WritingOptions.atomic) } catch { print("Error encoding item array!") } } func loadChecklists() { print("Loading data...") let path = dataFilePath() if let data = try? Data(contentsOf: path) { let decoder = PropertyListDecoder() do { lists = try decoder.decode([Checklist].self, from: data) } catch { print("Error decoding item array") } } } }
[ -1 ]
e5c83e2f39701f3589972ddc34e85bdd2c537573
f6389d10c858c4e29a2775c8f577c3e75475a302
/core data fun/core data fun/Author+CoreDataClass.swift
0bf2cc51319d68882f039f0c949c4b554e98606f
[]
no_license
Mah2018/me
42543dd3e9c26b6c4c0e456b5d64a566d60638b6
b216e767d4836f92a4cce4eeeb54db080d9862f7
refs/heads/master
2020-03-07T01:48:13.810738
2018-03-28T20:29:23
2018-03-28T20:29:23
127,193,352
0
0
null
null
null
null
UTF-8
Swift
false
false
238
swift
// // Author+CoreDataClass.swift // core data fun // // Created by mahmoud6 on 3/3/18. // Copyright © 2018 mahmoud6. All rights reserved. // import Foundation import CoreData @objc(Author) public class Author: NSManagedObject { }
[ -1 ]
e666bf9ba9fdd42363c95498a89b83e925f02a2b
c1bae500c0f9267e1ecd37b86debaac1aa852d07
/RxFlowTest/SceneDelegate.swift
0229c2c89877b4da3bddab519e1c4e8815a90dae
[]
no_license
kimxwan0319/RxFlowTest
538232b5e9c497baba6c96a27314f83a9d710aa2
6d14ead2f43f9ca48c4115cbe2b68623dd478d6b
refs/heads/master
2023-08-14T14:59:58.418397
2021-10-02T13:39:27
2021-10-02T13:39:27
412,493,152
0
0
null
null
null
null
UTF-8
Swift
false
false
2,275
swift
// // SceneDelegate.swift // RxFlowTest // // Created by 김수완 on 2021/10/01. // import UIKit import RxFlow import RxSwift class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? var coordinator = FlowCoordinator() var disposeBag: DisposeBag = DisposeBag() func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as? UIWindowScene) else { return } let window = UIWindow(windowScene: windowScene) self.window = window let appFlow = AppFlow(window: window) self.coordinator.coordinate(flow: appFlow, with: AppStepper()) window.makeKeyAndVisible() } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 372354, 415362, 380433, 332455, 425639, 347178, 214060, 262702, 120129, 214594, 341072, 355029, 263509, 358235, 383323, 366173, 180322, 386023, 375401, 334322, 375027 ]
4cdcc39ea7809c945899650eab068bfe2f749d3d
19c3ad10e0ccb15dbddc503603aae3275c09326f
/Day4/DatePicker/Quiz07/SceneDelegate.swift
d7dbca3e846495fb51026ffb7ae09831749fccf4
[]
no_license
ltsme/Swift_lec
f643bd7ee17e5b1ea461e8864769b249a4e21710
dc94cd20cf58f581b9c6b5ac527172bb5a6ca24a
refs/heads/main
2023-07-08T21:56:23.283296
2021-08-11T13:21:01
2021-08-11T13:21:01
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,283
swift
// // SceneDelegate.swift // Quiz07 // // Created by Biso on 2021/07/19. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let _ = (scene as? UIWindowScene) else { return } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 393221, 163849, 393228, 393231, 393251, 352294, 344103, 393260, 393269, 213049, 376890, 385082, 393277, 376906, 327757, 254032, 368728, 180314, 254045, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 377047, 418008, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 385281, 336129, 262405, 180491, 336140, 164107, 262417, 368913, 262423, 377118, 377121, 262437, 254253, 336181, 262455, 393539, 262473, 344404, 213333, 418135, 270687, 262497, 418145, 262501, 213354, 246124, 262508, 262512, 213374, 385420, 262551, 262553, 385441, 385444, 262567, 385452, 262574, 393649, 385460, 262587, 344512, 262593, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 164362, 328207, 410129, 393748, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 385610, 270922, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 385671, 148106, 377485, 352919, 98969, 344745, 361130, 336556, 385714, 434868, 164535, 336568, 164539, 328379, 328387, 352969, 418508, 385743, 385749, 139998, 189154, 369382, 361196, 418555, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 262943, 369439, 418591, 418594, 336676, 418600, 418606, 369464, 361274, 328516, 336709, 328520, 336712, 361289, 328523, 336715, 361300, 213848, 426842, 361307, 197469, 361310, 254813, 361318, 344936, 361323, 361335, 328574, 369544, 361361, 222129, 345036, 115661, 386004, 345046, 386012, 386019, 386023, 328690, 435188, 328703, 328710, 418822, 377867, 328715, 361490, 386070, 271382, 336922, 345119, 377888, 214060, 345134, 345139, 361525, 386102, 361537, 377931, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 386168, 361594, 410746, 214150, 345224, 386187, 345247, 361645, 345268, 402615, 361657, 337093, 402636, 328925, 165086, 165092, 328933, 222438, 328942, 386286, 386292, 206084, 328967, 345377, 345380, 353572, 345383, 263464, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 271731, 378232, 337278, 271746, 181639, 353674, 181644, 361869, 181650, 181655, 230810, 181671, 181674, 181679, 181682, 337330, 181687, 370105, 181691, 181697, 361922, 337350, 181704, 337366, 271841, 329192, 361961, 329195, 116211, 337399, 402943, 337416, 329227, 419341, 419345, 329234, 419351, 345626, 419357, 345631, 419360, 370208, 394787, 419363, 370214, 419369, 394796, 419377, 419386, 206397, 214594, 419401, 353868, 419404, 173648, 419408, 214611, 419412, 403040, 345702, 222831, 370298, 353920, 403073, 403076, 345737, 198282, 403085, 403092, 345750, 419484, 345758, 345763, 419492, 345766, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 337601, 403139, 337607, 419528, 419531, 272083, 394967, 419543, 419545, 345819, 419548, 419551, 345829, 419560, 337643, 419564, 337647, 370416, 337671, 362249, 362252, 395022, 362256, 321300, 345888, 362274, 378664, 354107, 345916, 354112, 370504, 329545, 345932, 370510, 354132, 247639, 337751, 370520, 313181, 182110, 354143, 354157, 345965, 345968, 345971, 345975, 403321, 1914, 354173, 395148, 247692, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 346059, 247760, 346064, 346069, 419810, 329699, 354275, 190440, 354314, 346140, 436290, 395340, 378956, 436307, 338005, 100454, 329833, 329853, 329857, 329868, 411806, 329886, 346273, 362661, 100525, 387250, 379067, 387261, 256193, 395467, 346317, 411862, 256214, 411865, 411869, 411874, 379108, 411877, 387303, 346344, 395496, 338154, 387307, 346350, 338161, 436474, 321787, 379135, 411905, 411917, 379154, 395539, 387350, 387353, 338201, 182559, 338212, 395567, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 321911, 420237, 379279, 272787, 354728, 338353, 338382, 272849, 248279, 256474, 182755, 338404, 338411, 330225, 248309, 248332, 330254, 199189, 420377, 330268, 191012, 330320, 199250, 191069, 346722, 248427, 191085, 338544, 191093, 346743, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 273109, 355029, 264919, 256735, 338661, 264942, 363252, 338680, 264965, 338701, 256787, 363294, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 355151, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 355185, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 347106, 437219, 257009, 265208, 265215, 199681, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 248952, 420985, 330886, 330890, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 126148, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 388348, 339199, 396552, 175376, 175397, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 126279, 437576, 437584, 331089, 437588, 331094, 396634, 175451, 437596, 429408, 175458, 175461, 175464, 265581, 331124, 175478, 249210, 175484, 175487, 249215, 175491, 249219, 249225, 249228, 249235, 175514, 175517, 396703, 396706, 175523, 355749, 396723, 388543, 380353, 216518, 372166, 380364, 339406, 372177, 339414, 249303, 413143, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 208399, 380433, 175637, 405017, 134689, 339504, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 224885, 224888, 224891, 224895, 372354, 126597, 421509, 224905, 11919, 224911, 224914, 126611, 224917, 224920, 126618, 208539, 224923, 224927, 224930, 224933, 257705, 224939, 224943, 257713, 224949, 257717, 257721, 224954, 257725, 224960, 257733, 224966, 224970, 257740, 224976, 257745, 339664, 257748, 224982, 257752, 224987, 257762, 224996, 225000, 225013, 257788, 225021, 339711, 257791, 225027, 257796, 339722, 257802, 257805, 225039, 257808, 249617, 225044, 167701, 372500, 257815, 225049, 257820, 225054, 184096, 397089, 257825, 225059, 339748, 225068, 257837, 413485, 225071, 225074, 257843, 225077, 257846, 225080, 397113, 225083, 397116, 257853, 225088, 225094, 225097, 257869, 257872, 225105, 397140, 225109, 225113, 257881, 257884, 257887, 225120, 257891, 413539, 225128, 257897, 339818, 225138, 339827, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 380919, 393215, 372739, 405534, 266295, 266298, 217158, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 250012, 225439, 135328, 192674, 225442, 438434, 225445, 438438, 225448, 438441, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 430275, 389322, 225485, 225488, 225491, 266454, 225494, 225497, 225500, 225503, 225506, 356580, 225511, 217319, 225515, 225519, 381177, 397572, 389381, 356638, 356641, 356644, 356647, 266537, 389417, 356650, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 250201, 250203, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 332162, 389507, 348548, 356741, 250239, 332175, 160152, 373146, 340380, 373149, 70048, 356783, 373169, 266688, 324032, 201158, 340452, 127473, 217590, 340473, 324095, 324100, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324150, 324156, 168509, 348734, 324161, 324165, 356935, 348745, 381513, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 119432, 340628, 184983, 373399, 258723, 332455, 332460, 389806, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 373499, 348926, 389927, 348979, 152371, 340792, 398141, 357202, 389971, 357208, 389979, 430940, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 381815, 430967, 324473, 398202, 119675, 340859, 324476, 430973, 324479, 340863, 324482, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 398246, 373672, 324525, 5040, 111539, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 340942, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 349173, 381947, 201724, 349181, 431100, 431107, 349203, 209944, 209948, 250915, 250917, 169002, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 431180, 209996, 341072, 349268, 177238, 250968, 210011, 373853, 341094, 210026, 210028, 210032, 349296, 210037, 210042, 210045, 349309, 152704, 349313, 160896, 210053, 210056, 349320, 259217, 373905, 210068, 210072, 210078, 210081, 210085, 210089, 210096, 210100, 324792, 210108, 357571, 210116, 210128, 210132, 333016, 210139, 210144, 218355, 218361, 275709, 128254, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 210261, 365912, 259423, 374113, 251236, 374118, 333164, 234867, 390518, 357756, 374161, 112021, 349591, 357793, 333222, 259516, 415168, 366035, 415187, 366039, 415192, 415194, 415197, 415200, 333285, 415208, 366057, 366064, 415217, 415225, 423424, 415258, 415264, 366118, 415271, 382503, 349739, 144940, 415279, 415282, 415286, 210488, 415291, 415295, 333396, 333400, 366173, 423529, 423533, 210547, 415354, 333440, 267910, 267929, 333512, 259789, 366301, 333535, 153311, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333595, 210720, 366384, 358192, 210740, 366388, 358201, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 268144, 358256, 358260, 341877, 399222, 325494, 333690, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 382898, 350153, 358348, 333777, 219094, 399318, 358372, 350190, 350194, 333819, 350204, 350207, 325633, 325637, 350214, 268299, 333838, 350225, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350257, 350260, 350272, 243782, 350281, 350286, 374865, 342113, 252021, 342134, 374904, 268435, 333998, 334012, 260299, 350411, 350417, 350423, 211161, 350426, 350449, 375027, 358645, 350459, 350462, 350465, 350469, 268553, 350477, 268560, 350481, 432406, 350487, 325915, 350491, 325918, 350494, 325920, 350500, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 366991, 334224, 268702, 342431, 375209, 375220, 334263, 326087, 358857, 195041, 334312, 104940, 375279, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 358973, 252483, 219719, 399957, 334425, 326240, 375401, 334466, 334469, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 334530, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 342769, 203508, 375541, 342777, 391938, 391949, 375569, 326417, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 260925, 375616, 326463, 326468, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 433001, 400238, 326511, 211826, 211832, 392061, 351102, 359296, 252801, 260993, 351105, 400260, 211846, 342921, 342931, 252823, 400279, 392092, 400286, 252838, 359335, 211885, 400307, 351169, 359362, 351172, 170950, 187335, 326599, 359367, 359383, 359389, 383968, 343018, 359411, 261109, 261112, 244728, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 261166, 359471, 375868, 343132, 384099, 384102, 384108, 367724, 187503, 343155, 384115, 212095, 384136, 384140, 384144, 351382, 384152, 384158, 384161, 351399, 384169, 367795, 244917, 384182, 367801, 384189, 384192, 351424, 343232, 367817, 244938, 384202, 253132, 326858, 384209, 146644, 351450, 384225, 359650, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 359695, 261391, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 376111, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 343453, 245152, 245155, 155045, 245158, 40358, 245163, 114093, 327090, 343478, 359867, 384444, 146878, 327108, 327112, 384457, 359887, 359891, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 359948, 359951, 245295, 359984, 400977, 400982, 179803, 155241, 245358, 155255, 155274, 368289, 245410, 425639, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 384831, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 155488, 376672, 155492, 327532, 261997, 376686, 262000, 262003, 425846, 262006, 147319, 262009, 327542, 262012, 155517, 155523, 155526, 360327, 376715, 155532, 262028, 262031, 262034, 262037, 262040, 262043, 155550, 253854, 262046, 262049, 262052, 327590, 155560, 155563, 155566, 327613, 393152, 311244, 393170, 155604, 155620, 253924, 155622, 253927, 327655, 360432, 393204, 360439, 253944, 393209, 155647 ]
f4c30015ce7441821f320612e65746a2327e89fb
52bd7eff114e0c6fd545a902821d211f1a1ab42f
/Cool-SwiftUI/Basics/PolygonSidesAnimationView.swift
0eee61f42d01f45f28f411dfbad1e8dae97c62eb
[ "MIT" ]
permissive
AndreaMiotto/Cool-SwiftUI
d3d27f1b1ddefd6722ab489b68d55eaffe75e230
7a33960e7a4b35a47a7229957af16fa391a50e24
refs/heads/master
2022-04-24T04:43:20.829674
2020-04-28T10:11:48
2020-04-28T10:11:48
258,946,952
2
0
null
2020-04-26T05:28:44
2020-04-26T05:25:54
Swift
UTF-8
Swift
false
false
3,225
swift
// // PolygonSidesAnimationView.swift // Cool-SwiftUI // // Created by Andrea Miotto on 27/4/20. // Copyright © 2020 Andrea Miotto. All rights reserved. // import SwiftUI struct PolygonSidesAnimationView: View { @State private var sides: Double = 4 @State private var scale: Double = 1.0 var body: some View { VStack { PolygonShape(sides: sides, scale: scale) .stroke(Color.pink, lineWidth: (sides < 3) ? 10 : ( sides < 7 ? 5 : 2)) .padding(20) .animation(.easeInOut(duration: 3.0)) .layoutPriority(1) Text("\(Int(sides)) sides, \(String(format: "%.2f", scale as Double)) scale") HStack(spacing: 20) { Text("\(Int(sides)) sides") Slider(value: $sides, in: 0...30) } HStack(spacing: 20) { Text("\(String(format: "%.2f", scale as Double)) scale") Slider(value: $scale, in: 0...1.6) } HStack(spacing: 20) { Spacer() Button(action: { self.sides = Double.random(in: 1...30) self.scale = Double.random(in: 0...1.6) }, label: { Text("Random") }) Spacer() } } .padding() .navigationBarTitle("Polygon Shapes") } } struct PolygonShape: Shape { var sides: Double var scale: Double var animatableData: AnimatablePair<Double, Double> { get { AnimatablePair(sides, scale) } set { sides = newValue.first scale = newValue.second } } func path(in rect: CGRect) -> Path { // hypotenuse let h = Double(min(rect.size.width, rect.size.height)) / 2.0 * scale // center let c = CGPoint(x: rect.size.width / 2.0, y: rect.size.height / 2.0) var path = Path() let extra: Int = sides != Double(Int(sides)) ? 1 : 0 var vertex: [CGPoint] = [] for i in 0..<Int(sides) + extra { let angle = (Double(i) * (360.0 / sides)) * (Double.pi / 180) // Calculate vertex let pt = CGPoint(x: c.x + CGFloat(cos(angle) * h), y: c.y + CGFloat(sin(angle) * h)) vertex.append(pt) if i == 0 { path.move(to: pt) // move to first vertex } else { path.addLine(to: pt) // draw line to next vertex } } path.closeSubpath() // Draw vertex-to-vertex lines drawVertexLines(path: &path, vertex: vertex, n: 0) return path } func drawVertexLines(path: inout Path, vertex: [CGPoint], n: Int) { if (vertex.count - n) < 3 { return } for i in (n+2)..<min(n + (vertex.count-1), vertex.count) { path.move(to: vertex[n]) path.addLine(to: vertex[i]) } drawVertexLines(path: &path, vertex: vertex, n: n+1) } } struct PolygonSidesAnimationView_Previews: PreviewProvider { static var previews: some View { NavigationView { PolygonSidesAnimationView() } } }
[ -1 ]
c738f2177377a2c2627bbc82be02ccb8cae049bc
118a15c77d908ce54b895b487c694b9345c2b222
/Blackhole/Classes/Core/Utils/NSFIleManager+CacheFileUrl.swift
a8b7ecf3bfa730509e75115e76bcbd5136c2e6dc
[ "MIT" ]
permissive
GirAppe/Blackhole
6ab615f0b3578583b9262a58edc01a0af052b29b
d8368e45fafac3e726ccfc8abea97189b35e3b16
refs/heads/master
2021-05-03T20:59:00.395637
2017-01-08T17:18:43
2017-01-08T17:18:43
71,461,340
0
0
null
null
null
null
UTF-8
Swift
false
false
1,244
swift
// // NSFIleManager+CacheFileUrl.swift // GolfKeeper // // Created by Andrzej Michnia on 21/08/16. // Copyright © 2016 yeslogo. All rights reserved. // import Foundation // MARK: - FileManager - cache file name generation extension FileManager { /** Returns temporary url that can be used to store temporary cached file. - parameter fileType: file extensions (defaul is ".temp") - returns: File url in Cache directory, or nil */ public class func cacheTemporaryFileUrl(_ fileType: String = ".temp") -> URL? { return FileManager.default.cacheTemporaryFileUrl(fileType) } /** Returns temporary url that can be used to store temporary cached file. - parameter fileType: file extensions (defaul is ".temp") - returns: File url in Cache directory, or nil */ public func cacheTemporaryFileUrl(_ fileType: String = ".temp") -> URL? { let urls = self.urls(for: .cachesDirectory, in: .userDomainMask) guard let dir = urls.first else { return nil } let filename = UUID().uuidString + "\(fileType)" return URL(fileURLWithPath: filename, relativeTo: dir) } }
[ -1 ]
618200ce10d95ccfcb77bc009bc4cd1735061e32
27ef27b69460235de592847daf366b6000e7a20b
/millionaire/millionaire/Records/Record.swift
2e9f5cf48ddba615544080606177d0fa368de239
[]
no_license
galishanova/MillionaireGame
a39be2aef6ddf239a9aa0dacab4defe0a12e9b4a
4f275d3cd5237f5a12613b36ec243f66f4490956
refs/heads/master
2023-06-24T14:20:01.105181
2021-07-22T16:45:35
2021-07-22T16:45:35
388,378,403
0
0
null
null
null
null
UTF-8
Swift
false
false
204
swift
// // Record.swift // millionaire // // Created by Regina Galishanova on 23.05.2021. // import Foundation struct Record: Codable { let date: Date let score: Int let questionsCount: Int }
[ -1 ]
18473e8507ebcf5ef18d84e0f1648a1b3faab9c0
4aaa0086442d232337dfa7ca5108b94ea0027b70
/EmojiArt/EmojiArt/EmojiArtDocumentView.swift
dd8310ecf39d165ca113328fae960ec46c63058c
[ "MIT" ]
permissive
luckydoglou/ios-development-stanford-cs139p
bfbbcdfbfb7538915fdba3a5186736af66dbbdfa
22fceb35d6a84b21c2918b7112beed74aca17622
refs/heads/master
2023-02-18T16:37:17.989682
2021-01-18T17:38:59
2021-01-18T17:38:59
284,543,596
3
0
null
null
null
null
UTF-8
Swift
false
false
5,143
swift
// // ContentView.swift // EmojiArt // // Created by Lor Worwag on 9/10/20. // Copyright © 2020 Lor Worwag. All rights reserved. // import SwiftUI struct EmojiArtDocumentView: View { @ObservedObject var document: EmojiArtDocument var body: some View { VStack { ScrollView(.horizontal) { HStack { ForEach(EmojiArtDocument.palette.map{ String($0) }, id: \.self) { emoji in Text(emoji) .font(Font.system(size: self.defaultEmojiSize)) .onDrag { NSItemProvider(object: emoji as NSString) } } } } .padding(.horizontal) GeometryReader { geometry in ZStack { Color.white.overlay( OptionalImage(uiImage: self.document.backgroundImage) .scaleEffect(self.zoomScale) .offset(self.panOffset) ) .gesture(self.doubleTapToZoom(in: geometry.size)) ForEach(self.document.emojis) { emoji in Text(emoji.text) .font(animatableWithSize: emoji.fontSize * self.zoomScale) .position(self.position(for: emoji, in: geometry.size)) } } .clipped() .gesture(self.panGesture()) .gesture(self.zoomGesture()) .edgesIgnoringSafeArea([.horizontal, .bottom]) .onDrop(of: ["public.image", "public.text"], isTargeted: nil) { providers, location in var location = geometry.convert(location, from: .global) location = CGPoint(x: location.x - geometry.size.width/2, y: location.y - geometry.size.height/2) location = CGPoint(x: location.x - self.panOffset.width, y: location.y - self.panOffset.height) location = CGPoint(x: location.x / self.zoomScale, y: location.y / self.zoomScale) return self.drop(providers: providers, at: location) } } } } @State private var steadyStateZoomScale: CGFloat = 1.0 @GestureState private var gestureZoomScale: CGFloat = 1.0 private var zoomScale: CGFloat { steadyStateZoomScale * gestureZoomScale } private func zoomGesture() -> some Gesture { MagnificationGesture() .updating($gestureZoomScale) { latestGestureScale, gestureZoomScale, transaction in gestureZoomScale = latestGestureScale } .onEnded { finalGestureZoomScale in self.steadyStateZoomScale *= finalGestureZoomScale } } @State private var steadyStatePanOffset: CGSize = .zero @GestureState private var gesturePanOffset: CGSize = .zero private var panOffset: CGSize { (steadyStatePanOffset + gesturePanOffset) * zoomScale } private func panGesture() -> some Gesture { DragGesture() .updating($gesturePanOffset) { latestDragGestureValue, gesturePanOffset, transaction in gesturePanOffset = latestDragGestureValue.translation / self.zoomScale } .onEnded { finalDragGestrueValue in self.steadyStatePanOffset = self.steadyStatePanOffset + (finalDragGestrueValue.translation / self.zoomScale) } } private func doubleTapToZoom(in size: CGSize) -> some Gesture { TapGesture(count: 2) .onEnded { withAnimation { self.zoomToFit(self.document.backgroundImage, in: size) } } } private func zoomToFit(_ image: UIImage?, in size: CGSize) { if let image = image, image.size.width > 0, image.size.height > 0 { let hZoom = size.width / image.size.width let vZoom = size.height / image.size.height self.steadyStatePanOffset = .zero self.steadyStateZoomScale = min(hZoom, vZoom) } } private func position(for emoji: EmojiArt.Emoji, in size: CGSize) -> CGPoint { var location = emoji.location location = CGPoint(x: location.x * zoomScale, y: location.y * zoomScale) location = CGPoint(x: location.x + size.width/2, y: location.y + size.height/2) location = CGPoint(x: location.x + panOffset.width, y: location.y + panOffset.height) return location } private func drop(providers: [NSItemProvider], at location: CGPoint) -> Bool { var found = providers.loadFirstObject(ofType: URL.self) { url in self.document.setBackgroundURL(url) } if !found { found = providers.loadObjects(ofType: String.self) { string in self.document.addEmoji(string, at: location, size: self.defaultEmojiSize) } } return found } private let defaultEmojiSize: CGFloat = 40 }
[ 437564 ]
178c9872dbccdc4060787fcc4322268f9c50d1ba
838ef78137e95f0e93eb56893331bb66761eb31a
/check_avs.swift
d2b6c71b906326062b01ad5b9824933a8db63936
[]
no_license
AMC-Safemed/avs-number
8271b5898afc964a0561b06cd8af48eb986da4b3
3662a65455ce4188f8a564c0b72d21b5f7750abd
refs/heads/master
2021-06-19T01:51:30.368921
2017-06-22T10:00:07
2017-06-22T10:00:07
null
0
0
null
null
null
null
UTF-8
Swift
false
false
796
swift
import Cocoa func canonize (avs_number: String) -> String { return avs_number.replacingOccurrences(of: ".", with: "") } func is_valid_avs_number (avs_number: String) -> Bool { let canonized = canonize(avs_number: avs_number) var total = 0 var nb = 0 for (index, char) in canonized.characters.enumerated() { nb = Int(String(char))! if index % 2 != 0 { nb *= 3 } total += nb } let actual_key = nb var expected_key = 0 total -= actual_key if total % 10 != 0 { let round_ten_up = (total/10)*10 + 10 expected_key = round_ten_up - total } return expected_key == actual_key } let example = "756.1234.5678.97" let is_valid = is_valid_avs_number(avs_number:example)
[ -1 ]
4d6f6e7619d4144e9bb50c2f589c109f9dd5a388
ba86a43728121da025b1d6b1a8c1fe43881093e9
/DiaryPhotoDemo/Model/ImageInfor.swift
9cb2530d172bb3d0d56bcb8f41a607114c3707c7
[]
no_license
kiennguyendl/DiaryPhotoDemo
b75e78392c98ed4736963afe5cd423e842079d35
01832777577f8389b1d4ffee205d547131aaf16f
refs/heads/master
2021-05-14T06:23:44.458215
2018-01-09T09:46:55
2018-01-09T09:46:55
116,239,906
0
0
null
null
null
null
UTF-8
Swift
false
false
636
swift
// // ImageInfor.swift // DiaryPhotoDemo // // Created by Kiên Nguyễn on 12/22/17. // Copyright © 2017 Kien Nguyen. All rights reserved. // import Foundation import CoreLocation import UIKit class ImageInfor: NSObject{ var location: CLLocation? var createDate: Date? var image: UIImage? var hasLocation: Bool? var imagePath: URL? init(location: CLLocation?, date: Date?, img: UIImage, imagePath: URL, hasLocation: Bool){ self.location = location self.createDate = date self.image = img self.hasLocation = hasLocation self.imagePath = imagePath } }
[ -1 ]
52a01070a3c3c72475c5678c9d3e9354c2ff4876
15bf04e3699dec45cce9a0405d10872a4b5afa87
/test/SILGen/witnesses_inheritance.swift
7c43bf89eddb9e9ab15d6620637d8bafc7ff7574
[ "Apache-2.0", "Swift-exception" ]
permissive
pikachu987/swift
d221a3ec90a973ab1073bcb7e05b4e4795bbbb12
b77374a5fb7a58a1e4d8d68ab0478427c309d8bb
refs/heads/master
2021-08-14T16:27:42.225501
2017-11-16T05:39:39
2017-11-16T05:39:39
110,929,211
3
0
null
2017-11-16T05:52:00
2017-11-16T05:51:59
null
UTF-8
Swift
false
false
1,894
swift
// RUN: %target-swift-frontend -enable-sil-ownership -emit-silgen %s | %FileCheck %s protocol Fooable { func foo() static func class_foo() } protocol Barrable : Fooable { func bar() static func class_bar() } class X : Fooable { func foo() {} class func class_foo() {} } // -- Derived class conforms to a refined protocol class Y : X, Barrable { func bar() {} // CHECK-NOT: sil private [transparent] [thunk] @_T021witnesses_inheritance1YCAA7FooableA2aDP3foo{{[_0-9a-zA-Z]*}}FTW class func class_bar() {} // CHECK-LABEL: sil private [transparent] [thunk] @_T021witnesses_inheritance1YCAA8BarrableA2aDP9class_bar{{[_0-9a-zA-Z]*}}FZTW } class A : Fooable { func foo() {} func bar() {} class func class_foo() {} class func class_bar() {} } // -- Derived class conforms to a refined protocol using its base's methods class B : A, Barrable {} // CHECK-NOT: sil private [transparent] [thunk] @_T021witnesses_inheritance1BCAA7FooableA2aDP3foo{{[_0-9a-zA-Z]*}}FTW // CHECK-NOT: sil private [transparent] [thunk] @_T021witnesses_inheritance1BCAA7FooableA2aDP9class_foo{{[_0-9a-zA-Z]*}}FZTW // CHECK-LABEL: sil private [transparent] [thunk] @_T021witnesses_inheritance1BCAA8BarrableA2aDP3bar{{[_0-9a-zA-Z]*}}FTW // CHECK: [[B:%.*]] = load [take] {{%.*}} : $*B // CHECK-NEXT: [[A:%.*]] = upcast [[B]] : $B to $A // CHECK-NEXT: [[BORROWED_A:%.*]] = begin_borrow [[A]] // CHECK-NEXT: [[METH:%.*]] = class_method [[BORROWED_A]] : $A, #A.bar!1 // CHECK-NEXT: apply [[METH]]([[BORROWED_A]]) : $@convention(method) (@guaranteed A) -> () // CHECK: end_borrow [[BORROWED_A]] from [[A]] // CHECK-LABEL: sil private [transparent] [thunk] @_T021witnesses_inheritance1BCAA8BarrableA2aDP9class_bar{{[_0-9a-zA-Z]*}}FZTW // CHECK: upcast {{%.*}} : $@thick B.Type to $@thick A.Type // Add tests to make sure that we handle address only case correctly.
[ 72787, 85829 ]
cff824a1d77e9c9d8ab357d46aaa8af37845b0b0
973cc730c9213a38ee65aa1aaf4e9ab88a6ff127
/Sleeper/Sleeper/Application Logic/Presenation/Home/HomeModel.swift
6b4e9071e6c07f58315e1f6cfa1c05b249584b7d
[]
no_license
ChoadPet/Sleeper
d94b528bea90e9b52ddb62e732de33df1f542eb6
993d5dd57d1cd127af55bbc29061a215aca4cfcc
refs/heads/master
2022-11-30T21:42:14.484045
2020-08-19T12:35:35
2020-08-19T12:35:35
281,160,462
0
0
null
null
null
null
UTF-8
Swift
false
false
1,854
swift
// // HomeModel.swift // Sleeper // // Created by user on 24.07.2020. // Copyright © 2020 vpoltave. All rights reserved. // import Foundation protocol HomeModelDelegate: class { func applicationStateChange(_ newState: HomeModel.ApplicationState) func buttonStateDidChange(_ newState: HomeModel.PrimaryButtonState) func soundTimerDidChange(_ newModel: TimerPreferenceModel) } final class HomeModel { weak var delegate: HomeModelDelegate? var applicationState: ApplicationState { didSet { delegate?.applicationStateChange(applicationState) } } var buttonState: PrimaryButtonState { didSet { delegate?.buttonStateDidChange(buttonState) } } var soundTimerModel: TimerPreferenceModel { didSet { delegate?.soundTimerDidChange(soundTimerModel) } } init(applicationState: HomeModel.ApplicationState = .idle, buttonState: HomeModel.PrimaryButtonState = .play, soundTimerModel: TimerPreferenceModel) { self.applicationState = applicationState self.buttonState = buttonState self.soundTimerModel = soundTimerModel } } extension HomeModel { enum PrimaryButtonState { case play case pause var title: String { switch self { case .play: return Constants.ButtonsTitles.play case .pause: return Constants.ButtonsTitles.pause } } } } extension HomeModel { enum ApplicationState { case idle case playing case paused var title: String { switch self { case .idle: return Constants.Home.idle case .playing: return Constants.Home.playing case .paused: return Constants.Home.paused } } } }
[ -1 ]
41a6a5c3b145c26e1d34cad3753af6e5d331c20e
4656bd90bd155bb333e3f0e76e4ef085c79652e6
/View Controllers/Fake Views/randomGeneratorIndividualEvent.swift
aab787e1cd55bd6164a49af64fb9117899f03007
[]
no_license
maryem2001/The-Move-App
b88f3e2c659101d512c0191016ba0d6195f60bde
64249b5d4bb3969cc790f7e4500bb44a75b3e560
refs/heads/master
2020-03-23T22:38:16.331604
2018-08-10T23:53:03
2018-08-10T23:53:03
142,187,445
0
0
null
null
null
null
UTF-8
Swift
false
false
417
swift
// // randomGeneratorIndividualEvent.swift // The Move // // Created by Maryem W Ali on 7/25/18. // Copyright © 2018 Maryem W Ali. All rights reserved. // import Foundation import UIKit class randomGeneratorIndividualEvent: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }
[ -1 ]
13834260351e9fe056a630de975d23d77310eef8
852068fed8a3cc573659d067bfe088cc0b1f2b41
/Midterm/ViewController.swift
e55e1971e625cb25122f47abe67f416a0c5ae78a
[]
no_license
titusenock6/Midterm
543d396164bac5e2867be9f327e0943745ee2f23
6307bffecdb6b5130f84c81f06d3a8a367d736e0
refs/heads/main
2023-03-27T21:14:35.270556
2021-03-28T03:32:51
2021-03-28T03:32:51
352,231,691
0
0
null
null
null
null
UTF-8
Swift
false
false
1,224
swift
import UIKit class ViewController: UIViewController { @IBOutlet weak var outputTextView: UITextView! override func viewDidLoad() { super.viewDidLoad() } @IBAction func showAllert(_ sender: UIButton) { let alert = UIAlertController(title: "Login", message: "Enter your Email and Password", preferredStyle: .alert) alert.addTextField() alert.addTextField() alert.textFields![0].placeholder = "Enter Email" alert.textFields![0].keyboardType = UIKeyboardType.emailAddress alert.textFields![1].placeholder = "Enter Password" alert.textFields![1].isSecureTextEntry = true alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: {(action) in print("Canceled...") })) alert.addAction(UIAlertAction(title: "Login", style: .default, handler: {(action) in let emailText = alert.textFields![0].text let passwText = alert.textFields![1].text self.outputTextView.text = "Email: \(emailText ?? "") \nPassword: \(passwText ?? "")" })) self.present(alert, animated: true) } }
[ -1 ]
135aa88652ea6042bc0975629e972a52c409b497
3baf5fe4aac027ed7a5f1a531e7a9af982193f05
/Example/AZExpandableIconListView/ViewController.swift
062bbcb34d7a943be2278f7c8a6f44f996a7dc48
[ "MIT" ]
permissive
pjebs/AZExpandableIconListView
6e7b1aed19eb755fe155a044e09d12e6b65ae2ed
6427d4510d6a59ee426bbdd95409bdf202492c50
refs/heads/master
2020-12-26T04:27:38.649182
2016-02-18T08:59:59
2016-02-18T08:59:59
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,923
swift
// // ViewController.swift // AZExpandableIconListView // // Created by Chris Wu on 01/28/2016. // Copyright (c) 2016 Chris Wu. All rights reserved. // import UIKit import AZExpandableIconListView class ViewController: UIViewController { var textLabel:UILabel? override func viewDidLoad() { super.viewDidLoad() self.title = "AZExpandableIconListView" self.navigationController?.navigationBar.translucent = false self.navigationController?.view.backgroundColor = UIColor.whiteColor() let imageArray : [UIImage] = [ UIImage(named: "icon_1.jpg")!, UIImage(named: "icon_2.jpg")!, UIImage(named: "icon_3.jpg")!, UIImage(named: "icon_1.jpg")!, UIImage(named: "icon_2.jpg")!, UIImage(named: "icon_3.jpg")!, UIImage(named: "icon_1.jpg")!, UIImage(named: "icon_2.jpg")!, UIImage(named: "icon_3.jpg")! ] let expandable = AZExpandableIconListView(frame: CGRectMake(4, 10, UIScreen.mainScreen().bounds.size.width - 20, 50), images: imageArray) expandable.onExpanded = { if let textLabel = self.textLabel { textLabel.text = "Expanded" } } expandable.onCollapsed = { if let textLabel = self.textLabel { textLabel.text = "Collapsed" } } self.view.addSubview(expandable) let label = UILabel(frame: CGRectMake(10, 40, 200, 100)) label.text = "Initial" label.textColor = UIColor.grayColor() textLabel = label textLabel?.font = UIFont(name: "Helvetica", size: 16) self.view.addSubview(textLabel!) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
[ -1 ]
15a3147023a5dd8b390079e36a1883aa528e7e32
08fc78be6916737d4b79241d5308867d90de1f43
/LeaveMemo/Profile/ViewController/ProfileViewController.swift
123e142395e800ecb56ae43bf4674ed3e66e5e44
[]
no_license
jackhoe/LeaveMemo
13a509257400441e83f6656972d9484faa26f36d
7003f1cbc13db7604c160b16418a777dc28e7ddd
refs/heads/master
2020-05-20T12:50:40.488330
2019-05-10T02:23:15
2019-05-10T02:23:15
185,582,697
0
0
null
null
null
null
UTF-8
Swift
false
false
878
swift
// // ProfileViewController.swift // LeaveMemo // // Created by Chan Meng Hoe on 24/04/2018. // Copyright © 2018 Chan Meng Hoe. All rights reserved. // import UIKit class ProfileViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ 311780, 228932, 278664, 228201, 278666, 282922, 356458, 277421, 279406, 313711, 297903, 286256, 303762, 311762, 286271, 188027, 280445, 280383 ]
66e168b5290d5373eef473347f8707816793ef2e
85adfd3eede29959ca068bfbc14b19be9b3d03f3
/LibraryMarcussi/LibraryMarcussi/Views/CadastraLivrosViewController.swift
cd2c0da342e75dc6716634043d46097a3b29409d
[]
no_license
wanderleyCmarcussi/DESAFIO-MODULO2
bacd41a183b69976e611d585d38ac9f3fd923061
87da6da0b4aa6a509fb69011e686c799e6de7a78
refs/heads/master
2020-06-02T18:47:09.929209
2019-06-30T23:54:29
2019-06-30T23:54:29
191,271,339
1
0
null
null
null
null
UTF-8
Swift
false
false
1,951
swift
// // CadastraLivrosViewController.swift // LibraryMarcussi // // Created by Wanderley Marcussi on 23/06/19. // Copyright © 2019 Wanderley Marcussi. All rights reserved. // import UIKit class CadastraLivrosViewController: UIViewController { // ** // **** Criar as Outlet's // ** //@IBOutlet var tituloText: UIView! @IBOutlet weak var AutorText: UITextField! @IBOutlet weak var isbnText: UITextField! @IBOutlet weak var idiomaText: UITextField! @IBOutlet weak var precoText: UITextField! @IBOutlet weak var tituloText: UITextField! @IBOutlet weak var categoriaSegment: UISegmentedControl! //@IBAction func categoriaSeg(_ sender: UISegmentedControl) { //} // var imagensCarro:[String] = ["bmw","bugatti","audi","ferrari","mercedes"] //** // **** Iniciar View Did Load // ** override func viewDidLoad() { super.viewDidLoad() self.tituloText.text = "" self.AutorText.text = "" self.isbnText.text = "" self.idiomaText.text = "" self.precoText.text = "" self.categoriaSegment.selectedSegmentIndex = -1 } // ** // **** Botão de Voltar @IBAction func voltarButton(_ sender: UIButton) { self.dismiss(animated: true) } /* ** **** Botão Cadastrar ** */ @IBAction func cadastrarButton(_ sender: UIButton) { // let livro = Book( title: self.tituloText.text!, author: self.AutorText.text!, isbn: self.isbnText.text!, stock: "1", price: self.precoText.text!, language: self.idiomaText.text!, category: "Outros") GerenciaLivros.shared.adicionaLivro(livro: livro) self.dismiss(animated: true) // // } // } }
[ -1 ]
9b7a3419ec0384e0705522cbadcabb9c673262e5
ff1c3a9ea314897881e36e3868a89f173645f514
/Sitoo Test/Models/VariantModel.swift
402fe5c88ca33aa46460668ade24d8e07e85b1b0
[]
no_license
Geofulo/SitooTest
2d32ec87bb0de0e3da06d5ac36c147eba2533ebc
21714d5c736267be72792b86dd54eb86894ef4a4
refs/heads/master
2020-08-31T07:49:35.840774
2019-12-11T10:57:39
2019-12-11T10:57:39
218,640,187
1
0
null
null
null
null
UTF-8
Swift
false
false
244
swift
// // VariantModel.swift // Sitoo Test // // Created by Geovanni Fuentes on 2019-10-29. // Copyright © 2019 Sitoo. All rights reserved. // import Foundation struct VariantModel: Decodable { let name: String? let value: String? }
[ -1 ]
994134ff014cf9a7941f05eed8b6aade015deb68
bd6ed8fb1fa75b7988c78bc1e1c06b25ec7e7330
/DyPhotos/AppDelegate.swift
eebca3dcad05920c74819e19780e202b7a6f608b
[]
no_license
ardyonathan/tryAutomationJenkins
458940539eff64753e0a1ba68a1cdda617fb7ebf
fd74deac5cfc6d3c9816834086393d10abc36948
refs/heads/master
2021-01-11T12:08:28.712450
2016-12-15T09:15:53
2016-12-15T09:15:53
76,529,657
0
0
null
null
null
null
UTF-8
Swift
false
false
7,167
swift
// // AppDelegate.swift // DyPhotos // // Created by Bayu Yasaputro on 11/5/15. // Copyright © 2015 DyCode. All rights reserved. // import UIKit import CoreData @UIApplicationMain public class AppDelegate: UIResponder, UIApplicationDelegate { public var window: UIWindow? public func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. if let accessToken = NSUserDefaults.standardUserDefaults().stringForKey(kAccessTokenKey) { if accessToken.characters.count > 0 { showMainViewController() } } return true } public func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } public func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } public func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } public func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } public func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. // Saves changes in the application's managed object context before the application terminates. self.saveContext() } // MARK: - Helper func showMainViewController() { let storyboard = UIStoryboard(name: "Main", bundle: nil) let viewController = storyboard.instantiateViewControllerWithIdentifier("main") setRootViewController(viewController) } func setRootViewController(viewController: UIViewController) { UIView.transitionWithView(window!, duration: 0.3, options: [.TransitionCrossDissolve, .AllowAnimatedContent], animations: { () -> Void in let oldState = UIView.areAnimationsEnabled() UIView.setAnimationsEnabled(false) self.window?.rootViewController = viewController UIView.setAnimationsEnabled(oldState) }, completion: nil) } // MARK: - Core Data stack lazy var applicationDocumentsDirectory: NSURL = { // The directory the application uses to store the Core Data store file. This code uses a directory named "com.dycode.DyPhotos" in the application's documents Application Support directory. let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask) return urls[urls.count-1] }() lazy var managedObjectModel: NSManagedObjectModel = { // The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model. let modelURL = NSBundle.mainBundle().URLForResource("DyPhotos", withExtension: "momd")! return NSManagedObjectModel(contentsOfURL: modelURL)! }() lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator = { // The persistent store coordinator for the application. This implementation creates and returns a coordinator, having added the store for the application to it. This property is optional since there are legitimate error conditions that could cause the creation of the store to fail. // Create the coordinator and store let coordinator = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel) let url = self.applicationDocumentsDirectory.URLByAppendingPathComponent("DyPhotos.sqlite") var failureReason = "There was an error creating or loading the application's saved data." do { try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil) } catch { // Report any error we got. var dict = [String: AnyObject]() dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data" dict[NSLocalizedFailureReasonErrorKey] = failureReason dict[NSUnderlyingErrorKey] = error as NSError let wrappedError = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict) // Replace this with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. NSLog("Unresolved error \(wrappedError), \(wrappedError.userInfo)") abort() } return coordinator }() lazy var managedObjectContext: NSManagedObjectContext = { // Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail. let coordinator = self.persistentStoreCoordinator var managedObjectContext = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType) managedObjectContext.persistentStoreCoordinator = coordinator return managedObjectContext }() // MARK: - Core Data Saving support func saveContext () { if managedObjectContext.hasChanges { do { try managedObjectContext.save() } catch { // Replace this implementation with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. let nserror = error as NSError NSLog("Unresolved error \(nserror), \(nserror.userInfo)") abort() } } } }
[ 283144, 277514, 277003, 280085, 278042, 276510, 281635, 194085, 277030, 228396, 277038, 223280, 278577, 280132, 162394, 282203, 189025, 292450, 285796, 279148, 278125, 285296, 227455, 278656, 228481, 276611, 278665, 280205, 225934, 278674, 188050, 276629, 283803, 278687, 282274, 277154, 278692, 228009, 287402, 278700, 278705, 276149, 278711, 279223, 278718, 283838, 228544, 279753, 229068, 227533, 201439, 278751, 226031, 159477, 181516, 203532, 277262, 278287, 284432, 278289, 276755, 278808, 278297, 282910, 282915, 281379, 280370, 277306, 278844, 280382, 282433, 237382, 164166, 226634, 227667, 276313, 278877, 280415, 277344, 276321, 227687, 279405, 278896, 277363, 281972, 278902, 280439, 276347, 228220, 279422, 278916, 284557, 191374, 293773, 288147, 214934, 278943, 282016, 230320, 283058, 281011, 230322, 286130, 276923, 278971, 282558, 299970, 280007, 288200, 284617, 286157, 281041, 283091, 294390, 214010 ]
d9fff500e7b3b5f74f2dd6d3f2eea0c55a5c83b9
81697ca0ed81b3d7f1f13ba2abecccd94b9ae4d5
/UINavController/AppDelegate.swift
a5d96486db1bd57672be83b74327882f51619965
[]
no_license
kilik42/UINavController
9ff587bb25dff1402ca98cf8418b0ccc61de131f
afc52f552b08a3c5d5b4d4efc1530cb8ed1dce34
refs/heads/master
2016-09-12T10:08:27.240078
2016-04-26T12:57:29
2016-04-26T12:57:29
57,127,868
0
0
null
null
null
null
UTF-8
Swift
false
false
2,152
swift
// // AppDelegate.swift // UINavController // // Created by marvin evins on 4/26/16. // Copyright © 2016 marvin evins. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 204856, 229432, 286776, 319544, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 327814, 131209, 417930, 303241, 311436, 303244, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 287238, 320007, 172550, 172552, 303623, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 352880, 295538, 172655, 189044, 287349, 172656, 172660, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 303773, 164509, 287390, 295583, 172702, 230045, 172705, 303780, 287394, 172707, 287398, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 107208, 279241, 107212, 172748, 287436, 172751, 287440, 295633, 303827, 172755, 279255, 172760, 279258, 287450, 213724, 303835, 189149, 303838, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 279383, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 295825, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 304311, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 296255, 312639, 230718, 296259, 378181, 238919, 296264, 320840, 230727, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 181626, 304505, 304506, 181631, 312711, 296331, 288140, 230800, 288144, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 288220, 329177, 239070, 288224, 288226, 370146, 280036, 288229, 280038, 288230, 288232, 280034, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 296439, 288250, 148990, 296446, 402942, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 321316, 304932, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 313340, 288764, 239612, 239617, 313347, 288773, 313358, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 223303, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 223327, 149599, 149601, 149603, 321634, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 182517, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 240132, 223749, 305668, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 199367, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 207661, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 240535, 289687, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 306555, 314747, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 298651, 323229, 282269, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 282481, 110450, 315251, 315249, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 44948, 298901, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 178273, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 184503, 307385, 307386, 258235, 176316, 307388, 307390, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 307510, 332086, 151864, 307512, 168245, 307515, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 194660, 127417, 291260, 283069, 127421, 127424, 127429, 127431, 283080, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 127466, 176620, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 135689, 233994, 291341, 233998, 234003, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 242436, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 234264, 201496, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 324504, 234396, 324508, 234398, 291742, 308123, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 291754, 226220, 324522, 234414, 324527, 291760, 234417, 201650, 324531, 291756, 226230, 234422, 275384, 324536, 234428, 291773, 226239, 234431, 242623, 234434, 324544, 324546, 226245, 234437, 234439, 324548, 234443, 291788, 193486, 275406, 193488, 234446, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 234563, 316483, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 275545, 234585, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 234618, 275579, 144506, 234620, 234623, 226433, 234627, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 308373, 275608, 234647, 234648, 234650, 308379, 283805, 324757, 234653, 300189, 234657, 324766, 324768, 119967, 283813, 234661, 300197, 234664, 242852, 275626, 234667, 316596, 308414, 234687, 316610, 300226, 226500, 234692, 283844, 300229, 308420, 308418, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 283904, 292097, 300289, 300292, 300294, 275719, 300299, 177419, 283917, 242957, 275725, 177424, 300301, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 316768, 218464, 292192, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 284084, 144820, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 259567, 300527, 308720, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 284228, 226886, 284231, 128584, 292421, 284234, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 300628, 235097, 243290, 284251, 284249, 284253, 317015, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 292470, 284278, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 276098, 325250, 284290, 292485, 284292, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 317138, 358098, 284370, 284372, 284377, 276187, 284379, 284381, 284384, 284386, 358116, 276197, 317158, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358128, 358126, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 300832, 284449, 300834, 325408, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 276466, 227314, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 292934, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 194654, 227423, 350302, 194657, 227426, 276579, 309346, 309348, 227430, 276583, 350308, 309350, 276586, 309352, 350313, 350316, 276590, 301167, 227440, 350321, 284786, 276595, 301163, 350325, 350328, 292985, 301178, 292989, 301185, 317570, 350339, 292993, 317573, 350342, 227463, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 276689, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 276713, 317674, 325867, 243948, 194801, 227571, 309491, 276725, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 285051, 211324, 227709, 285061, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 277011, 309779, 317971, 309781, 55837, 227877, 227879, 293417, 227882, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 334476, 326285, 318094, 318092, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 285453, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 236408, 15224, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 244731, 121850, 302075, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 7232, 310336, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 203872, 277601, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 277807, 285999, 113969, 277811, 318773, 277816, 318776, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 310659, 294276, 351619, 277892, 327046, 253320, 310665, 318858, 277898, 277894, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 277923, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 302541, 277966, 302543, 277963, 310737, 277971, 277975, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 278003, 310772, 228851, 278006, 40440, 278009, 212472, 286203, 40443, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 40486, 294439, 286248, 294440, 40488, 294443, 286246, 294445, 278057, 40491, 310831, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 400976, 212560, 40533, 147032, 40537, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40552, 40554, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 310925, 286354, 278163, 302740, 122517, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 40865, 319394, 294821, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 309354, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
dd8e506edf90a64cc1d621310d0bf31d08da883e
395dc5b81787375075af2319a289b4c8fd1a4607
/MetalPhotoFrame/MetalView.swift
56ac2c221a48a75b09ea7864bfe98eb0698f3f07
[ "MIT" ]
permissive
MunokKim/MetalPhotoFrame
746141d9c6feb2063589f7992358f64e0f8f23aa
6558712468075acbb1ab5d048d733cfc9c3afe3d
refs/heads/main
2023-02-28T02:54:10.459265
2021-02-02T03:02:18
2021-02-02T03:02:18
333,289,243
0
0
null
null
null
null
UTF-8
Swift
false
false
828
swift
// // MetalView.swift // MetalPhotoFrame // // Created by Munok Kim on 2021/01/27. // import MetalKit class MetalView: MTKView { var renderer: Renderer! override init(frame frameRect: CGRect, device: MTLDevice?) { super.init(frame: frameRect, device: device) self.device = device colorPixelFormat = .bgra8Unorm clearColor = MTLClearColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0) createRenderer() } required init(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func createRenderer() { guard let deviceForRender = device else { fatalError("Device loading error") } renderer = Renderer(device: deviceForRender) delegate = renderer } }
[ -1 ]
3e26d909db5f221aa36075070bee570fd3a4e708
8155f760eb93d1ad994108a8e6a6eb1f6afab439
/Adyen/UI/Form/Items/Address/AddressViewModel.swift
58e925859907d44ba27a626ea32890372513bdd8
[ "MIT" ]
permissive
Adyen/adyen-ios
c2540d92e9a589575861748a48eb36d7f5a03f69
a1bfbc0bb93e054e14f08558355c685aa04fd4b6
refs/heads/develop
2023-08-16T09:54:21.738994
2023-08-16T09:04:13
2023-08-16T09:04:13
90,995,275
145
145
MIT
2023-09-14T16:22:37
2017-05-11T15:31:58
Swift
UTF-8
Swift
false
false
3,521
swift
// // Copyright (c) 2023 Adyen N.V. // // This file is open source and available under the MIT license. See the LICENSE file for more info. // import Foundation import UIKit @_spi(AdyenInternal) public enum AddressField: String, CaseIterable { case street case houseNumberOrName case apartment case postalCode case city case stateOrProvince case country } @_spi(AdyenInternal) public enum AddressFormScheme { public var children: [AddressField] { switch self { case let .item(item): return [item] case let .split(item1, item2): return [item1, item2] } } case item(AddressField) case split(AddressField, AddressField) } @_spi(AdyenInternal) public struct AddressViewModel { internal var labels: [AddressField: LocalizationKey] internal var placeholder: [AddressField: LocalizationKey] @_spi(AdyenInternal) public var optionalFields: [AddressField] @_spi(AdyenInternal) public var scheme: [AddressFormScheme] public init(labels: [AddressField: LocalizationKey], placeholder: [AddressField: LocalizationKey], optionalFields: [AddressField], scheme: [AddressFormScheme]) { self.labels = labels self.placeholder = placeholder self.optionalFields = optionalFields self.scheme = scheme } } @_spi(AdyenInternal) public extension AddressViewModel { /// Returns all fields that are not specified as `optionalFields` var requiredFields: Set<AddressField> { let allAddressFieldsInScheme: Set<AddressField> = Set(scheme.flatMap(\.children)) let optionalAddressFields: Set<AddressField> = Set(optionalFields) return allAddressFieldsInScheme.subtracting(optionalAddressFields) } } extension AddressField { internal var contentType: UITextContentType? { switch self { case .street: return .streetAddressLine1 case .houseNumberOrName: return .streetAddressLine2 case .apartment: return nil case .postalCode: return .postalCode case .city: return .addressCity case .stateOrProvince: return .addressState case .country: return .countryName } } } @_spi(AdyenInternal) public extension PostalAddress { /// Validates whether all required fields are filled in and not empty func satisfies(requiredFields: Set<AddressField>) -> Bool { let fieldsValues = [ AddressField.city.rawValue: city, AddressField.country.rawValue: country, AddressField.postalCode.rawValue: postalCode, AddressField.stateOrProvince.rawValue: stateOrProvince, AddressField.street.rawValue: street, AddressField.houseNumberOrName.rawValue: houseNumberOrName, AddressField.apartment.rawValue: apartment ].compactMapValues { $0 } let satisfied = checkIfAllFieldsPresent( fieldsValues: fieldsValues, requiredAddressFields: requiredFields ) return satisfied } private func checkIfAllFieldsPresent( fieldsValues: [String: String], requiredAddressFields: Set<AddressField> ) -> Bool { requiredAddressFields.allSatisfy { guard let fieldValue = fieldsValues[$0.rawValue] else { return false } return !fieldValue.isEmpty } } }
[ -1 ]
6eef433f3dc8ab04eb66a0f3f897afb5ee676e12
8a7aeeb63a1396d47454190225b4d8ca27091306
/SwiftUI-PersistingData-01/Realm/Realm_Viewer.swift
5b7bd413728ee2b7ba06b994c47e86f924991c80
[]
no_license
JustinW1395/SwiftUI-PersistingData-01
af133c99f606294d68b8cf16ed038650908fa0ef
4771a8fa760d1aef9a9c0855ba99e5ef44b7e842
refs/heads/main
2023-04-10T11:21:07.487382
2021-05-05T23:33:40
2021-05-05T23:33:40
364,060,104
0
0
null
2021-05-03T21:01:37
2021-05-03T21:01:36
null
UTF-8
Swift
false
false
1,839
swift
// // Realm_Viewer.swift // SwiftUI-PersistingData-01 // // Created by Mike Panitz on 5/1/21. // import SwiftUI import RealmSwift struct Realm_Viewer: View { init() { let tr = TestRealm() tr.RunTest() } func saveData() { let fido = Dog() fido.name = "Fido" fido.age = 3 let rex = Dog() rex.name="Rex" rex.age=4 let protagonist = Person() protagonist.name = "???" protagonist.dogs.append(fido) protagonist.dogs.append(rex) // setDefaultRealmForUser(filename: "filename_for_other_db_goes_here") // optionally use this to switch to a different Realm DB let realm = try! Realm() let people = realm.objects(Person.self) protagonist.name = "Person #" + String(people.count + 1) try! realm.write { realm.add(protagonist) } } func loadData() -> Person? { let realm = try! Realm() let people = realm.objects(Person.self) print(people.count) return people[people.count-1] } @State private var display:String = "" var body: some View { VStack { Text("Realm Example") HStack{ Button("Load", action: { display="Error loading Data" if let thePerson = loadData() { display=thePerson.name } }) Spacer() Button("Save", action: { saveData() }) } Text(self.display) } .padding() } } struct Realm_Viewer_Previews: PreviewProvider { static var previews: some View { Realm_Viewer() } }
[ -1 ]
7b01c4783bc44130770f848a80a0f4e5b0b53e9f
caa01beb388c76ec329ec3e197224abd3241c448
/OrderSystem/Views/DishDetailView.swift
3034e44e8f00276fa6fb79ce349b795780acb515
[]
no_license
LUO12826/OrderSystem
dd53606dfcabbfe483431e1917101770b9749749
b3b5fb074a19ec428f9c479debd933c41bd2a60f
refs/heads/master
2022-11-18T06:03:56.321530
2020-07-03T01:51:15
2020-07-03T01:51:15
276,246,031
1
0
null
null
null
null
UTF-8
Swift
false
false
2,137
swift
// // DishDetailView.swift // OrderSystem // // Created by 骆荟州 on 2020/5/26. // Copyright © 2020 骆荟州. All rights reserved. // import UIKit class DishDetailView: UIView, NumberUpDownDelegate { var dish: Dish? { didSet { updateView() } } @IBOutlet var innerView: UIView! @IBOutlet weak var lblName: UILabel! @IBOutlet weak var imgDish: UIImageView! @IBOutlet weak var viewRecommand: UIView! @IBOutlet weak var viewHot: UIView! @IBOutlet weak var lblPrice: UILabel! @IBOutlet weak var btnAdd: UIButton! @IBOutlet weak var lblDescription: UILabel! @IBOutlet weak var numberUpDown: NumberUpDownView! override init(frame: CGRect) { super.init(frame: frame) initViewFromNib() } required init?(coder: NSCoder) { super.init(coder: coder) initViewFromNib() } private func updateView() { guard let dish = self.dish else { return } numberUpDown.delegate = self if dish.Images.count > 0 { imgDish.image = dish.Images[0] } lblName.text = dish.Name lblDescription.text = dish.Description lblPrice.text = "\(dish.Price)" numberUpDown.value = dish.Num btnAdd.isHidden = dish.Num > 0 viewHot.isHidden = !dish.IsHot viewRecommand.isHidden = !dish.IsRecommand } private func initViewFromNib(){ let bundle = Bundle(for: type(of: self)) let nib = UINib(nibName: "DishDetailView", bundle: bundle) self.innerView = nib.instantiate(withOwner: self, options: nil)[0] as? UIView self.innerView.frame = bounds self.addSubview(innerView) } @IBAction func btnAddTapped(_ sender: Any) { btnAdd.isHidden = true numberUpDown.value = 1 dish?.Num = 1 } func NumberUpDownDidChanged(sender: NumberUpDownView, operation: NumberUpDown, value: Int) { if value <= 0 { btnAdd.isHidden = false } dish?.Num = value } }
[ -1 ]
94ff085e1c9c4ed0024639cf93f3f85cecb56db8
3f7561f39ccdf3e2c0530a2ce25c980fb0e4aeec
/AVLocalVideo/AVLocalVideo/ViewController.swift
af8556d04c20e55dc4d1a58d97a3b53f6c0b2a1c
[]
no_license
dinesh2910/AVLocalVideo
c937c3a2505456b017958bd31c7d238ee32fc181
f2873f3112cdc352bc7b0788a72665f359b4ec97
refs/heads/master
2021-05-23T13:59:54.879708
2020-04-05T22:23:32
2020-04-05T22:23:32
253,325,977
0
0
null
2020-04-05T22:23:34
2020-04-05T20:29:18
Swift
UTF-8
Swift
false
false
1,927
swift
// // ViewController.swift // AVLocalVideo // // Created by Dinesh Danda on 4/5/20. // Copyright © 2020 Dinesh Danda. All rights reserved. // import UIKit import AVKit import AVFoundation struct Video { let name: String let url: String } class ViewController: UIViewController { @IBOutlet weak var videosTableView: UITableView! let videoArray = [Video(name: "The first Blender Open Movie from 2006", url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4"),Video(name: "Tears of Stee", url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4"), Video(name: "The Smoking Tire", url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4")] override func viewDidLoad() { super.viewDidLoad() videosTableView.delegate = self videosTableView.dataSource = self navigationController?.navigationBar.prefersLargeTitles = true } } extension ViewController: UITableViewDelegate, UITableViewDataSource { func numberOfSections(in tableView: UITableView) -> Int { return 1 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return videoArray.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) cell.textLabel?.text = videoArray[indexPath.row].name return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard let url = URL(string: videoArray[indexPath.row].url) else { return } let player = AVPlayer(url: url) let controller = AVPlayerViewController() controller.player = player present(controller, animated: true) } }
[ -1 ]
6b58dc85070dad1a9ad3cb0c8e26fbabf2e66691
47ecde910b9d2ac32c89f34e6cc40d9de9080b34
/Steps4Impact/Onboarding/OnboardingCreateTeam.swift
14425bbc884075f9661e945aa459eee2fd0b47f2
[ "BSD-3-Clause" ]
permissive
AgaKhanFoundation/WCF-iOS
ebb173b7e5c9c1a2e6f47df5a882f5fe77e71499
b729569da1315281874c2b11e2759b34f93f99a1
refs/heads/master
2022-09-21T04:18:13.265657
2022-09-13T01:46:00
2022-09-13T01:46:00
84,240,528
3
5
BSD-3-Clause
2022-09-13T01:46:01
2017-03-07T19:59:30
Swift
UTF-8
Swift
false
false
2,673
swift
/** * Copyright © 2019 Aga Khan Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/ import SnapKit import UIKit class OnboardingCreateTeam : UIViewController { // swiftlint:disable:this colon private var lblCreateTeam: UILabel = UILabel(typography: .headerTitle, color: Style.Colors.green) private var imgCreateTeam: UIImageView = UIImageView(image: Assets.onboardingCreateTeam.image) override func viewDidLoad() { super.viewDidLoad() layout() } private func layout() { self.view.backgroundColor = .white self.view.addSubviews([lblCreateTeam, imgCreateTeam]) lblCreateTeam.text = Strings.Onboarding.createTeam lblCreateTeam.snp.makeConstraints { (make) in make.top.equalToSuperview().offset(Style.Padding.p64) make.left.equalToSuperview().offset(Style.Padding.p24) make.right.equalToSuperview().inset(Style.Padding.p24) } imgCreateTeam.contentMode = .scaleAspectFit imgCreateTeam.snp.makeConstraints { (make) in make.left.right.equalToSuperview() // TODO(compnerd) figure out how to reference the page control // This should have bottom snapped to 72px from the top of the pageControl make.top.equalToSuperview().offset(238) } } }
[ -1 ]
e81541221c923dbe8d65224e88a304dfdcadec56
14408c50f81dc93384c06e9de0e14bd133ebaef5
/Sources/SPPerspective/Configs/SPPerspectiveShadowConfig.swift
b376b668acc82c750948f813f2d353f1efa8fc0a
[ "MIT" ]
permissive
beichenglangzi/SPPerspective
be60850164e9b13414edee2c6e93caad63a0bca7
620e58b966d79f755ea86b67babcb6dde4bfe240
refs/heads/main
2023-06-21T16:53:11.107110
2021-07-17T08:55:30
2021-07-17T08:55:30
395,181,178
1
0
MIT
2021-08-12T03:19:03
2021-08-12T03:19:02
null
UTF-8
Swift
false
false
3,577
swift
// The MIT License (MIT) // Copyright © 2020 Ivan Vorobei ([email protected]) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import UIKit /** SPPerspective: Config for shadow. */ public struct SPPerspectiveShadowConfig { /** SPPerspective: Blur radius of shadow. */ public var blurRadius: CGFloat /** SPPerspective: Shadow opacity. */ public var opacity: CGFloat /** SPPerspective: Color of shadow. */ public var color: UIColor /** SPPerspective: Shadow is dynamic. This property configure most horizontal offset. */ public var maximumHorizontalOffset: CGFloat /** SPPerspective: Shadow is dynamic. Initial vertical offset. */ public var startVerticalOffset: CGFloat /** SPPerspective: Shadow is dynamic. Side vertical offset. For best shoud use smaller value of `maximumHorizontalOffset`. */ public var cornerVerticalOffset: CGFloat /** SPPerspective: Shadow is dynamic. This property configure most vertical offset when card up down side. */ public var maximumVerticalOffset: CGFloat /** SPPerspective: Calculation medium between start and mediun of vertical offset. */ public var startCornerVerticalMedian: CGFloat { return cornerVerticalOffset - (cornerVerticalOffset - startVerticalOffset) / 2 } /** SPPerspective: Create a new SPPerspectiveShadowConfig. - parameter blurRadius: Blur radius of the shadow - parameter opacity: Shadow opacity - parameter color: Shadow color - parameter maximumHorizontalOffset: Maximum value for horizontal shadow offset - parameter startVerticalOffset: Initial vertical offset - parameter cornerVerticalOffset: Vertical offset for side (should be smaller than `maximumHorizontalOffset` - parameter maximumVerticalOffset: Maximum value for vertical offset when card is up side down */ public init(blurRadius: CGFloat, opacity: CGFloat, color: UIColor, maximumHorizontalOffset: CGFloat, startVerticalOffset: CGFloat, cornerVerticalOffset: CGFloat, maximumVerticalOffset: CGFloat) { self.blurRadius = blurRadius self.opacity = opacity self.color = color self.maximumHorizontalOffset = maximumHorizontalOffset self.startVerticalOffset = startVerticalOffset self.cornerVerticalOffset = cornerVerticalOffset self.maximumVerticalOffset = maximumVerticalOffset } }
[ 280074, 40467, 191006, 98349, 144435, 144441, 144442, 124987, 144447, 336450, 222278, 336460, 336467, 285781, 336469, 336470, 336471, 336473, 336479, 336480, 115807, 336482, 185446, 336489, 185451, 115820, 185452, 185453, 115819, 185457, 142450, 115827, 300662, 235658, 189590, 229526, 189594, 229532, 215205, 147115, 135861, 241846, 242361, 241851, 241852, 242364, 322751, 437441, 292041, 241881, 241884, 34531, 192229, 34535, 34537, 192234, 34538, 216816, 216828, 216829, 241920, 276227, 241923, 216836, 241938, 203551, 241952, 241954, 241962, 289074, 314167, 152909, 242006, 168285, 229217, 223087, 287090, 279944, 201617, 201619, 108436, 197018, 60337, 303550, 59349, 259039, 157157, 141292, 174063, 280063 ]
0e8411b7dcf82e8a255c6b9c110fb022620054c6
7d9ece52069b0fa37d001babd21941eaf4f85fbb
/Project 17 - ClassicPhotos/ClassicPhotos/PhotoOperations.swift
f274bc5b4722386969ebc9171863b348ec9f9c2a
[ "Apache-2.0" ]
permissive
tben2010/Swift-30-Projects
3eba2c54c49989d0e06cd144b6c1480d01d2a21f
8ca9cc85ff89b41fc787ad1188d5d0adbf6ba8fd
refs/heads/master
2021-04-27T16:54:06.168183
2018-09-13T11:43:20
2018-09-13T11:43:20
122,311,477
0
0
Apache-2.0
2018-09-13T11:43:21
2018-02-21T08:43:40
Swift
UTF-8
Swift
false
false
2,861
swift
// // PhotoOperations.swift // ClassicPhotos // // Copyright © 2016 raywenderlich. All rights reserved. // import UIKit /// Represents all the possible states a photo record can be in. enum PhotoRecordState { case New, Downloaded, Filtered, Failed } class PhotoRecord { let name: String let url: URL var state = PhotoRecordState.New var image = UIImage(named: "Placeholder") init(name: String, url: URL) { self.name = name self.url = url } } class PendingOperations { lazy var downloadsInProgress = [IndexPath:Operation]() lazy var downloadQueue: OperationQueue = { var queue = OperationQueue() queue.name = "Download queue" queue.maxConcurrentOperationCount = 1 return queue }() lazy var filtrationsInProgress = [IndexPath:Operation]() lazy var filtrationQueue: OperationQueue = { var queue = OperationQueue() queue.name = "Image Filtration queue" queue.maxConcurrentOperationCount = 1 return queue }() } class ImageDownloader: Operation { let photoRecord: PhotoRecord init(photoRecord: PhotoRecord) { self.photoRecord = photoRecord } /// Main is the function actually perform work. override func main() { /// Check for cancellation before starting. if isCancelled { return } do { let imageData = try Data(contentsOf: photoRecord.url) if self.isCancelled { return } if imageData.count > 0 { photoRecord.image = UIImage(data: imageData) photoRecord.state = .Downloaded } else { photoRecord.state = .Failed photoRecord.image = UIImage(named: "Failed") } } catch let error as NSError{ print(error.domain) } } } class ImageFiltration: Operation { let photoRecord: PhotoRecord init(photoRecord: PhotoRecord) { self.photoRecord = photoRecord } func applySepiaFilter(image: UIImage) -> UIImage? { let inputImage = CIImage(data: UIImagePNGRepresentation(image)!) if isCancelled { return nil } let context = CIContext(options:nil) let filter = CIFilter(name: "CISepiaTone") filter?.setValue(inputImage, forKey: kCIInputImageKey) filter?.setValue(0.8, forKey: "inputIntensity") if isCancelled { return nil } if let outputImage = filter?.outputImage, let outImage = context.createCGImage(outputImage, from: outputImage.extent) { return UIImage(cgImage: outImage) } else { return nil } } override func main () { if isCancelled { return } if self.photoRecord.state != .Downloaded { return } if let image = photoRecord.image, let filteredImage = applySepiaFilter(image: image) { photoRecord.image = filteredImage photoRecord.state = .Filtered } } }
[ -1 ]
c5d639163536648aeb1a43a856a1fd635da2cff4
90b191230d75aabdc952d98bbe3e22fb9f14e53c
/gawiBawiBo/gawiBawiBo/AppDelegate.swift
54a527b04983066e3f87ab5a8b8f68c80a31e27f
[]
no_license
jgarr16/udemy
55ab7aaad0c9438e855bf77dbdcf490019c65adf
60c80b6f6293b7bcd4f68f22c1d97c9a73bf8221
refs/heads/main
2023-07-15T20:39:49.408240
2021-08-22T23:46:21
2021-08-22T23:46:21
387,454,634
0
0
null
null
null
null
UTF-8
Swift
false
false
1,359
swift
// // AppDelegate.swift // gawiBawiBo // // Created by John Garrigues on 7/19/21. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } // func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. // } // // }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 327756, 254030, 286800, 368727, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 164028, 327871, 377036, 180431, 377046, 418010, 377060, 327914, 205036, 393456, 393460, 336123, 418043, 385280, 336128, 262404, 164106, 180490, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 262507, 246123, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 197159, 377383, 352821, 188987, 418363, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 164538, 328378, 328386, 352968, 344776, 418507, 352971, 352973, 385742, 385748, 361179, 369381, 361195, 418553, 344831, 344835, 336643, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 361288, 336711, 328522, 426841, 197468, 254812, 361309, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 386003, 345043, 386011, 386018, 386022, 435187, 328714, 361489, 386069, 336921, 386073, 336925, 345118, 377887, 345133, 345138, 386101, 361536, 197707, 189520, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 361598, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 386258, 328924, 66782, 222437, 386285, 328941, 386291, 345376, 353570, 345379, 410917, 345382, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 181670, 181673, 181678, 181681, 337329, 181684, 181690, 361917, 181696, 337349, 181703, 271839, 329191, 361960, 116210, 337398, 337415, 419339, 419343, 419349, 419355, 370205, 419359, 419362, 394786, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 345701, 394853, 222830, 370297, 403070, 403075, 345736, 198280, 403091, 345749, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 337599, 419527, 419530, 419535, 272081, 394966, 419542, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 337645, 370415, 337659, 141051, 337668, 362247, 395021, 362255, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 345930, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 354150, 354156, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 337833, 362413, 337844, 346057, 346063, 247759, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329885, 411805, 346272, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 321786, 379134, 411903, 411916, 379152, 395538, 387349, 338199, 387352, 182558, 338211, 395566, 248111, 362822, 436555, 190796, 379233, 354673, 248186, 420236, 379278, 354727, 338352, 338381, 330189, 338386, 338403, 338409, 199164, 330252, 199186, 420376, 330267, 354855, 10828, 199249, 346721, 174695, 248425, 191084, 338543, 191092, 346742, 330383, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 355218, 330642, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 158761, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 339036, 412764, 257120, 265320, 248951, 420984, 330889, 347287, 339097, 248985, 44197, 380070, 339112, 330958, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 175489, 249218, 249224, 249227, 249234, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 388542, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 339420, 249308, 339424, 249312, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 175635, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 421508, 126596, 224904, 224909, 11918, 159374, 224913, 126610, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 257790, 339710, 225025, 257794, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 184094, 225058, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 257868, 257871, 225103, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 274280, 257896, 257901, 225137, 339826, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 266294, 421960, 356439, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 225429, 356506, 225437, 135327, 438433, 225441, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 430256, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 266453, 225493, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 397571, 389380, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332117, 348502, 250199, 250202, 332125, 250210, 348522, 348525, 348527, 332152, 250238, 389502, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 160234, 127471, 340472, 324094, 266754, 324099, 324102, 324111, 340500, 324117, 324131, 332324, 381481, 356907, 324139, 324142, 356916, 324149, 324155, 348733, 324164, 356934, 348743, 381512, 324170, 324173, 324176, 389723, 332380, 373343, 381545, 340627, 373398, 184982, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 357069, 332493, 357073, 332511, 332520, 340718, 332533, 348924, 373510, 389926, 152370, 348978, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 357211, 430939, 357214, 201579, 201582, 349040, 340849, 430965, 381813, 324472, 398201, 119674, 324475, 430972, 340861, 324478, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 201637, 324524, 340909, 324533, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 349172, 381946, 349180, 439294, 431106, 357410, 250914, 185380, 357418, 209979, 341071, 349267, 250967, 210010, 341091, 210025, 210030, 210036, 349308, 349311, 160895, 152703, 210052, 349319, 210055, 218247, 210067, 251044, 185511, 210107, 332997, 210127, 333009, 210131, 333014, 210143, 218354, 218360, 251128, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 357708, 210260, 365911, 259421, 365921, 333154, 251235, 374117, 333162, 234866, 390516, 333175, 357755, 251271, 136590, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 210631, 333511, 358099, 153302, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 210695, 268041, 210698, 366348, 210706, 399128, 333594, 210719, 358191, 210739, 366387, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 358234, 341851, 350045, 399199, 259938, 399206, 358255, 399215, 268143, 358259, 341876, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 358371, 350189, 350193, 333818, 350202, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 342133, 374902, 432271, 333997, 334011, 260289, 260298, 350410, 350416, 350422, 211160, 350425, 268507, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 350467, 325891, 350475, 375053, 268559, 350480, 432405, 350486, 325914, 350490, 325917, 350493, 350498, 350504, 358700, 350509, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 326058, 375216, 334262, 334275, 358856, 334304, 334311, 375277, 334321, 350723, 186897, 342545, 334358, 342550, 342554, 334363, 350761, 252461, 383536, 358961, 334384, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 375612, 244540, 326460, 260924, 326467, 244551, 326473, 326477, 326485, 416597, 342874, 326490, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 261147, 359451, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 367723, 384107, 187502, 384114, 343154, 212094, 351364, 384143, 351381, 367794, 384181, 367800, 351423, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 343306, 261389, 359694, 253200, 245020, 245029, 171302, 351534, 376110, 245040, 425276, 212291, 384323, 343365, 212303, 367965, 343393, 343398, 367980, 425328, 343409, 253303, 154999, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 327084, 359865, 384443, 146876, 327107, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 343544, 368122, 409091, 359947, 359955, 359983, 343630, 179802, 155239, 327275, 245357, 138864, 155254, 155273, 368288, 245409, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 245475, 155371, 245483, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 417595, 360261, 155461, 376663, 155482, 261981, 425822, 376671, 155487, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 425845, 262005, 147317, 262008, 262011, 155516, 155521, 155525, 360326, 376714, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 393169, 384977, 155611, 253923, 155619, 155621, 253926, 327654, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
63d5f9ffd226ed9923005c7cfca6b2ca32e669a3
04d23b92f4ab02caac596ea1d67d4808dd8a43c0
/Eric Brito/MovieQuiz/MovieQuiz/GameOverViewController.swift
b8a48c60f3b5aea744e036b04a75cc63b979f9b1
[]
no_license
joaopqz/ios
df04d39fcf9244afe9f954829c31526feebc690d
fad9d5d2ccc293aa7175dafe2c7dd30907d2b238
refs/heads/main
2023-06-01T05:45:36.548916
2021-06-22T16:52:49
2021-06-22T16:52:49
326,657,120
0
0
null
null
null
null
UTF-8
Swift
false
false
516
swift
// // GameOverViewController.swift // MovieQuiz // // Created by Joao Queiroz on 21/01/21. // Copyright © 2021 Joao Queiroz. All rights reserved. // import UIKit class GameOverViewController: UIViewController { @IBOutlet weak var lbScore: UILabel! var score: Int = 0 override func viewDidLoad() { super.viewDidLoad() lbScore.text = "\(score)" } @IBAction func playAgain(_ sender: UIButton) { dismiss(animated: true, completion: nil) } }
[ -1 ]
9889730cc38e7a55aff8872e57808d98ce625bac
c373ef844659d673e49e16be5a308352698c76a7
/CRKitSwift/Classes/Common/Protocol/CRReusable.swift
7b8702ad262f1ffa4cb32bb2faf681a330cfec38
[]
no_license
cocoaroger/CRKit-Swift
3541fd96629e592de27f50b78cd784a9fee3ed4f
f34b0fd952d6fa082fa7b7d929ab18aedc788e65
refs/heads/master
2021-06-20T16:38:16.871636
2020-12-22T13:06:54
2020-12-22T13:06:54
152,027,011
0
0
null
null
null
null
UTF-8
Swift
false
false
975
swift
// // CRReusable.swift // CRKitSwift // // Created by roger wu on 2017/3/24. // Copyright © 2017年 cocoaroger. All rights reserved. // import Foundation import UIKit /// 可复用协议 protocol CRReusable: class { /// 复用的identifier static var cr_identifier: String { get } } // MARK: - 设置 UIView 的默认可复用实现 extension CRReusable where Self: UIView { static var cr_identifier: String { return NSStringFromClass(self) } } extension CRReusable where Self: UIViewController { static var cr_identifier: String { let className = NSStringFromClass(self) as NSString return className.components(separatedBy: ".").last! } } // MARK: - 让 UICollectionViewCell、UITableViewCell 具有可以复用 extension UICollectionViewCell: CRReusable {} extension UITableViewCell: CRReusable {} // MARK: - 这个前提是 Storyboard 中设置的 Storyboard ID 与类名相同, 否则会 crash extension UIViewController: CRReusable {}
[ -1 ]
7ddf65d98e65ae53553e41ab2e6cfd84043d1dc4
5009a0a2099104e3accd081a0ecff1aaabfa81da
/Todos/Assets.xcassets/AddTodoTableViewController.swift
0fb74d5be6e4995a389ccdfe6503dac87b3aad93
[]
no_license
adityachugh/ios-workshop
2f13510b80599da511f88b3d7fabc28cba9ffca5
f7eb3afc243130b62bfba677402b9475b7d8fe4e
refs/heads/master
2021-09-15T08:09:42.751545
2018-05-29T01:59:00
2018-05-29T01:59:00
119,890,990
0
0
null
null
null
null
UTF-8
Swift
false
false
1,429
swift
// // AddTodoTableViewController.swift // Todos // // Created by Aditya Chugh on 2018-02-01. // Copyright © 2018 TEAM STUDY. All rights reserved. // import UIKit class AddTodoTableViewController: UITableViewController { var delegate: AddTodoTableViewControllerDelegate? @IBOutlet weak var titleInput: UITextField! @IBOutlet weak var dateInput: UIDatePicker! override func viewDidLoad() { super.viewDidLoad() titleInput.becomeFirstResponder() dateInput.minimumDate = Date() // Uncomment the following line to preserve selection between presentations // self.clearsSelectionOnViewWillAppear = false // Uncomment the following line to display an Edit button in the navigation bar for this view controller. // self.navigationItem.rightBarButtonItem = self.editButtonItem } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func saveButtonTapped(_ sender: UIBarButtonItem) { delegate?.saveTodo(todo: Todo(title: titleInput.text!, date: dateInput.date)) dismiss(animated: true, completion: nil); } @IBAction func cancelButtonTapped(_ sender: UIBarButtonItem) { dismiss(animated: true, completion: nil); } } protocol AddTodoTableViewControllerDelegate { func saveTodo(todo: Todo); }
[ -1 ]
ab9064993e63958f9567b2ef0021b71faefb01c3
6ecf13967c7b95ef83eceb7064128f6981286709
/Source/Text Parsing/LatexParserProtocol.swift
388af1c43dda7e07ff425cf81767772615a3faaf
[ "Apache-2.0" ]
permissive
tophat/RichTextView
59a594a830d37ee6ca4bd09bee40cd1e6e0aad60
63de55849cbc3454c3022a146c3cc876213ba451
refs/heads/master
2023-08-06T21:49:34.666405
2023-04-18T13:48:50
2023-04-18T13:48:50
156,735,780
1,144
76
Apache-2.0
2023-03-26T14:01:20
2018-11-08T16:25:21
Swift
UTF-8
Swift
false
false
3,811
swift
// // LatexParserProtocol.swift // RichTextView // // Created by Ahmed Elkady on 2018-11-19. // Copyright © 2018 Top Hat. All rights reserved. // import Down import iosMath public protocol LatexParserProtocol: AnyObject { func extractLatex(from input: String, textColor: UIColor, baselineOffset: CGFloat, fontSize: CGFloat, height: CGFloat?) -> NSAttributedString? } extension LatexParserProtocol { public func extractLatex(from input: String, textColor: UIColor, baselineOffset: CGFloat, fontSize: CGFloat, height: CGFloat?) -> NSAttributedString? { let latexInput = self.extractLatexStringInsideTags(from: input) var mathImage: UIImage? if Thread.isMainThread { mathImage = self.setupMathLabelAndGetImage(from: latexInput, textColor: textColor, fontSize: height ?? fontSize) } else { DispatchQueue.main.sync { mathImage = self.setupMathLabelAndGetImage(from: latexInput, textColor: textColor, fontSize: height ?? fontSize) } } guard let image = mathImage else { return nil } let imageOffset = self.getLatexOffset(fromInput: input, image: image, fontSize: fontSize) let textAttachment = NSTextAttachment() textAttachment.image = image textAttachment.bounds = CGRect( x: 0, y: baselineOffset - imageOffset, width: textAttachment.image?.size.width ?? 0, height: textAttachment.image?.size.height ?? 0 ) let latexString = NSMutableAttributedString(attachment: textAttachment) latexString.addAttribute(.baselineOffset, value: baselineOffset - imageOffset, range: NSRange(location: 0, length: latexString.length)) return latexString } // MARK: - Helpers public func extractLatexStringInsideTags(from input: String) -> String { let mathTagName = RichTextParser.ParserConstants.mathTagName return input.getSubstring(inBetween: "[\(mathTagName)]", and: "[/\(mathTagName)]") ?? input } private func setupMathLabelAndGetImage(from input: String, textColor: UIColor, fontSize: CGFloat) -> UIImage? { let label = MTMathUILabel() label.textColor = textColor label.latex = input label.fontSize = fontSize var newFrame = label.frame newFrame.size = label.sizeThatFits(CGSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)) label.frame = newFrame return self.getImage(from: label) } private func getImage(from label: MTMathUILabel) -> UIImage? { UIGraphicsBeginImageContextWithOptions(label.bounds.size, false, 0.0) guard let context = UIGraphicsGetCurrentContext() else { return nil } let verticalFlip = CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: label.frame.size.height) context.concatenate(verticalFlip) label.layer.render(in: context) guard let image = UIGraphicsGetImageFromCurrentImageContext(), let cgImage = image.cgImage else { return nil } UIGraphicsEndImageContext() return UIImage(cgImage: cgImage, scale: UIScreen.main.scale, orientation: image.imageOrientation) } private func getLatexOffset(fromInput input: String, image: UIImage, fontSize: CGFloat) -> CGFloat { let defaultSubScriptOffset = RichTextParser.ParserConstants.defaultSubScriptOffset let imageOffset = max((image.size.height - fontSize)/2, 0) let subscriptOffset: CGFloat = input.contains(RichTextParser.ParserConstants.latexSubscriptCharacter) ? defaultSubScriptOffset : 0 return max(subscriptOffset, imageOffset) } } public class LatexParser: LatexParserProtocol { public init() {} }
[ 201193 ]
54714196ce082600a70bf939fea06261a20dd84f
619d9969c7d4802babc34bebdd6dba8ce78cb417
/新人/新人/CommentsCell.swift
0522fb4283acd8d7465d1813d4a284b6467d4af7
[]
no_license
MMiraclesama/ZhihuDaily
2ab721c42523b69708d1ff92710b7f33b9c5aa64
b5bfb3291acba2e24dad2dc0117ed4f88416339f
refs/heads/master
2020-04-09T04:59:55.737168
2018-12-02T13:01:30
2018-12-02T13:01:30
160,046,521
0
0
null
null
null
null
UTF-8
Swift
false
false
2,539
swift
// // commentsCell.swift // 新人 // // Created by 安宇 on 22/11/2018. // Copyright © 2018 安宇. All rights reserved. // import UIKit class CommentsCell: UITableViewCell { let titleLabel1 = UILabel() let titleLabel2 = UILabel() let likesTextField = UITextField() // let image = UIImageView() let likesLabel = UILabel() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) } convenience init() { self.init(style: .default, reuseIdentifier: "commentsTableViewCell") titleLabel1.frame = CGRect(x: 40, y: 40, width: UIScreen.main.bounds.width - 60 - 44, height: 44) contentView.addSubview(titleLabel1) titleLabel2.frame = CGRect(x: 40, y: 0, width: UIScreen.main.bounds.width - 60 - 44, height: 44) contentView.addSubview(titleLabel2) likesLabel.frame = CGRect(x: 300, y: 10, width: 10, height: 18) contentView.addSubview(likesLabel) // likesTextField.frame = CGRect(x: 100, y: 0, width: 30, height: 30) } convenience init(byModel detailComments: WWelcome, withIndex index: Int) { self.init(style: .default, reuseIdentifier: "CommentsCell") titleLabel1.text = detailComments.comments[index].content titleLabel1.frame.origin = CGPoint(x: 40, y: 40) titleLabel1.frame.size.width = UIScreen.main.bounds.width - 60 - 44 titleLabel1.lineBreakMode = .byWordWrapping titleLabel1.numberOfLines = 0 titleLabel1.sizeToFit() contentView.addSubview(titleLabel1) titleLabel2.frame = CGRect(x: 40, y: 0, width: UIScreen.main.bounds.width - 60 - 44, height: 44) titleLabel2.text = detailComments.comments[index].author contentView.addSubview(titleLabel2) likesLabel.frame = CGRect(x: 300, y: 10, width: 10, height: 18) likesLabel.text = "\(detailComments.comments[index].likes))" contentView.addSubview(likesLabel) // detailImageView.frame = CGRect(x: titleLabel.frame.maxX + 20, y: titleLabel.frame.minY, width: 60, height: 60) // detailImageView.sd_setImage(with: URL(string: comments.stories![index].images![0]), completed: nil) // contentView.addSubview(detailImageView) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
[ -1 ]
d47dfb880c28bf1abba244bc73efe7a701f86908
b6ece16843697aa6065ecdf3ee5c84e4f06a7216
/KellyMcNevin-precourse-app/KellyMcNevin-precourse-app/AppDelegate.swift
644f6c9ba9a24ecff10522874f12aa42688a9d59
[]
no_license
kellymeryl/KellyMcNevinPreWorkAssignment
bbb5e0393af9eba3f2ce432cbb9202c7aa34803f
2ffde99814515ce8e1f7d2f5b2c3552237b92d71
refs/heads/master
2021-01-17T18:32:17.205198
2016-10-20T21:51:13
2016-10-20T21:51:13
71,506,805
0
0
null
null
null
null
UTF-8
Swift
false
false
2,129
swift
// // AppDelegate.swift // KellyMcNevin-precourse-app // // Created by KK on 10/13/16. // // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 287238, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 164509, 303773, 172705, 287394, 172707, 303780, 287390, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 295822, 279438, 213902, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 234648, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 279929, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 148946, 222676, 288214, 239064, 288217, 329177, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 354656, 313700, 280937, 313705, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 240519, 322440, 314249, 338823, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 44948, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307385, 307386, 307388, 258235, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 276052, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 127440, 315860, 176597, 127447, 283095, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 135689, 233994, 127497, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 292433, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 226185, 308105, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 226200, 291742, 234396, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 226220, 291754, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 275384, 324536, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 226245, 234437, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 324757, 308379, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 226500, 283844, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 275725, 349451, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 227440, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 276053, 284247, 317015, 284249, 243290, 284251, 235097, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 292843, 276460, 276464, 178161, 227314, 276466, 325624, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 227426, 276579, 227430, 276583, 309354, 301167, 276590, 350321, 350313, 350316, 284786, 350325, 252022, 276595, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 277173, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 64966, 245191, 163272, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286313, 40554, 286312, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 278227, 286420, 229076, 286425, 319194, 278235, 301163, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
9128ab1a7150bdbf10090f12200186de2d69eacf
826ae194c6bcbe32206a5b57313ba3079acd7689
/Lesson2StackView/Lesson2StackView/ViewController.swift
ed9a91c099c63eb778cff84b0c1003664caa415e
[]
no_license
danborn-dominic/iOS-Milestone-Test-Project
6d02ffa8436fc532caf53897223328215b3c917d
dc28ce43b933aa4228f40ba2acdfe1196dc8108f
refs/heads/main
2023-08-14T23:34:59.579357
2021-10-07T00:39:54
2021-10-07T00:39:54
409,410,615
0
0
null
null
null
null
UTF-8
Swift
false
false
287
swift
// // ViewController.swift // Lesson2StackView // // Created by Dominic Danborn on 10/1/21. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
[ 254464, 361600, 385282, 373648, 391441, 373651, 373652, 352920, 375576, 345378, 396707, 397091, 354729, 356652, 273710, 372017, 378171, 354108, 397117, 266816, 354113, 372692, 372693, 257750, 224855, 210262, 436316, 362845, 389725, 225504, 399201, 425824, 437220, 384103, 345966, 376687, 398193, 432243, 345972, 435189, 345976, 370299, 351486 ]
334c8f31c68308a27c57a8d5c6ad5479a337e425
3bfad9c7bde8cbb6de360b48680f6a847744664f
/Pods/Tabman/Sources/Tabman/TabmanBar/Components/Separator/SeparatorHeight.swift
55e2b746160e41a2bbdd16c5d96c48206e755188
[ "MIT" ]
permissive
palmin/GitHawk
1c4a7886f33d53d1d18b12d52293e3ccf5d3a053
8ce285d86bdc18f242bda0aeb824332aa8aa3a33
refs/heads/master
2020-04-03T07:52:28.726062
2018-10-28T21:10:37
2018-10-28T21:10:37
155,116,027
6
1
MIT
2018-10-28T21:10:53
2018-10-28T21:10:52
null
UTF-8
Swift
false
false
793
swift
// // SeparatorHeight.swift // Tabman // // Created by Merrick Sapsford on 02/04/2018. // Copyright © 2018 UI At Six. All rights reserved. // import UIKit /// Height for separator view. /// /// - thin: 0.5 pt /// - medium: 1.5 pt /// - thick: 3.0 pt /// - custom: Custom specified height. public enum SeparatorHeight { case thin case medium case thick case custom(height: CGFloat) /// Default height to use. static var `default`: SeparatorHeight = .thin /// Actual raw height value. var rawValue: CGFloat { switch self { case .thin: return 0.5 case .medium: return 1.5 case .thick: return 3.0 case .custom(let height): return height } } }
[ 213248 ]
47f22e205ae040e52e1a93189df99c77ea569b3c
b0bae118628cb4fe8deae59c2b82faa5c86c34c5
/Capstone/Controllers/SignUpViewController.swift
d79dd031c35a411005a93dfdac370e450090cdea
[]
no_license
Margiett/Capstone-
9d86786688b9248c845c77a87be1d6ad3faafd9e
c82bd7a05d6c5c456448e000dfab9dd0fc55873b
refs/heads/master
2022-11-13T02:54:38.392271
2020-07-09T21:02:44
2020-07-09T21:02:44
267,161,504
0
0
null
null
null
null
UTF-8
Swift
false
false
1,661
swift
// // SignUpViewController.swift // Capstone // // Created by Margiett Gil on 5/28/20. // Copyright © 2020 Margiett Gil. All rights reserved. // import UIKit import FirebaseAuth class SignUpViewController: UIViewController { @IBOutlet weak var dogName: UITextField! @IBOutlet weak var breed: UITextField! @IBOutlet weak var age: UITextField! @IBOutlet weak var ownerName: UITextField! @IBOutlet weak var state: UITextField! @IBOutlet weak var email: UITextField! @IBOutlet weak var password: UITextField! private var authSession = FirebaseAuthManager() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } @IBAction func submitButtonPressed(_ sender: UIButton) { guard let email = email.text, !email.isEmpty, let password = password.text, !password.isEmpty else { self.showAlert(title: "Missing feilds", message: "Please provide an email and password") return } authSession.createNewUser(email: email, password: password) { (result) in switch result { case .failure(let error): DispatchQueue.main.async { self.showAlert(title: "Error Signing up", message: "\(error.localizedDescription)") } case .success: DispatchQueue.main.async { UIViewController.showViewController(storyBoardName: "Main", viewControllerId: "MainTabBarController") } } } } }
[ -1 ]
383faa59199f7b00fe06dc5cf942d4ae4466e639
09ad93c0b64a612cff9d9fb3e715360ad83a8a34
/Spotrek/customCells/ProfileSummaryTableViewCell.swift
e23489fcbcc69beb769eded85a1d6774dcf9d83a
[]
no_license
jkritikos/spotrek
7e20e024ff4885a871ebf1f8528819efce05e372
78cdd9d0fc67fe047409f51bbcf03578e6ba0163
refs/heads/master
2020-12-07T13:33:22.079703
2015-09-10T06:12:02
2015-09-10T06:12:02
24,887,526
0
0
null
null
null
null
UTF-8
Swift
false
false
1,669
swift
// // ProfileSummaryTableViewCell.swift // Spotrek // // Created by Jason Kritikos on 10/16/14. // Copyright (c) 2014 Boomar. All rights reserved. // import UIKit class ProfileSummaryTableViewCell: UITableViewCell { //UI components var optionLabel:UILabel! var optionIcon:UIImageView! override init(style: UITableViewCellStyle, reuseIdentifier: String!) { super.init(style: UITableViewCellStyle.Default, reuseIdentifier: reuseIdentifier) optionLabel = UILabel(frame: CGRectMake(150,30,500,130)) optionLabel.numberOfLines = 0 optionLabel.textColor = UIColor.whiteColor() self.addSubview(optionLabel) optionIcon = UIImageView(image: UIImage(named: "images/ipad/profile/profile_level.png")) optionIcon.center = CGPointMake(60,90) self.addSubview(optionIcon) var arrowImage = UIImageView(image: UIImage(named: "images/ipad/profile/arrow_right.png")) arrowImage.center = CGPointMake(760,102) self.addSubview(arrowImage) self.backgroundColor = UIColor.clearColor().colorWithAlphaComponent(0.0) } required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } func setIcon(name:String){ self.optionIcon.image = UIImage(named: name) } }
[ -1 ]
5726e0e652d32df4ff44c77cbc87c8f961ccef7e
081d422e3329534bff9e6483001794d726286721
/GJIOS/GJIOS/Model/ContactModel.swift
5ca1d5eb32ce7ba29d72de63e36f7c104489e8ba
[]
no_license
SurbhiNatani/GOJek_Contact
0e97d23dcf0edafbd09927d74a4ea6b747e864ab
c0a19ed86f6d3c033e02e6089b01e926cef78cf8
refs/heads/master
2020-07-20T23:55:58.081914
2019-09-09T10:59:43
2019-09-09T10:59:43
206,727,574
0
0
null
null
null
null
UTF-8
Swift
false
false
790
swift
// // ContactModel.swift // GJIOS // // Created by Shurbhi Natani on 06/09/19. // Copyright © 2019 Surbhi Natani. All rights reserved. // import UIKit class ContactModel { var firstName: String? var lastName: String? var email: String? var phoneNumber: String? var id: Int? var profilePic: String? var favourite: Int? init(dict : Dictionary<String,Any>) { firstName = dict["first_name"] as? String ?? "" lastName = dict["last_name"] as? String ?? "" email = dict["email"] as? String ?? "" phoneNumber = dict["phone_number"] as? String ?? "" id = dict["id"] as? Int ?? 0 profilePic = dict["profile_pic"] as? String ?? "" favourite = dict["favorite"] as? Int ?? 0 } }
[ -1 ]
1d495ecf17b4ca34d0ced00c85a2cb627d6f3735
4f41340630e3e987b06db87239589727130a7889
/appkonfio/Commons/VIPER/BaseWireframe.swift
58698956646ba2b2aa1f899d59aa1a9e4a090223
[]
no_license
jj-glez/appkonfiochallenge
7e33db30839e06525ef4eef3e9352015f146ebcc
e91c526178114b55454a9ae7b640fe70b8793e67
refs/heads/master
2020-09-09T02:42:26.040704
2019-11-14T17:18:48
2019-11-14T17:18:48
221,321,295
2
0
null
null
null
null
UTF-8
Swift
false
false
1,389
swift
import UIKit protocol WireframeInterface: class { } class BaseWireframe { private unowned var _viewController: UIViewController //to retain view controller reference upon first access private var _temporaryStoredViewController: UIViewController? init(viewController: UIViewController) { _temporaryStoredViewController = viewController _viewController = viewController } } extension BaseWireframe: WireframeInterface { } extension BaseWireframe { var viewController: UIViewController { defer { _temporaryStoredViewController = nil } return _viewController } var navigationController: UINavigationController? { return viewController.navigationController } } extension UIViewController { func presentWireframe(_ wireframe: BaseWireframe, animated: Bool = true, completion: (() -> Void)? = nil) { present(wireframe.viewController, animated: animated, completion: completion) } } extension UINavigationController { func pushWireframe(_ wireframe: BaseWireframe, animated: Bool = true) { self.pushViewController(wireframe.viewController, animated: animated) } func setRootWireframe(_ wireframe: BaseWireframe, animated: Bool = true) { self.setViewControllers([wireframe.viewController], animated: animated) } }
[ -1 ]
ecfc99dfb18f774e3e94cb4253310c46dac3c6c0
4a96bc5c089710e5b73ae08623038bb7e804b038
/TaDaToDo/View/EmployeeTableViewCell.swift
75fb7b9e84b771b698bb60bd6379112f8bd8a8ca
[]
no_license
saurabhmirajkar/tadatodo
dc47113dc512147f2ecbbc65f557c16ec648a7d8
2ec6b84f8f2ae35fa0f9a8dcf833376be7dc633f
refs/heads/master
2020-11-30T16:28:29.121731
2019-12-28T04:40:26
2019-12-28T04:40:26
230,441,340
0
0
null
null
null
null
UTF-8
Swift
false
false
395
swift
// // EmployeeTableViewCell.swift // TaDaToDo // // Created by Saurabh Mirajkar on 27/12/19. // Copyright © 2019 Saurabh Mirajkar. All rights reserved. // import UIKit class EmployeeTableViewCell: UITableViewCell { @IBOutlet weak var idLabel: UILabel! @IBOutlet weak var ageLabel: UILabel! @IBOutlet weak var salaryLabel: UILabel! @IBOutlet weak var nameLabel: UILabel! }
[ -1 ]
e72a3c62d9e44560b3f9926b142bda556dd9e59d
1fd069be90a48002fe67762ea93c99732745f639
/swiftweibo/swiftweiboUITests/swiftweiboUITests.swift
f7c346b8214bbc18bfa0878b60d4570aa67ff05a
[]
no_license
lpxxn/swiftWeiBo
7712c3dcdd57a8ed1bd15c8c04efa1f10559f554
307a0e92447aba4cff5b61cb4549d90ae90731f2
refs/heads/master
2021-01-19T01:01:37.113983
2016-06-08T02:25:21
2016-06-08T02:25:21
60,661,340
0
0
null
null
null
null
UTF-8
Swift
false
false
1,250
swift
// // swiftweiboUITests.swift // swiftweiboUITests // // Created by peng.li on 16/6/8. // Copyright © 2016年 pengli.xxn. All rights reserved. // import XCTest class swiftweiboUITests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. XCUIApplication().launch() // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } }
[ 333827, 182277, 243720, 282634, 313356, 155665, 305173, 237599, 241695, 292901, 223269, 315431, 354342, 102441, 315433, 325675, 313388, 354346, 278571, 282671, 102446, 229425, 243763, 241717, 321589, 180279, 215095, 229431, 213051, 288829, 325695, 286787, 288835, 307269, 237638, 313415, 239689, 233548, 311373, 315468, 278607, 196687, 311377, 354386, 315477, 223317, 368732, 180317, 323678, 315488, 321632, 45154, 315489, 280676, 313446, 215144, 307306, 194667, 233578, 278637, 288878, 319599, 278642, 284789, 131190, 288890, 292987, 215165, 131199, 194692, 235661, 278669, 333968, 241809, 323730, 278676, 311447, 153752, 284827, 329884, 278684, 299166, 278690, 311459, 215204, 233635, 333990, 299176, 184489, 278698, 284843, 278703, 323761, 184498, 278707, 278713, 180409, 295099, 223418, 227517, 258233, 280761, 299197, 280767, 299202, 139459, 309443, 176325, 338118, 131270, 299208, 227525, 301255, 280779, 282832, 227536, 301270, 229591, 301271, 280792, 147679, 311520, 147680, 325857, 356575, 280803, 307431, 338151, 182503, 319719, 295147, 317676, 286957, 395511, 313595, 184574, 309504, 217352, 194832, 227601, 319764, 278805, 338196, 315674, 282908, 311582, 299294, 282912, 233761, 278817, 211239, 282920, 334121, 317738, 325930, 311596, 338217, 321839, 336177, 315698, 98611, 307514, 278843, 127292, 282938, 168251, 287040, 319812, 311622, 280903, 227655, 319816, 323914, 201037, 383309, 229716, 250196, 289109, 168280, 379224, 323934, 391521, 239973, 381286, 416103, 285031, 313703, 280938, 242027, 242028, 321901, 354671, 278895, 287089, 250227, 199030, 227702, 315768, 139641, 291193, 223611, 311679, 211327, 291200, 240003, 158087, 313736, 227721, 242059, 106893, 285074, 227730, 240020, 190870, 190872, 291225, 285083, 317851, 293275, 242079, 227743, 289185, 285089, 283039, 293281, 156069, 305572, 301482, 289195, 375211, 311723, 377265, 334259, 338359, 299449, 319931, 311739, 293309, 278974, 336319, 311744, 317889, 291266, 278979, 336323, 278988, 129484, 281038, 281039, 278992, 289229, 326093, 283089, 279000, 176602, 242138, 285152, 279009, 291297, 369121, 160224, 195044, 279014, 302539, 279017, 311787, 334315, 281071, 279030, 293368, 279033, 311800, 317949, 322396, 283138, 279042, 233987, 287237, 324098, 334345, 309770, 340489, 342537, 279053, 283154, 303634, 303635, 279061, 279060, 182802, 188954, 279066, 322077, 291359, 342560, 227881, 293420, 289328, 283185, 236080, 279092, 234037, 23093, 244279, 244280, 340539, 338491, 234044, 301635, 309831, 322119, 55880, 377419, 303693, 281165, 301647, 281170, 326229, 309847, 189016, 115287, 244311, 332379, 287319, 111197, 295518, 287327, 242274, 279143, 279150, 281200, 287345, 313970, 287348, 301688, 189054, 287359, 297600, 303743, 291455, 301702, 311944, 334473, 344714, 279176, 316044, 311948, 311950, 184974, 326288, 311953, 316048, 287379, 336531, 295575, 227991, 289435, 303772, 221853, 205469, 323335, 285348, 340645, 314020, 295591, 279207, 176810, 248494, 279215, 285360, 293552, 299698, 295598, 287412, 166581, 279218, 154295, 285362, 164532, 303802, 314043, 287418, 66243, 291529, 287434, 225996, 363212, 287438, 135888, 242385, 279249, 303826, 279253, 369365, 369366, 158424, 230105, 299737, 322269, 338658, 342757, 295653, 289511, 230120, 234216, 330473, 285419, 330476, 289517, 215790, 312046, 279278, 170735, 125683, 230133, 199415, 342775, 234233, 242428, 279293, 205566, 289534, 35584, 299777, 322302, 228099, 285443, 375552, 291584, 291591, 295688, 322312, 346889, 285450, 312076, 326413, 285457, 295698, 166677, 207639, 283418, 285467, 221980, 234276, 336678, 283431, 262952, 262953, 279337, 293673, 289580, 262957, 318247, 164655, 301872, 242481, 234290, 303921, 318251, 285493, 230198, 328495, 285496, 301883, 201534, 281407, 342846, 222017, 295745, 289599, 293702, 318279, 283466, 281426, 279379, 244569, 201562, 234330, 281434, 295769, 230238, 230239, 301919, 279393, 293729, 275294, 357219, 281444, 279398, 303973, 351078, 349025, 177002, 308075, 242540, 243592, 310132, 295797, 201590, 207735, 295799, 228214, 279418, 177018, 269179, 336765, 308093, 314240, 291713, 158594, 330627, 340865, 240517, 287623, 228232, 299912, 279434, 320394, 316299, 252812, 234382, 308111, 189327, 308113, 293780, 310166, 289691, 209820, 240543, 283551, 310177, 289699, 189349, 289704, 279465, 293801, 326571, 304050, 177074, 326580, 289720, 326586, 289723, 189373, 213956, 359365, 19398, 345030, 281541, 213961, 127945, 279499, 211913, 56270, 191445, 183254, 304086, 207839, 340960, 234469, 314343, 304104, 123880, 340967, 324587, 183276, 289773, 320492, 234476, 203758, 248815, 287730, 320495, 240631, 320504, 214009, 201721, 312313, 312317, 234499, 418819, 293894, 330759, 320520, 230411, 322571, 330766, 234513, 238611, 140311, 293911, 316441, 197658, 238617, 326684, 336930, 113710, 281647, 189487, 318515, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 318127, 336962, 160834, 314437, 349254, 238663, 300109, 207954, 234578, 250965, 296023, 205911, 339031, 314458, 156763, 281698, 281699, 230500, 285795, 250982, 322664, 228457, 279659, 318571, 234606, 300145, 238706, 279666, 230514, 187508, 300147, 312435, 302202, 285819, 314493, 285823, 150656, 234626, 279686, 222344, 285833, 285834, 234635, 228492, 318602, 337037, 177297, 162962, 187539, 347286, 308375, 285850, 296091, 234655, 302239, 300192, 330912, 306339, 234662, 300200, 249003, 238764, 3243, 208044, 302251, 322733, 294069, 324790, 300215, 64699, 294075, 228541, 339131, 343230, 229414, 283841, 148674, 283846, 312519, 279752, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 279775, 304352, 298209, 304353, 339167, 279780, 310496, 228587, 279789, 290030, 302319, 316661, 234741, 283894, 208123, 292092, 279803, 228608, 234756, 322826, 242955, 177420, 312588, 318732, 126229, 318746, 320795, 320802, 130342, 304422, 130344, 130347, 292145, 298290, 208179, 312628, 345398, 300342, 159033, 222523, 286012, 279872, 181568, 279874, 300355, 193858, 294210, 216387, 372039, 300354, 230730, 345418, 337228, 296269, 222542, 234830, 238928, 294220, 296274, 331091, 150868, 314708, 283990, 224591, 357720, 318804, 300378, 300379, 314711, 294236, 314721, 292194, 230757, 281958, 314727, 134504, 306541, 327023, 296304, 234864, 312688, 316786, 230772, 314740, 327030, 284015, 310650, 290170, 224637, 306558, 290176, 337280, 179586, 243073, 306561, 294278, 296328, 296330, 298378, 368012, 318860, 314765, 9618, 112019, 306580, 279955, 234902, 292242, 282008, 224662, 314776, 318876, 282013, 290206, 343457, 148899, 314788, 298406, 282023, 245160, 241067, 279979, 314797, 279980, 286128, 279988, 173492, 284086, 286133, 259513, 310714, 284090, 228796, 54719, 415170, 292291, 228804, 280003, 306630, 302530, 300488, 370122, 310731, 300490, 306634, 339403, 310735, 337359, 329168, 312785, 222674, 280020, 329170, 234957, 280025, 310747, 239069, 144862, 286176, 187877, 310758, 280042, 280043, 191980, 300526, 329198, 337391, 282097, 308722, 296434, 306678, 40439, 288248, 191991, 286201, 300539, 288252, 210429, 359931, 312830, 290304, 245249, 228868, 323079, 218632, 292359, 302602, 323083, 230922, 294413, 359949, 304655, 323088, 329231, 282132, 302613, 230933, 282135, 316951, 175640, 374297, 302620, 222754, 313338, 306730, 312879, 230960, 288305, 239159, 290359, 323132, 235069, 157246, 288319, 288322, 280131, 349764, 310853, 282182, 194118, 288328, 292424, 292426, 286281, 333389, 224848, 349780, 224852, 290391, 128600, 196184, 235096, 306777, 239192, 212574, 345697, 204386, 300643, 300645, 282214, 312937, 204394, 224874, 243306, 312941, 138862, 206447, 310896, 294517, 314997, 288377, 290425, 339579, 337533, 325246, 333438, 235136, 280193, 282244, 239238, 288391, 282248, 286344, 323208, 179853, 286351, 188049, 229011, 239251, 280217, 323226, 179868, 229021, 302751, 282272, 198304, 245413, 282279, 298664, 298666, 317102, 286387, 300725, 286392, 302778, 306875, 280252, 280253, 282302, 323262, 286400, 321217, 296636, 280259, 282309, 239305, 280266, 306891, 296649, 212684, 302798, 9935, 241360, 282321, 313042, 286419, 333522, 241366, 280279, 282330, 18139, 280285, 294621, 282336, 325345, 321250, 294629, 337638, 333543, 181992, 153318, 12009, 282347, 288492, 282349, 323315, 67316, 286457, 284410, 313082, 288508, 200444, 282366, 286463, 319232, 288515, 280326, 282375, 249606, 284425, 300810, 116491, 282379, 280333, 216844, 284430, 300812, 161553, 284436, 278292, 116502, 118549, 282390, 278294, 325403, 321308, 321309, 282399, 341791, 282401, 339746, 241440, 186148, 186149, 216868, 241447, 280011, 315172, 286507, 294699, 284460, 280367, 300849, 282418, 280373, 282424, 280377, 319289, 321338, 282428, 280381, 345918, 413500, 241471, 280386, 325444, 280391, 153416, 315209, 325449, 342705, 280396, 159563, 307024, 325460, 237397, 307030, 18263, 341846, 317268, 188250, 241494, 284508, 300893, 307038, 370526, 237411, 284515, 276326, 282471, 296807, 292713, 282476, 292719, 313200, 296815, 325491, 313204, 317305, 339840, 315265, 280451, 325508, 327556, 333700, 188293, 67464, 305032, 325514, 350091, 350092, 282503, 315272, 184207, 311183, 315275, 282517, 294806, 350102, 214936, 294808, 337816, 239515, 333727, 298912, 319393, 294820, 118693, 219046, 284584, 294824, 298921, 313257, 292783, 126896, 300983, 343993, 288698, 98240, 294849, 214978, 280517, 280518, 214983, 282572, 282573, 24531, 231382, 323554, 292835, 292838, 294887, 317416, 174058, 278507, 313322, 311277, 296942, 298987, 327666, 278515, 325620, 239610 ]
d71ac868aefbba35e80e95512eb3cdcd85b18c85
0ebdac6e63eb466d8149b0ebe4f4f36225e1ce8f
/FM-Swift/FM-Swift/Subcribe=订阅/SubScribeViewController.swift
36155a34f4cbbe1657b7fb95e7eedb04c6ee44f4
[]
no_license
MyungSinKim/FM-swift
20b4824fd03eeb4aa1fd31e6c22a52bc7b1d489e
45bcb628b3466123f5300df7020144b12b7b992a
refs/heads/master
2021-01-25T00:34:03.222741
2017-06-03T10:27:58
2017-06-03T10:27:58
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,307
swift
// // SubScribeViewController.swift // FM-Swift // // Created by 石冬冬 on 2017/5/15. // Copyright © 2017年 sdd. All rights reserved. // import UIKit class SubScribeViewController: BaseViewController { // MARK: -属性 // 分类标题 lazy var subTitleArr:[String] = { return ["推荐","订阅","历史"] }() // // 分类视图 var subTitleView: FindSubTitleView? // 所有子控制器 lazy var controllers: [BaseViewController] = { [unowned self] in var cons: [BaseViewController] = [BaseViewController]() for title in self.subTitleArr { let con = FindFactory.subFindVcWith(identifier: title) cons.append(con) } return cons }() // 分页控制器 lazy var pageVc: PageViewController = { [unowned self] in let pageVc = PageViewController.init(superController: self, controllers: self.controllers) pageVc.delegate = self self.view.addSubview(pageVc.view) return pageVc }() // override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = UIColor(red: 0.92, green: 0.93, blue: 0.93, alpha: 1.0) pageVc.view.snp.makeConstraints { (make) in make.top.equalTo(view.snp.top) make.left.right.equalTo(view) make.bottom.equalTo(view.snp.bottom).offset(-49) } subTitleView = FindSubTitleView() subTitleView?.titleArray = subTitleArr subTitleView?.delegate = self subTitleView?.frame = CGRect.init(x: 0, y: 0, width: kScreenW, height: 40) navigationItem.titleView = subTitleView } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) } } // MARK: -FindSubTitleViewDelegate extension SubScribeViewController: FindSubTitleViewDelegate { func findSubTitleViewDidSelected(_ titleView: FindSubTitleView, index: NSInteger, title: String) { pageVc.setCurrentSubController(index: index) } } extension SubScribeViewController: PageViewControllerDelegate { func currentSubPageController(pageViewController: PageViewController, index: NSInteger) { subTitleView?.jumpToShow(at: index) } }
[ -1 ]
7fb8f460794561dbd068be40b6224717be33d2ab
18df8608cdd43e5463a0a40aafc19fe4161bb672
/UIStackViewDemo/AppDelegate.swift
6bdbbb95bb5b1fe9e91ccbbfa8f9fdde88ac4c19
[]
no_license
GOTO-TSL/UIStackViewDemo
bf140c77a60c1e01600645cb1d5e7fcd4a2a5cc1
d8182256a9eb21777a0d942b72720aad11b6f4e5
refs/heads/main
2023-07-17T03:03:57.499103
2021-08-30T16:46:44
2021-08-30T16:46:44
401,417,644
0
0
null
null
null
null
UTF-8
Swift
false
false
1,357
swift
// // AppDelegate.swift // UIStackViewDemo // // Created by 後藤孝輔 on 2021/08/30. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 254030, 368727, 180313, 368735, 180320, 376931, 368752, 417924, 262283, 377012, 164028, 327871, 180416, 377036, 180431, 377046, 418010, 377060, 205036, 393456, 393460, 418043, 336123, 385280, 336128, 262404, 180490, 164106, 368911, 262416, 262422, 377117, 262436, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 377383, 352821, 197177, 418363, 188987, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 164538, 328386, 352968, 344776, 352971, 418507, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 344831, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 361288, 336714, 328522, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 386003, 345043, 386011, 386018, 386022, 435187, 328714, 361489, 386069, 386073, 336921, 336925, 345118, 377887, 345133, 345138, 386101, 361536, 189520, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 345267, 386258, 328924, 66782, 222437, 386285, 328941, 386291, 345376, 353570, 345379, 410917, 345382, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 181673, 181681, 337329, 181684, 361917, 181696, 337349, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 394853, 345701, 222830, 370297, 353919, 403075, 345736, 198280, 403091, 345749, 419483, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 419517, 337599, 419527, 419530, 419535, 272081, 419542, 394966, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 370415, 337659, 141051, 337668, 362247, 395021, 362255, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 354150, 354156, 345964, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 329885, 346272, 362660, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 387306, 387312, 436473, 379134, 411903, 411916, 379152, 395538, 387349, 338199, 387352, 248111, 362822, 436555, 190796, 379233, 354673, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 256472, 338403, 248308, 199164, 330252, 330267, 354855, 10828, 199249, 346721, 174695, 248425, 191084, 338543, 191092, 346742, 330383, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 158761, 347176, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 412764, 339036, 257120, 265320, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 347437, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249227, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 372163, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 339420, 249308, 339424, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 126596, 421508, 224904, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 225058, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 323402, 257868, 225103, 257871, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 257896, 274280, 257901, 225137, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 184244, 372664, 372702, 372706, 356335, 380918, 372738, 405533, 430129, 266294, 266297, 421960, 356439, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 389380, 61722, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 397622, 332090, 225597, 332097, 348488, 332106, 348502, 250199, 250202, 332125, 250210, 332152, 389502, 250238, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 160234, 127471, 340472, 324094, 266754, 324111, 340500, 381481, 356907, 324142, 356916, 324149, 324155, 348733, 324164, 348743, 381512, 324173, 324176, 389723, 332380, 381545, 340627, 184982, 373398, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 348978, 152370, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 430965, 381813, 324472, 398201, 340858, 324475, 430972, 340861, 324478, 119674, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 324524, 324533, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 349172, 349180, 439294, 209943, 357410, 250914, 185380, 357418, 209965, 209971, 209975, 209979, 209987, 209990, 209995, 341071, 349267, 250967, 210010, 341091, 210025, 210030, 210036, 210039, 349308, 210044, 349311, 160895, 210052, 349319, 210055, 218247, 210067, 210077, 210080, 251044, 210084, 185511, 210095, 210098, 210107, 210115, 210127, 333009, 210131, 333014, 210138, 210143, 218354, 218360, 251128, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 415033, 357708, 210260, 365911, 259421, 365921, 333154, 333162, 234866, 390516, 333175, 357755, 374160, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 153227, 333498, 210631, 333511, 259788, 358099, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 268041, 210698, 366348, 210706, 399128, 210719, 358191, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 341851, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 382890, 350146, 358371, 350189, 350193, 350202, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 342111, 342133, 374902, 260289, 260298, 211160, 334045, 375026, 358644, 325891, 375053, 268559, 432405, 325914, 325917, 194852, 358700, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 375216, 334262, 334275, 326084, 358856, 195039, 334304, 334311, 375277, 334321, 350723, 391690, 186897, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 383536, 358961, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 162445, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 391894, 154328, 416473, 64230, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 326460, 260924, 375612, 244540, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 375656, 433000, 211831, 351097, 392060, 359295, 351104, 400259, 236430, 342930, 392091, 400285, 252836, 359334, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 384107, 367723, 187502, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 367800, 384191, 351423, 384198, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 384249, 343306, 261389, 359694, 253200, 261393, 384275, 245020, 245029, 171302, 351534, 376110, 245040, 384314, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 367980, 425328, 343409, 253303, 154999, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 359865, 384443, 146876, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 343544, 368122, 409091, 359947, 359955, 359983, 343630, 179802, 155239, 327275, 245357, 138864, 155254, 155273, 368288, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 245475, 155371, 245483, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 425845, 147317, 262005, 262008, 262011, 155516, 155521, 155525, 360326, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 393169, 384977, 155611, 155619, 253923, 155621, 253926, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
638d92af75f7ac29cbf3196b43c9807966cdf22b
00dd664bbca1c80ef999a879d7dc3aa7e49a0f50
/Source/Enumerations/SeatHeater.swift
e84129ccae1004b77b2d3e51fda0235766764891
[ "MIT" ]
permissive
VincentDondain/TeslaKit
c028814fadc490f1339f0287f3a81ecc70ad4a7f
758c1791228af822ab97472070db65690e4ff738
refs/heads/master
2020-12-29T19:16:46.572185
2019-07-12T18:27:23
2019-07-12T18:27:23
238,701,258
0
0
MIT
2020-02-06T13:58:09
2020-02-06T13:58:08
null
UTF-8
Swift
false
false
444
swift
// // SeatHeater.swift // TeslaKit // // Created by Jaren Hamblin on 12/27/18. // import Foundation /// public enum SeatHeater: Int { /// case frontLeft = 0 /// case frontRight = 1 /// case rearLeft = 2 /// case rearLeftBack = 3 /// case rearCenter = 4 /// case rearRight = 5 /// case rearRightBack = 6 /// case thirdRowLeft = 7 /// case thirdRowRight = 8 }
[ -1 ]
0229b7d0263686b0d6c15b8f04ae8000cb737af3
4551d65bbcb5c2606788645cfaf63866478061a5
/EEH/ViewControllers/MainViewController.swift
3c5fcc449ad1c06a9ee52197c486224858246b93
[ "MIT" ]
permissive
nwkm/EEH
33f76abaecdcab355deeb4ebc9fa71394dc4e43d
f5ffb95891934fefeb3bf8297c1d377f250f8464
refs/heads/master
2022-07-22T18:49:37.437770
2018-04-03T22:00:41
2018-04-03T22:00:41
null
0
0
null
null
null
null
UTF-8
Swift
false
false
6,821
swift
// // MainViewController.swift // EEH // // Created by nawin on 3/30/18. // Copyright © 2018 tek5. All rights reserved. // import UIKit import RxSwift import RxCocoa import Firebase import FirebaseAuth class MainViewController: UIViewController { @IBOutlet weak var collectionView: UICollectionView! var refreshControl: UIRefreshControl! private let disposeBag = DisposeBag() private let taskService = TaskService() private var viewModel: MainViewModel! override func viewDidLoad() { super.viewDidLoad() if let navCtrl = self.navigationController { navCtrl.navigationBar.setBackgroundImage(UIImage(), for: .default) navCtrl.navigationBar.shadowImage = UIImage() navCtrl.navigationBar.isTranslucent = true navCtrl.view.backgroundColor = .clear navCtrl.navigationBar.tintColor = .white navCtrl.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.white] } setupViews() configBinding() } override func viewWillAppear(_ animated: Bool) { let defaults = UserDefaults.standard if let _ = defaults.string(forKey: "uid") { return } let storyboard = UIStoryboard(name: "Main", bundle: nil) let loginViewController = storyboard.instantiateViewController(withIdentifier: "idLoginViewController") as! LoginViewController self.present(loginViewController, animated: true, completion: nil) } override func viewDidAppear(_ animated: Bool) { initialize() } // MARK: Config binding func configBinding() { viewModel = MainViewModel(taskService: taskService) viewModel .tasks .bind(to: self.collectionView.rx.items(cellIdentifier: "idTaskCell", cellType: TaskCell.self)) { row , element, cell in if row > 0 { cell.setupCell(task: element) } else { cell.setupDefaultCell() } } .disposed(by: disposeBag) viewModel .isLoading .subscribe(onNext: { loading in if loading { SwiftLoader.show(title: "Loading...", animated: true) } else { SwiftLoader.hide() } }) .disposed(by: disposeBag) collectionView .rx .itemHighlighted .subscribe(onNext: { [unowned self] indexPath in UIView.animate(withDuration: 0.5) { if let cell = self.collectionView.cellForItem(at: indexPath) as? TaskCell { cell.transform = .init(scaleX: 0.95, y: 0.95) cell.contentView.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1) } } }) .disposed(by: disposeBag) collectionView .rx .itemUnhighlighted .subscribe(onNext: { [unowned self] indexPath in UIView.animate(withDuration: 0.5) { if let cell = self.collectionView.cellForItem(at: indexPath) as? TaskCell { cell.transform = .identity cell.contentView.backgroundColor = .clear } } }) .disposed(by: disposeBag) collectionView .rx .itemSelected .subscribe(onNext: { [unowned self] indexPath in if indexPath.row > 0 { self.performSegue(withIdentifier: "segueTaskDetail", sender: indexPath) } else { self.performSegue(withIdentifier: "segueTaskCreate", sender: indexPath) } }) .disposed(by: disposeBag) refreshControl .rx .controlEvent(.valueChanged) .map { _ in self.refreshControl.isRefreshing } .filter { $0 == true } .subscribe(onNext: { [unowned self] _ in self.refreshControl.endRefreshing() }) .disposed(by: disposeBag) viewModel.bindObservableToFetchTasks(refreshControl.rx.controlEvent(.valueChanged).asObservable()) } func initialize() { let observable = Observable<Void>.create { observer -> Disposable in observer.on(.next(Void())) observer.on(.completed) return Disposables.create() } viewModel.bindObservableToFetchTasks(observable) } func setupViews() { var config : SwiftLoader.Config = SwiftLoader.Config() config.size = 150 config.spinnerColor = .red config.foregroundColor = .black config.foregroundAlpha = 0.5 SwiftLoader.setConfig(config: config) collectionView.delegate = nil collectionView.dataSource = nil let flowLayout = UICollectionViewFlowLayout() let padding: CGFloat = 20 let collectionViewSize = collectionView.frame.size.width - padding flowLayout.itemSize = CGSize(width: collectionViewSize/2, height: 100) flowLayout.minimumLineSpacing = 20 flowLayout.sectionInset = UIEdgeInsetsMake(20, 20, 20, 20) collectionView.setCollectionViewLayout(flowLayout, animated: true) refreshControl = UIRefreshControl() collectionView.alwaysBounceVertical = true refreshControl.tintColor = .green collectionView.addSubview(refreshControl) } } extension MainViewController { override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "segueTaskDetail" { if let destinationVC = segue.destination as? TaskDetailViewController { if let cell = self.collectionView.cellForItem(at: sender as! IndexPath) as? TaskCell, let task = cell.element { destinationVC.taskId = task.id } } } else if segue.identifier == "segueTaskCreate" { if let _ = segue.destination as? TaskCreateViewController { print(sender as! IndexPath) } } } } extension MainViewController: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let padding: CGFloat = 60 let collectionViewSize = collectionView.frame.size.width - padding return CGSize(width: collectionViewSize/2, height: 100) } }
[ -1 ]
f15edbe051f625ddf8ff4e9b860fef78af58d883
09d0e946278e0fdaa1ebd1ae2c254fc7be64bc64
/AutoSquadron/Controller/CartVC.swift
acfcb722860f8bd10d6f35adb74d34c92bf20cf4
[]
no_license
vivekraideveloper/AutoSquadron
74cc5f157aadb18221322173a7710d8532f6d96a
08d7f58bf30107178d9fab2724cb7abe62414c9a
refs/heads/master
2020-03-30T08:20:01.962062
2019-02-07T12:08:33
2019-02-07T12:08:33
151,006,874
0
0
null
null
null
null
UTF-8
Swift
false
false
2,853
swift
// // CartVC.swift // AutoSquadron // // Created by Vivek Rai on 02/11/18. // Copyright © 2018 Vivek Rai. All rights reserved. // import UIKit import RealmSwift import SwipeCellKit import Firebase class CartVC: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var userInfoLabel: UILabel! @IBOutlet weak var cartTableView: UITableView! let realm = try! Realm() var data: Results<CartData>! override func viewDidLoad() { super.viewDidLoad() cartTableView.delegate = self cartTableView.dataSource = self loadData() userName() } func userName(){ guard let name = Auth.auth().currentUser?.displayName else { return } userInfoLabel.text = " Welcome " + name } func loadData() { data = realm.objects(CartData.self) self.cartTableView.reloadData() } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return data.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! CartCell cell.serviceTypeName.text = data[indexPath.row].serviceName cell.servicePrice.text = "Rs \(data[indexPath.row].servicePrice)" cell.workshopName.text = data[indexPath.row].workshopName // let swipeCell = tableView.dequeueReusableCell(withIdentifier: "cell") as! SwipeTableViewCell // swipeCell.delegate = self return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let item = data[indexPath.row] do{ try realm.write { realm.delete(item) self.cartTableView.reloadData() } }catch{ print("Error while deleting") } self.cartTableView.deselectRow(at: indexPath, animated: true) } func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction]? { guard orientation == .right else { return nil } let deleteAction = SwipeAction(style: .destructive, title: "Delete") { action, indexPath in // handle action by updating model with deletion } // customize the action appearance deleteAction.image = UIImage(named: "delete-icon") return [deleteAction] } @IBAction func backButtonPressed(_ sender: Any) { dismiss(animated: true, completion: nil) } @IBAction func checkOutButtonPressed(_ sender: Any) { // Perform Payment gateway } }
[ -1 ]
10cc77838a7b8a207eb54825e56d9730535db3bf
9442736f8f23d7ed85f2d66c4b26b7752d39a9ce
/Oskar/ViewController.swift
f4a58037607aa34f325979f564db9e87fe590701
[]
no_license
Bersaelor/Oskar
33ea43921258f43ecd950a7a6572031d997e24c3
9e8a5116636bed8ee5e7332e67510c4676d9bf22
refs/heads/master
2021-06-25T18:14:22.284822
2020-12-22T16:05:23
2020-12-22T16:05:23
186,625,840
0
1
null
null
null
null
UTF-8
Swift
false
false
8,592
swift
// // ViewController.swift // Oskar // // Created by Konrad Feiler on 14.05.19. // Copyright © 2019 Konrad Feiler. All rights reserved. // import ARKit import SceneKit import ReplayKit import UIKit class ViewController: UIViewController, ARSCNViewDelegate { // MARK: Outlets @IBOutlet var sceneView: ARSCNView! @IBOutlet weak var recordingLabel: UILabel! // MARK: Properties private let viewModel = ViewModel() private let nodes = NodeManager() private var hasShownInfos = false /// Convenience accessor for the session owned by ARSCNView. var session: ARSession { return sceneView.session } override func viewDidLoad() { super.viewDidLoad() // Set the view's delegate sceneView.delegate = self nodes.connect(to: viewModel) nodes.connect(to: sceneView) nodes.errorHandler = self.display(error:) nodes.sessionInteruptedHandler = sessionInterrupted nodes.sessionInterruptionEndedHandler = sessionInterruptionEnded sceneView.antialiasingMode = SCNAntialiasingMode.multisampling4X viewModel.stepChanged = { [weak self] step in self?.stepChanged(to: step) } nodes.resetGlassesPositions() let panGR = UIPanGestureRecognizer(target: self, action: #selector(handlePan(recognizer:))) view.addGestureRecognizer(panGR) let tapGR = UITapGestureRecognizer(target: self, action: #selector(handleTap(recognizer:))) view.addGestureRecognizer(tapGR) } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) /* AR experiences typically involve moving the device without touch input for some time, so prevent auto screen dimming. */ UIApplication.shared.isIdleTimerDisabled = true if !hasShownInfos && !isDebugging { performSegue(withIdentifier: "presentInfos", sender: nil) hasShownInfos = true } nodes.resetGlassesPositions() resetTracking() } private let audioPlayer: AVAudioPlayer = { let filePath = Bundle.main.path(forResource: "voiceover.mp3", ofType: nil) let url = URL(fileURLWithPath: filePath!) return try! AVAudioPlayer(contentsOf: url) }() override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) // Pause the view's session sceneView.session.pause() } private let recorder = RPScreenRecorder.shared() private var isRecording = false { didSet { guard oldValue != isRecording else { return } log.debug("\(oldValue) -> \(isRecording)") DispatchQueue.main.async { self.recordingLabel.isHidden = self.isRecording if !oldValue && self.isRecording { self.startPlayingVoiceover() } else { self.stopAudio() } } } } private func startPlayingVoiceover() { guard UserDefaults.standard.bool(forKey: "enable_voice_over_play") else { log.debug("Not playing audio") return } if audioPlayer.isPlaying { audioPlayer.stop() } audioPlayer.currentTime = 0 audioPlayer.play() } private func stopAudio() { if audioPlayer.isPlaying { audioPlayer.stop() } } private func stepChanged(to step: VideoStep) { log.debug("newStep: \(step)") switch step { case .idle: nodes.resetGlassesPositions() case .bor, .sami, .skoll: nodes.putOnFace(glassesName: step.rawValue) case .colorA, .colorB, .colorC: guard let color = step.metalColor else { return } nodes.animateColor(to: color) case .startVideoRecording: startRecording() case .endRecording: stopRecording() } } // MARK: - User Interaction private var fingerPosition: CGPoint? @IBAction func unwindToMain(segue: UIStoryboardSegue) { } @objc func handlePan(recognizer: UIPanGestureRecognizer) { let location = recognizer.location(in: view) switch recognizer.state { case .began: fingerPosition = location case .changed: guard let lastPosition = fingerPosition else { return } fingerPosition = location let delta: CGPoint = location - lastPosition nodes.contentUpdater.angleAdjustment += delta case .cancelled, .failed, .ended: fingerPosition = nil case .possible: break @unknown default: break } } @objc func handleTap(recognizer: UITapGestureRecognizer) { viewModel.nextStep() } /// - Tag: ARFaceTrackingSetup func resetTracking() { #if targetEnvironment(simulator) log.debug("not starting AR Session in simulator") return #endif let configuration = ARFaceTrackingConfiguration() session.run(configuration, options: [.resetTracking, .removeExistingAnchors]) } // MARK: - Video Recording Related private func startRecording() { guard recorder.isAvailable else { log.warning("Recording isn't available at the moment") isRecording = false return } recorder.isMicrophoneEnabled = true log.debug("isMicrophoneEnabled: \(recorder.isMicrophoneEnabled)") recorder.startRecording { (error) in if let error = error { log.error("Failed to start recording due to \(error)") self.isRecording = false return } self.isRecording = true } } private func stopRecording() { recorder.stopRecording { [weak self] (previewVC, error) in guard let self = self else { return } if let error = error { log.error("Failed to stop recording due to \(error)") self.isRecording = false return } self.isRecording = false guard let previewVC = previewVC else { return } previewVC.previewControllerDelegate = self previewVC.modalPresentationStyle = .fullScreen DispatchQueue.main.async { self.present(previewVC, animated: true, completion: { log.debug("Presented Preview of Recording VC") }) } } } } // MARK: - ARSCNViewDelegate extension ViewController { private func displayErrorMessage(title: String, message: String) { // Blur the background. // Present an alert informing about the error that has occurred. let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) let restartAction = UIAlertAction(title: "Restart Session", style: .default) { _ in alertController.dismiss(animated: true, completion: nil) self.resetTracking() } alertController.addAction(restartAction) present(alertController, animated: true, completion: nil) } private func display(error: Error) { let errorWithInfo = error as NSError let messages = [ errorWithInfo.localizedDescription, errorWithInfo.localizedFailureReason, errorWithInfo.localizedRecoverySuggestion ] let errorMessage = messages.compactMap({ $0 }).joined(separator: "\n") DispatchQueue.main.async { self.displayErrorMessage(title: "The AR session failed.", message: errorMessage) } } func session(_ session: ARSession, didFailWithError error: Error) { // Present an error message to the user } private func sessionInterrupted() { } private func sessionInterruptionEnded() { DispatchQueue.main.async { self.resetTracking() } } } extension ViewController: RPPreviewViewControllerDelegate { func previewControllerDidFinish(_ previewController: RPPreviewViewController) { dismiss(animated: true) } }
[ -1 ]
e2bb6a1339e43df0e53332f2e6a2ff28fc5582c5
0074c4943e0780b3cdbb89f12bf2c51e3ac97303
/YFSAsyncRoundCorner/YFSAsyncRoundCorner/ViewController.swift
db7b88bba8c729de211bd6d9a12340e23c653400
[]
no_license
YFWCQ/YFSAsyncRoundCorner
680ce626afaec7fa885d7e40d87030c402a99526
64e00d095c3bdd2d6d5b3bfc9e58d24196aeccab
refs/heads/master
2021-01-15T19:23:27.779621
2017-08-09T15:10:41
2017-08-09T15:10:41
99,821,198
0
0
null
null
null
null
UTF-8
Swift
false
false
1,747
swift
// // ViewController.swift // YFSAsyncRoundCorner // // Created by FYWCQ on 2017/8/6. // Copyright © 2017年 YFWCQ. All rights reserved. // import UIKit let cellIdentifier = "cellIdentifier" class ViewController: UIViewController,UITableViewDelegate,UITableViewDataSource { var tableView:UITableView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. tableView = UITableView(frame: self.view.bounds, style: UITableViewStyle.plain) tableView.delegate = self tableView.dataSource = self self.view.addSubview(tableView) } func numberOfSections(in tableView: UITableView) -> Int { return 1 } func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return 76 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 100 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) as? YFCell if cell == nil { cell = YFCell(style: .default, reuseIdentifier: cellIdentifier) } cell?.headImageView.yf_setAsyncRoundCornnerImage(with: URL(string: "http://zoneke-img.b0.upaiyun.com/76e8550438153b35489914e1afe20392.jpg!120x120"), placeholder:UIImage(named: "defaultImage")?.yf_roundConner()) return cell! } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
[ -1 ]
41bddbdaa70a7f37c0e9bf7e1981812c7ddd7d49
68f2a0dd248804f6e8517b9bc0705cf731528c4c
/TinderClone/Views/MatchView.swift
4bea72a49ef290d419b8d2166d0ac312c0968a37
[]
no_license
youss-cs/TinderClone
05cacf188de24c1a041d5a10e7d3ece413eae299
1ddfe92025fbf0e1feb177cc8770fd1c1352f2fb
refs/heads/master
2020-05-07T19:16:38.897624
2019-04-21T14:21:08
2019-04-21T14:21:08
180,806,310
0
0
null
null
null
null
UTF-8
Swift
false
false
8,641
swift
// // MatchView.swift // TinderClone // // Created by YouSS on 4/20/19. // Copyright © 2019 YouSS. All rights reserved. // import UIKit import Firebase class MatchView: UIView { var currentUser: User! // you're almost always guaranteed to have this variable set up var cardUID: String! { didSet { // either fetch current user inside here or pass in our current user if we have it // fetch the cardUID information let query = Firestore.firestore().collection("Users") query.document(cardUID).getDocument { (snapshot, err) in if let err = err { print("Failed to fetch card user:", err) return } guard let dictionary = snapshot?.data() else { return } let user = User(dictionary: dictionary) guard let url = URL(string: user.imageUrl1 ?? "") else { return } self.cardUserImageView.sd_setImage(with: url) guard let currentUserImageUrl = URL(string: self.currentUser.imageUrl1 ?? "") else { return } self.currentUserImageView.sd_setImage(with: currentUserImageUrl, completed: { (_, _, _, _) in self.setupAnimations() }) // setup the description label text correctly somewhere inside of here self.descriptionLabel.text = "You and \(user.fullName ?? "") have liked\neach other." } } } fileprivate let itsAMatchImageView: UIImageView = { let iv = UIImageView(image: #imageLiteral(resourceName: "itsamatch")) iv.contentMode = .scaleAspectFill return iv }() fileprivate let descriptionLabel: UILabel = { let label = UILabel() label.text = "You and X have liked\neach other" label.textAlignment = .center label.textColor = .white label.font = UIFont.systemFont(ofSize: 20) label.numberOfLines = 0 return label }() fileprivate let currentUserImageView: UIImageView = { let imageView = UIImageView(image: #imageLiteral(resourceName: "kelly1")) imageView.contentMode = .scaleAspectFill imageView.clipsToBounds = true imageView.layer.borderWidth = 2 imageView.layer.borderColor = UIColor.white.cgColor return imageView }() fileprivate let cardUserImageView: UIImageView = { let imageView = UIImageView(image: #imageLiteral(resourceName: "jane2")) imageView.contentMode = .scaleAspectFill imageView.clipsToBounds = true imageView.layer.borderWidth = 2 imageView.layer.borderColor = UIColor.white.cgColor imageView.alpha = 0 return imageView }() fileprivate let sendMessageButton: UIButton = { let button = SendMessageButton(type: .system) button.setTitle("SEND MESSAGE", for: .normal) button.setTitleColor(.white, for: .normal) return button }() fileprivate let keepSwipingButton: UIButton = { let button = KeepSwipingButton(type: .system) button.setTitle("Keep Swiping", for: .normal) button.setTitleColor(.white, for: .normal) return button }() override init(frame: CGRect) { super.init(frame: frame) setupBlurView() setupLayout() // setupAnimations() } fileprivate func setupAnimations() { views.forEach({$0.alpha = 1}) // starting positions let angle = 30 * CGFloat.pi / 180 currentUserImageView.transform = CGAffineTransform(rotationAngle: -angle).concatenating(CGAffineTransform(translationX: 200, y: 0)) cardUserImageView.transform = CGAffineTransform(rotationAngle: angle).concatenating(CGAffineTransform(translationX: -200, y: 0)) sendMessageButton.transform = CGAffineTransform(translationX: -500, y: 0) keepSwipingButton.transform = CGAffineTransform(translationX: 500, y: 0) // keyframe animations for segmented animation UIView.animateKeyframes(withDuration: 1.3, delay: 0, options: .calculationModeCubic, animations: { // animation 1 - translation back to original position UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: 0.45, animations: { self.currentUserImageView.transform = CGAffineTransform(rotationAngle: -angle) self.cardUserImageView.transform = CGAffineTransform(rotationAngle: angle) }) // animation 2 - rotation UIView.addKeyframe(withRelativeStartTime: 0.6, relativeDuration: 0.4, animations: { self.currentUserImageView.transform = .identity self.cardUserImageView.transform = .identity }) }) { (_) in } UIView.animate(withDuration: 0.75, delay: 0.6 * 1.3, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.1, options: .curveEaseOut, animations: { self.sendMessageButton.transform = .identity self.keepSwipingButton.transform = .identity }) } lazy var views = [ itsAMatchImageView, descriptionLabel, currentUserImageView, cardUserImageView, sendMessageButton, self.keepSwipingButton, ] fileprivate func setupLayout() { views.forEach { (v) in addSubview(v) v.alpha = 0 } let imageWidth: CGFloat = 140 itsAMatchImageView.anchor(top: nil, leading: nil, bottom: descriptionLabel.topAnchor, trailing: nil, padding: .init(top: 0, left: 0, bottom: 16, right: 0), size: .init(width: 300, height: 80)) itsAMatchImageView.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true descriptionLabel.anchor(top: nil, leading: self.leadingAnchor, bottom: currentUserImageView.topAnchor, trailing: trailingAnchor, padding: .init(top: 0, left: 0, bottom: 32, right: 0), size: .init(width: 0, height: 50)) currentUserImageView.anchor(top: nil, leading: nil, bottom: nil, trailing: centerXAnchor, padding: .init(top: 0, left: 0, bottom: 0, right: 16), size: .init(width: imageWidth, height: imageWidth)) currentUserImageView.layer.cornerRadius = imageWidth / 2 currentUserImageView.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true cardUserImageView.anchor(top: nil, leading: centerXAnchor, bottom: nil, trailing: nil, padding: .init(top: 0, left: 16, bottom: 0, right: 0), size: .init(width: imageWidth, height: imageWidth)) cardUserImageView.layer.cornerRadius = imageWidth / 2 cardUserImageView.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true sendMessageButton.anchor(top: currentUserImageView.bottomAnchor, leading: leadingAnchor, bottom: nil, trailing: trailingAnchor, padding: .init(top: 32, left: 48, bottom: 0, right: 48), size: .init(width: 0, height: 60)) keepSwipingButton.anchor(top: sendMessageButton.bottomAnchor, leading: sendMessageButton.leadingAnchor, bottom: nil, trailing: sendMessageButton.trailingAnchor, padding: .init(top: 16, left: 0, bottom: 0, right: 0), size: .init(width: 0, height: 60)) } let visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark)) fileprivate func setupBlurView() { visualEffectView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleTapDismiss))) addSubview(visualEffectView) visualEffectView.fillSuperview() visualEffectView.alpha = 0 UIView.animate(withDuration: 0.5, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseOut, animations: { self.visualEffectView.alpha = 1 }) { (_) in } } @objc fileprivate func handleTapDismiss() { UIView.animate(withDuration: 0.5, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 1, options: .curveEaseOut, animations: { self.alpha = 0 }) { (_) in self.removeFromSuperview() } } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
[ -1 ]
77c6fa2ed29638b3effbb1f4e25fbef6894ccf62
dc5c827956886143025efb73aa4f6e3162c14e88
/Snart/AppDelegate.swift
584ed5d39bc9b00159bb7874dc340c1a8d0b96e4
[]
no_license
finpingvin/Snart
e30fc00eaf97d2dfecf8d66802aeaf98a5c26f67
4425eeb709fb59bf0728c63ee9b193f60fbc854a
refs/heads/master
2020-05-22T00:56:19.239926
2019-05-11T21:17:07
2019-05-11T21:17:07
186,182,253
0
0
null
null
null
null
UTF-8
Swift
false
false
3,878
swift
// // AppDelegate.swift // Snart // // Created by Daniel Björkander on 2019-03-08. // Copyright © 2019 Daniel Björkander. All rights reserved. // import UIKit import UserNotifications @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow? var reminderImage: URL? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Register notification delegate let notificationCenter = UNUserNotificationCenter.current() notificationCenter.requestAuthorization(options: [.alert, .sound]) { (granted, error) in // Enable or disable features based on authorization. } notificationCenter.delegate = self return true } func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { guard let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return } reminderImage = documentsURL.appendingPathComponent(response.notification.request.content.userInfo["imageName"] as! String) window?.rootViewController?.performSegue(withIdentifier: "reminder", sender: nil) completionHandler() NSLog("Did receive notfication while in background") } func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { guard let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return } reminderImage = documentsURL.appendingPathComponent(notification.request.content.userInfo["imageName"] as! String) window?.rootViewController?.performSegue(withIdentifier: "reminder", sender: nil) completionHandler(.sound) NSLog("Did receive notfication while in foreground") } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ -1 ]
1bb325dc58e7158648856a913c217805b31d0599
648dedf1c02a33bc014322039002b32051c8e387
/ViewController.swift
16ef2b75b2305f910ed1012704e713b319a00dd5
[]
no_license
ehardacre/ClaremontMenu
066592d1bd8b2746e2de955a283c671d73c4f232
64d23ad262ba7a8ba69d3d499c2a58a426437528
refs/heads/master
2021-01-23T03:43:53.970546
2017-03-25T04:41:12
2017-03-25T04:41:12
86,118,085
1
1
null
null
null
null
UTF-8
Swift
false
false
17,896
swift
// // ViewController.swift // Claremont Menu // // Created by Ethan Hardacre on 1/18/17. // Copyright © 2017 Ethan Hardacre. All rights reserved. // import UIKit import Alamofire import SwiftyJSON import SDWebImage import CoreData class ViewController: UIViewController, UITabBarDelegate , UITableViewDelegate , UITableViewDataSource{ //selected DiningHall and it's corresponding number to be used in the URL var selectedDiningHall : String! var diningHallNumber : String! //meal to be shown var selectedMeal : String! var selectedItem : String? //URL for ASPC API var url : String = "http://www.claremontmenu.com/pdo/getFood.php?school=" //selected food item var ratingVC : RatingView? var apiDay : String? var imageArray = [String]() var imgURL = String() var DBURL = "http://www.claremontmenu.com/pdo/getFood.php?school=" var DBIntro = "&name[]=" var foodOnMenu = false //tab bar for the dining Halls @IBOutlet weak var tabbar: UITabBar! //tab bar items for the dining Halls @IBOutlet weak var rate: UIBarButtonItem! @IBOutlet weak var frank: UITabBarItem! @IBOutlet weak var frary: UITabBarItem! @IBOutlet weak var oldenborg: UITabBarItem! @IBOutlet weak var collins: UITabBarItem! @IBOutlet weak var scripps: UITabBarItem! @IBOutlet weak var pitzer: UITabBarItem! @IBOutlet weak var mudd: UITabBarItem! //the button with dining hall name @IBOutlet weak var DineButton: UIButton! //table view to house food data @IBOutlet weak var tableView: UITableView! //label for the current meal @IBOutlet weak var mealLabel: UILabel! //shows dining hall pop up when clicked @IBAction func showPopUp(_ sender: Any) { //link from pop up on story board and add to main view controller let popOverVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "sbPopUpID") as! PopUpViewController popOverVC.mainViewController = self self.addChildViewController(popOverVC) popOverVC.view.frame = self.view.frame self.view.addSubview(popOverVC.view) popOverVC.didMove(toParentViewController: self) //set the Title of thePop up and the corresponding image popOverVC.titleLabel.text = DineButton.titleLabel?.text switch popOverVC.titleLabel.text!{ case "FRANK" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "frankImg") case "FRARY" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "frary") case "COLLINS" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "collinsImg") case "OLDENBORG" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "oldenborgImg") case "SCRIPPS" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "scrippsImg") case "HARVEY MUDD" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "muddImg") case "PITZER" : popOverVC.diningHallImage.image = #imageLiteral(resourceName: "pitzerImg") default : break } //set the meal picker to the current meal being viewed if apiDay == "sat" || apiDay == "sun"{ popOverVC.pickerData = ["Brunch" , "Dinner"] if selectedMeal == "brunch"{ popOverVC.MealPicker.selectRow(0, inComponent: 0, animated: true) }else if selectedMeal == "dinner" { popOverVC.MealPicker.selectRow(1, inComponent: 0, animated: true) } }else{ popOverVC.pickerData = ["Breakfast" , "Lunch" , "Dinner"] if selectedMeal == "breakfast"{ popOverVC.MealPicker.selectRow(0, inComponent: 0, animated: true) }else if selectedMeal == "lunch"{ popOverVC.MealPicker.selectRow(1, inComponent: 0, animated: true) }else if selectedMeal == "dinner"{ popOverVC.MealPicker.selectRow(2, inComponent: 0, animated: true) } } } //Index to keep track of what dining hall is being viewed on swipe left and swipe right var index : Int? @IBAction func swipeRight(_ sender: UISwipeGestureRecognizer) { if index != 0{ tabbar.selectedItem = tabbar.items![index! - 1] convertItem(item: tabbar.selectedItem!) } } @IBAction func swipeLeft(_ sender: UISwipeGestureRecognizer) { if index != 6{ tabbar.selectedItem = tabbar.items![index! + 1] convertItem(item: tabbar.selectedItem!) } } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. //Setting the initial dining hall if selectedDiningHall == nil { DineButton.setTitle("FRANK", for: .normal) selectedDiningHall = "frank" diningHallNumber = "0" tabbar.selectedItem = tabbar.items![0] index = 0 } switch selectedDiningHall{ case "frary": diningHallNumber = "1" DineButton.setTitle("FRARY", for: .normal) index = 1 tabbar.selectedItem = tabbar.items![index!] break case "frank": diningHallNumber = "0" DineButton.setTitle("FRANK", for: .normal) index = 0 tabbar.selectedItem = tabbar.items![index!] break case "collins": diningHallNumber = "3" DineButton.setTitle("COLLINS", for: .normal) index = 3 tabbar.selectedItem = tabbar.items![index!] break case "scripps": diningHallNumber = "4" DineButton.setTitle("SCRIPPS", for: .normal) index = 4 tabbar.selectedItem = tabbar.items![index!] break case "mudd": diningHallNumber = "6" DineButton.setTitle("HARVEY MUDD", for: .normal) index = 6 tabbar.selectedItem = tabbar.items![index!] break case "oldenborg": diningHallNumber = "2" DineButton.setTitle("OLDENBORG", for: .normal) index = 2 tabbar.selectedItem = tabbar.items![index!] break case "pitzer": diningHallNumber = "5" DineButton.setTitle("PITZER", for: .normal) index = 5 tabbar.selectedItem = tabbar.items![index!] break default: diningHallNumber = "0" DineButton.setTitle("FRANK", for: .normal) index = 0 tabbar.selectedItem = tabbar.items![index!] break } //setting up the day of the week for the API let dayAsInt = NSDate().dayOfWeek()! switch dayAsInt{ case 1: apiDay = "sun" case 2: apiDay = "mon" case 3: apiDay = "tue" case 4: apiDay = "wed" case 5: apiDay = "thu" case 6: apiDay = "fri" case 7: apiDay = "sat" default: apiDay = "" } //getting the current hour in order to set the meal initially let date = Date() let hour = Calendar.current.component(.hour, from: date) if selectedMeal == nil{ if apiDay != "sat" || apiDay != "sun"{ if hour < 10{ selectedMeal = "breakfast" }else if hour < 14{ selectedMeal = "lunch" }else{ selectedMeal = "dinner" } }else{ if hour < 13{ selectedMeal = "brunch" }else{ selectedMeal = "dinner" } } } //setting the meal label tex equal to the selected meal mealLabel.text = selectedMeal requestData() print(fullMenu.menuItems) //getFoodImages() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) { //change tab bar when Item is Selected convertItem(item: item) } //TABLE VIEW INHERIT FUNCTIONS func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { if self.foodOnMenu{ return fullMenu.reorderedMenu.count }else{ return 0 } } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print(fullMenu.reorderedMenu[indexPath.row]) self.selectedItem = fullMenu.reorderedMenu[indexPath.row] } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { //custom cells for the main tableview let cell = tableView.dequeueReusableCell(withIdentifier: "menuCell", for: indexPath) as! CustomCell //setting the foodName of the cell cell.foodName.text = fullMenu.reorderedMenu[indexPath.row] //setting the image that is in the cell if fullMenu.itemImages[indexPath.row] != "nil" { cell.foodImage?.sd_setImage(with: URL(string: fullMenu.itemImages[indexPath.row])) }else{ cell.foodImage.image = #imageLiteral(resourceName: "defaultFood") } cell.foodImage.layer.cornerRadius = cell.foodImage.frame.height/2 cell.foodImage.clipsToBounds = true //setting the cosmos view to the correct rating let rating = round(fullMenu.itemRatings[indexPath.row] * 10) / 10 cell.foodRating.rating = Double(rating) cell.ratingLabel.text = String(rating) return cell } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { //maintaining variables by passing them to the rating view if segue.identifier == "toRateView" { let destination : RatingView = segue.destination as! RatingView destination.foodName = fullMenu.reorderedMenu[(tableView.indexPathForSelectedRow?.row)!] destination.foodID = fullMenu.foodIDs[(tableView.indexPathForSelectedRow?.row)!] destination.homeVC = self destination.diningHall = selectedDiningHall destination.imageURL = URL(string: fullMenu.itemImages[(tableView.indexPathForSelectedRow?.row)!]) destination.meal = selectedMeal } } //converting all the titles when a tab bar item is selected func convertItem(item: UITabBarItem){ switch item{ case frary: selectedDiningHall = "frary" diningHallNumber = "1" DineButton.setTitle("FRARY", for: .normal) index = 1 requestData() break case frank: selectedDiningHall = "frank" diningHallNumber = "0" DineButton.setTitle("FRANK", for: .normal) index = 0 requestData() break case collins: selectedDiningHall = "cmc" diningHallNumber = "3" DineButton.setTitle("COLLINS", for: .normal) index = 3 requestData() //getFoodImages() break case scripps: selectedDiningHall = "scripps" diningHallNumber = "4" DineButton.setTitle("SCRIPPS", for: .normal) index = 4 requestData() break case mudd: selectedDiningHall = "mudd" diningHallNumber = "6" DineButton.setTitle("HARVEY MUDD", for: .normal) index = 6 requestData() //getFoodImages() break case oldenborg: selectedDiningHall = "oldenborg" diningHallNumber = "2" DineButton.setTitle("OLDENBORG", for: .normal) index = 2 requestData() //getFoodImages() break case pitzer: selectedDiningHall = "pitzer" diningHallNumber = "5" DineButton.setTitle("PITZER", for: .normal) index = 5 requestData() //getFoodImages() break default: selectedDiningHall = "" } } //Alamomfire request that gets the data from ASPC API func requestData(){ let url = "https://aspc.pomona.edu/api/menu/dining_hall/"+selectedDiningHall let urL = "/day/"+apiDay! let uRL = "/meal/" + selectedMeal let uRl = "?auth_token=a35dd8b9788980673f6f0df9b7d2464a34c33e67" let APIURL = url + urL + uRL + uRl fullMenu.menuItems.removeAll() Alamofire.request(APIURL , method: .get).validate().responseJSON { (responseData) -> Void in if ((responseData.result.value != nil)){ let json = JSON(responseData.result.value!) let foodItems = json[0]["food_items"] if (foodItems.count != 0){ self.foodOnMenu = true fullMenu.menuItems = foodItems.arrayObject as! [String] }else{ self.foodOnMenu = false } }else{ print("nil") } if self.foodOnMenu { self.getFoodInformation() }else{ self.tableView.reloadData() } } } //Alamofire request that formats the food Items to order of the Database //grabbing images and ratings as well func getFoodInformation(){ //clear the arrays so they don't continue to build fullMenu.itemImages.removeAll() fullMenu.reorderedMenu.removeAll() fullMenu.itemRatings.removeAll() fullMenu.foodIDs.removeAll() //Database URL DBURL = "http://www.claremontmenu.com/pdo/getFood.php?school=" //formatting the URL to pull the right food Items if fullMenu.menuItems.count != 0 { DBURL.append(diningHallNumber) for i in 0...fullMenu.menuItems.count-1{ DBURL.append(DBIntro) let formattedItem = fullMenu.menuItems[i].replacingOccurrences(of: " ", with: "+") DBURL.append(formattedItem) } //requesting Alamofire.request(DBURL , method: .get).validate().responseJSON { (responseData) -> Void in if ((responseData.result.value != nil)){ let json = JSON(responseData.result.value!) for i in 0...fullMenu.menuItems.count - 1{ var rateString = json[i]["rating"].string var foodIDString = json[i]["id"].string if rateString == nil{ rateString = "0" } if foodIDString == nil { foodIDString = "0" } let rateInt = Float(rateString!) let foodIDInt = Int(foodIDString!) fullMenu.reorderedMenu.append(json[i]["name"].stringValue) let imageString = json[i]["image"].string if imageString != nil { //let imageURL = URL(string: imageString!) fullMenu.itemImages.append(imageString!) }else{ fullMenu.itemImages.append("nil") } fullMenu.itemRatings.append(rateInt!) fullMenu.foodIDs.append(foodIDInt!) } }else{ print("Food info nil") } //removing instances of blank food Items that have not been //added to the Database yet var i = 0 while i < fullMenu.reorderedMenu.count{ if fullMenu.reorderedMenu[i] == "" || fullMenu.reorderedMenu[i] == " "{ fullMenu.reorderedMenu.remove(at: i) fullMenu.itemImages.remove(at: i) fullMenu.foodIDs.remove(at: i) fullMenu.itemRatings.remove(at: i) i -= 1 } i += 1 } //re,oad the tableview self.tableView.reloadData() } } } //struct to keep track of the qualities of menuItems struct fullMenu{ static var menuItems = [String]() static var reorderedMenu = [String]() static var itemImages = [String]() static var itemRatings = [Float]() static var foodIDs = [Int]() } } //extension for getting the day of the week extension NSDate { func dayOfWeek() -> Int? { guard let cal: NSCalendar = Calendar.current as NSCalendar?, let comp: NSDateComponents = cal.components(.weekday, from: self as Date) as NSDateComponents? else { return nil } return comp.weekday } }
[ -1 ]
c8ddee922821443213b0bdf4aef2491c48f7ed6a
357203d95b50a00d949c31ff794331183aae970a
/MyMemory/MyMemory/ProfileVC.swift
984730d5a66a58da777fcf10526de102238f4d29
[]
no_license
JiSeobKim/FreindlyJN
92db359421cef227d1185385d6376f3031103e06
edd6b65e4ebafd7b6a93f1c1e569eebb13561e00
refs/heads/master
2020-03-18T21:44:04.576357
2018-06-06T13:58:40
2018-06-06T13:58:40
135,299,132
0
0
null
null
null
null
UTF-8
Swift
false
false
3,125
swift
// // ProfileVC.swift // MyMemory // // Created by JiseobKim on 06/06/2018. // Copyright © 2018 JiseobKim. All rights reserved. // import UIKit class ProfileVC: UIViewController, UITableViewDelegate, UITableViewDataSource { let profileImage = UIImageView() let tv = UITableView() override func viewDidLoad() { super.viewDidLoad() initLayout() initData() } func initData() { self.tv.frame = CGRect(x: 0, y: self.profileImage.frame.origin.y + self.profileImage.frame.size.height + 20, width: self.view.frame.width, height: 100) self.tv.dataSource = self self.tv.delegate = self self.view.addSubview(tv) self.navigationController?.isNavigationBarHidden = true } func initLayout() { let backBtn = UIBarButtonItem(title: "닫기", style: .plain, target: self, action: #selector(close)) self.navigationItem.leftBarButtonItem = backBtn self.navigationItem.title = "프로필" let image = #imageLiteral(resourceName: "account") self.profileImage.image = image self.profileImage.frame.size = CGSize(width: 100, height: 100) self.profileImage.center = CGPoint(x: self.view.center.x , y: 270) self.profileImage.layer.cornerRadius = self.profileImage.frame.height / 2 self.profileImage.layer.borderWidth = 0 self.profileImage.layer.masksToBounds = true self.view.addSubview(profileImage) // Add Background Image let bg = UIImage(named: "profile-bg") let bgImg = UIImageView(image: bg) bgImg.frame.size = CGSize(width: bgImg.frame.size.width, height: bgImg.frame.size.height) bgImg.center = CGPoint(x: self.view.frame.width / 2, y: 40) bgImg.layer.cornerRadius = bgImg.frame.width / 2 bgImg.layer.borderWidth = 0 bgImg.layer.masksToBounds = true self.view.addSubview(bgImg) self.view.bringSubviewToFront(tv) self.view.bringSubviewToFront(profileImage) } @objc func close() { self.presentingViewController?.dismiss(animated: true, completion: nil) } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 2 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: .value1, reuseIdentifier: "cell") cell.textLabel?.font = UIFont.systemFont(ofSize: 14) cell.detailTextLabel?.font = UIFont.systemFont(ofSize: 13) cell.accessoryType = .disclosureIndicator switch indexPath.row { case 0: cell.textLabel?.text = "이름" cell.detailTextLabel?.text = "꼼꼼한 지섭씨" case 1: cell.textLabel?.text = "계정" cell.detailTextLabel?.text = "[email protected]" default: () } return cell } }
[ -1 ]
eeafc0030f65f37559a9fc60043056a38dc57a49
415a1e0738fc59d979c3a85280f3c1229d5052eb
/Planets/Views/PlanetCollectionViewCell.swift
8c0f8473efed11ed57beb127de97df0bda69dc67
[]
no_license
matt-martindale/ios-guided-project-starter-planets
c1fa488d46a51348058a456c0df311ea3999a7d9
6faff8afcaf46f82afed2eb2c765d4232179cf8b
refs/heads/master
2021-01-07T17:59:28.482190
2020-03-16T02:54:14
2020-03-16T02:54:14
241,775,261
0
0
null
2020-02-20T02:30:54
2020-02-20T02:30:53
null
UTF-8
Swift
false
false
565
swift
// // PlanetCollectionViewCell.swift // Planets // // Created by Matthew Martindale on 2/19/20. // Copyright © 2020 Lambda Inc. All rights reserved. // import UIKit class PlanetCollectionViewCell: UICollectionViewCell { var planet: Planet? { didSet { updateViews() } } @IBOutlet weak var planetImageView: UIImageView! @IBOutlet weak var planetNameLabel: UILabel! private func updateViews() { planetNameLabel.text = planet?.name planetImageView.image = planet?.image } }
[ -1 ]
7195a86599ebcb131443a240f48d3171de713791
0a86ed5ce1f91235a97bd6d8200d60912b407f7a
/Example/autoinit_ExampleTests/SwiftAutoInitSimple.swift
8a4bad5aed2a7a3816dd6d89d4e9765b3856976f
[ "MIT" ]
permissive
cabosoft/autoinit
a18c1a5d5eab4de4f875df336435336f72da36be
5646ddbfe56758ade1c9c282cad3df62396f9b89
refs/heads/master
2020-04-04T08:05:03.790188
2018-11-01T20:57:44
2018-11-01T20:57:44
155,770,528
0
0
null
null
null
null
UTF-8
Swift
false
false
661
swift
// // AutoInitSimple.swift // autoinit-swift // // Created by Jim Boyd on 11/6/14. // Copyright (c) 2014 Cabosoft, LLC. All rights reserved. // import Foundation import autoinit @objc(SwiftAutoInitSimple) public class SwiftAutoInitSimple: NSObject, AutoInitModule { static var sDidInit = false // override class func load() // override open class func initialize() { // AutoInitialize.registerClass(SwiftAutoInitSimple.self); // } public class func initializeModule() { sDidInit = true } public class func destructModule() { sDidInit = false; } @objc public class func didInit() -> Bool { return sDidInit } // define the class }
[ -1 ]
b29156898efe2c78582d7b0fced6b8fef886e18d
27e773c5a9a5745777498c4c5ae1e9ca560e2432
/MegaPhone/SpeakerDetailViewController.swift
230402ce3a10a7a596e24b87768b49965c5539a7
[]
no_license
MyStar219/MegaPhone
dcdb11d173778bdb04e5d52197044c9297cf6d75
faa68a2bc078b1e7776627223eb52caacde407c9
refs/heads/master
2021-06-22T20:55:42.485406
2017-08-16T05:27:13
2017-08-16T05:27:13
100,450,762
0
0
null
null
null
null
UTF-8
Swift
false
false
1,163
swift
// // SpeakerDetailViewController.swift // MegaPhone // // Created by administrator on 8/3/17. // Copyright © 2017 administrator. All rights reserved. // import UIKit class SpeakerDetailViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func OptionsButtonClicked(_ sender: UIButton) { _ = navigationController?.popViewController(animated: true) } @IBAction func OptionsImageButtonClicked(_ sender: UIButton) { _ = navigationController?.popViewController(animated: true) } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ 278657, 288775, 234380, 234641, 300817, 282917, 279463, 315177, 276396, 299186, 234423, 234551, 288827, 238920, 276054, 307288, 277602, 277487, 279791, 315250, 298359, 310649 ]
31897d7b451c446dce64f4686e29475608bea63f
c093c28f5cbcfbaedd295a350dd33393be42dca4
/TrueFalseStarter/Trivia.swift
a46c622edad140b487e2893d1ffae01461bba23b
[]
no_license
MDeLaCruz92/TriviaQuizApp
1bef4cabcf7f69fb94eae47dd6edca9970f8c48e
87f0a0682f1955b090e32e5c21f1bf303d4baec0
refs/heads/master
2020-09-25T19:11:39.199048
2016-08-27T06:20:16
2016-08-27T06:20:16
66,589,244
0
0
null
null
null
null
UTF-8
Swift
false
false
2,802
swift
// // Trivia.swift // TrueFalseStarter // // Created by Michael De La Cruz on 8/18/16. // Copyright © 2016 Michael D. All rights reserved. // import UIKit import GameKit // used a class to declare the data set for the trivia questions and answers class Trivia { let question: String let choice1: String let choice2: String let choice3: String let choice4: String let correct: String init(question: String, choice1: String, choice2: String, choice3: String, choice4: String, correct: String) { self.question = question self.choice1 = choice1 self.choice2 = choice2 self.choice3 = choice3 self.choice4 = choice4 self.correct = correct } } // Trivia questions about OOP C++ let question1 = Trivia(question: "A function that returns no values to the program that calls it is", choice1: "not allowed in C++", choice2: "type void", choice3: "type empty", choice4: "type barren", correct: "type void") let question2 = Trivia(question: "Format flags may be combined using", choice1: "the bitwise OR operator(|)", choice2: "the logical OR operator(||)", choice3: "the bitwise AND operator(&)", choice4: "the logical AND operator(&&)", correct: "the bitwise OR operator(|)") let question3 = Trivia(question: "The use of the break statement in a switch statement is", choice1: "optional", choice2: "compulsory", choice3: "It gives an error message", choice4: "to check an error", correct: "optional") let question4 = Trivia(question: "which of the following are valid characters for a numeric literal constant?", choice1: "a comma", choice2: "a dollar sign($)", choice3: "a percent sign (%)", choice4: "None of the above", correct: "None of the above") let question5 = Trivia(question: "A function that changes the state of the cout object is called a(n)", choice1: "member", choice2: "adjuster", choice3: "manipulator", choice4: "operator", correct: "manipulator") let question6 = Trivia(question: "When the compiler cannot differentiate between two overloaded constructors, they are called", choice1: "overloaded", choice2: "destructed", choice3: "ambiguous", choice4: "dubious", correct: "ambiguous") let question7 = Trivia(question: "the newline character is always included between", choice1: "pair of parentheses", choice2: "control string", choice3: "pair of curly braces", choice4: "&", correct: "control string") let questionsTrivia = [question1, question2, question3, question4, question5, question6, question7]
[ -1 ]
2f51bf2701140ff5d9260152f5313eec62571265
cf3cce694ef40de52d1a5b8891da37128075cb85
/CanvasScreen/userInterface/UserInterfaceStatesDifference.swift
2ea9e1a09a0b2f692a88f1c2c204d600319dcc61
[]
no_license
ekscrypto/canvas-file-explorer-mac
2ab0814397d2b8514c8b9b73077581f92bb4863f
8838222c73deb07ad70fcc0a9c8c50c6e0e2b3d5
refs/heads/master
2021-07-12T17:41:51.377992
2017-10-13T12:35:48
2017-10-13T12:35:48
106,820,890
0
0
null
2017-10-13T12:21:51
2017-10-13T12:21:51
null
UTF-8
Swift
false
false
1,609
swift
// // UserInterfaceStatesDifference.swift // CanvasScreen // // Created by Jovan Jovanovski on 10/5/17. // Copyright © 2017 Jovan. All rights reserved. // struct UserInterfaceStatesDifference { let newFilesElements: [Int: FileElement] let editedFilesElements: [Int: FileElement] init(startState: UserInterfaceState?, endState: UserInterfaceState) { if let startState = startState { (newFilesElements, editedFilesElements) = endState.filesElements.reduce( ([Int: FileElement](), [Int: FileElement]())) { currentNewFilesElementsAndEditedFilesElements, idWithFileElement in var (currentNewFilesElements, currentEditedFilesElements) = currentNewFilesElementsAndEditedFilesElements let (id, fileElement) = idWithFileElement if let startFileElement = startState.filesElements[id] { if fileElement.position != startFileElement.position { currentEditedFilesElements[id] = fileElement } } else { currentNewFilesElements[id] = fileElement } return (currentNewFilesElements, currentEditedFilesElements) } } else { newFilesElements = endState.filesElements editedFilesElements = [Int: FileElement]() } } }
[ -1 ]
9b5e1052ffaa3a98b7107429f38106c927dd098d
a15d27b2bf2a7d8fbc395532a81a3a9732101a7f
/TemplateProject/Service/Network/RequestFactory.swift
0df81434067842522b29545d4206af72d9b0cdce
[ "MIT" ]
permissive
gradpratik/iosapp-mvvm
0bfb3b0d3b6a63ab08e5282968b1f255a0da4901
42910fef75c859dbfed48d0d2e492b47e360c602
refs/heads/master
2023-07-23T18:42:35.909410
2021-06-03T07:19:47
2021-06-03T07:19:47
516,700,804
1
0
null
2022-07-22T10:03:44
2022-07-22T10:03:44
null
UTF-8
Swift
false
false
527
swift
// // RequestFactory.swift // TemplateProject // // Created by Benoit PASQUIER on 13/01/2018. // Copyright © 2018 Benoit PASQUIER. All rights reserved. // import Foundation final class RequestFactory { enum Method: String { case GET case POST case PUT case DELETE case PATCH } static func request(method: Method, url: URL) -> URLRequest { var request = URLRequest(url: url) request.httpMethod = method.rawValue return request } }
[ -1 ]
b8c3230d4c02bf35e133dff48cc006b78e1fd2b0
87030e2397a020175366041f9cb9dd3682f28eab
/MEMKO-1.0/ViewController.swift
30a5c497912a68d62590df5edf6c6b645dfe9ec6
[]
no_license
You-Hao-Alex/Aircraft-System
2689420fc3598bf7b5bd9a1324c972434927098e
91fff9317e5bd86176ccbb7f4eec121a40a9450a
refs/heads/master
2020-03-23T23:41:55.129615
2018-07-25T09:52:09
2018-07-25T09:52:09
142,249,810
0
0
null
null
null
null
UTF-8
Swift
false
false
1,648
swift
// // ViewController.swift // MEMKO-1.0 // // Created by 陳致元 on 2018/5/27. // Copyright © 2018年 Chih-Yuan Chen. All rights reserved. // import UIKit class ViewController: UIViewController { //MARK: Properties @IBOutlet weak var emailTextField: UITextField! @IBOutlet weak var passwordTextField: UITextField! var test: MasterViewController? = nil override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { self.view.endEditing(true) } //MARK: Actions @IBAction func loginButtonTapped(_ sender: UIButton) { login() emailTextField.text = nil passwordTextField.text = nil } @IBAction func perpareForUnwind(segue : UIStoryboardSegue){ } //MARK: Function func login() { view.endEditing(true) guard let email = emailTextField.text, email == "admin", let password = passwordTextField.text, password == "admin" else{ let alert = UIAlertController(title: "Error", message: "Invalid email or password", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) present(alert, animated: true, completion: nil) return } let vc = storyboard?.instantiateViewController(withIdentifier: "home") navigationController?.pushViewController(vc!, animated: true) } }
[ -1 ]
696e6cb98ac44f7c203688d374ee1938c2d0ca52
dfda979b2fd3b1626a0ff69ab85b4f3664fe72e1
/ProfessionalConnector/AppDelegate.swift
426f7a4ebb222d3c2271ea0cbc7e67b42ee2096d
[]
no_license
icodetolive/professional-connector
7048e734fc2ee8811ba233ea0868ee4eb160111c
52ef215868d571af0dae948b5cb261dee09bd209
refs/heads/master
2021-01-11T02:57:37.482496
2016-10-16T08:32:51
2016-10-16T08:32:51
70,875,701
0
0
null
null
null
null
UTF-8
Swift
false
false
2,157
swift
// // AppDelegate.swift // ProfessionalConnector // // Created by Sugandha Naolekar on 10/13/16. // Copyright © 2016 icode. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 229426, 237618, 229428, 286774, 229432, 286776, 286778, 319544, 204856, 286791, 237640, 278605, 237646, 311375, 163920, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 131209, 417930, 303241, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 287238, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 295538, 189044, 172660, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 164509, 303773, 295583, 172702, 230045, 287394, 287390, 303780, 172705, 287398, 172707, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 279241, 172748, 287436, 107212, 172751, 295633, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 369433, 295707, 328476, 295710, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 303959, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 213895, 320391, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 304063, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 164973, 279661, 205934, 312432, 279669, 337018, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 350308, 230592, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 296189, 320771, 312585, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 230718, 296259, 378181, 230727, 238919, 320840, 296264, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 304506, 304505, 181626, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 280014, 288208, 230865, 370130, 288210, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 329177, 288220, 239070, 288224, 370146, 280034, 280036, 288226, 280038, 288229, 288230, 288232, 288234, 320998, 288236, 288238, 288240, 291754, 288242, 296435, 288244, 288250, 402942, 148990, 296446, 206336, 321022, 296450, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 280152, 288344, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 321200, 337585, 296626, 296634, 313027, 280260, 206536, 280264, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 321560, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 223327, 280671, 149599, 321634, 149601, 149603, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 280940, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 190868, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 305668, 240132, 223749, 281095, 338440, 150025, 223752, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 199367, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 281401, 289593, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 240519, 322440, 338823, 314249, 289687, 240535, 297883, 289694, 289696, 289700, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 298306, 380226, 281923, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 265604, 281990, 298377, 314763, 142733, 298381, 224657, 306581, 314785, 282025, 314793, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 324757, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 307009, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 44948, 298901, 241556, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 299191, 307385, 307386, 258235, 176316, 307388, 307390, 184503, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 282931, 307508, 315701, 307510, 332086, 307512, 151864, 176435, 307515, 168245, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 315801, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 283080, 176592, 315856, 315860, 176597, 127447, 283095, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 176620, 127474, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 234003, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 201603, 291714, 234373, 226182, 234375, 291716, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 324504, 234393, 209818, 308123, 324508, 234398, 234396, 291742, 234401, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 234414, 324527, 291760, 234417, 201650, 324531, 226230, 234422, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 226239, 324548, 226245, 234437, 234439, 234434, 234443, 291788, 275406, 234446, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 324599, 234487, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 234563, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 275545, 242777, 234585, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 144506, 275579, 234618, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 275594, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 234648, 308379, 283805, 234653, 324766, 119967, 234657, 300189, 324768, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 234687, 300226, 226500, 234692, 300229, 308420, 283844, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 283904, 300289, 292097, 300292, 300294, 275719, 300299, 177419, 283917, 300301, 242957, 177424, 275725, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 144835, 284099, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 259567, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 292421, 226886, 284231, 128584, 284228, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 300628, 284253, 235097, 284255, 243293, 300638, 284258, 292452, 177766, 284263, 292454, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 276098, 284290, 325250, 284292, 292479, 292485, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 358146, 317187, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 284449, 300834, 300832, 227109, 317221, 358183, 186151, 276268, 194351, 243504, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 227314, 276466, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 350302, 227423, 194654, 194657, 178273, 276579, 227426, 194660, 227430, 276583, 309346, 309348, 276586, 309350, 309352, 309354, 276590, 350313, 350316, 350321, 284786, 276595, 227440, 301167, 350325, 350328, 292985, 301178, 292989, 292993, 301185, 350339, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 276689, 227540, 309462, 301272, 276699, 309468, 194780, 301283, 317672, 276713, 317674, 243948, 194801, 227571, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 276775, 211241, 325937, 276789, 325943, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 317833, 178572, 285070, 178575, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 317951, 309764, 121352, 236043, 317963, 342541, 55822, 113167, 277011, 317971, 309781, 309779, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 318020, 301636, 301639, 301643, 277071, 285265, 309844, 277080, 309849, 285277, 285282, 326244, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 285453, 228113, 285459, 277273, 326430, 228128, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 15224, 236408, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 121850, 302075, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 277526, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 310355, 293971, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 277608, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 277695, 318657, 244930, 302275, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 277832, 277836, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 277892, 277894, 253320, 310665, 318858, 327046, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 277963, 277966, 302543, 310737, 277971, 228825, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 286246, 294439, 286248, 278057, 294440, 294443, 40486, 294445, 40488, 310831, 40491, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 212560, 400976, 40533, 147032, 40537, 40539, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40554, 40552, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 278150, 310925, 286354, 278163, 302740, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 343757, 212690, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 301163, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 319243, 311053, 302862, 294682, 278306, 294701, 278320, 319280, 319290, 229192, 302925, 237409, 360317, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 319394, 40865, 294821, 311209, 180142, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
bc31aa636325eebc6c11940ad7abe15a890fb591
7d0ffef50fe86b3d1f181da9478806a8e71aea60
/fintechChat/Model/ConversationsList.swift
46033388d1058bd2b2ead8b7938dfc6fd0a3b0d1
[]
no_license
stepanet/fintechChat_old
7ca0729da41fed15ee9b0dce934ae95a3484c625
b081fdaab1586b686d9bf52d787787e900ff956a
refs/heads/master
2020-04-26T06:44:02.473323
2019-03-22T19:05:41
2019-03-22T19:05:41
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,873
swift
// // ConversationsList.swift // fintechChat // // Created by Jack Sp@rroW on 21/02/2019. // Copyright © 2019 Jack Sp@rroW. All rights reserved. // import Foundation protocol ConversationCellConfiguration { var name: String? {get set} var message: String? {get set} var date: Date? {get set} var online: Bool {get set} var hasUnreadMessage: Bool {get set} } protocol MessageCellConfiguration { var text: String? {get set} var fromUser: String? {get set} var toUser: String? {get set} } struct ConversationList: ConversationCellConfiguration { var name: String? var message: String? var date: Date? var online: Bool var hasUnreadMessage: Bool } struct MessageLists: MessageCellConfiguration { var text: String? var fromUser: String? var toUser: String? } protocol SaveDataProtocol { var saveData: Bool {get set} var savePhoto: Bool {get set} var saveProfileName: Bool {get set} var saveAbout: Bool {get set} var textAlert: String? {get} } struct SaveData: SaveDataProtocol { var saveData: Bool = true var savePhoto: Bool = false var saveProfileName: Bool = false var saveAbout: Bool = false var textAlert: String? mutating func textAlertFunc() -> String { return self.saveData == true ? "данные сохранены" : "данные не удалось записать" } } class MessageListClass: MessageCellConfiguration { //хочу доступ к массиву из всего проекта var array = [MessageLists]() var text: String? var fromUser: String? var toUser: String? func saveDataToArray(text: String, fromUser: String, toUSer: String) { let item = MessageLists(text: text, fromUser: fromUser, toUser: toUSer) array.append(item) } }
[ -1 ]
2f7849c55583e3debbffbb20513dd5599db315d8
9c867986bff6c210a1d4f100007fb08c1c7e82ed
/ThriveApp/ThriveApp/ContentView.swift
990ab9adb498d94ddb499a77ecac13f5e32c8b4b
[]
no_license
kag728/ThriveApp
b9e95b0b110127f765f3d16eaf2183472672188b
8bfba9c2da02db6dc42a6067180d4f142e0a6e23
refs/heads/master
2022-04-26T11:19:49.072021
2020-04-27T17:19:22
2020-04-27T17:19:22
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,386
swift
// // ContentView.swift // ThriveApp // // Created by Katherine Griffin on 1/31/20. // Copyright © 2020 Katherine Griffin. All rights reserved. // import SwiftUI struct ContentView: View { var body: some View { NavigationView { VStack { Image("cropped").resizable() .frame(width: 130.0, height: 130.0) .clipShape(Circle()) Text("Thrive") .font(.largeTitle) .fontWeight(.semibold) .padding(5) Text("Thriving on the Spectrum") .font(.title) .padding(5) NavigationLink(destination: SignInView() ) { Text("Sign In") .foregroundColor(.white) .font(.title) .frame(minWidth: 0, maxWidth: 200) .padding() .background(LinearGradient(gradient: Gradient(colors: [Color("ThriveBlue"), Color(red: 3/255, green: 161/255, blue: 235/255)]), startPoint: .leading, endPoint: .trailing)) .cornerRadius(40) }.padding() NavigationLink(destination: SignUpView()) { Text("Sign Up") .foregroundColor(.white) .font(.title) .frame(minWidth: 0, maxWidth: 200) .padding() .background(LinearGradient(gradient: Gradient(colors: [Color("ThriveBlue"), Color(red: 3/255, green: 161/255, blue: 235/255)]), startPoint: .leading, endPoint: .trailing)) .cornerRadius(40) } NavigationLink(destination: ChildProfileView()) { Text("Testing") .foregroundColor(.white) .font(.title) .frame(minWidth: 0, maxWidth: 200) .padding() .background(LinearGradient(gradient: Gradient(colors: [Color("ThriveBlue"), Color(red: 3/255, green: 161/255, blue: 235/255)]), startPoint: .leading, endPoint: .trailing)) .cornerRadius(40) }.padding() } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
d4ccec3228b54e894f5dc1a902349ae95bab019c
cc0a6054bace0a7e0178a099ac529b139dd1035f
/CoreDataExampleSwiftUIUITests/CoreDataExampleSwiftUIUITests.swift
95c75ff29dcbba00831bf640bdf7bf08a9748ff8
[]
no_license
egudino484/CoreDataExampleSwiftUI
01a734aad4415f646813bda57fe934839a634c8c
06a89483d484c3d7e6da0bd32dd12306da6b4339
refs/heads/main
2023-06-02T19:58:36.232479
2021-06-17T22:31:32
2021-06-17T22:31:32
375,508,773
0
0
null
null
null
null
UTF-8
Swift
false
false
1,459
swift
// // CoreDataExampleSwiftUIUITests.swift // CoreDataExampleSwiftUIUITests // // Created by Edison Gudiño on 9/6/21. // import XCTest class CoreDataExampleSwiftUIUITests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testLaunchPerformance() throws { if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { // This measures how long it takes to launch your application. measure(metrics: [XCTApplicationLaunchMetric()]) { XCUIApplication().launch() } } } }
[ 360463, 155665, 376853, 344106, 253996, 163894, 180279, 385078, 319543, 352314, 213051, 376892, 32829, 286787, 352324, 237638, 352327, 385095, 393291, 163916, 368717, 311373, 196687, 278607, 311377, 254039, 426074, 368732, 180317, 32871, 352359, 221292, 278637, 385135, 319599, 376945, 131190, 385147, 131199, 426124, 196758, 49308, 65698, 311459, 49317, 377008, 377010, 180409, 295099, 377025, 377033, 164043, 417996, 254157, 368849, 368850, 139478, 229591, 385240, 254171, 147679, 147680, 311520, 205034, 254189, 286957, 254193, 344312, 336121, 262403, 147716, 385291, 368908, 180494, 262419, 254228, 368915, 319764, 278805, 377116, 254250, 311596, 418095, 336177, 368949, 180534, 155968, 287040, 311622, 270663, 319816, 368969, 254285, 180559, 377168, 344402, 229716, 368982, 270703, 139641, 385407, 385409, 106893, 270733, 385423, 385433, 213402, 385437, 254373, 156069, 385448, 385449, 311723, 115116, 385463, 319931, 278974, 336319, 336323, 188870, 278988, 278992, 262619, 377309, 377310, 369121, 369124, 279014, 270823, 279017, 311787, 213486, 360945, 139766, 393719, 279030, 377337, 279033, 254459, 410108, 410109, 262657, 377346, 279042, 377352, 279053, 410126, 393745, 385554, 303635, 279060, 279061, 254487, 410138, 279066, 188957, 377374, 385569, 385578, 377388, 197166, 393775, 418352, 33339, 352831, 33344, 385603, 377419, 385612, 303693, 426575, 385620, 369236, 115287, 189016, 270938, 287327, 279143, 279150, 287345, 352885, 352886, 344697, 189054, 287359, 369285, 385669, 311944, 344714, 311950, 377487, 311953, 336531, 287379, 426646, 180886, 352921, 377499, 221853, 344737, 295591, 352938, 295598, 418479, 279215, 279218, 164532, 336565, 287418, 377531, 303802, 377534, 377536, 66243, 385737, 287434, 385745, 279249, 303826, 369365, 369366, 385751, 230105, 361178, 352989, 352990, 418529, 295649, 385763, 295653, 369383, 230120, 361194, 312046, 418550, 344829, 279293, 205566, 197377, 434956, 312076, 295698, 418579, 426772, 197398, 426777, 221980, 344864, 197412, 336678, 262952, 262957, 189229, 328495, 197424, 164655, 197428, 336693, 230198, 377656, 426809, 197433, 222017, 295745, 377669, 197451, 369488, 279379, 385878, 385880, 295769, 197467, 435038, 230238, 279393, 303973, 279398, 385895, 197479, 385901, 197489, 295799, 164730, 336765, 254851, 369541, 172936, 320394, 426894, 189327, 377754, 140203, 172971, 377778, 304050, 189362, 377789, 189373, 345030, 345034, 279499, 418774, 386007, 418781, 386016, 123880, 418793, 320495, 435185, 222193, 271351, 214009, 312313, 435195, 312317, 328701, 386049, 328705, 418819, 410629, 377863, 189448, 230411, 320526, 361487, 435216, 386068, 254997, 336928, 336930, 410665, 345137, 361522, 312372, 238646, 238650, 320571, 386108, 410687, 336962, 377927, 238663, 361547, 205911, 156763, 361570, 230500, 214116, 214119, 402538, 279659, 173168, 230514, 238706, 279666, 312435, 377974, 66684, 377986, 279686, 402568, 222344, 140426, 337037, 386191, 410772, 222364, 418975, 124073, 402618, 148674, 402632, 148687, 402641, 189651, 419028, 279766, 189656, 304353, 279780, 222441, 279789, 386288, 66802, 271607, 386296, 369913, 419066, 369912, 386300, 279803, 386304, 320769, 369929, 419097, 320795, 115997, 222496, 320802, 304422, 369964, 353581, 116014, 312628, 345397, 345398, 386363, 222523, 230730, 353611, 337228, 353612, 345418, 296269, 222542, 238928, 296274, 337226, 353617, 378201, 230757, 296304, 312688, 337280, 296328, 263561, 296330, 304523, 353672, 370066, 9618, 411028, 279955, 370072, 148899, 148900, 361928, 337359, 329168, 312785, 222674, 329170, 353751, 280025, 239069, 329181, 320997, 361958, 271850, 280042, 280043, 271853, 329198, 411119, 337391, 116209, 296434, 386551, 288252, 312830, 271880, 198155, 304655, 329231, 370200, 222754, 157219, 157220, 394793, 312879, 288305, 288319, 288322, 280131, 288328, 353875, 99937, 345697, 312937, 271980, 206447, 403057, 42616, 337533, 280193, 370307, 419462, 149127, 149128, 419464, 288391, 214667, 411275, 239251, 345753, 198304, 255651, 337590, 370359, 280252, 280253, 321217, 239305, 296649, 403149, 313042, 345813, 370390, 272087, 345817, 337638, 345832, 181992, 345835, 288492, 141037, 313082, 288508, 288515, 173828, 395018, 395019, 116491, 395026, 124691, 116502, 435993, 345882, 411417, 321308, 255781, 362281, 378666, 403248, 378673, 345910, 182070, 182071, 436029, 345918, 337734, 280396, 272207, 272208, 337746, 395092, 362326, 345942, 345950, 370526, 362336, 255844, 296807, 214894, 362351, 313200, 214896, 313204, 124795, 182145, 280451, 67464, 305032, 337816, 124826, 239515, 329627, 354210, 436130, 436135, 10153, 313257, 362411, 370604, 362418, 411587, 280517, 362442, 346066, 231382, 354268, 436189, 403421, 329696, 354273, 403425, 190437, 354279, 436199, 174058, 354283, 337899, 247787, 296942, 247786, 313322, 436209, 124912, 239610, 346117, 182277, 403463, 354311, 43016, 354310, 354312, 313356, 436235, 419857, 305173, 436248, 223269, 346153, 354346, 313388, 124974, 272432, 403507, 378933, 378934, 436283, 288835, 403524, 436293, 313415, 239689, 436304, 223317, 411738, 272477, 280676, 313446, 395373, 288878, 346237, 215165, 436372, 329884, 378186, 362658, 436388, 215204, 125108, 133313, 395458, 338118, 436429, 346319, 321744, 379102, 387299, 18661, 379110, 338151, 125166, 149743, 379120, 436466, 125170, 411892, 436471, 395511, 313595, 436480, 125184, 272644, 125192, 338187, 338188, 125197, 395536, 125200, 338196, 272661, 379157, 125204, 125215, 125216, 338217, 125225, 321839, 125236, 362809, 379193, 395591, 289109, 272730, 436570, 215395, 239973, 280938, 321901, 354671, 362864, 354672, 272755, 354678, 199030, 223611, 248188, 313726, 436609, 240003, 395653, 436613, 395660, 264591, 272784, 420241, 240020, 190870, 190872, 289185, 436644, 289195, 272815, 436659, 338359, 436677, 289229, 281038, 281039, 256476, 420326, 166403, 322057, 420374, 322077, 289328, 330291, 322119, 191065, 436831, 420461, 313970, 346739, 346741, 420473, 297600, 166533, 346771, 363155, 264855, 363161, 289435, 436897, 248494, 166581, 355006, 363212, 363228, 436957, 322269, 436960, 264929, 338658, 289511, 330473, 346859, 330476, 289517, 215790, 199415, 289534, 322302, 35584, 133889, 322312, 346889, 264971, 322320, 166677, 207639, 363295, 355117, 191285, 355129, 273209, 273211, 355136, 355138, 420680, 355147, 355148, 355153, 281426, 387927, 363353, 363354, 281434, 322396, 420702, 363361, 363362, 412516, 355173, 355174, 281444, 207724, 355182, 207728, 420722, 314240, 158594, 330627, 240517, 265094, 387977, 396171, 355216, 224146, 224149, 256918, 256919, 256920, 240543, 256934, 289720, 273336, 289723, 273341, 330688, 379845, 363462, 19398, 273353, 191445, 207839, 347104, 314343, 134124, 412653, 257007, 248815, 347122, 437245, 257023, 125953, 396292, 330759, 347150, 330766, 330789, 248871, 281647, 412725, 257093, 404550, 314437, 207954, 339031, 257126, 404582, 265318, 322664, 396395, 265323, 404589, 273523, 363643, 248960, 150656, 363658, 404622, 224400, 347286, 265366, 429209, 339101, 429216, 339106, 265381, 380069, 3243, 208044, 322733, 421050, 339131, 265410, 183492, 273616, 339167, 298209, 421102, 363769, 52473, 208123, 52476, 412926, 437504, 322826, 380178, 429332, 126229, 412963, 257323, 273713, 298290, 208179, 159033, 347451, 216387, 372039, 257353, 257354, 109899, 437585, 331091, 150868, 314708, 372064, 429410, 437602, 281958, 388458, 265579, 306541, 314734, 314740, 314742, 421240, 314745, 224637, 388488, 298378, 306580, 282008, 396697, 314776, 282013, 290206, 396709, 298406, 241067, 380331, 314797, 380335, 355761, 421302, 134586, 380348, 380350, 216511, 216510, 306630, 200136, 273865, 306634, 339403, 372172, 413138, 437726, 429540, 3557, 3559, 191980, 282097, 191991, 265720, 216575, 290304, 372226, 437766, 323083, 208397, 323088, 413202, 388630, 413206, 175640, 216610, 372261, 347693, 323120, 396850, 200245, 323126, 290359, 134715, 323132, 421437, 396865, 282182, 413255, 265800, 273992, 421452, 265809, 396885, 290391, 265816, 396889, 306777, 388699, 396896, 323171, 388712, 388713, 314997, 290425, 339579, 396927, 282248, 224907, 396942, 405140, 274071, 323226, 208547, 208548, 405157, 388775, 282279, 364202, 421556, 224951, 224952, 306875, 282302, 323262, 323265, 241360, 241366, 224985, 282330, 159462, 372458, 397040, 12017, 323315, 274170, 200444, 175874, 249606, 323335, 282379, 216844, 372497, 397076, 421657, 339746, 216868, 241447, 167720, 257831, 421680, 282418, 274234, 241471, 339782, 315209, 159563, 323405, 241494, 339799, 307038, 282471, 274288, 372592, 274296, 339840, 315265, 372625, 282517, 298912, 118693, 438186, 126896, 151492, 380874, 372699, 323554, 380910, 380922, 380923, 274432, 372736, 241695, 315431, 430120, 102441, 315433, 430127, 405552, 282671, 241717, 249912, 225347, 307269, 421958, 233548, 176209, 315477, 53334, 381013, 356446, 323678, 438374, 176231, 438378, 233578, 217194, 422000, 249976, 266361, 422020, 381061, 168070, 168069, 381071, 241809, 323730, 430231, 200856, 422044, 192670, 192671, 299166, 258213, 299176, 323761, 184498, 266427, 356550, 299208, 372943, 266447, 258263, 356575, 307431, 438512, 372979, 389364, 381173, 135416, 356603, 184574, 266504, 217352, 61720, 381210, 315674, 282908, 389406, 282912, 233761, 438575, 315698, 266547, 397620, 332084, 438583, 127292, 438592, 332100, 323914, 201037, 397650, 348499, 250196, 348501, 389465, 332128, 110955, 242027, 242028, 160111, 250227, 315768, 291193, 438653, 291200, 266628, 340356, 242059, 225684, 373141, 373144, 291225, 389534, 397732, 373196, 176602, 242138, 184799, 291297, 201195, 324098, 233987, 340489, 397841, 283154, 258584, 397855, 291359, 348709, 348710, 397872, 283185, 234037, 340539, 266812, 438850, 348741, 381515, 348748, 430681, 332379, 242274, 184938, 373357, 184942, 176751, 389744, 356983, 356984, 209529, 356990, 291455, 422529, 373377, 152196, 201348, 356998, 348807, 356999, 316044, 316050, 275102, 340645, 176805, 422567, 176810, 160441, 422591, 291529, 225996, 135888, 242385, 234216, 373485, 373486, 21239, 275193, 348921, 234233, 242428, 299777, 430853, 430860, 62222, 430880, 234276, 234290, 152372, 160569, 430909, 160576, 348999, 283466, 234330, 275294, 381791, 127840, 357219, 439145, 177002, 308075, 242540, 242542, 381811, 201590, 177018, 398205, 340865, 291713, 349066, 316299, 349068, 234382, 308111, 381840, 308113, 390034, 373653, 430999, 209820, 381856, 185252, 398244, 422825, 381872, 177074, 398268, 349122, 398275, 373705, 127945, 340960, 398305, 340967, 398313, 234476, 127990, 349176, 201721, 349179, 234499, 357380, 398370, 357413, 357420, 300087, 21567, 308288, 398405, 349254, 218187, 250955, 300109, 234578, 250965, 439391, 250982, 398444, 62574, 357487, 300147, 119925, 349304, 234626, 349315, 349317, 234635, 373902, 177297, 324761, 234655, 234662, 373937, 373939, 324790, 300215, 218301, 283841, 283846, 259275, 316628, 259285, 357594, 414956, 251124, 316661, 292092, 439550, 439563, 242955, 414989, 349458, 259346, 259347, 382243, 382246, 382257, 292145, 382264, 333115, 193853, 193858, 251212, 406862, 234830, 259408, 283990, 357720, 300378, 300379, 316764, 374110, 234864, 382329, 259449, 357758, 243073, 357763, 112019, 398740, 234902, 374189, 251314, 284086, 259513, 54719, 292291, 300490, 300526, 259569, 251379, 300539, 398844, 210429, 366081, 316951, 374297, 153115, 431646, 349727, 431662, 374327, 210489, 235069, 349764, 292424, 292426, 128589, 333389, 333394, 349780, 128600, 235096, 300643, 300645, 415334, 54895, 366198, 210558, 210559, 415360, 325246, 333438, 415369, 431754, 210569, 267916, 415376, 259741, 153252, 399014, 210601, 202413, 317102, 415419, 259780, 333508, 267978, 333522, 325345, 333543, 431861, 284410, 161539, 284425, 300812, 284430, 366358, 169751, 431901, 341791, 325411, 186148, 186149, 333609, 284460, 399148, 431918, 202541, 153392, 431935, 415555, 325444, 153416, 325449, 341837, 415566, 431955, 325460, 317268, 341846, 300893, 259937, 382820, 276326, 415592, 292713, 292719, 325491, 341878, 276343, 350072, 333687, 317305, 112510, 325508, 333700, 243590, 325514, 350091, 350092, 350102, 350108, 333727, 219046, 284584, 292783, 300983, 128955, 219102, 292835, 6116, 317416, 432114, 325620, 415740, 268286, 415744, 333827, 243720, 399372, 153618, 358418, 178215, 325675, 243763, 358455, 325695, 399433, 104534, 194667, 260206, 432241, 284789, 374913, 374914, 415883, 333968, 153752, 333990, 104633, 260285, 227517, 268479, 374984, 301270, 301271, 325857, 334049, 268515, 383208, 317676, 260337, 260338, 432373, 375040, 309504, 432387, 260355, 375052, 194832, 325904, 391448, 334104, 268570, 178459, 186660, 268581, 334121, 358698, 317738, 260396, 325930, 358707, 432435, 178485, 358710, 14654, 268609, 227655, 383309, 383327, 391521, 366948, 416101, 416103, 383338, 432503, 432511, 211327, 227721, 285074, 252309, 39323, 285083, 317851, 285089, 375211, 334259, 129461, 342454, 358844, 293309, 317889, 326083, 416201, 129484, 154061, 416206, 326093, 432608, 285152, 195044, 391654, 432616, 334315, 375281, 293368, 317949, 334345, 309770, 342537, 342549, 416288, 342560, 350758, 350759, 358951, 358952, 293420, 219694, 219695, 375345, 432694, 244279, 309831, 375369, 375373, 416334, 301647, 416340, 244311, 416353, 260705, 375396, 268901, 244326, 244345, 334473, 375438, 326288, 285348, 293552, 342705, 285362, 383668, 342714, 39616, 383708, 342757, 269036, 432883, 342775, 203511, 383740, 416509, 359166, 162559, 375552, 432894, 228099, 285443, 285450, 383755, 326413, 285467, 318247, 342827, 391980, 318251, 375610, 301883, 342846, 416577, 416591, 244569, 375644, 252766, 293729, 351078, 342888, 392057, 211835, 269179, 392065, 260995, 400262, 392071, 424842, 252812, 400271, 392080, 400282, 7070, 211871, 359332, 359333, 293801, 326571, 252848, 326580, 261045, 261046, 326586, 359365, 211913, 342990, 252878, 433104, 56270, 359380, 433112, 433116, 359391, 187372, 343020, 383980, 203758, 383994, 171009, 384004, 433166, 384015, 433173, 293911, 326684, 252959, 384031, 375848, 318515, 203829, 261191, 375902, 375903, 392288, 253028, 351343, 187505, 138354, 187508, 384120, 302202, 285819, 392317, 343166, 384127, 392320, 285823, 285833, 285834, 318602, 228492, 187539, 359574, 285850, 351389, 302239, 253098, 302251, 367791, 367792, 367798, 64699, 294075, 228541, 343230, 367809, 253124, 113863, 351445, 310496, 253168, 351475, 351489, 367897, 367898, 245018, 130342, 130344, 130347, 261426, 212282, 294210, 359747, 359748, 146763, 114022, 253288, 425327, 425331, 163190, 327030, 384379, 253316, 294278, 384391, 318860, 253339, 253340, 318876, 343457, 245160, 359860, 359861, 343480, 310714, 228796, 228804, 425417, 310731, 327122, 425434, 310747, 310758, 253431, 359931, 187900, 343552, 245249, 228868, 409095, 359949, 294413, 253456, 302613, 253462, 146976, 245290, 245291, 343606, 163385, 425534, 138817, 147011, 147020, 179800, 196184, 343646, 212574, 204386, 155238, 204394, 138862, 310896, 188021, 294517, 286351, 188049, 425624, 229021, 245413, 286387, 384693, 376502, 286392, 302778, 409277, 286400, 319176, 409289, 425682, 286419, 294621, 245471, 155360, 294629, 212721, 163575, 286457, 286463, 319232, 360194, 409355, 155408, 417556, 294699, 204600, 319289, 384826, 409404, 360253, 409416, 376661, 237397, 368471, 425820, 368486, 384871, 409446, 40809, 368489, 425832, 417648, 417658, 360315, 253828, 327556, 311183, 425875, 294806, 294808, 253851, 376733, 204702, 319393, 294820, 253868, 204722, 188349, 98240, 212947, 212953, 360416, 294887, 253930, 327666, 385011 ]
3b92897a98bbb4f3c477e1f80d36fd1a9111ef6c
a266acc0a44acd49263f75c58ab4e8a6d4956d3f
/FamilyJira/ViewController/LoginRegistrationViewController.swift
bd28e0b42b8ba6bccff6f21cf427d90511d710b6
[]
no_license
geoivannikov/FamilyJira
6cef756c2b3abfa56c1387572469328b654ce34e
aed0eefb057db148b88e1d8237454745720a3c66
refs/heads/master
2022-06-10T21:02:00.905668
2020-05-07T21:47:54
2020-05-07T21:47:54
242,366,339
2
0
null
null
null
null
UTF-8
Swift
false
false
4,177
swift
// // LoginRegistrationViewController.swift // FamilyJira // // Created by George Ivannikov on 2/22/20. // Copyright © 2020 George Ivannikov. All rights reserved. // import Foundation import UIKit import SnapKit import Combine import Toast_Swift class LoginRegistrationViewController: UIViewController { private var loginRegistrationViewModel: LoginRegistrationViewModelProtocol! private let loginRegistrationView: LoginRegistrationView = { let loginRegistrationView = LoginRegistrationView() return loginRegistrationView }() private var subscriptions = Set<AnyCancellable>() static func instantiate( loginRegistrationViewModel: LoginRegistrationViewModelProtocol ) -> LoginRegistrationViewController { let viewController: LoginRegistrationViewController = LoginRegistrationViewController() viewController.loginRegistrationViewModel = loginRegistrationViewModel return viewController } override func viewDidLoad() { super.viewDidLoad() setUpBinds() setUpLayout() dismissKeyboardAfterTap() } private func setUpLayout() { navigationController?.setNavigationBarHidden(true, animated: false) view.backgroundColor = .backgroundBlue view.addSubview(loginRegistrationView) loginRegistrationView.snp.makeConstraints { make in make.bottom.top.leading.trailing.equalToSuperview() } loginRegistrationView.segmentControl.addTarget(self, action: #selector(segmentedValueChanged(_:)), for: .valueChanged) } private func setUpBinds() { let signInTapped = PassthroughSubject<Void, Never>() let signUpTapped = PassthroughSubject<Void, Never>() loginRegistrationView.actionButton .publisher(for: .touchUpInside) .compactMap { [weak self] _ in self?.loginRegistrationView .segmentControl.selectedSegmentIndex == 0 } .sink(receiveValue: { [weak self] isSignIn in self?.view.makeToastActivity(.center) if isSignIn { signInTapped.send() } else { signUpTapped.send() } }) .store(in: &subscriptions) signInTapped .map { [weak self] _ in LoginCredentials(email: self?.loginRegistrationView.emailTextField.text, password: self?.loginRegistrationView.passwordTextField.text) } .sink(receiveValue: loginRegistrationViewModel.signInTapped(credentials:)) .store(in: &subscriptions) signUpTapped .map { [weak self] _ in RegistrationCredentials(email: self?.loginRegistrationView.emailTextField.text, username: self?.loginRegistrationView.usernameTextField.text, password: self?.loginRegistrationView.passwordTextField.text, confirmPassword: self?.loginRegistrationView.confirmPasswordTextField.text) } .sink(receiveValue: loginRegistrationViewModel.signUpTapped(credentials:)) .store(in: &subscriptions) loginRegistrationViewModel.presentAuthError .sink(receiveValue: { [weak self] _ in self?.view.hideToastActivity() }) .store(in: &subscriptions) loginRegistrationViewModel.registrationSucceed .sink(receiveValue: { [weak self] _ in self?.view.hideToastActivity() self?.view.makeToast("Registration completed succesfully", duration: 1.5, position: .bottom) self?.loginRegistrationView.segmentControl.selectedSegmentIndex = 0 self?.loginRegistrationView.formToggle(isLogin: true, saveCredentials: true) }) .store(in: &subscriptions) } @objc func segmentedValueChanged(_ sender: UISegmentedControl) { loginRegistrationView.formToggle(isLogin: sender.selectedSegmentIndex == 0) } }
[ -1 ]
2cdc948d1a2bde9a87c6bc7de2d02b376a03cc25
fc569455045e6e2cf42f68be284cc7ccdee7b619
/Score Tracker/Pages/NewGameVC/NewGameVCCell/NewGameTitleCell.swift
a58ee434c14cba4c16e5cf3217d4e1babcda868e
[]
no_license
YutoOmachi/Score-Tracker
ff20b1b780e44b110c77d9f2622398cb808e286c
9f082691c3626c95d857e4de5e72dc0f16ba8578
refs/heads/master
2023-05-14T08:08:24.547940
2021-06-08T21:39:07
2021-06-08T21:39:07
274,101,185
2
0
null
null
null
null
UTF-8
Swift
false
false
1,680
swift
// // NewGameTitleCell.swift // Score Tracker // // Created by 小町悠登 on 13/6/20. // Copyright © 2020 Yuto Omachi. All rights reserved. // import UIKit import Stevia class NewGameTitleCell: UITableViewCell { var titleField = UITextField() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) self.selectionStyle = .none self.backgroundColor = .backgroundColor self.subviews { titleField } configureTitleField() setExitterForTitleField() } required init?(coder: NSCoder) { fatalError("init(code) is not implemented") } func configureTitleField() { titleField.height(60%).width(60%).centerHorizontally().centerVertically() titleField.placeholder = "Game Title" titleField.textAlignment = .center titleField.layer.borderWidth = 1 titleField.layer.borderColor = UIColor.lightGray.cgColor titleField.autocorrectionType = .no } func setExitterForTitleField() { let toolbar = UIToolbar(frame: CGRect(origin: .zero, size: .init(width: 100, height: 30))) let flexSpace = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil) let doneBtn = UIBarButtonItem(title: "Done", style: .done, target: self, action: #selector(dismissKeyboard)) toolbar.setItems([flexSpace, doneBtn], animated: false) toolbar.sizeToFit() titleField.inputAccessoryView = toolbar } @objc func dismissKeyboard() { superview?.endEditing(true) } }
[ -1 ]
a5e4afa146b0099a3fbb0ed5ecbfbc6b63f033db
9e0925379dec0e45c2fb51fc3708539e298aa9a9
/TokopediaMiniProjectUITests/TokopediaMiniProjectUITests.swift
e48e61831ebb7bba5c42006fb7d6f1876453bf3b
[]
no_license
gunturprasojo/TokopediaMiniProject
63e5684a103655faf9e8cf2d8181dd2f6b892443
219aabd3144f008c8fab9b55a7984b1ae45f2d2f
refs/heads/master
2020-09-07T01:55:15.201030
2019-11-20T02:23:22
2019-11-20T02:23:22
220,621,536
0
0
null
null
null
null
UTF-8
Swift
false
false
2,519
swift
// // TokopediaMiniProjectUITests.swift // TokopediaMiniProjectUITests // // Created by Guntur Budi on 07/11/19. // Copyright © 2019 Guntur Budi. All rights reserved. // import XCTest class TokopediaMiniProjectUITests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() } func testLaunchPerformance() { if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { // This measures how long it takes to launch your application. measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { XCUIApplication().launch() } } } } class UITEST : XCTestCase { func testSearchVC(){ let app = XCUIApplication() app.launch() XCTAssertTrue(app.buttons[MockSearchVC.btnFilter].exists) XCTAssertTrue(app.staticTexts[MockSearchVC.searchTitle].exists) XCTAssertTrue(app.collectionViews[MockSearchVC.collectionSearchVC].exists) } func testFilterVC(){ let app = XCUIApplication() app.launch() app.buttons[MockSearchVC.btnFilter].tap() XCTAssertTrue(app.buttons[MockFilterVC.btnApply].exists) XCTAssertTrue(app.buttons[">"].exists) app.buttons[">"].tap() } func testShopTypeVC() { let app = XCUIApplication() app.launch() app.buttons[MockSearchVC.btnFilter].tap() app.buttons[">"].tap() XCTAssertTrue(app.buttons[MockShopTypeVC.btnApply].exists) } } class MockSearchVC { //SearchVC static let collectionSearchVC = "collSearchVC" static let btnFilter = "Filter" static let searchTitle = "Search" } class MockFilterVC { //FilterVC static let btnApply = "Apply" } class MockShopTypeVC { //FilterVC static let btnApply = "Apply" }
[ -1 ]
7d56c60e8f19da62b66038e8e934904da7aad2e5
cf5078d628c3947fea19217bf1f1fedff0a6ded2
/EtapTwo/Module1_Assigment1/Module1_Assigment1/AppDelegate.swift
7b1d8d126c863352f47dba3229eb6239ff36e607
[]
no_license
Halif4ik/iOS_develop
1fc97c60bf9212b0c6cd87ae44ed0cec625ec911
0153558f3f982d703247afd92d95febcf2fa1400
refs/heads/master
2020-09-29T01:05:55.209610
2019-12-09T16:11:57
2019-12-09T16:11:57
226,909,705
0
0
null
null
null
null
UTF-8
Swift
false
false
2,180
swift
// // AppDelegate.swift // Module1_Assigment1 // // Created by NoutAsus on 29/06/2019. // Copyright © 2019 NoutAsus. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 230284, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 189331, 213902, 58262, 304023, 304027, 279452, 234648, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 279929, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 222676, 148946, 288214, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 288909, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 150025, 338440, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 240535, 224151, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307386, 258235, 307388, 307385, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 276052, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 127440, 315860, 176597, 283095, 127447, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 316294, 201603, 226182, 308105, 234375, 226185, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226245, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 226500, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 349451, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276053, 284249, 284251, 300638, 284253, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 178006, 317271, 284502, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 399252, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 350186, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 325624, 350200, 276472, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 325700, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 227571, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 318132, 342707, 154292, 277173, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 293706, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 276579, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 146765, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 163272, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 302617, 286233, 302621, 286240, 146977, 187936, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 319163, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
fb46016e43bdb12cdba868b574b9f415a7295b64
a3a34ddca0ed50003741fc86eaad7dc91f367291
/Sources/Contentful/Decodable.swift
5331f11f549735368664a6be7d3adaf0a7c8a162
[ "MIT" ]
permissive
chrisozenne/contentful.swift
8e70152e6a6d12503876cbd56335794df8f2d01f
47fe3fa8c0438b203d2869f6960580d0b54b40ac
refs/heads/master
2020-04-13T06:56:07.019628
2019-01-18T04:47:40
2019-01-18T04:47:40
163,035,151
0
0
MIT
2019-01-18T04:47:41
2018-12-25T01:41:27
Swift
UTF-8
Swift
false
false
13,713
swift
// // Decodable.swift // Contentful // // Created by JP Wright on 05.09.17. // Copyright © 2017 Contentful GmbH. All rights reserved. // import Foundation /// Helper methods for decoding instances of the various types in your content model. public extension Decoder { internal var linkResolver: LinkResolver { return userInfo[.linkResolverContextKey] as! LinkResolver } /// The `TimeZone` the `Decoder` is using to offset dates by. /// Set through `ClientConfiguration`. public var timeZone: TimeZone? { return userInfo[.timeZoneContextKey] as? TimeZone } internal var contentTypes: [ContentTypeId: EntryDecodable.Type] { guard let contentTypes = userInfo[.contentTypesContextKey] as? [ContentTypeId: EntryDecodable.Type] else { fatalError( """ Make sure to pass your content types into the Client intializer so the SDK can properly deserializer your own types if you are using the `fetchMappedEntries` methods """) } return contentTypes } /// The localization context of the connected Contentful space necessary to properly serialize /// entries and assets to Swift models from Contentful API responses. public var localizationContext: LocalizationContext { return userInfo[.localizationContextKey] as! LocalizationContext } /// Helper method to extract the sys property of a Contentful resource. public func sys() throws -> Sys { let container = try self.container(keyedBy: LocalizableResource.CodingKeys.self) let sys = try container.decode(Sys.self, forKey: .sys) return sys } /// Extract the nested JSON container for the "fields" dictionary present in Entry and Asset resources. public func contentfulFieldsContainer<NestedKey>(keyedBy keyType: NestedKey.Type) throws -> KeyedDecodingContainer<NestedKey> { let container = try self.container(keyedBy: LocalizableResource.CodingKeys.self) let fieldsContainer = try container.nestedContainer(keyedBy: keyType, forKey: .fields) return fieldsContainer } } extension JSONDecoder { /// Returns the JSONDecoder owned by the Client. Until the first request to the CDA is made, this /// decoder won't have the necessary localization content required to properly deserialize resources /// returned in the multi-locale format. public static func withoutLocalizationContext() -> JSONDecoder { let jsonDecoder = JSONDecoder() jsonDecoder.dateDecodingStrategy = .custom(Date.variableISO8601Strategy) return jsonDecoder } /// Updates the JSONDecoder provided by the client with the localization context necessary to deserialize /// resources returned in the multi-locale format with the locale information provided by the space. public func update(with localizationContext: LocalizationContext) { userInfo[.localizationContextKey] = localizationContext } } internal extension Decodable where Self: EntryDecodable { // This is a magic workaround for the fact that dynamic metatypes cannot be passed into // initializers such as UnkeyedDecodingContainer.decode(Decodable.Type), yet static methods CAN // be called on metatypes. internal static func popEntryDecodable(from container: inout UnkeyedDecodingContainer) throws -> Self { let entryDecodable = try container.decode(self) return entryDecodable } } internal extension Decodable where Self: AssetDecodable { internal static func popAssetDecodable(from container: inout UnkeyedDecodingContainer) throws -> Self { let assetDecodable = try container.decode(self) return assetDecodable } } internal extension Decodable where Self: Node { internal static func popNodeDecodable(from container: inout UnkeyedDecodingContainer) throws -> Self { let contentDecodable = try container.decode(self) return contentDecodable } } internal extension CodingUserInfoKey { internal static let linkResolverContextKey = CodingUserInfoKey(rawValue: "linkResolverContext")! internal static let timeZoneContextKey = CodingUserInfoKey(rawValue: "timeZoneContext")! internal static let contentTypesContextKey = CodingUserInfoKey(rawValue: "contentTypesContext")! internal static let localizationContextKey = CodingUserInfoKey(rawValue: "localizationContext")! } // Fields JSON container. public extension KeyedDecodingContainer { /// Caches a link to be resolved once all resources in the response have been serialized. /// /// - Parameters: /// - key: The `KeyedDecodingContainer.Key` representing the JSON key where the related resource is found. /// - decoder: The `Decoder` being used to deserialize the JSON to user-defined classes. /// - callback: The callback used to assign the linked item at a later time. /// - Throws: Forwards the error if no link object is in the JSON at the specified key. public func resolveLink(forKey key: KeyedDecodingContainer.Key, decoder: Decoder, callback: @escaping (AnyObject) -> Void) throws { let linkResolver = decoder.linkResolver if let link = try decodeIfPresent(Link.self, forKey: key) { linkResolver.resolve(link, callback: callback) } } /// Caches an array of linked resources to be resolved once all resources in the response have been deserialized. /// /// - Parameters: /// - key: The `KeyedDecodingContainer.Key` representing the JSON key where the related resources are found. /// - decoder: The `Decoder` being used to deserialize the JSON to user-defined classes. /// - callback: The callback used to assign the linked items at a later time. /// - Throws: Forwards the error if no link object is in the JSON at the specified key. public func resolveLinksArray(forKey key: KeyedDecodingContainer.Key, decoder: Decoder, callback: @escaping (AnyObject) -> Void) throws { let linkResolver = decoder.linkResolver if let links = try decodeIfPresent(Array<Link>.self, forKey: key) { linkResolver.resolve(links, callback: callback) } } } internal class LinkResolver { private var dataCache: DataCache = DataCache() private var callbacks: [String: [(AnyObject) -> Void]] = [:] private static let linksArrayPrefix = "linksArrayPrefix" internal func cache(assets: [Asset]) { for asset in assets { dataCache.add(asset: asset) } } internal func cache(entryDecodables: [EntryDecodable]) { for entryDecodable in entryDecodables { dataCache.add(entry: entryDecodable) } } // Caches the callback to resolve the relationship represented by a Link at a later time. internal func resolve(_ link: Link, callback: @escaping (AnyObject) -> Void) { let key = DataCache.cacheKey(for: link) // Swift 4 API enables setting a default value, if none exists for the given key. callbacks[key, default: []] += [callback] } internal func resolve(_ links: [Link], callback: @escaping (AnyObject) -> Void) { let linksIdentifier: String = links.reduce(into: LinkResolver.linksArrayPrefix) { id, link in id += "," + DataCache.cacheKey(for: link) } callbacks[linksIdentifier, default: []] += [callback] } // Executes all cached callbacks to resolve links and then clears the callback cache and the data cache // where resources are cached before being resolved. internal func churnLinks() { for (linkKey, callbacksList) in callbacks { if linkKey.hasPrefix(LinkResolver.linksArrayPrefix) { let firstKeyIndex = linkKey.index(linkKey.startIndex, offsetBy: LinkResolver.linksArrayPrefix.count) let onlyKeysString = linkKey[firstKeyIndex ..< linkKey.endIndex] // Split creates a [Substring] array, but we need [String] to index the cache let keys = onlyKeysString.split(separator: ",").map { String($0) } let items: [AnyObject] = keys.compactMap { dataCache.item(for: $0) } for callback in callbacksList { callback(items as AnyObject) } } else { let item = dataCache.item(for: linkKey) for callback in callbacksList { callback(item as AnyObject) } } } self.callbacks = [:] self.dataCache = DataCache() } } // Inspired by https://gist.github.com/mbuchetics/c9bc6c22033014aa0c550d3b4324411a internal struct JSONCodingKeys: CodingKey { internal var stringValue: String internal init?(stringValue: String) { self.stringValue = stringValue } internal var intValue: Int? internal init?(intValue: Int) { self.init(stringValue: "\(intValue)") self.intValue = intValue } } internal extension KeyedDecodingContainer { internal func decode(_ type: Dictionary<String, Any>.Type, forKey key: K) throws -> Dictionary<String, Any> { let container = try self.nestedContainer(keyedBy: JSONCodingKeys.self, forKey: key) return try container.decode(type) } internal func decodeIfPresent(_ type: Dictionary<String, Any>.Type, forKey key: K) throws -> Dictionary<String, Any>? { guard contains(key) else { return nil } guard try decodeNil(forKey: key) == false else { return nil } return try decode(type, forKey: key) } internal func decode(_ type: Array<Any>.Type, forKey key: K) throws -> Array<Any> { var container = try self.nestedUnkeyedContainer(forKey: key) return try container.decode(type) } internal func decodeIfPresent(_ type: Array<Any>.Type, forKey key: K) throws -> Array<Any>? { guard contains(key) else { return nil } guard try decodeNil(forKey: key) == false else { return nil } return try decode(type, forKey: key) } internal func decode(_ type: Dictionary<String, Any>.Type) throws -> Dictionary<String, Any> { var dictionary = Dictionary<String, Any>() for key in allKeys { if let boolValue = try? decode(Bool.self, forKey: key) { dictionary[key.stringValue] = boolValue } else if let stringValue = try? decode(String.self, forKey: key) { dictionary[key.stringValue] = stringValue } else if let intValue = try? decode(Int.self, forKey: key) { dictionary[key.stringValue] = intValue } else if let doubleValue = try? decode(Double.self, forKey: key) { dictionary[key.stringValue] = doubleValue } // Custom contentful types. else if let fileMetaData = try? decode(Asset.FileMetadata.self, forKey: key) { dictionary[key.stringValue] = fileMetaData } else if let link = try? decode(Link.self, forKey: key) { dictionary[key.stringValue] = link } else if let location = try? decode(Location.self, forKey: key) { dictionary[key.stringValue] = location } else if let document = try? decode(RichTextDocument.self, forKey: key) { dictionary[key.stringValue] = document } // These must be called after attempting to decode all other custom types. else if let nestedDictionary = try? decode(Dictionary<String, Any>.self, forKey: key) { dictionary[key.stringValue] = nestedDictionary } else if let nestedArray = try? decode(Array<Any>.self, forKey: key) { dictionary[key.stringValue] = nestedArray } } return dictionary } } internal extension UnkeyedDecodingContainer { internal mutating func decode(_ type: Array<Any>.Type) throws -> Array<Any> { var array: [Any] = [] while isAtEnd == false { if try decodeNil() { continue } else if let value = try? decode(Bool.self) { array.append(value) } else if let value = try? decode(Int.self) { array.append(value) } else if let value = try? decode(Double.self) { array.append(value) } else if let value = try? decode(String.self) { array.append(value) } // Custom contentful types. else if let fileMetaData = try? decode(Asset.FileMetadata.self) { array.append(fileMetaData) // Custom contentful type. } else if let link = try? decode(Link.self) { array.append(link) // Custom contentful type. } // These must be called after attempting to decode all other custom types. else if let nestedDictionary = try? decode(Dictionary<String, Any>.self) { array.append(nestedDictionary) } else if let nestedArray = try? decode(Array<Any>.self) { array.append(nestedArray) } else if let location = try? decode(Location.self) { array.append(location) } } return array } internal mutating func decode(_ type: Dictionary<String, Any>.Type) throws -> Dictionary<String, Any> { let nestedContainer = try self.nestedContainer(keyedBy: JSONCodingKeys.self) return try nestedContainer.decode(type) } }
[ -1 ]
7da9c15c1f92a927dc91e6b58f220f6ffd48b9a4
cfb1269023a9283a079414c13ae1950039cf2cf9
/Task/Task/ViewController.swift
531fb82ed7a7a1b5c6f7215518a760f87ddc8894
[]
no_license
dineshchandra1005/Task
048ffb2cb89d67239ef9418017b124570cbac86e
89c9ae4b7b6932dc116167979ab63d5eba167ebb
refs/heads/master
2020-07-24T05:46:24.921466
2019-09-12T07:31:48
2019-09-12T07:31:48
207,818,638
0
0
null
null
null
null
UTF-8
Swift
false
false
5,144
swift
// // ViewController.swift // Task // // Created by Dinesh on 11/09/19. // Copyright © 2019 task. All rights reserved. // import UIKit class ViewController: UIViewController,UITableViewDataSource,UITableViewDelegate { let postsCell = "PostsCell" let refreshControl = UIRefreshControl() var postResponseResult = [PostResponseResult]() var postResponseResultSelected = [PostResponseResult]() var page = 1 lazy var postsTV:UITableView = { let table = UITableView() table.separatorStyle = .none table.allowsSelection = true table.backgroundColor = .clear table.isScrollEnabled = true table.delegate = self table.dataSource = self refreshControl.addTarget(self, action: #selector(postsRefreshAction), for: .valueChanged) table.refreshControl = refreshControl return table }() lazy var countLBL: UILabel = { let lb = UILabel() lb.text = "0" lb.font = UIFont.boldSystemFont(ofSize: 16.0) lb.backgroundColor = .clear lb.textColor = .white lb.numberOfLines = 0 return lb }() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. view.backgroundColor = .white view.addSubview(postsTV) self.navigationItem.rightBarButtonItem = UIBarButtonItem.init(customView: countLBL) postsTV.setAnchor(top: view.safeTopAnchor, left: view.safeLeftAnchor , bottom: view.safeBottomAnchor , right: view.safeRightAnchor, paddingTop: 0, paddingLeft: 0, paddingBottom: 0, paddingRight: 0) let url = ApiInterface.getPostsData+String(page) ApiService.callPost(url:url, params:"" ,methodType:"GET",tag: "getPosts" ,finish: finishPost) registerCells() } fileprivate func registerCells() { postsTV.estimatedRowHeight = 75 postsTV.rowHeight = UITableView.automaticDimension postsTV.register(PostsCell.self, forCellReuseIdentifier: postsCell) } func finishPost (message:String, data:Data? , tag: String) -> Void { do { if let jsonData = data { if tag == "getPosts" { refreshControl.endRefreshing() let parsedData = try JSONDecoder().decode(PostsResponse.self, from: jsonData) print(parsedData) postResponseResult.append(contentsOf:parsedData.hits) if postResponseResult.count > 0{ postsTV.reloadData() } } } } catch { print("Parse Error: \(error)") } } @objc func postsRefreshAction(){ page = 1 postResponseResult.removeAll() let url = ApiInterface.getPostsData+String(page) ApiService.callPost(url:url, params:"" ,methodType:"GET",tag: "getPosts" ,finish: finishPost) } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return postResponseResult.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = postsTV.dequeueReusableCell(withIdentifier: postsCell, for: indexPath) as! PostsCell let index = postResponseResult[indexPath.row] cell.postResponseResult = index if postResponseResultSelected.contains(where: { $0.created_at == index.created_at }) { cell.toggleSW.setOn(true, animated: true) }else { cell.toggleSW.setOn(false, animated: true) } if indexPath.row == postResponseResult.count-1 { lodeMoreData() } return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let index = postResponseResult[indexPath.row] if let index = postResponseResultSelected.firstIndex(where: { $0.created_at == index.created_at }) { postResponseResultSelected.remove(at: index) }else { postResponseResultSelected.append(index) } postsTV.reloadData() countLBL.text = String(postResponseResultSelected.count) } func lodeMoreData(){ page = page+1 let url = ApiInterface.getPostsData+String(page) ApiService.callPost(url:url, params:"" ,methodType:"GET",tag: "getPosts" ,finish: finishPost) } }
[ -1 ]