blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
625
content_id
stringlengths
40
40
detected_licenses
sequencelengths
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
sequencelengths
1
9.02k
f54daa9fe8b37586c2743a385b06560151de6117
d4702fb52f19da1d72027935c0f8e9d7e120c5ea
/AddController.swift
f8f5593a66db08182521260896fd328735afebc0
[]
no_license
Felix2905/Tableview
0c6f3b9ea1a7376a293d187bdf00c57eca6995c1
e3874f70324e1e6b7e9b21fac27922df10193524
refs/heads/master
2021-04-12T10:50:50.508869
2017-06-16T10:49:49
2017-06-16T10:49:49
94,534,903
0
0
null
null
null
null
UTF-8
Swift
false
false
2,466
swift
// // EditController.swift // CollectionStar // // Created by DinhTien on 6/16/17. // Copyright © 2017 DinhTien. All rights reserved. // import UIKit class AddController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { @IBOutlet weak var imgPhoto: UIImageView! @IBOutlet weak var tfName: UITextField! @IBOutlet weak var imgStar1: UIImageView! @IBOutlet weak var imgStar2: UIImageView! @IBOutlet weak var imgStar3: UIImageView! @IBOutlet weak var imgStar4: UIImageView! @IBOutlet weak var imgStar5: UIImageView! @IBAction func btnSave(){ } @IBAction func btnCancel(){ } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. imgPhoto.addGestureRecognizer(UITapGestureRecognizer(target: self , action: #selector(imgTapped))) imgPhoto.isUserInteractionEnabled = true imgStar1.image = #imageLiteral(resourceName: "star") imgStar2.image = #imageLiteral(resourceName: "star") imgStar3.image = #imageLiteral(resourceName: "star") imgStar4.image = #imageLiteral(resourceName: "star") imgStar5.image = #imageLiteral(resourceName: "star") imgPhoto.image = #imageLiteral(resourceName: "photo") } func imgTapped(){ let imagePickerController = UIImagePickerController() imagePickerController.sourceType = .photoLibrary imagePickerController.delegate = self present(imagePickerController, animated: true, completion: nil) } func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { dismiss(animated: true, completion: nil) } func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { // The info dictionary may contain multiple representations of the image. You want to use the original. guard let selectedImage = info[UIImagePickerControllerOriginalImage] as? UIImage else { fatalError("Expected a dictionary containing an image, but was provided the following: \(info)") } // Set photoImageView to display the selected image. imgPhoto.image = selectedImage // Dismiss the picker. dismiss(animated: true, completion: nil) } }
[ -1 ]
88c41af5eca5f7291e5634965a80aec5461ddd08
0fb077e6a73c5a55a6edf3479d280622ec8e0134
/TASK/Scenes/Prize/PrizeVC.swift
24d567aff0b9861c0e73a2bb09271a76225fd18d
[]
no_license
MuhammedElsayedd/Task
7027bf359e9bca4effa7cb5c25e74250ac0214a9
6f1fd97c8363d6c3dad1402c34ea8ff7267fcbd4
refs/heads/main
2023-08-12T23:56:02.740122
2021-09-25T18:17:05
2021-09-25T18:17:05
410,349,094
0
0
null
null
null
null
UTF-8
Swift
false
false
617
swift
// // PrizeVC.swift // TASK // // Created by Muhammed Elsayed on 3/31/21. // import UIKit class PrizeVC: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } /* // 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. } */ }
[ 327555, 398203, 356742, 384145, 391441, 375576, 384153, 399130, 258589, 254494, 254495, 436128, 254497, 155551, 397091, 351400, 356652, 319284, 383797, 396725, 402616, 397114, 111292, 384447, 266816, 360903, 359368, 437582, 330960, 146645, 399958, 402524, 362845, 332513, 399201, 384103, 374122, 352876, 349297, 210674, 320506, 361595 ]
64b62268109fed62234a69f190d00ba13ef14fac
e3f84620f8f6b16fe408f81a49369f74f2231bf3
/MSDKUI/Classes/TunnelOptionsPanel.swift
a71b0d0a169e2c78b2a66cee357eea96306a7aa3
[ "Apache-2.0" ]
permissive
antoniodesouza/msdkui-ios
13f4100cfdd8176e4278a78f651fd35c094c6da9
f8679ff0ecfa24eaf5ba2db1bfe70fe2c1d2f46d
refs/heads/master
2020-05-25T17:15:29.933483
2019-09-11T03:03:05
2019-09-11T03:03:05
187,905,230
1
0
Apache-2.0
2019-09-11T03:03:08
2019-05-21T20:01:34
Swift
UTF-8
Swift
false
false
3,538
swift
// // Copyright (C) 2017-2019 HERE Europe B.V. // // 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 NMAKit /// An options panel for displaying the tunnel options of the underlying `NMARoutingMode`. /// /// - SeeAlso: `NMARoutingMode.tunnelCategory` @IBDesignable open class TunnelOptionsPanel: OptionsPanel { // MARK: - Properties /// A string that can be used to represent the panel. public static let name = "msdkui_tunnels_allowed_title".localized /// The underlying `NMARoutingMode` object. The panel reflects its `tunnelCategory` properties and /// sets the `selectedItemIndex` based on it. public var routingMode: NMARoutingMode! { didSet { if let routingMode = routingMode { // One-by-one check for index in 0 ..< TunnelOptionsPanel.options.count where TunnelOptionsPanel.options[index].value == routingMode.tunnelCategory { item?.selectedItemIndex = index break } // Set the item delegate item?.delegate = self } } } /// The delegate object is responsible for customizing the panel. public weak var pickerDelegate: PickerViewDelegate? { didSet { item?.pickerDelegate = pickerDelegate } } /// All the label/value option pairs that the panel supports. /// /// - Important: The options are listed in the declaration order. static let options: [(label: String, value: NMATunnelCategory)] = [ ("msdkui_none".localized, NMATunnelCategory.none), ("msdkui_tunnel_cat_b".localized, NMATunnelCategory.b), ("msdkui_tunnel_cat_c".localized, NMATunnelCategory.c), ("msdkui_tunnel_cat_d".localized, NMATunnelCategory.d), ("msdkui_tunnel_cat_e".localized, NMATunnelCategory.e) ] /// Convenience property to access the underlying `SingleChoiceOptionItem` item. private var item: SingleChoiceOptionItem? { return optionItems.first as? SingleChoiceOptionItem } // MARK: - Public /// Creates the spec for the underlying `SingleChoiceOptionItem` object. override func makePanel() { // Maps the options to strings let labels: [String] = TunnelOptionsPanel.options.map { $0.label } // Creates the spec for the option item specs = [OptionItemSpec.makeSingleChoiceOptionItem(title: nil, labels: labels)] } } // MARK: - OptionItemDelegate extension TunnelOptionsPanel: OptionItemDelegate { public func optionItemDidChange(_ item: OptionItem) { guard let singleChoiceOptionItem = item as? SingleChoiceOptionItem else { return } if let tunnelCategory = NMATunnelCategory(rawValue: TunnelOptionsPanel.options[singleChoiceOptionItem.selectedItemIndex].value.rawValue) { routingMode.tunnelCategory = tunnelCategory } // Notifies the delegate delegate?.optionsPanel(self, didChangeTo: item) } }
[ -1 ]
09f411c6bf3e64b2e45137d218cf8bfaee25944e
72bf490739bdbcc832df7631838cd491f9be8446
/Pods/Swifternalization/Swifternalization/ExpressionMatcher.swift
eab29bb85632a3170190431ae90fb1022a022539
[ "MIT", "Apache-2.0" ]
permissive
intive/StudyBox_iOS
cf18c1f506202d722253dff0605333bed90f6699
b382c661047df65a9fbc7d1276de0117a7da117d
refs/heads/master
2021-06-08T21:25:46.890799
2016-06-13T12:22:46
2016-06-13T12:22:46
52,280,705
1
1
null
null
null
null
UTF-8
Swift
false
false
575
swift
// // ExpressionMatcher.swift // Swifternalization // // Created by Tomasz Szulc on 27/06/15. // Copyright (c) 2015 Tomasz Szulc. All rights reserved. // /** Protocol that is the base protocol to conform for expression matchers like `InequalityExpressionMatcher` or `RegexExpressionMatcher`. */ protocol ExpressionMatcher { /** Method used to validate passed `val` parameter. :param: val string value that will be used to match expression. :returns: `true` if value matches expression, otherwise `false`. */ func validate(val: String) -> Bool }
[ -1 ]
7cab37250f9bb0d4e7c1ff2c6e5cb11bf0329bab
7a6c6cb672eead99ee85a42f96018e94b9766d8a
/TableTie/Section.swift
3b6752a8a72c277f37409bb429afd7e0ae5f14fe
[ "MIT" ]
permissive
vladimirkofman/TableTie
e5c7583ef2337d992bd1c3da3407ce1edf365eab
38872f14ef2bd71ab3f9ab42e702154193aca163
refs/heads/master
2021-01-19T23:32:12.347606
2019-04-30T11:55:48
2019-04-30T11:55:48
88,986,362
13
2
MIT
2019-04-30T11:46:12
2017-04-21T13:25:24
Swift
UTF-8
Swift
false
false
571
swift
// // Section.swift // TableTie // // Created by Vladimir Kofman on 21/04/2017. // Copyright © 2017 Vladimir Kofman. All rights reserved. // import Foundation /** Stores the information about a section in a UITableView */ public struct Section { /// header title let header: String? /// footer title let footer: String? /// rows let rows: [AnyRow] public init(_ header: String? = nil, footer: String? = nil, _ rows: [AnyRow]) { self.header = header self.footer = footer self.rows = rows } }
[ -1 ]
c84ff3948148e60defc89dd75b1cef4efc2b636d
80d3fe6b55f6e8ef46916c5643c65fd581294d7e
/Basic/SwiftUI_Lecture_5_Shape/SwiftUI_Lecture_5_Shape/ContentView.swift
6b7cfd9fbf42c2a8fa47f6003193c69e9d6d20cd
[]
no_license
liudhzhyym/SwiftUI
ce555ba34749e9be6841b52d2c068f67d694e729
08bfe2989510a1b4c0497c2b9159654edf80acc4
refs/heads/master
2023-03-02T12:18:37.490509
2021-02-12T12:59:27
2021-02-12T12:59:27
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,099
swift
// // ContentView.swift // SwiftUI_Lecture_5_Shape // // Created by bakhaan on 2021/02/01. // import SwiftUI struct ContentView: View { var body: some View { VStack { Rectangle() // .fill(Color.red) // .frame(width: 100, height: 100) .stroke(Color.orange, style: StrokeStyle(lineWidth: 10, lineCap: .round, lineJoin: .miter, miterLimit: 1,dash: [20, 20], dashPhase: 10)) RoundedRectangle(cornerRadius: 20) .fill(Color.red) // .frame(width: 100, height: 100) Circle() .fill(Color.red) // .frame(width: 100, height: 50) Capsule() .fill(Color.red) // .frame(width: 100, height: 50) Ellipse() .fill(Color.red) // .frame(width: 100, height: 50) } .frame(width: 200) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
2569ec2ef43279fd35ddf8513ba47ea54a4e06ac
9376811943b07b89c819ea0a665cb71a0d19e27e
/JYFoundation/Services/JYAuthorizationServices/NotificationAuthService.swift
94632b339e7d07422f67520ca1a7f18efd3d9a6e
[ "MIT" ]
permissive
jayasme/JYFoundation
69f24d28c11d27b2f7a7259cb790cc2d98e05e3f
8623ffc81021e5648c399fba1015995b495cb3bc
refs/heads/master
2023-04-06T20:44:55.148434
2023-03-25T15:32:18
2023-03-25T15:32:18
156,820,245
2
0
null
null
null
null
UTF-8
Swift
false
false
2,020
swift
// // JYNotificationAuthService.swift // JYFoundation // // Created by Scott Rong on 2018/8/11. // Copyright © 2018年 jayasme All rights reserved. // import Foundation import PromiseKit import UserNotifications public class JYNotificationAuthService: JYAuthServiceBase { public static var shared: JYNotificationAuthService = JYNotificationAuthService() public override func authState() -> Promise<JYAuthState> { return Promise<JYAuthState> { seal in UNUserNotificationCenter.current().getNotificationSettings { (settings) in switch(settings.authorizationStatus) { case .authorized: fallthrough case .provisional: fallthrough case .ephemeral: seal.fulfill(JYAuthState.allowed) break case .denied: seal.fulfill(JYAuthState.denined) break case .notDetermined: seal.fulfill(JYAuthState.notDetermined) break @unknown default: fatalError() } } } } public override func requestAuth() -> Promise<JYAuthState> { let notificationOptions: UNAuthorizationOptions = [.alert , .badge, .sound] return Promise<JYAuthState> { seal in UNUserNotificationCenter.current().requestAuthorization(options: notificationOptions) { (granted, error) in seal.fulfill(granted ? JYAuthState.allowed : JYAuthState.denined) } } } public override func denyWarning(controller: UIViewController) { guard let denyTitle = self.denyTitle, let denyMessage = self.denyMessage else { return } let alert = UIAlertController(title: denyTitle, message: denyMessage, preferredStyle: .alert) controller.present(alert, animated: true, completion: nil) } }
[ -1 ]
131246bc80f79625960845776da9fa6a3cf4adca
de5669673b445b9fd948f3cb598f377734cbd871
/Sources/HDXLColor/Colorspaces/HSB/Components/SIMD3+HSBColorComponent.swift
6d1947bca545913e335bf64f306579b1129d2e12
[]
no_license
plx/HDXLColor
122c26cfc5dbe7820449b51cb0ffb0c2d6d2f082
4d55aeb56e03787b9eb333990c947161214b199a
refs/heads/master
2022-06-19T22:27:28.784919
2020-05-09T14:03:09
2020-05-09T14:03:09
191,791,868
0
0
null
null
null
null
UTF-8
Swift
false
false
290
swift
// // SIMD3+HSBColorComponent.swift // import Foundation import simd internal extension SIMD3 { @inlinable subscript(component: HSBColorComponent) -> Scalar { get { return self[component.rawValue] } set { self[component.rawValue] = newValue } } }
[ -1 ]
7a51ae21214a0b1d23542515821a197205fc1375
c93a19f5d359f427a915d2b7dbc4be02d7b5092c
/Reddit/Reddit/View Controller/MHMSearchPostsTableViewController.swift
203ca5c3234bde00ce3be545c9f7d6215bc3fb43
[]
no_license
mhmoore/Reddit-C
e119fa8246900e400eb9dcf36559442a49d9655d
61618023f410132fe7610a3d857b6483a237cb97
refs/heads/master
2020-07-09T06:09:33.724600
2019-08-23T01:42:53
2019-08-23T01:42:53
203,902,526
0
0
null
null
null
null
UTF-8
Swift
false
false
2,104
swift
// // MHMSearchPostsTableViewController.swift // Reddit // // Created by Michael Moore on 8/20/19. // Copyright © 2019 Michael Moore. All rights reserved. // import UIKit class MHMSearchPostsTableViewController: UITableViewController, UISearchBarDelegate { @IBOutlet weak var searchBar: UISearchBar! // MARK: - Properties var posts: [MHMPost] = [] { didSet { DispatchQueue.main.async { self.tableView.reloadData() self.searchBar.text = "" } } } override func viewDidLoad() { super.viewDidLoad() searchBar.delegate = self } func searchBarSearchButtonClicked(_ searchBar: UISearchBar) { guard let searchText = searchBar.text, !searchText.isEmpty else { return } searchBar.resignFirstResponder() let searchTerm = searchText.replacingOccurrences(of: " ", with: "+") MHMPostController.shared().searchForPost(withSearchTerm: searchTerm) { (posts, error) in // fill the posts that come back from the json add set them to our local array so it can populate the TVC self.posts = posts DispatchQueue.main.async { UIApplication.shared.isNetworkActivityIndicatorVisible = false self.title = searchText } } } // MARK: - Table view data source override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return posts.count } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let cell = tableView.dequeueReusableCell(withIdentifier: "postCell", for: indexPath) as? MHMPostTableViewCell else { return UITableViewCell() } let post = posts[indexPath.row] cell.post = post MHMPostController.shared().fetchImagePost(post) { (fetchedImage) in DispatchQueue.main.async { cell.thumbnail = fetchedImage } } return cell } }
[ -1 ]
594e3a8dd1b10fd8bdd033bb7b593c5ef04b94b9
2b5a7bf3add9784d3073b27068b9fc76bf261524
/my-swift-ui/RingView.swift
26f8e7b569f3d7608f06cd8e65315646cd906e48
[]
no_license
amzaandrei/my-swift-ui
297b564e5e70909b9fbffd98488137a48c2ade6e
bf01e5ca3e34e56d61ca72c075966c9a940256ee
refs/heads/master
2022-11-22T02:53:12.503819
2020-07-24T20:36:14
2020-07-24T20:36:14
239,629,109
0
0
null
null
null
null
UTF-8
Swift
false
false
1,949
swift
// // RingView.swift // my-swift-ui // // Created by Amza Andrei on 3/1/20. // Copyright © 2020 Andrew. All rights reserved. // import SwiftUI struct RingView: View { var color1 = #colorLiteral(red: 0.3098039329, green: 0.2039215714, blue: 0.03921568766, alpha: 1) var color2 = #colorLiteral(red: 0.1764705926, green: 0.01176470611, blue: 0.5607843399, alpha: 1) var width: CGFloat = 300 var height: CGFloat = 300 var prozent: CGFloat = 88 @Binding var show: Bool var body: some View { let multiplier = width / 44 let progress = 1 - prozent / 100 return ZStack{ Circle() .stroke(Color.black.opacity(0.1), style: StrokeStyle(lineWidth: 5 * multiplier)) .frame(width: width, height: height) Circle() /// 0.2 este 80%, 0.3 este 90% .trim(from: show ? progress : 1, to: 1) .stroke( LinearGradient(gradient: Gradient(colors: [Color(color1),Color(color2)]), startPoint: .topTrailing, endPoint: .bottomLeading) ,style: StrokeStyle(lineWidth: 5 * multiplier, lineCap: .round, lineJoin: .round, miterLimit: .infinity, dash: [20, 0], dashPhase: 0)) .rotationEffect(Angle(degrees: 90)) .rotation3DEffect(Angle(degrees: 180), axis: (x: 1, y: 0, z: 0)) .frame(width: width, height: height) .shadow(color: Color(color2).opacity(0.1), radius: 3 * multiplier, x: 0, y: 3 * multiplier) Text("\(Int(prozent))%") .font(.system(size: 14 * multiplier)) .fontWeight(.bold) .onTapGesture { self.show.toggle() } } } } struct RingView_Previews: PreviewProvider { static var previews: some View { RingView(show: .constant(true)) } }
[ -1 ]
8962e4465ad1875f59feb140100dafc159ffa5ba
0c293406d6fe19b88d466183926a1d31c8f61200
/Moto-Safe/AppDelegate.swift
09633da0c0a9404e7513f17eac5d297f7c38053d
[]
no_license
gbarcenasjr/Moto-Safe-App
f4000ca0be5bc65a8e8814855a7b3760848e847e
d971a616b7645cb603105b308076eab717485679
refs/heads/master
2023-08-04T14:57:08.502526
2023-07-29T21:03:42
2023-07-29T21:03:42
314,975,717
0
0
null
null
null
null
UTF-8
Swift
false
false
1,361
swift
// // AppDelegate.swift // Moto-Safe // // Created by gbarcenasjr on 11/17/20. // import UIKit @UIApplicationMain 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, 163891, 213048, 376889, 385081, 393275, 376905, 327756, 254030, 286800, 368727, 180313, 368735, 180320, 376931, 417924, 262283, 377012, 327871, 180416, 377036, 180431, 377046, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 336128, 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, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 328206, 410128, 393747, 254490, 188958, 385570, 33316, 377383, 197159, 352821, 197177, 188987, 418363, 369223, 385609, 385616, 352856, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 328378, 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, 336711, 361288, 328522, 336714, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 345043, 386003, 386011, 386018, 386022, 435187, 328702, 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, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 181670, 181673, 181681, 337329, 181684, 181690, 361917, 181696, 337349, 181703, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 345625, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 214610, 419410, 345701, 394853, 222830, 370297, 403070, 353919, 403075, 198280, 345736, 403091, 345749, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 337599, 419527, 419530, 419535, 272081, 419542, 394966, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 337645, 370415, 337659, 141051, 337668, 362247, 395021, 362255, 321299, 395029, 116509, 345887, 378663, 345905, 354111, 247617, 354117, 329544, 345930, 370509, 354130, 247637, 337750, 370519, 313180, 354150, 354156, 345967, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 337833, 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, 321786, 379134, 411903, 379152, 395538, 387349, 338199, 387352, 182558, 338211, 248111, 362822, 436555, 190796, 321879, 379233, 354673, 321910, 248186, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 256472, 338403, 338409, 248308, 199164, 330252, 420376, 330267, 354855, 10828, 199249, 174695, 248425, 191084, 338543, 191092, 346742, 330383, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 338660, 338664, 264941, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 330748, 265214, 330760, 330768, 248862, 396328, 158761, 347176, 199728, 330800, 396336, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 339036, 412764, 257120, 248951, 420984, 330889, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330965, 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, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249227, 249234, 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, 339503, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 126596, 339588, 421508, 224904, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 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, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 225058, 339747, 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, 257916, 225148, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 266294, 266297, 217157, 421960, 356439, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 192673, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 430256, 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, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 348502, 250199, 250202, 332125, 250210, 348525, 332152, 389502, 250238, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 340451, 160234, 127471, 340472, 324094, 266754, 324111, 340500, 324117, 332324, 381481, 324139, 356907, 324142, 356916, 324149, 324155, 348733, 324160, 324164, 348743, 381512, 324173, 324176, 389723, 332380, 373343, 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, 152370, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 201588, 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, 201637, 324524, 340909, 324533, 5046, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 381946, 349180, 439294, 431106, 209943, 250914, 357410, 185380, 357418, 209965, 209968, 209971, 209975, 209979, 209987, 209990, 341071, 349267, 250967, 210010, 341091, 210027, 210036, 210039, 341113, 349308, 210044, 349311, 152703, 160895, 210052, 349319, 210055, 210067, 210071, 210077, 210080, 251044, 210084, 185511, 210088, 210095, 210098, 210107, 210115, 332997, 210127, 333009, 210131, 333014, 210138, 210143, 218354, 218360, 251128, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 251210, 210260, 259421, 365921, 333154, 251235, 333162, 234866, 390516, 333175, 357755, 136590, 374160, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415193, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 333399, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 153227, 333498, 210631, 333511, 259788, 358099, 153302, 333534, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 210698, 366348, 210706, 399128, 333594, 210719, 358191, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 358234, 341851, 350045, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 358339, 333774, 358371, 350189, 350193, 350202, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350244, 350248, 178218, 350251, 350256, 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, 325891, 350467, 350475, 268559, 350480, 350486, 350490, 325914, 325917, 350493, 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, 186897, 342545, 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, 334528, 260801, 350917, 391894, 154328, 416473, 64230, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 326460, 244540, 375612, 260924, 326467, 244551, 326473, 326477, 326485, 416597, 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, 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, 384151, 384160, 384168, 367794, 244916, 384181, 367800, 384188, 384191, 351423, 384198, 326855, 244937, 384201, 253130, 343244, 384208, 146642, 384224, 359649, 343270, 351466, 384246, 351479, 384249, 343306, 261389, 359694, 253200, 261393, 384275, 384283, 245020, 384288, 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, 327275, 138864, 155254, 155273, 245409, 425638, 425649, 155322, 425662, 155327, 245460, 155351, 155354, 212699, 245475, 155363, 245483, 155371, 409335, 155393, 155403, 245525, 155422, 360223, 155438, 155442, 155447, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 147317, 262005, 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, 327654, 393203, 360438, 253943, 393206, 393212, 155646 ]
64a26ce774b1af072a5a399ffe821a6306ba906e
37e846acaef4b6d3ff77a4bb11e59cc3cab5f66a
/unirecycle/unirecycle/Challenges/StatusVC/ActiveTableViewCell.swift
0b30e7ef04cca61620d2c43a6882a3096dab670a
[]
no_license
bob-broersen/unirecycle-ios
513b29ac216abf635722877b935729fd90847810
9f009e7b356c3d9d5ac0b8a9ed0d0cf30500596f
refs/heads/master
2023-08-20T07:15:13.924025
2021-10-20T13:53:29
2021-10-20T13:53:29
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,516
swift
// // ActiveTableViewCell.swift // unirecycle // // Created by Daron on 13/05/2021. // Copyright © 2021 HvA. All rights reserved. // import UIKit class ActiveTableViewCell: UITableViewCell { static let identifier = "ActiveTableView" var parent: UIViewController? func setChallenge(activeChallenge: ActiveChallengeModel){ latestChallengeView.setChallenge(challenge: activeChallenge) } let latestChallengeView: ActiveChallenge = { let view = ActiveChallenge() view.translatesAutoresizingMaskIntoConstraints = false return view }() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) setUpLatestView() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } func setUpLatestView(){ contentView.addSubview(latestChallengeView) NSLayoutConstraint.activate([ latestChallengeView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 10), latestChallengeView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -10), latestChallengeView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 16), latestChallengeView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -16), ]) } }
[ -1 ]
70f5b6c089245c09ca134c91fa4b6c3acce24f15
0adaaf06a5070693edeb1b570bbc2cc64c059138
/Populating Next Right Pointers in Each Node.swift
0e96688d8380298d39b9353b9a91bb47899df9e0
[]
no_license
TejeshwarGill/leetcodeswift
4eb5c99508a86fb434adb5711926ae1ac32f00fd
7059e95cf86fb8d2145c2d0123d1cfb11e032e1c
refs/heads/main
2023-06-12T18:30:58.647750
2021-04-18T07:49:27
2021-04-18T07:49:27
384,334,511
0
0
null
null
null
null
UTF-8
Swift
false
false
750
swift
// // Populating Next Right Pointers in Each Node.swift // Leetcode // // Created by Nishant on 21/01/21. // Copyright © 2021 Personal. All rights reserved. // import Foundation /* Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Reference: https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ */ func connect(_ root: Node?) -> Node? { guard let root = root else { return nil } var queue = [root] while queue.count > 0 { for i in 0..<queue.count-1 { queue[i].next = queue[i+1] } queue = queue.flatMap { [$0.left, $0.right].compactMap { $0 } } } return root }
[ -1 ]
e29009bc7cb187ad4fc549e13690cb3b804a7e09
d494dd27e5c93486d350158875c9dd55ae89b45f
/I am rich/I am rich/ViewController.swift
1b7e4c0dd41e3da02592c4fbfab23db05171e78f
[]
no_license
AlimaBen1988/iOS-Projects
748ef5dbec48ed92ed3b7917929e54f44667cff3
5955d34ac020fe5830aff32a8684a65921f322dc
refs/heads/master
2020-03-08T17:13:30.801362
2018-04-09T15:10:53
2018-04-09T15:10:53
128,263,327
0
0
null
null
null
null
UTF-8
Swift
false
false
504
swift
// // ViewController.swift // I am rich // // Created by Ben Alima on 01/04/2018. // Copyright © 2018 Red Rose. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
[ 315398, 278543, 317473, 237616, 360501, 286775, 237624, 288827, 286786, 284740, 159812, 243786, 278606, 237655, 307288, 309347, 276580, 309349, 309351, 309353, 356460, 307311, 276597, 303242, 311437, 278675, 299165, 278693, 100521, 307379, 280760, 280770, 280772, 280775, 313550, 229585, 307410, 280797, 278749, 301284, 280808, 280810, 280826, 276736, 280832, 278786, 287004, 282917, 233767, 307516, 278845, 287055, 289112, 311645, 323933, 227688, 313706, 299374, 199024, 276849, 278897, 280947, 311684, 313733, 233869, 227740, 285087, 289187, 289190, 289191, 305577, 289196, 305582, 278968, 127418, 293308, 278973, 289224, 311761, 276959, 279011, 276965, 236022, 287231, 279041, 279046, 281107, 236057, 281118, 295460, 281142, 277057, 129604, 158285, 311913, 281202, 277108, 287350, 285321, 117399, 228000, 295586, 225955, 326311, 287399, 285377, 287437, 226009, 277224, 199402, 312049, 289524, 226038, 234232, 230147, 226055, 299786, 295696, 281373, 228127, 281380, 234279, 283433, 312107, 293682, 285495, 289596, 283453, 279360, 289600, 279380, 295766, 279386, 308064, 303977, 293742, 277364, 207738, 183173, 324491, 234380, 304015, 226196, 234402, 291755, 297903, 324528, 230323, 234423, 230328, 277432, 293816, 281530, 291774, 168936, 289771, 183278, 277487, 293888, 277508, 275466, 234511, 277527, 300057, 197664, 304174, 234551, 300089, 238653, 293961, 300107, 203858, 300116, 277602, 281701, 281703, 296042, 277612, 164974, 312433, 300149, 285837, 226447, 234641, 349332, 302235, 285855, 234665, 283839, 277696, 228548, 228551, 230604, 298189, 302286, 230608, 290004, 290006, 302295, 189655, 298202, 298206, 363743, 298211, 290020, 228585, 120054, 204027, 300288, 312586, 296216, 277796, 300358, 238920, 234829, 296272, 306540, 310649, 290175, 275842, 224643, 300432, 310673, 306578, 226705, 288165, 144811, 370093, 279982, 241071, 277935, 286126, 292277, 296374, 130487, 306633, 288205, 286158, 280015, 163289, 280030, 280031, 286175, 286189, 282095, 308721, 302580, 310773, 296436, 288251, 286204, 294411, 286234, 282143, 284192, 282145, 284197, 296487, 286249, 296489, 226878, 228932, 226887, 284236, 284239, 284240, 226896, 284242, 292435, 228945, 280146, 212561, 282202, 212573, 284261, 306791, 286314, 284275, 314996, 284277, 284279, 276087, 292478, 284287, 284289, 276099, 284298, 282262, 284315, 280219, 284317, 282270, 282275, 284323, 280231, 284328, 313007, 284336, 286390, 300727, 276150, 282301, 296638, 302788, 282311, 294600, 284361, 276167, 282320, 317137, 284373, 282338, 284391, 282346, 282357, 288501, 286456, 282365, 286462, 282368, 358147, 282377, 300817, 282389, 282393, 278298, 329499, 276256, 278304, 282403, 304933, 282411, 282426, 288577, 288579, 307029, 276309, 188253, 292701, 292730, 313222, 284570, 284574, 284577, 284580, 284586, 276396, 282548, 10179, 165832, 301012, 294877, 294889, 298989, 227315, 237556, 237564 ]
de4f1392554b0e1a18a25ebb394d672a840cb06e
a060d512e7881a918a8b2ec8f689b3127d100aa7
/Sources/App/Droplet+Setup.swift
3243d4979c9d443a90a141e2e537dd809ced7be6
[ "MIT" ]
permissive
FDavidse/Chat-
11136b546f4be9cfd28af3941f3893610955d864
2bc7e51da3d19cecb3a11e9d3ada6f5c4504da82
refs/heads/master
2021-08-27T22:14:36.612646
2017-12-09T15:48:35
2017-12-09T15:48:35
113,683,449
0
0
null
null
null
null
UTF-8
Swift
false
false
796
swift
@_exported import Vapor extension Droplet { public func setup() throws { try setupRoutes() // Do any additional droplet setup try addMiddleWare() let chatAppController = ChatAppController() chatAppController.addRoutes(drop: self) let loginController = LoginController() loginController.addRoutes(drop: self) let groupController = GroupController() groupController.addRoutes(drop: self) let messageController = MessageController() messageController.addRoutes(drop: self) let chatUsers = ChatUserController() chatUsers.addRoutes(drop: self) let socketController = AppWebSocketsController() socketController.addSocket(drop: self) } }
[ -1 ]
b913626271dadd1b4c95ab9e7a8ac5968ea568cb
31df30a585cb373848706dd4a04ed1c9c6876b9d
/VKDonations/VKDonations/DonationType/DonationTypesViewController.swift
db044bcf1466a8add6b83c33c4f5fbf35fcbd75c
[]
no_license
morzv/vkdonations
2fa65d78303ffd990461d50bf192d3a00a49a11b
78ca0a26476052437e51ec7dccc4a9d228a39ef8
refs/heads/master
2023-01-31T16:05:00.626185
2020-12-13T15:32:06
2020-12-13T15:32:06
294,811,559
0
0
null
2020-12-13T15:32:07
2020-09-11T21:02:46
Swift
UTF-8
Swift
false
false
4,527
swift
// // DonationTypesViewController.swift // VKDonations // // Created by Andrey Morozov on 12.09.2020. // Copyright © 2020 PreviousStation. All rights reserved. // import UIKit final class DonationTypesViewController: UIViewController { let donationTypes: [DonationType] private lazy var stackView: UIStackView = { let stackView = UIStackView() stackView.axis = .vertical stackView.spacing = 12 stackView.translatesAutoresizingMaskIntoConstraints = false return stackView }() init(donationTypes: [DonationType]) { self.donationTypes = donationTypes super.init(nibName: nil, bundle: nil) title = "Тип сбора" } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .systemBackground navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil) setupSubviews() } private func setupSubviews() { let donationTypeViews: [DonationTypeView] = donationTypes.map { let view = DonationTypeView() view.title = $0.title view.subtitle = $0.subtitle view.icon = UIImage(named: $0.iconName) view.addTarget(self, action: #selector(didSelect(donationTypeView:)), for: .touchUpInside) return view } donationTypeViews.forEach { stackView.addArrangedSubview($0) } view.addSubview(stackView) NSLayoutConstraint.activate([ stackView.centerYAnchor.constraint(equalTo: view.centerYAnchor), stackView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: 12), stackView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -12), ]) } @objc private func didSelect(donationTypeView: DonationTypeView) { let viewController: UIViewController? if donationTypeView.title == donationTypes.first?.title { viewController = GoalDonationTableViewController(inputFieldItems: makeGoalDonatesItems(), actionTitle: "Дальше") { [weak self] in self?.showNextGoalDonationStep() } viewController?.title = "Целевой сбор" } else if donationTypeView.title == donationTypes.last?.title { viewController = GoalDonationTableViewController(inputFieldItems: makeRegularDonatesItems(), actionTitle: "Создать сбор") { [weak self] in self?.createRegularDonationCollecting() } viewController?.title = "Регулярный сбор" } else { viewController = nil } viewController.map { navigationController?.pushViewController($0, animated: true) } } private func makeGoalDonatesItems() -> [InputFieldItem] { let nameItem = InputFieldItem(title: "Название сбора", placeholder: "Название сбора") let amountItem = InputFieldItem(title: "Сумма, ₽", placeholder: "Сколько нужно собрать?") let goalItem = InputFieldItem(title: "Цель", placeholder: "Например, лечение человека") let descriptionItem = InputFieldItem(title: "Описание", placeholder: "На что пойдут деньги и как они кому-то помогут?") let destinationItem = InputFieldItem(title: "Куда получать деньги", placeholder: "Счет зачисления", text: "Счёт VK Pay · 1234") return [nameItem, amountItem, goalItem, descriptionItem, destinationItem] } private func makeRegularDonatesItems() -> [InputFieldItem] { let authorItem = InputFieldItem(title: "Автор", placeholder: "Автор", text: "Морозов Андрей") return makeGoalDonatesItems() + [authorItem] } private func showNextGoalDonationStep() { let empty = EmptyViewController() navigationController?.pushViewController(empty, animated: true) } private func createRegularDonationCollecting() { let postViewController = PostDonationViewController() let navigationController = UINavigationController(rootViewController: postViewController) present(navigationController, animated: true, completion: nil) } }
[ -1 ]
fb1d562892fc1216bce1729f5f9bea23442bd484
ef42b45101496c20d5157becce69a5f16d7000cb
/HWCalc/ViewController.swift
30af75f8088983767d09c04c8ec00ae911e0f69f
[]
no_license
AlexVotry/swiftCalculator
6799b07751ee844770c2b9cd583699548f75f399
6be8a8035005e69ce7d25ebc11282864d9b9aacd
refs/heads/master
2020-05-22T06:18:48.392321
2017-03-15T17:58:14
2017-03-15T17:58:14
84,677,681
0
0
null
null
null
null
UTF-8
Swift
false
false
1,291
swift
// // ViewController.swift // HWCalc // // Created by Alex Votry on 3/8/17. // Copyright © 2017 Alex Votry. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var display: UILabel! @IBOutlet weak var topDisplay: UILabel! private var calculator = Calculator() private var recentNumber = DisplayBtn() var isTyping = false var displayValue : Double { get { return Double(display.text!)! } set { return display.text = String(newValue) } } @IBAction func numberBtn(_ sender: UIButton) { display.text! = recentNumber.getNum(sender.currentTitle!) topDisplay.text! = recentNumber.writeDisplay(sender.currentTitle!) isTyping = true } @IBAction func operators(_ sender: UIButton) { if isTyping { calculator.setNum(displayValue) //sends number to calculator isTyping = false } if let mathFunction = sender.currentTitle { calculator.performOp(mathFunction) topDisplay.text! = recentNumber.writeEquation(mathFunction) } if let result = calculator.result { displayValue = result } } }
[ -1 ]
34c3cf1b18664d9b6cfd00c602dc8f298abc125c
ffe7662f4ee024b1ade736184cce37812b45b5a7
/GistViewerUITests/GistViewerUITests.swift
80fdcd8e97c02df8f4b6741de6e70ed6470a6ea1
[]
no_license
NorbertoVasconcelos/GistViewer
b02afe85bbfe55e9467d25055c7a74084386d002
a3229bb4000d641fd89fed7789262a0f2a4cdd9e
refs/heads/master
2020-04-05T17:50:01.986730
2018-11-11T16:20:19
2018-11-11T16:20:19
157,077,595
0
0
null
null
null
null
UTF-8
Swift
false
false
1,182
swift
// // GistViewerUITests.swift // GistViewerUITests // // Created by Norberto Vasconcelos on 07/11/2018. // Copyright © 2018 Vasconcelos. All rights reserved. // import XCTest class GistViewerUITests: 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 // 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. } func testExample() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } }
[ 333827, 243720, 354312, 282634, 313356, 241695, 223269, 229414, 292901, 315431, 315433, 102441, 325675, 354346, 278571, 102446, 124974, 282671, 229425, 344106, 243763, 241717, 321589, 319543, 229431, 180279, 215095, 249912, 352314, 288829, 376892, 325695, 32829, 288835, 237638, 313415, 239689, 311373, 278607, 196687, 311377, 354386, 176209, 223317, 53334, 354394, 368732, 356446, 321632, 315489, 313446, 227432, 233578, 194667, 307306, 217194, 319599, 278642, 131190, 288890, 292987, 215165, 227459, 235661, 278669, 381071, 241809, 323730, 278676, 311447, 327834, 284827, 278684, 299166, 299176, 184489, 278698, 284843, 323761, 184498, 278707, 125108, 180409, 278713, 295099, 223418, 299197, 258233, 280767, 227517, 280761, 299202, 139459, 309443, 176325, 131270, 301255, 227525, 299208, 346319, 227536, 282832, 321744, 301270, 229591, 280792, 301271, 385240, 337899, 311520, 325857, 280803, 182503, 319719, 307431, 295147, 317676, 286957, 125166, 125170, 313595, 125180, 356603, 125184, 262403, 125192, 217352, 125197, 180494, 125200, 227601, 194832, 319764, 125204, 272661, 334104, 61720, 315674, 282908, 299294, 125215, 282912, 233761, 278817, 125216, 211239, 282920, 125225, 317738, 338217, 311596, 321839, 315698, 98611, 125236, 368949, 362809, 307514, 282938, 278843, 332100, 227655, 319816, 280903, 323914, 254285, 383309, 282959, 344402, 348499, 229716, 348501, 272730, 332128, 391521, 215395, 366948, 239973, 381286, 313703, 280938, 242027, 242028, 321901, 278895, 160111, 287089, 354672, 315768, 139641, 291194, 223611, 248188, 313726, 211327, 291200, 240003, 340356, 158087, 227721, 242059, 106893, 285074, 227730, 240020, 190872, 291225, 317851, 285083, 293275, 39323, 227743, 242079, 293281, 283039, 285089, 305572, 156069, 289185, 436644, 254373, 311723, 289195, 377265, 342454, 311739, 319931, 293309, 278974, 336319, 311744, 317889, 278979, 278988, 289229, 281038, 326093, 281039, 283089, 279000, 242138, 256476, 285152, 291297, 369121, 195044, 242150, 279014, 279017, 311787, 281071, 360945, 319986, 279030, 279033, 317949, 324098, 233987, 287237, 322057, 342537, 309770, 334345, 182802, 283154, 303635, 254487, 279066, 322077, 291359, 342560, 348709, 348710, 293420, 283185, 330291, 279092, 23093, 234037, 244279, 338491, 352831, 301635, 322119, 309831, 377419, 303693, 301647, 369236, 326229, 309847, 189016, 111197, 436831, 242274, 375396, 244326, 279143, 279150, 176751, 281200, 313970, 301688, 244345, 344697, 189054, 287359, 297600, 356990, 152196, 311944, 334473, 316044, 311948, 184974, 311950, 316048, 326288, 316050, 287379, 346771, 363155, 180886, 295575, 352921, 289435, 303772, 205469, 221853, 314020, 279207, 295591, 176810, 295598, 318127, 279215, 285360, 293552, 342705, 287412, 166581, 164532, 154295, 287418, 303802, 314043, 342714, 355006, 291529, 363212, 225996, 287438, 242385, 303826, 279253, 354283, 158424, 230105, 299737, 361178, 322269, 338658, 342757, 289511, 230120, 330473, 369383, 285419, 361194, 289517, 215790, 279278, 312046, 170735, 199415, 279293, 322302, 289534, 291584, 299777, 359166, 285443, 291591, 295688, 346889, 285450, 264971, 312076, 326413, 346153, 322320, 285457, 295698, 166677, 207639, 283418, 285467, 234276, 318247, 262952, 262953, 279337, 318251, 289580, 262957, 293673, 301872, 242481, 303921, 234290, 336693, 230198, 355129, 301883, 342846, 355136, 295745, 222017, 355138, 293702, 348999, 355147, 355148, 355153, 281426, 279379, 295769, 201562, 281434, 244569, 322396, 275294, 301919, 230238, 293729, 279393, 349025, 252766, 303973, 127840, 435038, 355173, 351078, 355174, 308075, 242540, 342888, 242542, 310132, 295797, 228214, 295799, 201590, 177018, 269179, 211835, 308093, 314240, 291713, 158594, 340865, 240517, 287623, 228232, 320394, 316299, 349066, 189327, 355216, 308113, 293780, 310166, 256920, 400282, 289691, 209820, 277404, 240543, 283551, 310177, 359332, 189349, 359333, 256934, 279465, 293801, 140203, 252848, 177074, 304050, 289720, 326586, 289723, 189373, 330688, 213956, 281541, 345030, 19398, 127945, 56270, 252878, 359380, 191445, 304086, 183258, 340960, 234469, 304104, 123880, 183276, 234476, 203758, 320495, 343020, 248815, 347122, 277493, 320504, 201721, 328701, 418819, 357380, 293894, 330759, 320520, 230411, 320526, 347150, 361487, 384015, 238611, 140311, 293911, 326684, 384031, 330789, 189487, 281647, 322609, 345137, 361522, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 160834, 336962, 314437, 257093, 250955, 361547, 300109, 207954, 234578, 205911, 296023, 314458, 277600, 361570, 281699, 214116, 253028, 257126, 214119, 322664, 318571, 300145, 238706, 312435, 187508, 230514, 302202, 285819, 363643, 285823, 150656, 248960, 349317, 279686, 222344, 318602, 285834, 140426, 337037, 177297, 162962, 187539, 347286, 308375, 359574, 324761, 339101, 351389, 302239, 300192, 339106, 234662, 300200, 253098, 3243, 238764, 322733, 279729, 373937, 367798, 300215, 294075, 343230, 283846, 312519, 283849, 259275, 148687, 290001, 189651, 316628, 259285, 189656, 357594, 279775, 304352, 298209, 304353, 339167, 279789, 302319, 351475, 251124, 316661, 283894, 234741, 292092, 320769, 234756, 322826, 242955, 177420, 126229, 318746, 245018, 320795, 320802, 304422, 130347, 257323, 353581, 116014, 292145, 298290, 208179, 312628, 345397, 159033, 333115, 286012, 181568, 193858, 294210, 216387, 286019, 279874, 300354, 300355, 304457, 230730, 359747, 294220, 296269, 234830, 224591, 238928, 337226, 296274, 109899, 314708, 318804, 259408, 314711, 331091, 150868, 300378, 300379, 294236, 316764, 314721, 292194, 230757, 281958, 314727, 134504, 314734, 327023, 312688, 234864, 316786, 296304, 314740, 230772, 314742, 314745, 290170, 310650, 306558, 290176, 243073, 179586, 306561, 294278, 296328, 388488, 298378, 304523, 318860, 296330, 314765, 292242, 9618, 306580, 112019, 224662, 234902, 282008, 314776, 290206, 148899, 314788, 148900, 314790, 298406, 282023, 241067, 279979, 314797, 374189, 286128, 173492, 286133, 284086, 284090, 302523, 310714, 228796, 134586, 380350, 54719, 302530, 280003, 228804, 310725, 306630, 200136, 306634, 280011, 302539, 300490, 234957, 337359, 329168, 312785, 222674, 327122, 310735, 353751, 280025, 310747, 329181, 144862, 286176, 187877, 310758, 320997, 3559, 280042, 280043, 191980, 337391, 282097, 296434, 308722, 259569, 251379, 40439, 191991, 286201, 253431, 300539, 288252, 210429, 312830, 286208, 366081, 228868, 323079, 292359, 218632, 230922, 302602, 294413, 208397, 304655, 323088, 359949, 329231, 253456, 282132, 230933, 316951, 282135, 374297, 349727, 146976, 222754, 282147, 313338, 372261, 306730, 288305, 239159, 290359, 374327, 210489, 134715, 323132, 425534, 288319, 359748, 280131, 349764, 310853, 124486, 194118, 288328, 286281, 292426, 128589, 224848, 333394, 224852, 290391, 306777, 212574, 345697, 204386, 99937, 323171, 300645, 282214, 415334, 312937, 224874, 243306, 312941, 138862, 54895, 310896, 294517, 314997, 288377, 337533, 325246, 333438, 235136, 280193, 282244, 178215, 239238, 286344, 323208, 282248, 224907, 286351, 239251, 280217, 345753, 229021, 302751, 282272, 255651, 282279, 298664, 317102, 224951, 286392, 224952, 302778, 306875, 280252, 296636, 282302, 323262, 286400, 323265, 280259, 259780, 333508, 319176, 239305, 296649, 212684, 241360, 282321, 286419, 345813, 241366, 224985, 294621, 282336, 325345, 321250, 294629, 153318, 337638, 181992, 12009, 345832, 282347, 282349, 141037, 67316, 286457, 284410, 282366, 286463, 319232, 278273, 175874, 360194, 282375, 323335, 300810, 282379, 116491, 216844, 284430, 161553, 124691, 278292, 118549, 116502, 282390, 284436, 169751, 325403, 321308, 321309, 282399, 241440, 282401, 341791, 325411, 315172, 186148, 186149, 255781, 241447, 333609, 286507, 284460, 280367, 300849, 282418, 280373, 319289, 321338, 280377, 282428, 280381, 345918, 241471, 280386, 325444, 339782, 280391, 153416, 315209, 325449, 159563, 280396, 307024, 317268, 237397, 241494, 307030, 325460, 345942, 188250, 339799, 284508, 300893, 341846, 362326, 345950, 370526, 362336, 237411, 259937, 282471, 296807, 292713, 282476, 292719, 313200, 296815, 362351, 313204, 333687, 350072, 317305, 124795, 317308, 339840, 315265, 280451, 327556, 188293, 325508, 282503, 305032, 315272, 325514, 315275, 333700, 184207, 124816, 311183, 282517, 294806, 350102, 214936, 294808, 124826, 239515, 253851, 329627, 298912, 319393, 354210, 294820, 118693, 333734, 219046, 284584, 313257, 253868, 292783, 200628, 300983, 343993, 188349, 98240, 214978, 280517, 214983, 362442, 282572, 282573, 346066, 24531, 212953, 354268, 360416, 292835, 190437, 292838, 294887, 317416, 313322, 298987, 278507, 311277, 296942, 247786, 124912, 253930, 327666, 278515, 325620, 239610 ]
d3e3e9a3e744636fc0472e247574dc6a32de902d
c8e6161af3b509d116a2c4d912d19853b0081049
/C0769778_W2020_MID_TERM_MAD3004/C0769778_W2020_MID_TERM_MAD3004/main.swift
7c97f09c1aeac9e4b1fc75eb29eb800126f96e5d
[]
no_license
AbhishekSanthoshJaya/MAD3004_W2020_MidTerm
555390baac08e77be82d5fa83cd42a14aeda9f10
1f63eb651decf8af16db7bcaea1c95ee97e503df
refs/heads/master
2021-01-04T02:05:33.901563
2020-02-18T22:41:48
2020-02-18T22:41:48
240,335,447
0
0
null
2020-02-13T18:45:37
2020-02-13T18:45:37
null
UTF-8
Swift
false
false
4,331
swift
// // main.swift // C0769778_W2020_MID_TERM_MAD3004 // // Created by MacStudent on 2020-02-13. // Copyright © 2020 com.lambton. All rights reserved. // import Foundation //USED FOR FOMATTING AND INPUTTING DATE VALUES let formatter = DateFormatter() formatter.dateFormat = "yyyy/MM/dd" //------- MOBILE OBJECTS ------- var m1 = Mobile(billId: "MB100", billDate: formatter.date(from: "2019/10/12")!, billType: BillType.MOBILE, manufacturerName: "APPLE INC.", planName: "Student Plan", mobileNumber: "4379805678", mobGbUsed: 1, minute: 6) var m2 = Mobile(billId: "MB200", billDate: formatter.date(from: "2019/06/18")!, billType: BillType.MOBILE, manufacturerName: "FIDO", planName: "LTE+3G 9.5GB Promo plan", mobileNumber: "4371029230", mobGbUsed: 2, minute: 11) //------- HYDRO OBJECTS ------- var h1 = Hydro(billId: "HY100", billDate: formatter.date(from: "2019/09/12")!, billType: BillType.HYDRO, agencyName: "PUREWATA", unitsUsed: 22.21) var h2 = Hydro(billId: "HY200", billDate: formatter.date(from: "2019/05/15")!, billType: BillType.HYDRO, agencyName: "LIFELINE", unitsUsed: 8.2) //------- INTERNET OBJECTS ------- var in1 = Internet(billId: "IN100", billDate: formatter.date(from: "2019/09/20")!, billType: BillType.INTERNET, providerName: "SKYLINK", gbUsed: 22.8) var in2 = Internet(billId: "IN200", billDate: formatter.date(from: "2019/10/12")!, billType: BillType.INTERNET, providerName: "STARLIGHT", gbUsed: 6.2) //-------- INSURANCE OBJECTS ------- var insurance1 = Insurance(billId: "INSUR100", billDate: formatter.date(from: "2019/08/11")!, billType: BillType.INSURANCE, insuranceProviderName: "HAPPY INC", typeofInsurance: "HOME", startDate: formatter.date(from: "2019/03/15")!, endDate: formatter.date(from: "2020/03/14")!) var insurance2 = Insurance(billId: "INSUR200", billDate: formatter.date(from: "2019/10/12")!, billType: BillType.INSURANCE, insuranceProviderName: "Live Long Providers", typeofInsurance: "HEALTH", startDate: formatter.date(from: "2020/05/22")!, endDate: formatter.date(from: "2022/05/21")!) //------- CUSTOMER OBJECTS ------- var c1 = Customer(customerId: "ABHI100", firstName: "Abhishek", lastName: "Santhosh Jaya", emailId: "[email protected]") var c2 = Customer(customerId: "ABHI200", firstName: "Thomas", lastName: "Shelby", emailId: "[email protected]") var c3 = Customer(customerId: "ABHI300", firstName: "Walter", lastName: "White", emailId: "[email protected]") //------- ADDING BILLS TO CUSTOMER BILL DICTIONARY ------- c1.newBill(bill: m1, billId: "MB100") c1.newBill(bill: in1, billId: "IN100") c2.newBill(bill: m2, billId: "MB200") c2.newBill(bill: h1, billId: "HY100") c2.newBill(bill: insurance1, billId: "INSUR100") c3.newBill(bill: in2, billId: "IN200") //------- ADDING A BILL THAT IS ALREADY PRESENT ------- // c1.newBill(bill: m1, billId: "MB100") // c3.newBill(bill: insurance2, billId: "INSUR200") // c3.newBill(bill: h2, billId: "HY200") //------- REMOVING BILLS FROM A CUSTOMER ------- // c1.removeBill(billId: "IN500") // c3.removeBill(billId: "IN200") //c3.display() //------- DISPLAYING THE DETAILS OF A PARTICULAR BILL ------- // c3.billDetails(billId: "IN200") // c2.billDetails(billId: "IN100") //------- ARRAY OF CUSTOMERS AND ADDING CUSTOMER OBJECTS ------- var customers = Array<Customer>() customers.append(c1) customers.append(c2) customers.append(c3) //------- DISPLAYING ALL CUSTOMERS AND THEIR BILL INFORMATION ------- func displayAll(){ for i in customers { i.display() } } displayAll() //------- METHOD TO GET INDIVIDUAL CUSTOMERS THROUGH ID ------- func getCustomerById(customerId: String) { var checkFlag = 0 for i in customers { if (customerId == i.customerId) { print("\n\t\t\t****** GET CUSTOMER BY ID RESULT ******") checkFlag = 1 i.display() } } if (checkFlag == 0){ print("\nA CUSTOMER WITH THIS ID:(\(customerId)) DOES NOT EXIST...") } } //getCustomerById(customerId: "ABHI100") //------- ATTEMPTING TO FIND A CUSTOMER USING AN INVALID ID ------- //getCustomerById(customerId: "ABHI500") //------- METHOD TO DISPLAY CUSTOMERS IN DECREASING ORDER OF BILL TOTAL ------- func sortedDisplay(){ let sortedCustomers = customers.sorted(by:{ $0.allBillsTotal() > $1.allBillsTotal()}) for i in sortedCustomers { i.display() } } //sortedDisplay()
[ -1 ]
ccc605a358d9699579b0ce9b31449f881cf1a7bf
f68529ccc5b15ce51644e633e63c85cd799fa298
/Win2-Ver2/Controller/ExpandableAboutViewHandler.swift
6efed153a9a6fca55e27544d80274f017db45a73
[]
no_license
terrybu/Win2
6b217969fbcd4f1d0b1fd5cdfb6adc221b0e7811
c89d0fa94903c132bf4668bab958ff3df9291928
refs/heads/master
2021-01-17T19:52:42.329254
2017-09-19T01:35:33
2017-09-19T01:35:33
63,360,682
0
0
null
null
null
null
UTF-8
Swift
false
false
2,559
swift
// // ExpandableAboutViewHandlerswift // In2-PI-Swift // // Created by Terry Bu on 9/12/15. // Copyright © 2015 Terry Bu. All rights reserved. // import UIKit class ExpandableAboutViewHandler: NSObject, UIGestureRecognizerDelegate { var viewControllerView: UIView var expandableView: ExpandableAboutView var constraintExpandableViewHeight: NSLayoutConstraint var constraintContentViewHeight: NSLayoutConstraint var originalAboutViewHeight: CGFloat var expandedAboutViewHeight: CGFloat var originalContentViewHeight: CGFloat init(viewControllerView: UIView, expandableView: ExpandableAboutView, constraintExpandableViewHeight: NSLayoutConstraint, constraintContentViewHeight: NSLayoutConstraint, originalAboutViewHeight: CGFloat, expandedAboutViewHeight: CGFloat, originalContentViewHeight: CGFloat) { self.viewControllerView = viewControllerView self.expandableView = expandableView self.constraintExpandableViewHeight = constraintExpandableViewHeight self.constraintContentViewHeight = constraintContentViewHeight self.originalAboutViewHeight = originalAboutViewHeight self.expandedAboutViewHeight = expandedAboutViewHeight self.originalContentViewHeight = originalContentViewHeight } func tappedEntireAboutView() { if !expandableView.expanded { print("Expand - pressed view when it wasn't expanded") UIView.animate(withDuration: 0.5, animations: { () -> Void in self.constraintExpandableViewHeight.constant = self.expandedAboutViewHeight self.constraintContentViewHeight.constant += self.expandedAboutViewHeight - self.originalAboutViewHeight self.viewControllerView.layoutIfNeeded() self.expandableView.expanded = true }, completion: { (completed) -> Void in // }) } else { print("Collapse - pressed view when it WAS expanded") UIView.animate(withDuration: 0.5, animations: { () -> Void in self.constraintExpandableViewHeight.constant = self.originalAboutViewHeight self.constraintContentViewHeight.constant = self.originalContentViewHeight self.viewControllerView.layoutIfNeeded() self.expandableView.expanded = false }, completion: { (completed) -> Void in // }) } } }
[ -1 ]
19842ff93831ea736a2b0be3f0be066f8e1b0d59
52689bc06fe7574ce85b9f9a7992b31f505c2270
/CupcakeCorner/CupcakeCorner/SceneDelegate.swift
32c23332632376993e67cd76f84d274906641847
[]
no_license
prethep/LearningSwiftUI
1fff582d59d2fc16b3b015e85d1860fd36836758
9fd8df1602e385e050fb59350ee65df3a8885b30
refs/heads/master
2020-06-03T04:54:25.978179
2019-06-25T09:34:13
2019-06-25T09:34:13
191,446,876
5
2
null
2019-06-12T07:21:29
2019-06-11T20:46:48
Swift
UTF-8
Swift
false
false
2,636
swift
// // SceneDelegate.swift // CupcakeCorner // // Created by PP on 18.06.19. // Copyright © 2019 PP. All rights reserved. // import UIKit import SwiftUI 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). // Use a UIHostingController as window root view controller if let windowScene = scene as? UIWindowScene { let window = UIWindow(windowScene: windowScene) window.rootViewController = UIHostingController(rootView: ContentView()) self.window = window 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 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. } }
[ 393221, 163849, 393228, 393231, 393251, 352294, 344103, 393260, 163892, 393269, 213049, 376890, 385082, 16444, 393277, 254020, 376906, 327757, 254032, 286804, 368728, 180314, 254045, 368736, 180322, 376932, 286833, 368753, 286845, 286851, 262284, 286880, 286889, 377003, 327872, 180418, 377030, 180432, 368854, 377047, 385243, 327915, 205037, 393457, 393461, 336124, 418044, 336129, 385281, 262405, 180491, 262417, 368913, 262423, 377121, 262437, 336181, 262455, 262473, 344404, 418135, 262497, 418145, 262501, 213354, 262508, 262512, 385420, 393613, 262551, 262553, 385444, 262567, 385452, 393649, 385460, 262587, 262593, 336326, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 98819, 164362, 328207, 410129, 393748, 262679, 377372, 188959, 385571, 197160, 377384, 270905, 197178, 418364, 369224, 270922, 385610, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 336517, 344710, 385671, 213642, 148106, 352919, 336549, 344745, 271018, 361130, 336556, 385714, 434868, 164535, 336568, 328379, 164539, 328387, 418508, 385749, 139998, 189154, 418540, 361196, 418555, 344832, 344837, 344843, 328462, 394002, 336660, 418581, 418586, 369436, 262943, 418591, 418594, 336676, 418600, 336681, 418606, 328498, 271154, 361274, 328516, 336709, 328520, 336712, 361289, 328523, 213848, 361307, 197469, 361310, 361318, 344936, 361323, 361335, 328574, 369544, 361361, 345036, 386004, 345046, 386012, 386019, 386023, 328690, 328703, 328710, 418822, 328715, 377867, 361490, 386074, 336922, 345119, 328747, 214060, 345134, 386102, 361537, 377931, 197708, 345172, 189525, 156762, 402523, 361568, 148580, 345200, 173170, 361591, 386168, 410746, 361599, 345224, 386187, 337048, 345247, 361645, 337072, 337076, 345268, 402615, 361657, 337093, 402636, 328925, 66783, 328933, 222438, 328942, 386286, 386292, 206084, 115973, 345377, 345380, 345383, 263464, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 353634, 197987, 337252, 402792, 345449, 99692, 271731, 378232, 337278, 271746, 181639, 181644, 361869, 181650, 181655, 230810, 263585, 181671, 181674, 181679, 337330, 181682, 181687, 370105, 181691, 181697, 361922, 337350, 181704, 181717, 337366, 329192, 329195, 402943, 337416, 329227, 419345, 329234, 419351, 345626, 345631, 370208, 419360, 394787, 419363, 370214, 419369, 419377, 206397, 214594, 370254, 419408, 214611, 403040, 345702, 222831, 370298, 353920, 403076, 198282, 403085, 345750, 345763, 419492, 345766, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 337601, 403139, 337607, 419528, 419531, 272083, 419543, 394967, 419545, 419548, 181982, 419551, 345829, 419560, 337643, 419564, 337647, 141052, 337661, 337671, 362249, 362252, 395022, 362256, 321300, 116512, 345888, 362274, 378664, 354107, 345916, 354112, 247618, 329545, 354124, 345932, 337743, 354132, 247639, 337751, 313181, 354157, 345965, 345968, 345971, 345975, 182136, 403321, 1914, 354173, 247692, 337809, 247701, 329625, 436133, 362414, 370611, 337845, 190393, 346059, 247760, 346064, 419810, 329699, 354275, 190440, 247790, 354314, 346140, 411691, 337980, 395340, 378956, 329816, 100454, 329833, 329857, 329868, 329886, 411806, 346273, 362661, 387250, 379067, 387261, 346317, 411862, 411865, 411869, 411874, 379108, 387303, 346344, 338154, 387307, 346350, 338161, 387314, 436474, 321787, 379135, 411905, 411917, 43279, 395539, 387350, 338201, 182559, 395567, 248112, 264502, 436556, 190797, 321880, 362844, 379234, 182642, 354674, 321911, 379279, 272787, 354728, 338353, 338363, 338382, 338387, 248279, 256474, 338404, 338411, 330225, 248309, 199165, 248332, 199182, 330254, 199189, 420377, 330268, 191012, 330320, 199250, 346722, 248427, 191085, 346736, 338544, 191093, 330384, 346769, 354975, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 355029, 264919, 183006, 338661, 338665, 264942, 330479, 338680, 207620, 191240, 338701, 338712, 363294, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 355151, 330581, 330585, 387929, 355167, 265056, 355185, 330612, 330643, 412600, 207809, 347082, 396246, 330711, 248794, 248799, 338928, 257009, 265208, 330750, 265215, 199681, 330761, 379915, 330769, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 330830, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 330869, 248952, 330886, 248986, 44199, 339118, 249015, 339133, 322763, 330966, 388320, 363757, 388348, 339199, 175376, 175397, 208167, 372016, 347442, 199989, 44343, 175416, 396601, 208189, 175425, 126279, 331089, 437588, 331094, 396634, 175451, 175458, 208228, 175461, 175464, 331124, 175478, 249210, 175484, 249215, 175487, 249219, 249225, 249228, 249235, 175514, 175517, 396706, 175523, 355749, 380333, 396723, 380353, 372166, 339401, 380364, 339406, 372177, 208338, 249303, 413143, 339418, 339421, 249310, 249313, 339425, 339429, 339435, 249329, 69114, 372229, 339464, 249355, 208399, 175637, 405017, 134689, 339504, 413251, 265796, 396874, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 339572, 224885, 224888, 224891, 224895, 372354, 126597, 421509, 224905, 159375, 11919, 126611, 224917, 126618, 208539, 224923, 224927, 224930, 224933, 224943, 224949, 224954, 224960, 224966, 224970, 339664, 224976, 224982, 224987, 224996, 225000, 339696, 225013, 257788, 225021, 339711, 372481, 225027, 257796, 339722, 257805, 225039, 257808, 249617, 372500, 225044, 167701, 257815, 225049, 257820, 225054, 184096, 397089, 257825, 225059, 339748, 257834, 257837, 225071, 225074, 257843, 372533, 225077, 257846, 225080, 397113, 225083, 397116, 257853, 225088, 225094, 225097, 323404, 257869, 257872, 225105, 339795, 397140, 225109, 225113, 257881, 257884, 257887, 225120, 413539, 257891, 225128, 274281, 339818, 257897, 257902, 225138, 339827, 257909, 372598, 225142, 257914, 257917, 257922, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 393215, 372739, 266298, 217158, 200786, 356440, 217180, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 225439, 135328, 192674, 225442, 225445, 225448, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 225472, 372931, 225476, 389322, 225485, 225488, 225494, 266454, 225497, 225500, 225503, 356580, 217319, 225515, 225519, 372977, 381177, 397572, 389381, 356631, 381212, 258333, 389417, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 332098, 201030, 348489, 332107, 151884, 332118, 430422, 348503, 250201, 332126, 332130, 250211, 340328, 250217, 348523, 348528, 332153, 332158, 250239, 389503, 332162, 389507, 348548, 332175, 160152, 340380, 373169, 266688, 324032, 201158, 127473, 217590, 340473, 324095, 324100, 266757, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324156, 348734, 324161, 324165, 381513, 348745, 324171, 324174, 324177, 332381, 373344, 119432, 340628, 184983, 340639, 332455, 332460, 389806, 332464, 332473, 381626, 332484, 332487, 373450, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 348926, 389927, 152371, 348983, 340792, 398141, 127815, 357202, 389971, 136024, 357208, 389979, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 201589, 381815, 324473, 398202, 340859, 324476, 119675, 340863, 324479, 324482, 373635, 324485, 324488, 381834, 324493, 324496, 324499, 324502, 324511, 324514, 201638, 324525, 340910, 5040, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 340942, 340958, 398307, 340964, 201712, 381947, 201724, 431100, 349203, 209944, 209948, 250915, 357411, 250917, 357419, 209966, 209969, 209973, 209976, 209988, 209991, 341072, 349268, 250968, 341094, 210028, 349296, 210042, 210045, 349309, 152704, 160896, 349313, 210053, 373905, 210072, 210078, 210081, 251045, 210085, 185512, 210089, 210100, 324792, 210116, 333003, 333010, 333016, 210139, 251123, 218355, 218361, 275709, 275713, 242947, 275717, 333075, 349460, 333079, 251161, 349486, 349492, 251190, 415034, 251211, 357710, 210261, 259423, 374113, 365922, 374118, 333164, 234867, 390518, 357756, 136591, 374161, 112021, 349591, 357793, 333222, 210357, 259516, 415168, 366035, 415187, 415192, 415194, 415197, 423393, 333285, 415208, 366057, 423424, 415258, 415264, 366118, 415271, 349739, 144940, 415279, 415282, 349748, 415286, 210488, 415291, 415295, 415301, 333387, 333396, 333400, 366173, 333415, 333423, 210547, 415354, 333440, 267910, 333472, 333499, 333512, 210632, 259789, 358100, 366301, 153311, 333535, 366308, 366312, 399086, 366319, 210673, 366322, 399092, 366326, 210696, 268042, 210700, 366349, 333593, 399129, 210720, 358192, 366384, 366388, 358201, 399166, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 358256, 268144, 358260, 341877, 399222, 325494, 186233, 333690, 243584, 325505, 333699, 399244, 333709, 333725, 333737, 382898, 333767, 350153, 358348, 333777, 399318, 219094, 358372, 333819, 325633, 325637, 268299, 333838, 178221, 243782, 374865, 342113, 252021, 342134, 374904, 268435, 333989, 334012, 104636, 350411, 350417, 350423, 211161, 350426, 334047, 350449, 375027, 358645, 350454, 350459, 350462, 350465, 350469, 325895, 194829, 350477, 268560, 350481, 350487, 325915, 350491, 325918, 350494, 325920, 350500, 194854, 350505, 358701, 350510, 391469, 358714, 358717, 383307, 334162, 358738, 383323, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 383375, 366991, 268702, 416159, 342431, 375209, 326059, 375220, 342453, 334263, 195041, 334306, 334312, 104940, 375279, 162289, 350724, 391691, 186898, 342546, 350740, 334359, 342551, 342555, 334364, 358942, 416294, 350762, 252463, 334386, 358962, 358973, 334397, 219719, 244309, 399957, 334425, 326240, 375401, 268922, 334466, 334469, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 260802, 350918, 154318, 342737, 391895, 154329, 342769, 203508, 342777, 391938, 391949, 326417, 375572, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 244542, 326463, 326468, 244552, 342857, 326474, 326479, 326486, 326494, 326503, 375657, 326508, 400238, 326511, 211826, 392061, 359296, 351105, 252801, 260993, 400260, 342921, 236432, 342931, 252823, 400279, 392092, 400286, 252838, 359335, 211885, 252846, 400307, 187335, 359383, 359389, 383968, 359411, 244728, 383999, 326669, 359452, 211999, 359471, 375868, 343132, 384099, 326764, 367724, 384108, 326767, 187503, 343155, 384115, 343168, 351366, 384136, 384140, 351382, 384152, 384158, 384161, 367795, 367801, 384189, 343232, 384192, 351424, 244934, 367817, 326858, 384202, 244938, 343246, 384209, 146644, 384225, 343272, 351467, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 261395, 384276, 384284, 245021, 384290, 171304, 245032, 376111, 245042, 326970, 343366, 212296, 212304, 343394, 343399, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 343453, 245149, 245152, 245155, 155045, 40358, 245158, 245163, 327090, 359867, 384444, 146878, 327108, 327112, 384457, 327116, 327118, 359887, 359891, 343509, 368093, 155103, 343535, 343540, 343545, 253445, 359948, 245295, 359984, 343631, 400977, 400982, 343650, 327276, 245358, 138865, 155255, 155274, 245410, 425639, 245415, 425652, 155323, 425663, 155328, 245463, 155352, 212700, 155356, 155364, 245477, 245487, 212723, 245495, 409336, 155394, 155404, 245528, 155423, 204592, 155444, 155448, 384829, 384831, 360262, 155463, 155477, 155484, 261982, 425823, 155488, 376672, 155492, 327532, 261997, 262000, 262003, 262006, 327542, 147319, 262009, 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, 327655, 253927, 360432, 204785, 393204, 360439, 393209, 155647 ]
5a5fe89ff4f8371a24ac195a4411e6ac080cfff3
0c080a6c83d83aafd1f63e8d58e5e47296858f9a
/intro_to_ios/IOSQuiz/IOSQuizUITests/IOSQuizUITests.swift
23d5eb9345270c11b51b3099f2691859ef5a63b8
[]
no_license
seymakara/dojo_IOS
8cbbc4994decda795e96e5dd0f58b81e675cf11c
dc9d2f1e6906363fdac2bca64b0a744e728b64b4
refs/heads/master
2018-09-18T21:40:29.201296
2018-06-06T05:09:45
2018-06-06T05:09:45
116,917,093
0
0
null
null
null
null
UTF-8
Swift
false
false
1,242
swift
// // IOSQuizUITests.swift // IOSQuizUITests // // Created by Seyma Akin on 1/10/18. // Copyright © 2018 Seyma Akin. All rights reserved. // import XCTest class IOSQuizUITests: 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, 241695, 223269, 354342, 315431, 229414, 102441, 315433, 325675, 313388, 354346, 278571, 282671, 102446, 229425, 243763, 241717, 180279, 215095, 229431, 213051, 288829, 325695, 286787, 288835, 307269, 237638, 313415, 239689, 233548, 311373, 196687, 278607, 311377, 354386, 223317, 315477, 368732, 180317, 323678, 321632, 315488, 45154, 280676, 313446, 233578, 194667, 307306, 278637, 288878, 319599, 278642, 284789, 131190, 288890, 215165, 131199, 235661, 278669, 333968, 241809, 311447, 153752, 284827, 329884, 278684, 299166, 278690, 311459, 215204, 333990, 299176, 184489, 278698, 284843, 323761, 184498, 278707, 280761, 180409, 295099, 223418, 227517, 258233, 278713, 280767, 299202, 139459, 309443, 176325, 338118, 131270, 299208, 227525, 301255, 280779, 227536, 282832, 301270, 229591, 301271, 280792, 147679, 147680, 311520, 325857, 356575, 280803, 307431, 338151, 295147, 317676, 286957, 395511, 313595, 184574, 309504, 217352, 194832, 227601, 319764, 278805, 338196, 282908, 299294, 282912, 233761, 278817, 211239, 282920, 334121, 317738, 325930, 311596, 338217, 321839, 336177, 315698, 98611, 282938, 278843, 127292, 287040, 311622, 227655, 323914, 201037, 383309, 229716, 250196, 289109, 379224, 323934, 391521, 239973, 381286, 313703, 416103, 285031, 280938, 242027, 242028, 321901, 354671, 278895, 287089, 250227, 199030, 227702, 315768, 139641, 291193, 223611, 291194, 211327, 291200, 311679, 240003, 313736, 227721, 242059, 106893, 285074, 227730, 240020, 190870, 190872, 291225, 285083, 317851, 293275, 227743, 242079, 285089, 289185, 283039, 305572, 156069, 293281, 301482, 289195, 375211, 311723, 377265, 334259, 338359, 319931, 311739, 293309, 278974, 336319, 311744, 317889, 336323, 278979, 129484, 278988, 281038, 281039, 278992, 289229, 326093, 283089, 279000, 176602, 242138, 160224, 285152, 291297, 369121, 279009, 188899, 279014, 279017, 311787, 334315, 281071, 236020, 279030, 293368, 279033, 317949, 279042, 233987, 324098, 287237, 283138, 334345, 309770, 340489, 342537, 279053, 283154, 303635, 279060, 279061, 182802, 303634, 279066, 322077, 291359, 342560, 370122, 293420, 289328, 283185, 236080, 279092, 234037, 23093, 244279, 340539, 338491, 301635, 309831, 322119, 55880, 377419, 303693, 281165, 301647, 281170, 326229, 115287, 189016, 244311, 309847, 332379, 111197, 295518, 287327, 242274, 279143, 279150, 281200, 287345, 313970, 301688, 189054, 287359, 291455, 297600, 303743, 301702, 164487, 311944, 334473, 344714, 279176, 316044, 311948, 311950, 326288, 311953, 316048, 287379, 336531, 295575, 227991, 289435, 303772, 221853, 205469, 285348, 340645, 314020, 295591, 279207, 176810, 248494, 279215, 293552, 295598, 279218, 285362, 164532, 166581, 342705, 285360, 299698, 154295, 287418, 303802, 314043, 287412, 66243, 291529, 287434, 225996, 363212, 287438, 135888, 242385, 279249, 303826, 369365, 369366, 279253, 158424, 230105, 299737, 322269, 338658, 295653, 342757, 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, 322312, 346889, 285450, 295688, 312076, 326413, 285457, 295698, 166677, 207639, 283418, 285467, 221980, 281378, 234276, 336678, 318247, 262952, 293673, 262953, 318251, 289580, 262957, 283431, 164655, 328495, 301872, 234290, 285493, 230198, 285496, 301883, 342846, 289599, 281407, 222017, 295745, 293702, 318279, 283466, 281426, 279379, 244569, 234330, 281434, 295769, 201562, 230238, 275294, 301919, 279393, 293729, 357219, 281444, 303973, 279398, 351078, 349025, 177002, 308075, 242540, 310132, 295797, 201590, 295799, 228214, 207735, 177018, 279418, 336765, 308093, 314240, 291713, 158594, 330627, 340865, 240517, 228232, 299912, 320394, 316299, 252812, 279434, 234382, 308111, 189327, 308113, 310166, 289691, 209820, 240543, 283551, 310177, 289704, 293801, 279465, 326571, 177074, 304050, 326580, 289720, 326586, 289723, 189373, 213956, 359365, 19398, 345030, 281541, 127945, 211913, 279499, 213961, 56270, 191445, 183254, 304086, 207839, 340960, 234469, 314343, 123880, 340967, 304104, 234476, 183276, 203758, 248815, 320495, 320492, 287730, 240631, 214009, 201721, 312313, 312315, 312317, 234499, 418819, 293894, 330759, 320520, 230411, 322571, 330766, 234513, 238611, 293911, 140311, 197658, 326684, 336930, 113710, 281647, 189487, 318515, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 336962, 314437, 349254, 238663, 300109, 234578, 207954, 250965, 205911, 339031, 314458, 156763, 234588, 281698, 230500, 250982, 322664, 228457, 279659, 318571, 234606, 230514, 238706, 187508, 279666, 300147, 312435, 302202, 285819, 285823, 150656, 234626, 279686, 222344, 285833, 285834, 234635, 228492, 318602, 337037, 177297, 162962, 187539, 347286, 308375, 285850, 296091, 119965, 234655, 302239, 300192, 306339, 234662, 300200, 3243, 208044, 302251, 322733, 238764, 249003, 294069, 324790, 300215, 64699, 294075, 228541, 339131, 343230, 283841, 148674, 283846, 312519, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 339167, 310496, 298209, 304353, 279775, 279780, 304352, 228587, 279789, 302319, 316661, 234741, 208123, 279803, 292092, 228608, 234756, 322826, 242955, 177420, 312588, 126229, 320795, 320802, 304422, 130342, 130344, 130347, 292145, 298290, 208179, 312628, 345398, 300342, 159033, 222523, 286012, 181568, 279872, 193858, 294210, 279874, 216387, 300354, 372039, 300355, 304457, 230730, 345418, 294220, 337228, 296269, 222542, 234830, 238928, 296274, 331091, 150868, 314708, 283990, 224591, 357720, 318804, 300378, 300379, 314711, 294236, 314721, 230757, 281958, 314727, 134504, 306541, 327023, 234864, 296304, 312688, 316786, 230772, 314740, 327030, 284015, 310650, 224637, 306558, 337280, 243073, 179586, 294278, 296328, 296330, 298378, 318860, 314765, 368012, 9618, 112019, 279955, 306580, 234902, 292242, 282008, 224662, 314776, 318876, 282013, 290206, 343457, 148899, 314788, 298406, 282023, 245160, 241067, 279979, 314797, 279980, 286128, 173492, 286133, 284086, 259513, 310714, 284090, 228796, 54719, 292291, 228804, 310725, 306630, 300490, 306634, 310731, 339403, 234957, 337359, 329168, 312785, 222674, 329170, 302539, 310735, 280020, 280025, 310747, 239069, 144862, 286176, 187877, 310758, 280042, 280043, 191980, 300526, 329198, 337391, 282097, 296434, 308722, 40439, 191991, 286201, 300539, 288252, 210429, 359931, 312830, 290304, 245249, 228868, 323079, 218632, 292359, 230922, 323083, 302602, 294413, 359949, 304655, 323088, 329231, 282132, 302613, 316951, 175640, 374297, 282135, 302620, 222754, 312879, 230960, 288305, 290359, 239159, 323132, 235069, 157246, 288319, 288322, 280131, 349764, 282182, 194118, 288328, 292424, 292426, 286281, 333389, 349780, 290391, 239192, 128600, 196184, 235096, 306777, 212574, 204386, 300643, 300645, 282214, 312937, 204394, 138862, 206447, 310896, 294517, 314997, 290425, 288377, 339579, 337533, 325246, 333438, 280193, 282244, 239238, 288391, 282248, 286344, 179853, 286351, 188049, 239251, 229011, 280217, 323226, 179868, 229021, 302751, 198304, 282272, 245413, 282279, 298664, 298666, 317102, 286387, 300725, 286392, 302778, 306875, 280252, 280253, 282302, 323262, 286400, 321217, 296636, 280259, 282309, 239305, 296649, 280266, 212684, 306891, 302798, 9935, 241360, 282321, 313042, 286419, 333522, 241366, 280279, 282330, 18139, 294621, 280285, 282336, 325345, 321250, 294629, 337638, 333543, 181992, 153318, 12009, 282347, 288492, 282349, 323315, 67316, 286457, 284410, 313082, 200444, 288508, 282366, 286463, 319232, 288515, 249606, 282375, 280326, 284425, 300810, 116491, 216844, 282379, 284430, 300812, 280333, 161553, 278292, 118549, 116502, 282390, 284436, 278294, 325403, 321308, 321309, 341791, 241440, 282401, 339746, 282399, 186148, 186149, 216868, 241447, 315172, 294699, 284460, 286507, 280367, 300849, 282418, 280373, 282424, 319289, 280377, 282428, 280381, 345918, 413500, 280386, 325444, 280391, 153416, 315209, 325449, 159563, 280396, 325460, 237397, 341846, 317268, 188250, 284508, 300893, 307038, 370526, 237411, 284515, 276326, 282471, 296807, 292713, 282476, 292719, 313200, 325491, 313204, 317305, 339840, 280451, 325508, 327556, 333700, 188293, 67464, 305032, 325514, 350091, 350092, 282503, 315272, 311183, 315275, 184207, 282517, 294806, 350102, 294808, 337816, 239515, 333727, 298912, 319393, 214943, 294820, 118693, 219046, 284584, 313257, 294824, 292783, 126896, 300983, 343993, 288698, 98240, 294849, 280517, 280518, 282572, 282573, 153553, 24531, 231382, 323554, 292835, 294887, 317416, 174058, 313322, 278507, 298987, 296942, 311277, 327666, 278515, 325620, 239610 ]
de4a44563305b9fff514ff8cf370aecd1dc54414
c09305a87aface28a1ada8e823c8d2a9d031b378
/Sources/TheTools/Wrapper+ViewController.swift
3e921743ef985468a55bb5c13ef7224b47ee8d19
[]
no_license
PavelGnatyuk/TheTools
914f13d93a43e4764e2f6f22db22b88f993c6bb5
8270ea9905e35c4c7424213271e1ad97bd093137
refs/heads/master
2021-07-08T04:27:26.469718
2020-10-03T16:25:13
2020-10-03T16:25:13
193,210,383
0
0
null
null
null
null
UTF-8
Swift
false
false
1,786
swift
/// /// Wrapper+UIViewController.swift /// /// Wrapp a view controller into a navigation controller. /// /// /// Created by Pavel Gnatyuk on 22/02/2020. /// /* Example: ``` let more = Wrapper(viewController: makeMoreViewController()) .add(image: UIImage(systemName: "table.badge.more")) .add(title: NSLocalizedString("More", comment: "More tabbar item title")) .wrap() ``` */ #if canImport(UIKit) import UIKit /// Wrap a view controller into a navigation controller public struct Wrapper<ViewController: UIViewController> { let viewController: ViewController private(set) var image: UIImage? = nil private(set) var title: String? = nil public init(viewController: ViewController) { self.viewController = viewController } public init(viewController: ViewController, image: UIImage?) { self.viewController = viewController self.image = image } public init(viewController: ViewController, image: UIImage?, title: String?) { self.viewController = viewController self.image = image self.title = title } public func add(image: UIImage?) -> Self { return Wrapper(viewController: viewController, image: image) } public func add(title: String?) -> Self { return Wrapper(viewController: viewController, image: image, title: title) } public func wrap() -> UINavigationController { let navController = UINavigationController(rootViewController: viewController) navController.navigationBar.prefersLargeTitles = true image.map { navController.tabBarItem.image = $0 } title.map { navController.tabBarItem.title = $0 } return navController } } #endif
[ -1 ]
02803ab4ae69cd0fa487e4cf2425f030b3e389e3
4825ebdb69ec2de6eddd19378a19d75fb5dff2e6
/Sources/DiePackage/DiePackage.swift
61b78355e6b7e2441e1430a2bd520843b97971b3
[]
no_license
SwiftFMI/DiePackage
5069a790987ac2bf31434c77c4fa5663426e421b
f3fe9499ca9bc02de9499fd024ab22d53734607b
refs/heads/master
2022-07-14T00:37:45.199146
2020-05-14T07:37:38
2020-05-14T07:37:38
263,848,649
0
0
null
null
null
null
UTF-8
Swift
false
false
1,113
swift
public enum DieCreationError: String, Swift.Error, CustomStringConvertible { case insufficientNumberOfFaces case oddNumberOfFaces case tooManyNumberFaces public var description: String { switch self { case .insufficientNumberOfFaces: return "A die should have at least 4 faces" case .oddNumberOfFaces: return "A die should have even number of faces (multiple of 2)" case .tooManyNumberFaces: return "A die should not have more than 120 faces, as it's physically impossible otherwise" } } } public struct Die<T: CustomStringConvertible> { public let faces: [T] public init(faces: [T]) throws { guard faces.count > 3 else { throw DieCreationError.insufficientNumberOfFaces } guard faces.count.isMultiple(of: 2) else { throw DieCreationError.oddNumberOfFaces } guard faces.count < 120 else { throw DieCreationError.tooManyNumberFaces } self.faces = faces } } public extension Die { /// Get a random face func roll() -> T { faces.shuffled()[0] } }
[ -1 ]
6f1dc0700e11afaa6262895ee5e1aa6282eca78b
9b9235213f6d6b8c6f6a1d2fafd1cf998ab7cb8d
/CodeScan/AccuraScan/Custom Table Cell/DocumentTableCell.swift
f3542b660f3b03913281f2caaa1da7538fa1ddce
[]
no_license
anil1997-accurascan/iOS-KYC
f101994d2dcd39830ccad28f811920a9adead1ac
932ce68604f9ce3cd5675452ad3b7b2d947ebf5d
refs/heads/master
2023-07-11T14:31:48.841556
2021-08-18T11:42:24
2021-08-18T11:42:24
null
0
0
null
null
null
null
UTF-8
Swift
false
false
559
swift
import UIKit class DocumentTableCell: UITableViewCell { @IBOutlet weak var lblDocName: UILabel! @IBOutlet weak var imgDocument: UIImageView! @IBOutlet weak var constraintLblHeight: NSLayoutConstraint! @IBOutlet weak var viewBG: UIView! override func awakeFromNib() { super.awakeFromNib() self.selectionStyle = .none } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }
[ -1 ]
894ecc61e5f4f19d412f4c6dc72843692f722fb6
291d31ebf767a241977322fb869f12175ab8c072
/Image Viewer/DetailViewController.swift
1f669b9f50a94f44fbc0f24a228822b482cc5c6d
[]
no_license
lukenycz/Image-Viewer
931b2941bbb3c91195ddce516f2efd0d911d527b
5ae22e7a0deaa3dcc7c4615be599b351ae04548f
refs/heads/main
2023-07-02T09:51:56.180844
2021-08-11T10:32:26
2021-08-11T10:32:26
380,468,558
0
0
null
2021-08-11T10:32:26
2021-06-26T09:55:36
Swift
UTF-8
Swift
false
false
1,278
swift
// // DetailViewController.swift // Image Viewer // // Created by Łukasz Nycz on 27/06/2021. // import UIKit class DetailViewController: UIViewController { @IBOutlet var imageView: UIImageView! var selectedImage: String? var detailVCTitle: String? override func viewDidLoad() { super.viewDidLoad() title = detailVCTitle navigationItem.largeTitleDisplayMode = .never if let imageToLoad = selectedImage { imageView.image = UIImage(named: imageToLoad) } assert(selectedImage != nil, "we have a value") } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) navigationController?.hidesBarsOnTap = true } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.hidesBarsOnTap = false } /* // 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. } */ }
[ -1 ]
70ff6eca388bd21a8e6837ad06e1be9f08329e77
c5f81f3f92bf9f28b52e8eea5faadb437ec8bdcc
/VIPER module.xctemplate/___FILEBASENAME___/View/___FILEBASENAME___View.swift
f5a815a24f879bd3bbac60f38f3fb924a4c0619f
[ "MIT" ]
permissive
tapoton/ArchitectureXcodeTemplates
fb6f9fe423d2e27a11a333d73f47d6214b84aa79
7120593fe4ee62e3b3020db5121dc3f3b7c0b8e1
refs/heads/master
2020-04-22T18:18:40.296333
2019-02-13T21:18:18
2019-02-13T21:18:18
170,572,886
0
0
null
null
null
null
UTF-8
Swift
false
false
977
swift
// ___FILEHEADER___ import Foundation import UIKit final class ___VARIABLE_moduleName___View: UIViewController { private enum Localized { private static var bundle: Bundle { return Bundle(for: ___VARIABLE_moduleName___View.self) } // static let <#name#> = NSLocalizedString(<#T##key: String##String#>, bundle: bundle, comment: "") } private enum Constants { } // MARK: Outlets // MARK: Public Properties public var delegate: ___VARIABLE_moduleName___ViewDelegate? // MARK: Private Properties // MARK: Lifecycle override func viewDidLoad() { super.viewDidLoad() self.delegate?.viewDidLoad(self) } // MARK: Actions // MARK: Public // MARK: Private } // MARK: - ___VARIABLE_moduleName___ViewType extension ___VARIABLE_moduleName___View: ___VARIABLE_moduleName___ViewType { }
[ -1 ]
a322ff73375aed93fae22e7e29cab1ae5e71a833
de9fdfc122b730982e23980d6a02ab5cb8277e6e
/test/AppDelegate.swift
41a0f871c480cb6efb8aae8cb619a05e6627a2ec
[]
no_license
ellie-chiu/test
aafd35d871e29d51f62272182a492e8f9c76f58c
6a4df9e3ce2a8a65b75071d477642a3ea3aa3191
refs/heads/main
2023-03-15T08:39:45.288985
2021-03-09T13:26:45
2021-03-09T13:26:45
346,015,254
0
0
null
null
null
null
UTF-8
Swift
false
false
1,336
swift
// // AppDelegate.swift // test // // Created by TINA on 2021/3/8. // 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, 180313, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 164028, 327871, 180416, 377036, 180431, 377046, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 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, 377383, 197159, 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, 328378, 328386, 344776, 352968, 352971, 418507, 352973, 385742, 385748, 361179, 189153, 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, 336714, 426841, 197468, 254812, 361309, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 386003, 345043, 386011, 386018, 386022, 435187, 328702, 328714, 361489, 386069, 386073, 336921, 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, 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, 181649, 181654, 230809, 181670, 181673, 181678, 181681, 337329, 181684, 181690, 361917, 181696, 337349, 181703, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 345625, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 394853, 345701, 222830, 370297, 403070, 353919, 403075, 345736, 198280, 403091, 345749, 419483, 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, 362660, 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, 321910, 248186, 420236, 379278, 272786, 354727, 338352, 338381, 330189, 338386, 256472, 338403, 338409, 248308, 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, 347176, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 412764, 339036, 257120, 265320, 248951, 420984, 330889, 347287, 339097, 248985, 44197, 380070, 339112, 249014, 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, 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, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 372353, 224897, 216707, 421508, 126596, 224904, 224909, 11918, 159374, 224913, 126610, 224916, 224919, 126616, 208538, 224922, 224926, 224929, 224932, 257704, 224936, 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, 323402, 257868, 225103, 257871, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 274280, 257896, 257901, 225137, 339826, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 372738, 405533, 430129, 266294, 266297, 421960, 356439, 430180, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 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, 61722, 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, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 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, 348978, 152370, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 201588, 430965, 381813, 324472, 398201, 119674, 324475, 430972, 340861, 324478, 340858, 324481, 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, 209965, 209968, 209975, 209979, 209987, 209995, 341071, 349267, 250967, 210010, 341091, 210025, 210027, 210030, 210036, 210039, 349308, 349311, 160895, 152703, 210052, 210055, 349319, 218247, 210067, 210071, 210077, 210080, 251044, 210084, 185511, 210088, 210098, 210107, 210115, 332997, 210127, 333009, 210131, 333014, 210138, 210143, 218354, 218360, 251128, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 251210, 357708, 210260, 365911, 259421, 365921, 333154, 251235, 374117, 333162, 234866, 390516, 333175, 357755, 251271, 136590, 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, 153302, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 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, 399215, 358255, 268143, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 333774, 358371, 350189, 350193, 350202, 333818, 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, 194852, 350504, 358700, 391468, 350509, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 268701, 342430, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 334304, 334311, 375277, 334321, 350723, 391690, 186897, 342545, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 383536, 358961, 334384, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 162445, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 260924, 375612, 244540, 326460, 326467, 244551, 326473, 326477, 416597, 326485, 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, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 367800, 351423, 384191, 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, 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, 147317, 262005, 425845, 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, 155619, 253923, 155621, 253926, 327654, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
5878fa39334501e2ad5945583bdf1d0b246dd813
0090a71b5ef443436ab6f9da9cc421900ebf11ab
/testtranstion/ViewControllerX.swift
6c2417483b0902094c9312216d8af87564e41cab
[]
no_license
asia-ElNemer/testAsiaBot
f23323c1c5696745d302fb9dfe33b8673f788639
72a723c61877a7d1cc4b39161a7e9c74d7f116a8
refs/heads/master
2021-09-05T23:51:18.012639
2018-01-31T19:55:27
2018-01-31T19:55:27
115,445,307
0
0
null
null
null
null
UTF-8
Swift
false
false
1,163
swift
// // ViewControllerX.swift // testtranstion // // Created by Asia on 12/26/17. // Copyright © 2017 Elnemer. All rights reserved. // import UIKit class ViewControllerX: UIViewController, UISearchBarDelegate { 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. } */ func searchBarCancelButtonClicked(_ searchBar: UISearchBar) { // Stop doing the search stuff // and clear the text in the search bar self.navigationController?.popToRootViewController(animated: false) // You could also change the position, frame etc of the searchBar } }
[ -1 ]
a8e3deffecb460b481291dca8a458b9505f8621f
2dbbac33d5520b56bd86b7d6ed24b3d88e92d5e2
/Example/FlexLayoutSample/UI/Examples/Example1/Example1ViewController.swift
12917bce60920822b557897c885529071b472fbf
[ "MIT" ]
permissive
layoutBox/FlexLayout
918b004eb3d2dbe6be81e88f22d5ac139a70d11f
f3187749d2d31a01aa18f8b107e603e210f9bce9
refs/heads/master
2023-08-12T13:46:46.091380
2023-06-24T19:33:00
2023-06-24T19:33:00
94,804,036
1,774
231
MIT
2023-08-24T02:44:19
2017-06-19T17:40:23
C++
UTF-8
Swift
false
false
1,245
swift
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT HOLDER OR CONTRIBUTORS 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. // // Created by Luc Dion on 2017-07-17. import UIKit class Example1ViewController: BaseViewController { fileprivate var mainView: Example1View { return self.view as! Example1View } init(pageType: PageType) { super.init() title = pageType.text } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } override func loadView() { view = Example1View() } }
[ -1 ]
8772dc0a0bfa7a735bf6104212b27524f850f81b
e243303f0a91a7f6c53536a63c9b6f1362d5ff70
/WatchOS_Tutorials/AppleWatchExample/AppleWatchExample/ViewController.swift
191cb600f7cdbeca85938e1dda6d3d3d30c003e1
[]
no_license
HururuekChapChap/Xcode_TestProj
8f201f58dccbe60f4971ab54382bf70a75c8485d
c65707f461f15284a4ec557d544d26e31c784c03
refs/heads/master
2023-03-12T05:17:34.309243
2021-03-01T13:54:00
2021-03-01T13:54:00
289,832,209
1
3
null
null
null
null
UTF-8
Swift
false
false
1,814
swift
// // ViewController.swift // AppleWatchExample // // Created by yoon tae soo on 2021/02/21. // import UIKit class ViewController: UIViewController { @IBOutlet weak var txtTaskName : UITextField! @IBOutlet weak var txtDatePicker : UITextField! let datePicker = UIDatePicker() let watchViewModel = WatchManager.shared private func showDatePicker(){ datePicker.datePickerMode = .time txtDatePicker.inputView = datePicker datePicker.addTarget(self, action: #selector(datePcikerValueChanged), for: .valueChanged) } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. showDatePicker() } @objc func datePcikerValueChanged(sender : UIDatePicker){ let dateFormatter = DateFormatter() dateFormatter.dateFormat = "hh:mm" txtDatePicker.text = dateFormatter.string(from: sender.date) } @IBAction func buttonTap(_ sender: Any) { if let vaildSession = self.watchViewModel.watchSession , vaildSession.isReachable { let data : [String : Any] = [ "taskName" : txtTaskName.text ?? "", "finishedTime" : txtDatePicker.text ?? "" ] vaildSession.sendMessage(data, replyHandler: nil, errorHandler: nil) print("send : \(data)") } else{ print(self.watchViewModel.watchSession) } // WatchManager.shared.sendParamsToWatch(dict: [ // // "taskName" : txtTaskName.text ?? "", // "finishedTime" : txtDatePicker.text ?? "" // // ]) } }
[ -1 ]
d81ea72fa708d52f263981a8cde86b0c027c3ef8
193202875cc7f35efa79e4ceebbb054f916e3e9a
/Images/Images/ContentView.swift
f7536a77fa9dc4b5e664208f248f32ccbb9c09ee
[]
no_license
PedroHamue/Portafolio-Evidencias-Swift-Pedro-J.Balmori-Hamue
128ae04618a8fe25246513b82ff28b5e646b5383
d0a9052dd08106dd4db7993728119de2afe7a966
refs/heads/master
2022-11-22T17:17:23.864351
2020-07-28T15:50:31
2020-07-28T15:50:31
283,258,763
0
0
null
null
null
null
UTF-8
Swift
false
false
1,494
swift
// // ContentView.swift // Images // // Created by Pedro Hamue on 17/06/20. // Copyright © 2020 Pedro Hamue. All rights reserved. // import SwiftUI struct ContentView: View { var body: some View { Image("EmpireState") .resizable() .edgesIgnoringSafeArea(.vertical) //.scaledToFit() .aspectRatio(contentMode: .fill) .frame(width:300) //.clipped() .clipShape(Capsule()) //Capsule,Circle,Ellipse .opacity(0.65) .overlay( Image(systemName:"heart.fill")) .font(.system(size:60)) .foregroundColor(.red) .opacity(0.5) .overlay( Text("I LOVE NY") .fontWeight(.bold) .font(.title) .foregroundColor(.black) .padding() //.background(Color.gray) //.cornerRadius(10) .opacity(0.7) //.padding() /*Rectangle() .foregroundColor(.gray) .opacity(0.5) .overlay( Text("New York") .font(.title) .fontWeight(.bold) .foregroundColor(.white) .frame(width:250)*/ ) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
fbe3214c8a9a13c05e13b0851303e70bf6caf81b
2058496cc5838f55824d91e4a0108fbd1f6b6d12
/Chatto/Source/ChatController/BaseChatViewController+AccessoryViewRevealer.swift
707c29206b2841ad3d7519ed18509a95d1826e36
[ "MIT" ]
permissive
RadicalApp/Chatto
a54cf2ecff516831f2c1863135621e42a37e6c0f
66e5b4113e43d1f9846e7a53b56fcc51a35d9efa
refs/heads/master
2023-05-12T22:09:07.284192
2019-07-26T00:11:22
2019-07-26T00:11:22
129,131,759
2
1
MIT
2023-05-08T23:50:49
2018-04-11T17:41:40
Swift
UTF-8
Swift
false
false
1,672
swift
/* The MIT License (MIT) Copyright (c) 2015-present Badoo Trading Limited. 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 Foundation public extension BaseChatViewController { // Accessory view revealer public final var accessoryViewRevealerIsEnabled: Bool { get { return self.accessoryViewRevealer.isEnabled } set { self.accessoryViewRevealer.isEnabled = newValue } } public final var accessoryViewRevealerConfig: AccessoryViewRevealerConfig { get { return self.accessoryViewRevealer.config } set { self.accessoryViewRevealer.config = newValue } } }
[ 305449 ]
370cafe3bcdb8d070ef86aeb4a2feac8035f7e0e
3ea22dc59f8f437e4e59a9509153a348d48e2599
/CatchTheFruits/ViewController.swift
8e7c14120f4a47fa258400d16ff6418cafabcda3
[]
no_license
halilozel1903/CatchTheFruitsApp
5158b395f01af076c08c1a81de752dfd2f7550e6
c9c9320d33308455a7d1892532120b32520a017c
refs/heads/master
2023-01-12T07:28:20.734261
2023-01-02T06:06:42
2023-01-02T06:06:42
161,672,191
1
0
null
null
null
null
UTF-8
Swift
false
false
6,291
swift
// // ViewController.swift // CatchTheFruits // // Created by Halil Özel on 13.12.2018. // Copyright © 2018 Halil Özel. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var scoreLabel: UILabel! @IBOutlet weak var timeLabel: UILabel! @IBOutlet weak var highscoreLabel: UILabel! @IBOutlet weak var fruit1: UIImageView! @IBOutlet weak var fruit2: UIImageView! @IBOutlet weak var fruit3: UIImageView! @IBOutlet weak var fruit4: UIImageView! @IBOutlet weak var fruit5: UIImageView! @IBOutlet weak var fruit6: UIImageView! @IBOutlet weak var fruit7: UIImageView! @IBOutlet weak var fruit8: UIImageView! @IBOutlet weak var fruit9: UIImageView! var score = 0 var timer = Timer() var hideTimer = Timer() var counter = 0 var fruitsArray = [UIImageView]() override func viewDidLoad() { super.viewDidLoad() let highScore = UserDefaults.standard.object(forKey: "highscore") if highScore == nil{ highscoreLabel.text = "HighScore : 0" } if let newScore = highScore as? Int{ highscoreLabel.text = "HighScore : \(newScore)" } scoreLabel.text = "Score : \(score)" let recognizer1 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer2 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer3 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer4 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer5 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer6 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer7 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer8 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) let recognizer9 = UITapGestureRecognizer(target: self, action: #selector(ViewController.increaseScore)) fruit1.isUserInteractionEnabled = true fruit2.isUserInteractionEnabled = true fruit3.isUserInteractionEnabled = true fruit4.isUserInteractionEnabled = true fruit5.isUserInteractionEnabled = true fruit6.isUserInteractionEnabled = true fruit7.isUserInteractionEnabled = true fruit8.isUserInteractionEnabled = true fruit9.isUserInteractionEnabled = true fruit1.addGestureRecognizer(recognizer1) fruit2.addGestureRecognizer(recognizer2) fruit3.addGestureRecognizer(recognizer3) fruit4.addGestureRecognizer(recognizer4) fruit5.addGestureRecognizer(recognizer5) fruit6.addGestureRecognizer(recognizer6) fruit7.addGestureRecognizer(recognizer7) fruit8.addGestureRecognizer(recognizer8) fruit9.addGestureRecognizer(recognizer9) // timer counter = 20 timeLabel.text = "Time : \(counter)" timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(ViewController.countDown), userInfo: nil, repeats: true) // hide timer hideTimer = Timer.scheduledTimer(timeInterval: 0.5, target: self, selector:#selector(ViewController.hideFruits), userInfo: nil, repeats: true) // array fruitsArray.append(fruit1) fruitsArray.append(fruit2) fruitsArray.append(fruit3) fruitsArray.append(fruit4) fruitsArray.append(fruit5) fruitsArray.append(fruit6) fruitsArray.append(fruit7) fruitsArray.append(fruit8) fruitsArray.append(fruit9) hideFruits() } @objc func hideFruits(){ for fruit in fruitsArray{ fruit.isHidden = true } let random = Int(arc4random_uniform(UInt32(fruitsArray.count - 1))) fruitsArray[random].isHidden = false } @objc func countDown(){ counter -= 1 timeLabel.text = "Time : \(counter)" if counter == 0{ timer.invalidate() hideTimer.invalidate() let highScoreText = highscoreLabel.text?.replacingOccurrences(of: "HighScore : ", with: "") ?? "" if self.score > Int(highScoreText) ?? 0 { UserDefaults.standard.set(self.score, forKey: "highscore") highscoreLabel.text = "HighScore : \(self.score)" } let alert = UIAlertController(title: "Time", message: "Time's Up !!!", preferredStyle: .alert) let noButton = UIAlertAction(title: "Nope", style: .cancel, handler: nil) let okButton = UIAlertAction(title: "Yep", style: .default, handler:{(UIAlertAction) in self.score = 0 self.scoreLabel.text = "Score : \(self.score)" self.counter = 20 self.timeLabel.text = "Time : \(self.counter)" self.timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(ViewController.countDown), userInfo: nil, repeats: true) self.hideTimer = Timer.scheduledTimer(timeInterval: 0.5, target: self, selector: #selector(ViewController.hideFruits), userInfo: nil, repeats: true) }) alert.addAction(okButton) alert.addAction(noButton) self.present(alert,animated: true,completion: nil) } } @objc func increaseScore(){ score += 1 scoreLabel.text = "Score : \(score)" } }
[ -1 ]
547306747c4d6c280a5493566505124d864286d1
d2649ebd93a980d0e3725dc693b77bbfec524481
/mcommerce-ios/ProductDetailsImagesTableViewCell.swift
71dc3eae660904e921af25c1b9d1f5166afb2f1a
[]
no_license
lukaszwas/mcommerce-ios
3de8689e9abc07bec583d43c75f79e0a3cdec4b0
5a3bc566a8b1e9edee9b9ca1f6b6ee4cf13bc010
refs/heads/master
2021-01-02T09:10:40.134120
2018-08-29T16:25:43
2018-08-29T16:25:43
99,153,941
0
0
null
null
null
null
UTF-8
Swift
false
false
440
swift
// // ProductDetailsImagesTableViewCell.swift // mcommerce-ios // // Created by lukasz on 14.08.2017. // Copyright © 2017 lukasz. All rights reserved. // import UIKit class ProductDetailsImagesTableViewCell: UITableViewCell { override func awakeFromNib() { super.awakeFromNib() } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) } }
[ -1 ]
9d4f2ff84944b01780a8bdddb924e4983f1d59a4
4aa834d76fd752f25c90bd2c593504d6a968efb8
/Voceler/AlertView.swift
54c71986fb11586400603080c5f03a34552946a2
[]
no_license
QAQAPP/QAQ_iOS
2feb3d0fa8a57915a6a03c8a4132c26e9bbab0bd
c90bf6a7fe7b13e7cff15f931389870e529da4f7
refs/heads/master
2021-01-11T03:24:47.484981
2017-04-14T00:39:11
2017-04-14T00:39:11
71,012,175
0
0
null
2017-04-14T06:14:54
2016-10-15T20:39:35
Swift
UTF-8
Swift
false
false
367
swift
// // AlertView.swift // QAQ // // Created by Zhenyang Zhong on 12/15/16. // Copyright © 2016 Zhenyang Zhong. All rights reserved. // import UIKit import SCLAlertView class AlertView: SCLAlertView { var action:(()->())? override func viewDidDisappear(_ animated: Bool) { if let action = action{ action() } } }
[ -1 ]
10f8a592ce88fce14772ba0bf1140962f88186d1
c794b20611d44ea3ce921a2bf9d0eb026be8650f
/MVPDemoSwift/Models/MyGithub.swift
28cdb204028dd7b23f7b2c46bebdacec3a8b751b
[]
no_license
anwarseu/MVPDemoSwift
6a62faa1c0e4108eba901e03a62a860ea692fcb5
95bb42e245a4425039d58d5c3c88a43e7e1cb7f9
refs/heads/master
2020-04-08T04:23:28.607821
2018-11-25T09:07:11
2018-11-25T09:07:11
159,014,295
0
0
null
null
null
null
UTF-8
Swift
false
false
526
swift
// // MyGithub.swift // MVPDemoSwift // // Created by Md Anwar Hossain on 25/11/18. // Copyright © 2018 Md Anwar Hossain. All rights reserved. // import Foundation struct MyGithub: Codable { let name: String? let location: String? let followers: Int? let avatarUrl: URL? let repos: Int? private enum CodingKeys: String, CodingKey { case name case location case followers case repos = "public_repos" case avatarUrl = "avatar_url" } }
[ -1 ]
207356caa5d709e47a31f06d5c78a6f7c21bc955
6facddd993541bb3ad7d7e1b71b76a1d1226ce4e
/RxSwift-Demo/Basic/RxSwift-Demo/Playground/CombiningOperators/Concat.playground/Contents.swift
1f9199a7a523d954070d921be53564e3edc42b7f
[]
no_license
kazuao/swift-RxSwift-Demo
0fb47f3620aa94c9452acafc2282c8f9baf23d18
fcfb34ab50533e508049b22c5be444b79328b3ae
refs/heads/master
2023-06-16T10:27:36.610130
2021-07-13T06:02:05
2021-07-13T06:02:05
376,461,488
0
0
null
null
null
null
UTF-8
Swift
false
false
348
swift
import Foundation import RxSwift import RxCocoa let disposeBag = DisposeBag() // 二つのObservableを結合できる let first = Observable.of(1,2,3) let second = Observable.of(9,8,7) let observable = Observable.concat([first, second]) observable .subscribe(onNext: { print($0) }) .disposed(by: disposeBag) // 1,2,3,9,8,7
[ -1 ]
eeda90efbf2859328de7c35475c8844588e9852a
44f45e144a5fb7d4a5f938767963865a15cb0be0
/WindowShopper/Controllers/Camera/CameraViewController.swift
03fb12adb435d2331b799a1b7db742006bf9cf96
[]
no_license
Dragos-Rotaru/WindowShopper002233
96101e5ee43e6e8dbd24bccd7e28a40eaa6e540e
b09455dc31114ee62f991092b863b0a79525cd28
refs/heads/master
2020-03-19T06:26:48.458389
2018-06-18T11:39:32
2018-06-18T11:39:32
136,020,738
0
0
null
null
null
null
UTF-8
Swift
false
false
1,920
swift
// // CameraViewController.swift // WindowShopper // // Created by DragosRotaru on 29/05/2018. // Copyright © 2018 IBM. All rights reserved. // import Foundation import UIKit class CameraViewController: UIViewController { @IBOutlet weak var productFoundView: UIView! @IBOutlet weak var productTitleLabel: UILabel! @IBOutlet weak var addToCartButton: UIButton! @IBOutlet weak var addToFavorites: UIButton! @IBOutlet weak var productFoundLeadingConstraint: NSLayoutConstraint! @IBOutlet weak var cameraImage: UIImageView! @IBAction func addToCart(_ sender: Any) { if let tabbar = self.tabBarController as? TabBarController { tabbar.animateTabBarItem(item: 2) } } @IBAction func addToFavorites(_ sender: Any) { if let tabbar = self.tabBarController as? TabBarController { tabbar.animateTabBarItem(item: 3) } } override func viewDidLoad() { //productFoundView.isHidden = true addToCartButton.isHidden = true addToFavorites.isHidden = true productTitleLabel.isHidden = true productFoundView.layer.cornerRadius = 15.0 productFoundView.clipsToBounds = true addToCartButton.alpha = 1 productFoundLeadingConstraint.constant = 363.0 productTitleLabel.text = "" cameraImage.image = #imageLiteral(resourceName: "CameraScanner") } override func viewDidAppear(_ animated: Bool) { self.view.layoutIfNeeded() productPopUp() animateConstraint() } func productPopUp() { UIView.animate(withDuration: 1.0, delay: 0.0, animations: { self.productFoundView.layer.cornerRadius = 8.0 self.productFoundLeadingConstraint.constant = 20.0 self.productTitleLabel.text = "Product title" self.view.layoutIfNeeded() }) } func animateConstraint() { UIView.animate(withDuration: 1.0, delay: 3.0, options: .curveEaseOut, animations: { self.addToFavorites.isHidden = false self.addToCartButton.isHidden = false self.productTitleLabel.isHidden = false }) } }
[ -1 ]
d7f1fb0eb49ca47d553fb6e5d5c35a11890ea984
45c4a6376bd7f2e37dda0b1c32f87afa2c39a504
/kingFisherUrl/AppDelegate.swift
75d7e17509da6d221089b41c183632b7640360bd
[]
no_license
tanvir841/kingFisherUrl
753b8ab580b2563ec9376cdb49bb28ba5316cdc8
ba468391a33546533f182f3ecb2b13abd5278c2e
refs/heads/master
2020-12-05T21:21:25.261505
2020-01-07T05:42:31
2020-01-07T05:42:31
232,251,275
0
0
null
null
null
null
UTF-8
Swift
false
false
3,705
swift
// // AppDelegate.swift // kingFisherUrl // // Created by Tanvir on 1/6/20. // Copyright © 2020 tanvir841. All rights reserved. // import UIKit import CoreData @UIApplicationMain 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. } // MARK: - Core Data stack lazy var persistentContainer: NSPersistentContainer = { /* The persistent container for the application. This implementation creates and returns a container, having loaded 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. */ let container = NSPersistentContainer(name: "kingFisherUrl") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { // Replace this implementation with code to handle the error appropriately. // fatalError() 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. /* Typical reasons for an error here include: * The parent directory does not exist, cannot be created, or disallows writing. * The persistent store is not accessible, due to permissions or data protection when the device is locked. * The device is out of space. * The store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }() // MARK: - Core Data Saving support func saveContext () { let context = persistentContainer.viewContext if context.hasChanges { do { try context.save() } catch { // Replace this implementation with code to handle the error appropriately. // fatalError() 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 fatalError("Unresolved error \(nserror), \(nserror.userInfo)") } } } }
[ 199680, 379906, 253443, 418820, 249351, 328199, 384007, 379914, 372747, 199180, 377866, 326668, 329233, 350738, 186387, 349202, 262677, 330774, 324121, 245274, 377371, 345630, 384032, 362529, 394795, 404523, 262701, 245293, 349744, 361524, 337975, 343609, 375867, 333373, 418366, 152127, 339009, 413250, 214087, 352840, 377930, 337994, 370253, 330319, 200784, 173647, 436306, 333395, 244308, 329815, 254042, 402522, 326239, 322658, 340579, 244329, 333422, 349295, 204400, 173169, 339571, 330868, 344693, 268921, 343167, 192639, 344707, 330884, 336516, 266374, 385670, 346768, 268434, 409236, 333988, 336548, 379048, 377001, 356520, 361644, 402614, 361655, 325308, 339132, 343231, 403138, 337092, 244933, 322758, 337606, 367816, 257738, 342736, 245460, 257751, 385242, 366300, 165085, 350433, 395495, 363755, 346348, 343276, 325358, 338158, 212722, 251122, 350453, 338679, 393465, 351482, 264961, 115972, 268552, 346890, 362251, 328460, 333074, 257814, 333592, 397084, 257824, 362272, 377120, 334631, 389416, 336680, 384298, 204589, 271150, 366383, 328497, 257842, 339768, 326969, 384828, 386365, 204606, 375615, 257852, 339792, 358737, 389970, 361299, 155476, 366931, 257880, 330584, 361305, 362843, 429406, 374112, 353633, 439137, 355184, 361333, 332156, 337277, 260992, 245120, 380802, 389506, 337290, 155020, 337813, 348565, 250262, 155044, 333221, 373671, 333736, 252845, 356781, 288174, 268210, 370610, 210356, 342452, 370102, 338362, 327612, 358335, 380352, 201157, 187334, 333766, 339400, 347081, 349128, 358347, 393670, 336325, 272848, 379856, 155603, 399317, 249302, 379863, 372697, 155102, 329182, 182754, 360429, 338927, 330224, 379895, 201723, 257020, 254461 ]
aa16fc455f9b0faf9d3a1196e3bbd74096eea800
cbc4b3df59fee88c4894dc23c2773ede7b64e384
/SideGuideGZ/WhoAreYouProfessionalDefault.swift
b5e90d39dc52820777090534835e52540dd97cc4
[]
no_license
gongzhen/SideGuideGZ
dc96afecaca19955d6aaed3ca0cc856e6afd45fc
1eece70702fc148a45bc89ba7cdd401f776e2f29
refs/heads/master
2021-01-21T21:06:33.092331
2017-05-26T18:50:46
2017-05-26T18:50:46
92,307,573
0
1
null
null
null
null
UTF-8
Swift
false
false
1,804
swift
// // WhoAreYouProfessionalDefault.swift // SideGuideGZ // // Created by zhen gong on 5/26/17. // Copyright © 2017 zhen gong. All rights reserved. // import Foundation enum WhoAreYouProfessionalDefault: Int, ChoiceSelectable { case leave_BLANK = -1 case student = 1 case just_STARTING_OUT = 2 case lost = 3 case on_THE_COME_UP = 4 case where_I_WANT_TO_BE = 5 func getButtonText() -> String { switch self { case .leave_BLANK: return "Leave Blank" case .student: return "Student" case .just_STARTING_OUT: return "Just starting out" case .lost: return "Lost" case .on_THE_COME_UP: return "On the come up" case .where_I_WANT_TO_BE: return "Were I want to be" } } func getSelectedText() -> String { switch self { case .leave_BLANK: return "I'm passing on this one" case .student: return "I'm a student" case .just_STARTING_OUT: return "I'm just starting out" case .lost: return "I'm lost" case .on_THE_COME_UP: return "I'm on the come up" case .where_I_WANT_TO_BE: return "I'm where I want to be" } } static func getAllChoices() -> [ChoiceSelectable] { return [ WhoAreYouProfessionalDefault.leave_BLANK, WhoAreYouProfessionalDefault.student, WhoAreYouProfessionalDefault.just_STARTING_OUT, WhoAreYouProfessionalDefault.lost, WhoAreYouProfessionalDefault.on_THE_COME_UP, WhoAreYouProfessionalDefault.where_I_WANT_TO_BE ] } func getCategoryNumber() -> Int { return self.rawValue } func isEqualTo(_ other: ChoiceSelectable?) -> Bool { return self == (other as? WhoAreYouProfessionalDefault) } }
[ -1 ]
e70e46d25a3bc01eb01613145297b0224bdbba48
211144005229af23d4a396ac5d682c2f587a8869
/PantauBersama/PantauBersama/Modules/Home/SubModules/Penpol/SubModules/QuizList/SubModules/QuizDetail/QuizDetailViewModel.swift
720c373bb45ee62f1c30a18ff65aa05c05a2a6c1
[]
no_license
pantaubersama/PemiluIOS
2f36f00ebae80549a30f25a5d75df6bb5aa656a2
720e09f6f8308d86e3ff339167d0682168a20032
refs/heads/develop
2022-10-10T06:38:23.320185
2019-04-10T10:20:40
2019-04-10T10:20:40
169,363,961
3
2
null
2022-10-06T03:57:59
2019-02-06T06:24:27
Swift
UTF-8
Swift
false
false
1,529
swift
// // QuizDetailViewModel.swift // PantauBersama // // Created by Rahardyan Bisma on 21/12/18. // Copyright © 2018 PantauBersama. All rights reserved. // import Foundation import Common import RxSwift import RxCocoa class QuizDetailViewModel: ViewModelType { var input: Input var output: Output struct Input { let startTrigger: AnyObserver<Void> let backTrigger: AnyObserver<Void> } struct Output { let startSelected: Driver<Void> let back: Driver<Void> let quiz: Driver<QuizModel> } private let startSubject = PublishSubject<Void>() private let backS = PublishSubject<Void>() private var quizModel: QuizModel var navigator: QuizDetailNavigator init(navigator: QuizDetailNavigator, quizModel: QuizModel) { self.navigator = navigator self.quizModel = quizModel input = Input(startTrigger: startSubject.asObserver(), backTrigger: backS.asObserver()) let start = startSubject .flatMap({navigator.startQuiz()}) .asDriver(onErrorJustReturn: ()) let back = backS .flatMap({navigator.finish()}) .asDriverOnErrorJustComplete() let quiz = Observable.just(quizModel) .asDriverOnErrorJustComplete() output = Output(startSelected: start, back: back, quiz: quiz) } }
[ -1 ]
39ecd50cbc663838d5f3aa400924acf4eca2a348
73e2081fe4f997c62efbbe612e51b7845e1f1953
/Aural/FavoritesEditorViewController.swift
8e75e850de7909984bb05152a6180147f900baf4
[]
no_license
suomi35/aural-player
3e185157b4e29887d4a9484a701bb7f8da47b04e
b6b38ea665d1747407954a38f1b5eba1645a600c
refs/heads/master
2020-04-01T17:49:11.608207
2018-10-17T07:47:23
2018-10-17T07:47:23
null
0
0
null
null
null
null
UTF-8
Swift
false
false
4,956
swift
import Cocoa class FavoritesEditorViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate { @IBOutlet weak var editorView: NSTableView! @IBOutlet weak var header: NSTableHeaderView! // Used to adjust the header height @IBOutlet weak var scrollView: NSScrollView! @IBOutlet weak var clipView: NSClipView! @IBOutlet weak var btnDelete: NSButton! @IBOutlet weak var btnPlay: NSButton! // Delegate that relays accessor operations to the bookmarks model private let favorites: FavoritesDelegateProtocol = ObjectGraph.getFavoritesDelegate() override var nibName: String? {return "FavoritesEditor"} override func viewDidLoad() { headerHeight() header.wantsLayer = true header.layer?.backgroundColor = NSColor.black.cgColor editorView.tableColumns.forEach({ let col = $0 let header = AuralTableHeaderCell() header.stringValue = col.headerCell.stringValue header.isBordered = false col.headerCell = header }) } private func headerHeight() { header.setFrameSize(NSMakeSize(header.frame.size.width, header.frame.size.height + 10)) clipView.setFrameSize(NSMakeSize(clipView.frame.size.width, clipView.frame.size.height + 10)) } override func viewDidAppear() { editorView.reloadData() editorView.deselectAll(self) [btnDelete, btnPlay].forEach({$0.isEnabled = false}) } @IBAction func deleteSelectedFavoritesAction(_ sender: AnyObject) { // Descending order let sortedSelection = editorView.selectedRowIndexes.sorted(by: {x, y -> Bool in x > y}) sortedSelection.forEach({favorites.deleteFavoriteAtIndex($0)}) editorView.reloadData() editorView.deselectAll(self) updateButtonStates() } private func updateButtonStates() { let selRows: Int = editorView.numberOfSelectedRows btnDelete.isEnabled = selRows > 0 btnPlay.isEnabled = selRows == 1 } @IBAction func playSelectedFavoriteAction(_ sender: AnyObject) { if editorView.numberOfSelectedRows == 1 { let fav = favorites.getFavoriteAtIndex(editorView.selectedRow) favorites.playFavorite(fav) } } @IBAction func doneAction(_ sender: AnyObject) { WindowState.showingPopover = false UIUtils.dismissModalDialog() } // MARK: View delegate functions // Returns the total number of playlist rows func numberOfRows(in tableView: NSTableView) -> Int { return favorites.countFavorites() } func tableViewSelectionDidChange(_ notification: Notification) { updateButtonStates() } // Returns a view for a single row func tableView(_ tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView? { return AuralTableRowView() } // Returns a view for a single column func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { let favorite = favorites.getFavoriteAtIndex(row) let colID = tableColumn?.identifier.rawValue ?? "" if colID == UIConstants.favoriteNameColumnID { // Name return createTextCell(tableView, tableColumn!, row, favorite.name) } else { // Track (file path) return createTextCell(tableView, tableColumn!, row, favorite.file.path) } } // Creates a cell view containing text private func createTextCell(_ tableView: NSTableView, _ column: NSTableColumn, _ row: Int, _ text: String) -> EditorTableCellView? { if let cell = tableView.makeView(withIdentifier: column.identifier, owner: nil) as? EditorTableCellView { cell.isSelectedFunction = { (row: Int) -> Bool in return self.editorView.selectedRowIndexes.contains(row) } cell.textField?.stringValue = text cell.row = row // TODO: Doesn't update tool tips when columns are resized // Set tool tip on name/track only if text wider than column width let font = cell.textField!.font! if StringUtils.numberOfLines(text, font, column.width) > 1 { cell.toolTip = text } return cell } return nil } } // Helper function inserted by Swift 4.2 migrator. fileprivate func convertFromNSUserInterfaceItemIdentifier(_ input: NSUserInterfaceItemIdentifier) -> String { return input.rawValue }
[ -1 ]
972b4a04471694c2bc9f473483358eea93d2b11b
52b857db61d8404297b52d547cc9dbf02e2971a7
/Tests/AppTests/AlexaJSON.swift
9124d66bbc15c22b027a606f3ca822ac921b0ec8
[ "MIT" ]
permissive
scottalucas/Toasty
c2dee570421da038bdec3af513747240bfe3b4d4
771099ac8f7506993f0ca86dfd1df42233ea0f8c
refs/heads/master
2021-06-01T16:26:20.520662
2021-03-22T00:12:26
2021-03-22T00:12:26
133,273,717
0
0
null
null
null
null
UTF-8
Swift
false
false
2,260
swift
import Foundation import Vapor import JavaScriptCore public class Validator: NSObject { static let shared = Validator() private let vm = JSVirtualMachine() private let context: JSContext override init() { let fm = FileManager() let rootDirectory = DirectoryConfig.detect().workDir let jsDirectory = "\(rootDirectory)/Public" let files = try! fm.contentsOfDirectory(atPath: jsDirectory) // let jsCode = try! String.init(contentsOfFile: "\(jsDirectory)Zschema.bundle.js") let jsCode = String.init(data: fm.contents(atPath: "\(jsDirectory)/Zschema.bundle.js")!, encoding: .utf8) self.context = JSContext(virtualMachine: self.vm) let nativeLog: @convention(block) (String) -> Void = { message in NSLog("JS Log: \(message)") } self.context.setObject(nativeLog, forKeyedSubscript: "nativeLog" as NSString) context.exceptionHandler = { context, exception in print("JS Error: \(exception?.description ?? "unknown error")") } self.context.evaluateScript(jsCode) } public func analyze(_ jsonUnderTest: String) -> Bool { var schema:String? guard let schemaUrl = URL.init(string: "https://raw.githubusercontent.com/alexa/alexa-smarthome/master/validation_schemas/alexa_smart_home_message_schema.json") else {fatalError()} let queue = DispatchQueue(label: "com.app.queue") queue.sync { schema = try? String.init(contentsOf: schemaUrl, encoding: .utf8) } let jsModule = self.context.objectForKeyedSubscript("Zschema") let jsAnalyzer = jsModule?.objectForKeyedSubscript("Analyzer") let result = jsAnalyzer?.invokeMethod("validate", withArguments: [jsonUnderTest, schema!]).toDictionary() guard let res = result, let p = res["valid"], let pass = p as? Bool else { fatalError() } // let errors = rawErrors.toDictionary() if !pass { let errs = res["errors"] as! Array<[String:Any]> print("JSON validation error message is ", errs[0]) print("JSON under test: \n\n\(jsonUnderTest)\n\n") } return pass } }
[ -1 ]
b93ba3c4d48775c312e85fb0e6ae14eedf558d13
3fc0bcd855f901f0cf2bb429647cf4c0b02f6880
/Citrus/CategoriaCell.swift
748acb969887fb9da3b1e55735d2ef5e5443c49b
[]
no_license
NoeOsorio/Citrus
04c195e73b9c1f3e48bd9bdf2e39baf7fd926e04
a3fe5b41136550d21898f088eafc0cf1d8dee283
refs/heads/master
2020-03-19T18:57:52.561535
2018-09-13T08:06:49
2018-09-13T08:06:49
136,833,670
0
1
null
2018-07-24T21:52:59
2018-06-10T18:17:31
Objective-C
UTF-8
Swift
false
false
278
swift
// // CategoriaCell.swift // Citrus // // Created by Noe Osorio on 19/06/18. // Copyright © 2018 Noe Osorio. All rights reserved. // import UIKit class CategoriaCell: UICollectionViewCell { @IBOutlet var bg: UIImageView! @IBOutlet var title: UILabel! }
[ -1 ]
7b734812e5252c917a0eda0affe32529a8487375
ea88e5e93085583c8f00ae33b0a878a3b66707f7
/MusicPlayer/MusicPlayer/AppDelegate.swift
82abe9ac41a1ac04bec3fc1a283af761f9a11061
[]
no_license
castiyeaux/swift-test
81333f7d868a4f5e48c9a4bb8a983ba96f5f909d
1db52451b421a4f3dd6a44d5e42546422db78255
refs/heads/master
2020-05-25T03:54:34.901295
2019-08-20T21:35:54
2019-08-20T21:35:54
187,615,742
0
0
null
null
null
null
UTF-8
Swift
false
false
2,177
swift
// // AppDelegate.swift // MusicPlayer // // Created by Andrea Castillo on . // Copyright © 2019 Andrea Castillo. 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, 229388, 294924, 278542, 229391, 327695, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 319544, 204856, 229432, 286776, 286778, 352318, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 131209, 303241, 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, 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, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 320007, 287238, 172552, 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, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 189039, 295538, 172660, 189040, 189044, 287349, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 287390, 303773, 164509, 172705, 287394, 172702, 303780, 172707, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 279231, 287427, 312005, 312006, 107208, 107212, 172748, 287436, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 279267, 312035, 295654, 279272, 312048, 230128, 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, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 304007, 320391, 213895, 304009, 304011, 230284, 304013, 279438, 295822, 213902, 189329, 295825, 189331, 304019, 58262, 304023, 279452, 410526, 279461, 279462, 304042, 213931, 304055, 230327, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 295949, 230413, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 132165, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 361576, 296040, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 66690, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 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, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 296264, 238919, 320840, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 410987, 230763, 148843, 230768, 296305, 312692, 230773, 304505, 181626, 304506, 279929, 181631, 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, 288214, 148946, 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, 148990, 321022, 206336, 402942, 296450, 296446, 230916, 230919, 214535, 304651, 370187, 304653, 230923, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 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, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 280276, 313044, 321239, 280283, 18140, 313052, 288478, 313055, 419555, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 321266, 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, 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, 10170, 296890, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 313340, 239612, 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, 313458, 215154, 280691, 149618, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 288909, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 321740, 313548, 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, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 240011, 199051, 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, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 338440, 150025, 330244, 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, 158317, 19053, 313973, 297594, 281210, 158347, 264845, 182926, 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, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 142226, 240535, 289687, 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, 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, 306555, 314747, 298365, 290171, 290174, 224641, 281987, 314756, 298372, 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, 282133, 290325, 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, 324757, 282261, 175770, 298651, 323229, 282269, 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, 307009, 413506, 241475, 307012, 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, 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, 315482, 217179, 315483, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 176311, 299191, 307385, 307386, 258235, 307388, 176316, 307390, 184503, 299200, 184512, 307394, 307396, 299204, 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, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 127407, 291247, 299440, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 315856, 176592, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 135672, 233979, 291323, 127485, 291330, 127490, 283142, 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, 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, 135844, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 242396, 299740, 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, 242450, 234258, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 201557, 185173, 234329, 234333, 308063, 234336, 234338, 349027, 242530, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 201603, 291714, 234373, 316294, 226182, 234375, 308105, 291716, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 234410, 291754, 291756, 324522, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 234431, 242623, 324544, 324546, 234434, 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, 324599, 234487, 234490, 234493, 234496, 316416, 308226, 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, 308291, 316483, 160835, 234563, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 275579, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 308379, 234648, 234653, 300189, 119967, 324766, 324768, 283805, 234657, 242852, 234661, 283813, 300197, 234664, 177318, 275626, 234667, 316596, 308414, 300223, 234687, 300226, 308418, 283844, 300229, 308420, 308422, 226500, 234692, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 300289, 292097, 161027, 300292, 300294, 275719, 234760, 300299, 177419, 242957, 283917, 300301, 177424, 275725, 349451, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 324978, 136562, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 226802, 292338, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 308790, 284215, 316983, 194103, 284218, 194101, 226877, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 292433, 284243, 300628, 284245, 194130, 284247, 317015, 235097, 243290, 276053, 284249, 284251, 300638, 284253, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 284290, 325250, 284292, 292485, 292479, 276098, 284297, 317066, 284299, 317068, 276109, 284301, 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, 276166, 284358, 358089, 284362, 276170, 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, 325408, 300832, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 292681, 358224, 284499, 276308, 178006, 317271, 284502, 276315, 292700, 284511, 317279, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 358292, 284564, 317332, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 325624, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 276539, 235581, 178238, 325692, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 194654, 178273, 309346, 194657, 309348, 350308, 309350, 227426, 309352, 350313, 309354, 301163, 350316, 194660, 227430, 276583, 276590, 350321, 284786, 276595, 301167, 350325, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 194708, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 309455, 276689, 309462, 301272, 276699, 309468, 194780, 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, 276843, 293227, 276848, 293232, 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, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 318020, 301636, 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, 342707, 318132, 154292, 293555, 277173, 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, 293666, 285474, 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, 15224, 236408, 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, 228330, 318442, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 285690, 293882, 302075, 121850, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 310355, 293971, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 302205, 285821, 392326, 285831, 253064, 302218, 294026, 285835, 384148, 162964, 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, 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, 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, 310659, 351619, 294276, 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, 245191, 310727, 64966, 163272, 277959, 292968, 302541, 277963, 302543, 277966, 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, 187939, 40484, 294435, 40486, 286246, 40488, 278057, 294439, 40491, 294440, 294443, 294445, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 400976, 212560, 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, 302781, 319171, 302789, 294599, 278216, 302793, 294601, 343757, 212690, 278227, 286420, 319187, 229076, 286425, 319194, 278235, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 311048, 294664, 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, 319390, 237470, 40865, 319394, 294817, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
c08e95cf81f26bd8f0bc371a232a41e3d67dd545
7b700100429ac3d2984000e662cb64d05a85ad85
/TODO/AppDelegate.swift
cd12df5a066b86dded0192c9787c9f03fcb4b2ae
[]
no_license
zacksmail/TODO
4849aab2fef78fc04df02aebf89428256ae3523c
519ac76bc92b68b5e87182bad0a667c4e1bee2d4
refs/heads/master
2020-05-17T14:09:46.449200
2019-04-29T04:39:29
2019-04-29T04:39:29
183,757,112
0
0
null
null
null
null
UTF-8
Swift
false
false
2,173
swift
// // AppDelegate.swift // TODO // // Created by StrifeClaude on 2019/4/27. // Copyright © 2019 StrifeClaude. 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, 229432, 204856, 286791, 237640, 286797, 278605, 311375, 163920, 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, 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, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 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, 278983, 319945, 278986, 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, 213575, 172618, 303690, 33357, 303696, 279124, 172634, 262752, 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, 172751, 287440, 295633, 172755, 303827, 279255, 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, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 328563, 303987, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 304013, 295822, 279438, 213902, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 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, 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, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 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, 279929, 181626, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 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, 222676, 288212, 148946, 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, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 239202, 312938, 280183, 280185, 280191, 116354, 280194, 280208, 280211, 288408, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 313027, 280260, 206536, 280264, 206539, 206541, 206543, 313044, 280276, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 288494, 280302, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 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, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 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, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 288895, 321670, 215175, 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, 305464, 280888, 280891, 289087, 108865, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 280919, 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, 289227, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 150025, 338440, 330244, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 289317, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 182926, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 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, 174955, 224110, 207733, 207737, 158596, 183172, 240519, 322440, 314249, 338823, 183184, 142226, 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, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 363742, 363745, 298216, 330988, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 216376, 380226, 298306, 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, 298377, 314763, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 290305, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 290325, 282133, 241175, 290328, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 324757, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 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, 298822, 315211, 307027, 315221, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 315253, 315255, 339838, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 44948, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 241581, 241583, 323504, 241586, 290739, 241588, 282547, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 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, 307374, 307376, 299185, 323763, 184503, 299191, 176311, 307385, 307386, 307388, 258235, 307390, 176316, 299200, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 299225, 233701, 307432, 282881, 184586, 282893, 323854, 291089, 282906, 291104, 233766, 299304, 295583, 307508, 315701, 332086, 307510, 307512, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 315739, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 291226, 242075, 283033, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 283069, 127424, 299457, 127429, 127431, 127434, 315856, 127440, 176592, 315860, 176597, 127447, 283095, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 127497, 233994, 135689, 127500, 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, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 299706, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 299740, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 291593, 234248, 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, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 226185, 308105, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 234396, 324508, 291742, 226200, 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, 234648, 275606, 234650, 275608, 308379, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 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, 349464, 283939, 259367, 292143, 283951, 300344, 243003, 283963, 226628, 300357, 283973, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 316811, 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, 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, 276052, 284253, 235097, 284255, 300638, 284258, 292452, 292454, 284263, 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, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 292681, 153417, 358224, 276308, 178006, 317271, 284502, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 292729, 317306, 284540, 292734, 325512, 276365, 317332, 358292, 284564, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 292776, 284585, 276395, 292784, 358326, 161718, 358330, 276410, 276411, 276418, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 325624, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 292876, 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, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 309491, 227571, 309494, 243960, 276735, 227583, 227587, 276739, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 317833, 178572, 285070, 285077, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 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, 113167, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 23094, 277054, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 121458, 277106, 170619, 309885, 309888, 277122, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 318132, 277173, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 228069, 277223, 342760, 285417, 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, 301884, 293696, 310080, 277317, 277322, 293706, 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, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 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, 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, 64768, 310531, 285958, 138505, 228617, 318742, 277798, 130345, 113964, 285997, 285999, 113969, 318773, 318776, 286010, 417086, 286016, 302403, 294211, 384328, 294221, 294223, 326991, 179547, 146784, 302436, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 310657, 351619, 294276, 310659, 327046, 253320, 310665, 318858, 310672, 351633, 310689, 130468, 228776, 277932, 310703, 310710, 130486, 310712, 310715, 302526, 228799, 302534, 310727, 64966, 245191, 163272, 302541, 302543, 310737, 228825, 163290, 310749, 310755, 187880, 310764, 286188, 310772, 40440, 212472, 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, 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, 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, 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, 229233, 294776, 360317, 294785, 327554, 40851, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
1fdcdefe8e5c022aa5e783f179371d3b13e95a1f
e8a48f7212533cb757422594c3a3d74182379bb5
/igen_templates/detail/Navigator.swift
f9189c68961ba7f59d38c82b6a5ed4b76f77051c
[ "MIT" ]
permissive
acaziasoft/MGiGen
c51ac6b17dd43deb5e61b748e3ef417d416cf419
6320c2ff4c5c26b07b861d08be2034ce083285e5
refs/heads/master
2022-11-12T13:19:47.516331
2020-07-09T03:00:48
2020-07-09T03:00:48
null
0
0
null
null
null
null
UTF-8
Swift
false
false
281
swift
protocol {{ name }}NavigatorType { } struct {{ name }}Navigator: {{ name }}NavigatorType { unowned let assembler: Assembler {% if use_window %} unowned let window: UIWindow {% else %} unowned let navigationController: UINavigationController {% endif %} }
[ -1 ]
c435cd47b8254f48f2704ee04a35828c405b602a
7f9c254343bc23b191d8e1b28fe7e84e2f210a88
/GastuDiceLog/Modules/NewRollEntry/NewRollEntryCell.swift
9cdf0642175bbd886f014f34c690ed87266f5d08
[]
no_license
gsobrevilla/dice-log-ios
74899ab091635fe54c3e3a3a419c1668187b396a
e0685672c408ecc8e8841722c780a2d879e1194c
refs/heads/master
2023-09-03T04:14:22.382577
2021-11-19T15:11:13
2021-11-19T15:11:13
308,737,882
0
0
null
2020-11-01T22:25:22
2020-10-30T20:33:47
Swift
UTF-8
Swift
false
false
2,601
swift
// // NewRollEntryCell.swift // GastuDiceLog // // Created by Gastón Sobrevilla on 23/10/2020. // import Foundation import UIKit class NewRollEntryCell: UICollectionViewCell { private lazy var label: UILabel = { let label = UILabel() label.textAlignment = .center label.text = "" label.font = .systemFont(ofSize: 45, weight: .regular) return label }() private lazy var square: UIView = { let view = UIView() view.backgroundColor = .white view.layer.borderWidth = 1 view.layer.borderColor = UIColor.darkGray.cgColor view.layer.cornerRadius = 20 return view }() private let checkmarkDuration: Double = 0.3 private lazy var checkmark: WVCheckMark = { let view = WVCheckMark() view.setDuration(speed: CGFloat(checkmarkDuration)) view.backgroundColor = .white view.alpha = 0 view.setColor(color: UIColor.defaultTintColor.cgColor) view.setLineWidth(width: 3) return view }() var viewModel: NewRollEntryOptionViewModel? { didSet { updateFromViewModel() } } override func layoutSubviews() { super.layoutSubviews() // Cell background contentView.backgroundColor = .white // Square contentView.addSubview(square) let contentWidth = contentView.bounds.width let contentHeight = contentView.bounds.height if contentHeight > contentWidth { let side = contentWidth let x: CGFloat = 0.0 let y = (contentHeight - side) / 2 square.frame = CGRect(x: x, y: y, width: side, height: side) } else { let side = contentHeight let x = (contentWidth - side) / 2 let y: CGFloat = 0.0 square.frame = CGRect(x: x, y: y, width: side, height: side) } // Label contentView.addSubview(label) label.frame = contentView.bounds // Checkmark contentView.addSubview(checkmark) checkmark.frame = CGRect(x: square.frame.minX + 20, y: square.frame.minY + 20, width: square.frame.width - 40, height: square.frame.height - 40) } func showSuccess() { self.checkmark.alpha = 1 self.checkmark.start { UIView.animate(withDuration: self.checkmarkDuration * 2) { self.checkmark.alpha = 0 } } } private func updateFromViewModel() { label.text = viewModel?.text } }
[ -1 ]
8611eda722cecbb671db80831d1fbd7eb356f4e9
1d3d175f79efec3625a3470b497dd4cb7e4fd4c2
/CameraApp/ViewController.swift
0ad9806fd44f9fb18505e0668a42a7c29826b26f
[]
no_license
Beyfong/AVFoundationCamera
a712a22763732a2e17556243ada3fc84246cd1c1
cb78f4b6921e0b67b9eb2cf82c47a3cafb914f7c
refs/heads/main
2023-02-20T13:11:22.688937
2021-01-21T10:29:42
2021-01-21T10:29:42
331,592,509
0
0
null
null
null
null
UTF-8
Swift
false
false
279
swift
// // ViewController.swift // CameraApp // // Created by ablai erzhanov on 1/19/21. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
[ 254464, 275714, 253058, 385282, 327555, 356742, 398203, 395149, 384145, 391441, 409238, 375576, 384153, 399130, 258589, 254494, 155551, 436128, 155424, 187937, 345378, 254497, 254495, 397091, 351400, 384300, 356652, 380334, 370352, 372017, 381618, 366385, 319284, 383797, 396725, 402616, 397114, 378171, 111292, 384830, 384447, 266816, 384325, 360903, 359368, 437582, 330960, 199251, 146645, 257750, 399958, 370521, 402524, 362845, 412766, 165087, 425824, 383969, 399201, 418146, 332513, 257638, 384103, 257641, 257642, 350187, 374122, 352876, 56046, 376687, 349297, 210674, 360440, 320506, 361595, 340988 ]
d38619a76f0c3806c29afc4772dc88ac7c03f6d5
6fb0c0afcf6bcaecce8d9ef1ef29b6f1319c08d3
/Prex.playground/Contents.swift
e540aa2a4f4aea0111e1504680312f778d402d10
[ "MIT" ]
permissive
marty-suzuki/Prex
de5209544ddca4f086671fbe1cb4b4e4abf28f3c
d6c198fc96e0155f658be55a1798aaa287acdc1b
refs/heads/master
2020-03-30T04:54:39.710831
2020-01-22T19:06:15
2020-01-22T19:06:15
150,768,542
101
12
MIT
2018-10-09T04:34:23
2018-09-28T16:41:04
Swift
UTF-8
Swift
false
false
3,630
swift
import PlaygroundSupport import Prex import UIKit // MARK: - ViewController final class CounterViewController: UIViewController { private let counterLabel: UILabel = { let label = UILabel() label.numberOfLines = 1 label.font = .boldSystemFont(ofSize: 30) label.translatesAutoresizingMaskIntoConstraints = false return label }() private(set) lazy var incrementButton: UIButton = { let button = UIButton(type: .system) button.setTitle("Increment +", for: .normal) button.titleLabel?.font = .boldSystemFont(ofSize: 20) button.addTarget(self, action: #selector(self.incrementButtonTap(_:)), for: .touchUpInside) button.translatesAutoresizingMaskIntoConstraints = false return button }() private(set) lazy var decrementButton: UIButton = { let button = UIButton(type: .system) button.setTitle("Decrement -", for: .normal) button.titleLabel?.font = .boldSystemFont(ofSize: 20) button.addTarget(self, action: #selector(self.decrementButtonTap(_:)), for: .touchUpInside) button.translatesAutoresizingMaskIntoConstraints = false return button }() private lazy var presenter = Presenter(view: self, state: CounterState(), mutation: CounterMutation()) override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .white presenter.reflect() // setup stackView do { let rootStackView = UIStackView(arrangedSubviews: [counterLabel]) rootStackView.translatesAutoresizingMaskIntoConstraints = false rootStackView.alignment = .center rootStackView.axis = .vertical rootStackView.spacing = 10 let buttonStackView = UIStackView(arrangedSubviews: [incrementButton, decrementButton]) buttonStackView.alignment = .center buttonStackView.axis = .vertical buttonStackView.translatesAutoresizingMaskIntoConstraints = false rootStackView.addArrangedSubview(buttonStackView) view.addSubview(rootStackView) view.centerXAnchor.constraint(equalTo: rootStackView.centerXAnchor).isActive = true view.centerYAnchor.constraint(equalTo: rootStackView.centerYAnchor).isActive = true } } @objc private func incrementButtonTap(_ button: UIButton) { presenter.increment() } @objc private func decrementButtonTap(_ button: UIButton) { presenter.decrement() } } // MARK: - Prex implementation extension CounterViewController: View { func reflect(change: StateChange<CounterState>) { if let count = change.count?.value { counterLabel.text = "\(count)" } } } enum CounterAction: Action { case increment case decrement } struct CounterState: State { var count: Int = 0 } struct CounterMutation: Mutation { func mutate(action: CounterAction, state: inout CounterState) { switch action { case .increment: state.count += 1 case .decrement: state.count -= 1 } } } extension Presenter where Action == CounterAction, State == CounterState { func increment() { dispatch(.increment) } func decrement() { if state.count > 0 { dispatch(.decrement) } } } // MARK: - Playground PlaygroundPage.current.needsIndefiniteExecution = true PlaygroundPage.current.liveView = CounterViewController()
[ -1 ]
374788752993200d128b2dbd5692ce3dd2c0e39b
6f197f431ffa5fa03ae2337a6f85bccbf48d277c
/Stravify/Views/LandingViewController.swift
23ce47f01b401b4df3e29e46f0ab6bf7009ab6f2
[]
no_license
robertwaltham/strava-stats-viewer
2f4e3b40501833dc90e7f01e5b912710ca027235
5e6591f20dd89eaf6031403c0ef50d228473b519
refs/heads/master
2021-05-04T01:38:57.809880
2018-03-19T20:39:44
2018-03-19T20:39:44
120,361,497
1
1
null
null
null
null
UTF-8
Swift
false
false
4,349
swift
// // ViewController.swift // Stravify // // Created by Robert Waltham on 2018-01-17. // Copyright © 2018 Robert Waltham. All rights reserved. // import UIKit import ReactiveSwift /** Landing view for the app. Displays a carousel of motivational images. */ class LandingViewController: UIViewController { @IBOutlet weak var background: UIImageView? let scheduler: QueueScheduler var imageTransition: Disposable? = nil // Images contained in "Assets" asset bundle static let bgimages = ["bg_1", "bg_2", "bg_3"] static let transitionTime: Double = 5 var imageIndex = 0 override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { scheduler = QueueScheduler(qos: .default, name: "com.blockoftext.queue", targeting: DispatchQueue.main) super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } required init?(coder: NSCoder) { scheduler = QueueScheduler(qos: .default, name: "com.blockoftext.queue", targeting: DispatchQueue.main) super.init(coder: coder) } override func viewDidLoad() { super.viewDidLoad() title = "Welcome" // Observer for login notification NotificationCenter.default.addObserver(forName: .didLogIn, object: nil, queue: OperationQueue.main) { note in guard let user = note.object as? StravaToken else { print("invalid object sent as user notification") return } // register active user // TODO: refactor authentication into an interactor ServiceLocator.shared.registerService(service: user) try! FSInteractor.save(user, id: "user") // Display Tab View DispatchQueue.main.async { [unowned self] in self.performSegue(withIdentifier: "LandingToNav", sender: self) } } } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // Start carousel image transition let startTime = Date().addingTimeInterval(LandingViewController.transitionTime) let interval = DispatchTimeInterval.seconds(Int(LandingViewController.transitionTime)) imageTransition = scheduler.schedule(after: startTime, interval: interval){ [unowned self] in guard let background = self.background else { fatalError("wtf background image view not found") } self.imageIndex = (self.imageIndex + 1) % LandingViewController.bgimages.count let newImage = UIImage(named: LandingViewController.bgimages[self.imageIndex]) UIView.transition(with: background, duration:0.5, options: .transitionCrossDissolve, animations: { background.image = newImage }, completion: nil) } } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) if let imageTransition = imageTransition { imageTransition.dispose() } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func unwindToLanding(segue: UIStoryboardSegue) { print("unwound") } @IBAction func loadSavedCredentials(sender: UIButton) { // This shouldn't happen - means user has already logged in if let user = ServiceLocator.shared.tryGetService() as StravaToken? { print("already logged in as: \(user.athlete_id)") performSegue(withIdentifier: "LandingToNav", sender: self) } else { do { let user = try FSInteractor.load(type: StravaToken.self, id: "user") ServiceLocator.shared.registerService(service: user) print("logged in as: \(user.athlete_id)") performSegue(withIdentifier: "LandingToNav", sender: self) } catch { // TODO: present alert to user, and/or hide button when file doesn't exist print("no user found: \(error.localizedDescription)") } } } }
[ -1 ]
e829c60d42431138ea26cd4f43927872c9781da2
707445aa02c3ca31684ccf253c59cf1df6250249
/ExampleProject/ExampleProject/Cell Controllers/NibCellController.swift
6ca721c701bc7dbe5b6fa55f7beba3ac860571f2
[ "MIT" ]
permissive
TicketmasterMobileStudio/TableController
2d4769cc028e17beb035dd44f0091e2d3244babd
895325157ae9f3ad9ae6e16e6e122f41fec2e97f
refs/heads/master
2021-01-19T23:08:05.386486
2017-10-25T15:20:31
2017-10-25T15:20:31
64,072,967
0
0
null
2017-10-25T15:20:32
2016-07-24T15:47:06
Swift
UTF-8
Swift
false
false
501
swift
// // NibCellController.swift // ExampleProject // // Created by Duncan Lewis on 8/14/17. // Copyright © 2017 Duncan Lewis. All rights reserved. // import TableController class NibCellController: CellController { var title: String = "From Nib" override var cellType: TableReusableViewType { return .nib(nibName: "NibCell", bundle: Bundle.main, identifier: "NibCell") } override func configure(_ cell: UITableViewCell) { cell.textLabel?.text = title } }
[ -1 ]
dd610346d03bed2763d291d1b76696de0441559a
37f910c9e78b5c748981c35e1a7ddd40154b5a7e
/ImageMachine/Application/AppDelegate.swift
0a1ba13898d012441506b4cfeb627e67403fd55d
[]
no_license
ElangPutraS/ImageMachine
11f26bd5a52e823ef8e33dd1dc4d9cf74a5130c4
a53970be7eb5af02d9ff9a79a8c9e3e42adf0132
refs/heads/main
2023-06-30T00:00:07.293920
2021-08-04T19:36:23
2021-08-04T19:36:23
392,803,389
0
0
null
null
null
null
UTF-8
Swift
false
false
2,946
swift
// // AppDelegate.swift // ImageMachine // // Created by Elang Putra Sartika on 02/08/21. // import UIKit import CoreData import IQKeyboardManagerSwift @main class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { IQKeyboardManager.shared.enable = true let rootVC = UINavigationController(rootViewController: CRRoute.home.module!) self.window?.setRootViewController(rootVC, options: .init(direction: .fade, style: .easeInOut)) return true } // MARK: - Core Data stack lazy var persistentContainer: NSPersistentContainer = { /* The persistent container for the application. This implementation creates and returns a container, having loaded 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. */ let container = NSPersistentContainer(name: "ImageMachine") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { // Replace this implementation with code to handle the error appropriately. // fatalError() 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. /* Typical reasons for an error here include: * The parent directory does not exist, cannot be created, or disallows writing. * The persistent store is not accessible, due to permissions or data protection when the device is locked. * The device is out of space. * The store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }() // MARK: - Core Data Saving support func saveContext () { let context = persistentContainer.viewContext if context.hasChanges { do { try context.save() } catch { // Replace this implementation with code to handle the error appropriately. // fatalError() 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 fatalError("Unresolved error \(nserror), \(nserror.userInfo)") } } } }
[ 359435, 258159, 360464, 383186, 358836, 359413, 369463, 359421 ]
5c9a63bdfa42da7331d067a9c0e4a593e882f263
836e5f65d55f62ea23fb4d52f54b365d70efb680
/iOS/Tests/AutomatedTestsUITests/Steps/CucumberStepsDefinition.swift
d190419a27c2f32578e925cc722e5313d2ec6c9c
[ "Apache-2.0" ]
permissive
victorrabelozup/beagle
8e086fdc7069f75dc383a296e8580810097c8619
2b0da70109eda0b8e38e3dbc509ac2adcf620a4c
refs/heads/master
2023-01-02T03:50:43.682200
2020-10-23T21:49:52
2020-10-23T21:49:52
282,515,887
0
0
Apache-2.0
2020-07-30T03:45:47
2020-07-25T19:59:10
null
UTF-8
Swift
false
false
280
swift
// // CucumberStepDefinition.swift // AutomatedTestsUITests // // Created by Lucas Sousa Silva on 21/09/20. // Copyright © 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA. All rights reserved. // import Foundation protocol CucumberStepsDefinition { func loadSteps() }
[ -1 ]
e33558bd296ed2c9cd8c74eebe3d8462e9c328df
0e3a38682c526272f55f0a7f49ec0c94d9fdb409
/Example/JKSwiftExtension/Class/FoundationExtensionViewController/Controller/NSObjectExtensionViewController.swift
220d3467078699ea5cd3aae9efb2f2f801519d07
[ "Apache-2.0", "MIT" ]
permissive
raojunbo/JKSwiftExtension
3baa050a3212c4fba424f9462b17fa27dcd71927
7174312aba075512118624de008814c9a332bce9
refs/heads/master
2023-08-13T16:08:23.882065
2021-10-11T06:20:35
2021-10-11T06:20:35
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,192
swift
// // NSObjectExtensionViewController.swift // JKSwiftExtension_Example // // Created by IronMan on 2020/11/1. // Copyright © 2020 CocoaPods. All rights reserved. // import UIKit class NSObjectExtensionViewController: BaseViewController { override func viewDidLoad() { super.viewDidLoad() headDataArray = ["一、 NSObject 属性的扩展", "二、一些常用的方法"] dataArray = [["类名(对象方法)", "类名(类方法)"], ["利用运行时获取类里面的成员变量"]] } } // MARK:- 一、 NSObject 属性的扩展 extension NSObjectExtensionViewController { // MARK: 1.1、类名(对象方法) @objc func test11() { JKPrint("类名(对象方法)", "\(self.className)") } // MARK: 1.2、类名(类方法) @objc func test12() { JKPrint("类名(类方法)", "\(Self.className)") } } // MARK:- 二、一些常用的方法 extension NSObjectExtensionViewController { // MARK: 2.1、利用运行时获取类里面的成员变量 @objc func test21() { JKPrint("利用运行时获取类里面的成员变量", "\(UIView.printIvars())") } }
[ -1 ]
afac25d07b1dec5931ea0a75f14bbbcfc58891d9
0d52f600624005ae605b6401fc5def2bd62277db
/Survey/Lib/ColorUtil.swift
1465eb284a8f06a7bbf1bd0ed946483e71897511
[]
no_license
ammalesy/SurveyMobile
fac4bf18ab2d56562c363bc3461368fc310f0c09
6c6bb7d98e4adf82f35d42f2afd8e3776a97418b
refs/heads/master
2016-09-11T02:51:56.774424
2015-12-19T15:14:22
2015-12-19T15:14:22
42,533,468
0
0
null
null
null
null
UTF-8
Swift
false
false
1,718
swift
// // ColorUtil.swift // Survey // // Created by AmmalesPSC91 on 9/15/2558 BE. // Copyright (c) 2558 dev.com. All rights reserved. // import UIKit class ColorUtil: NSObject { class func whiteCigarette()->(UIColor!){ return UIColor(red: 240/255, green: 240/255, blue: 240/255, alpha: 1) } class func darkGray()->(UIColor!){ return UIColor(red: 97/255, green: 97/255, blue: 97/255, alpha: 1) } class func veryLightGray()->(UIColor!){ return UIColor(red: 243/255, green: 243/255, blue: 243/255, alpha: 1) } class func blueSky()->(UIColor!){ return UIColor(red: 82/255, green: 194/255, blue: 209/255, alpha: 1) } class func blueSkyLight()->(UIColor!){ return UIColor(red: 207/255, green: 244/255, blue: 249/255, alpha: 1) } class func blueSkyStronger()->(UIColor!){ return UIColor(red: 106/255, green: 202/255, blue: 214/255, alpha: 1) } class func blueSkyStrong()->(UIColor!){ return UIColor(red: 83/255, green: 140/255, blue: 150/255, alpha: 1) } class func blueSkyStrongest()->(UIColor!){ return UIColor(red: 39/255, green: 144/255, blue: 159/255, alpha: 1) } class func orange()->(UIColor!){ return UIColor(red: 241/255, green: 157/255, blue: 9/255, alpha: 1) } class func orangeLight()->(UIColor!){ return UIColor(red: 255/255, green: 145/255, blue: 98/255, alpha: 1) } class func orangeStrong()->(UIColor!){ return UIColor(red: 255/255, green: 151/255, blue: 86/255, alpha: 1) } class func orangeStronger()->(UIColor!){ return UIColor(red: 235/255, green: 111/255, blue: 59/255, alpha: 1) } }
[ -1 ]
f81031a133a2de73c81b4c833d480ba693b76a63
fe9a0a600939b2961532ae77dbafcc1f295db01b
/swift/1/SwiftDemo/RxSwiftDemo/vc/PersonalCenterViewController.swift
2f984972c4c8674d92722b87ba6caba4f41f2153
[]
no_license
lijia2010114105/LearnDemo
12190c40651965724fab8674794b6eba45cfe8b8
8d42e8ecf8f08299978f390b762e8c1eec720a5b
refs/heads/master
2023-03-02T12:09:37.762621
2021-02-06T02:26:24
2021-02-06T02:26:24
325,183,067
0
0
null
null
null
null
UTF-8
Swift
false
false
391
swift
// // PersonalCenterViewController.swift // RxSwiftDemo // // Created by harsons on 2020/11/24. // Copyright © 2020 harsons. All rights reserved. // import UIKit class PersonalCenterViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }
[ -1 ]
5ba29baedb68121603af235928ed49559dc11054
af23b8a14038f525f8cce75fb8bdc1c3140cc44a
/supremie/Model/Mie.swift
fc8183548d2990bbb20e37c1f46e4d05b1c719d3
[]
no_license
jigar007/Noodle-Restaurant-iOS-app
e7c6342cdf263808c9cf6f77ae2a733065f1d1d1
12c99547a0ba74b4f268c37847570e1de078169b
refs/heads/master
2021-09-03T06:54:25.515749
2018-01-06T15:12:16
2018-01-06T15:12:16
110,482,548
0
0
null
null
null
null
UTF-8
Swift
false
false
2,592
swift
// // Mie.swift // // Created by Jigar Thakkar on 1/9/17. // Copyright © 2017 JigarThakkar. All rights reserved. import Foundation class Mie : NSObject, NSCoding{ var drinks : [Drink]! var mie : [Drink]! var toppings : [Topping]! /** * Instantiate the instance using the passed dictionary values to set the properties values */ init(fromDictionary dictionary: [String:Any]){ drinks = [Drink]() if let drinksArray = dictionary["drinks"] as? [[String:Any]]{ for dic in drinksArray{ let value = Drink(fromDictionary: dic) drinks.append(value) } } mie = [Drink]() if let mieArray = dictionary["mie"] as? [[String:Any]]{ for dic in mieArray{ let value = Drink(fromDictionary: dic) mie.append(value) } } toppings = [Topping]() if let toppingsArray = dictionary["toppings"] as? [[String:Any]]{ for dic in toppingsArray{ let value = Topping(fromDictionary: dic) toppings.append(value) } } } /** * Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property */ func toDictionary() -> [String:Any] { var dictionary = [String:Any]() if drinks != nil{ var dictionaryElements = [[String:Any]]() for drinksElement in drinks { dictionaryElements.append(drinksElement.toDictionary()) } dictionary["drinks"] = dictionaryElements } if mie != nil{ var dictionaryElements = [[String:Any]]() for mieElement in mie { dictionaryElements.append(mieElement.toDictionary()) } dictionary["mie"] = dictionaryElements } if toppings != nil{ var dictionaryElements = [[String:Any]]() for toppingsElement in toppings { dictionaryElements.append(toppingsElement.toDictionary()) } dictionary["toppings"] = dictionaryElements } return dictionary } /** * NSCoding required initializer. * Fills the data from the passed decoder */ @objc required init(coder aDecoder: NSCoder) { drinks = aDecoder.decodeObject(forKey :"drinks") as? [Drink] mie = aDecoder.decodeObject(forKey :"mie") as? [Drink] toppings = aDecoder.decodeObject(forKey :"toppings") as? [Topping] } /** * NSCoding required method. * Encodes mode properties into the decoder */ @objc func encode(with aCoder: NSCoder) { if drinks != nil{ aCoder.encode(drinks, forKey: "drinks") } if mie != nil{ aCoder.encode(mie, forKey: "mie") } if toppings != nil{ aCoder.encode(toppings, forKey: "toppings") } } }
[ -1 ]
223d8705892f0e39ae28f5ca70e7f2006d9fe627
8034ae7d3e7e780a4bbd6a91411d5caf23bd2075
/ReverseLinkedList.playground/Contents.swift
20562e21afde7bb0fabf4e06506035fd9e9463a2
[]
no_license
dennisvera/Algorithms
d01b68386c23c789629e4d4c3d7126e2a65dc2ff
e6c9cbe75659122086cd3decaeeaddadc7985da7
refs/heads/master
2021-01-11T14:50:14.302777
2020-08-08T22:45:19
2020-08-08T22:45:19
80,222,679
0
0
null
null
null
null
UTF-8
Swift
false
false
999
swift
import UIKit /// `Algorithm:` - Reverse Linked List // Linked list: 1 -> 2 -> 3 -> nil /// Define a data structure that supports the list above class Node { let value: Int var next: Node? init(value: Int, next: Node?) { self.value = value self.next = next } } let threeNode = Node(value: 3, next: nil) let twoNode = Node(value: 2, next: threeNode) let oneNode = Node(value: 1, next: twoNode) func printList(head: Node?) { var currentNode = head while currentNode != nil { print(currentNode?.value ?? -1) currentNode = currentNode?.next } } printList(head: oneNode) func reverseList(head: Node?) -> Node? { var currentNode = head var previousNode: Node? var nextNode: Node? while currentNode != nil { nextNode = currentNode?.next currentNode?.next = previousNode previousNode = currentNode currentNode = nextNode } return previousNode } let reversedlist = reverseList(head: oneNode) printList(head: reversedlist)
[ -1 ]
1a8fe602f26f41b803b3f331195eda3427927a5b
5a14c4ca9b18316546bb1067f22bcc5738601125
/MemeDemo/Controllers/MemeDetailsViewController.swift
4aa9dfbb0444d56ac7ee4f1ead460be30aa01e6a
[]
no_license
cohaya1/MemeDemo
6b9448c03a0663b460e56f19b2da7d29d1ce7cf8
afbd21c14ca4d51cb96fb55f7a23f59104b01909
refs/heads/master
2021-01-04T13:16:44.184592
2020-04-30T16:09:01
2020-04-30T16:09:01
240,567,307
0
0
null
null
null
null
UTF-8
Swift
false
false
969
swift
// // MemeDetailsViewController.swift // MemeDemo // // Created by Makaveli Ohaya on 4/22/20. // Copyright © 2020 Ohaya. All rights reserved. // import UIKit class MemeDetailsViewController: UIViewController { // var meme: Meme! = nil var meme:Meme? @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var cancelButton: UIBarButtonItem! override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // added per instructor imageView.image = meme?.memedImage if let newImage = meme?.memedImage { imageView.image = newImage } } @IBAction func cancelAction(sender: UIBarButtonItem) { dismiss(animated: true, completion: nil) // removed self } func prefersStatusBarHidden() -> Bool { return true // status bar should be hidden } }
[ -1 ]
5d62c72cbfd0a1a838d00437a120a3bf3de56220
bdbab4ca5dc0f537deb23ed1e09e0b8d3376e367
/codeData-Demo/model/Person.swift
fe4be9a307dac9145749a9058c5722db84f96781
[]
no_license
soksovanraksmey/coreData-demo
63f0b5210eaeb484dd665f1acdb6f659cd282dc9
6ad8dfc08203869ea221fce66ff804d2be8cc52e
refs/heads/main
2023-08-13T17:19:50.187274
2021-09-20T07:37:58
2021-09-20T07:37:58
408,349,944
0
0
null
null
null
null
UTF-8
Swift
false
false
189
swift
// // Person+CoreDataClass.swift // codeData-Demo // // Created by zed on 9/17/21. // // import Foundation import CoreData @objc(Person) public class Person: NSManagedObject { }
[ -1 ]
02aadf3cb872917a84fc66cd269c891efb76b863
05b57098abbdccb00da64d830d39b8674ceaf360
/MarkupEditor/Icons.swift
60a08d307235e4aa6df21bd83b0fa8fb70d90f37
[ "MIT" ]
permissive
wisepmlin/MarkupEditor
bdb87a8e585492bfa15bc00e34f88cd1c2bcb10f
a65804831964ba03db68fea421c99e99cf28c319
refs/heads/main
2023-09-06T02:55:19.062523
2021-11-03T21:39:29
2021-11-03T21:39:29
null
0
0
null
null
null
null
UTF-8
Swift
false
false
9,724
swift
// // Icons.swift // MarkupEditor // // Created by Steven Harris on 5/17/21. // Copyright © 2021 Steven Harris. All rights reserved. // import SwiftUI //MARK:- Table Icons struct TableCell: View { @State var width: CGFloat @State var height: CGFloat @State var selected: Bool = false @State var deleted: Bool = false @State var borderEdges: [Edge] = [] var body: some View { ZStack { Rectangle() .frame(width: width, height: height) .foregroundColor(selected ? Color.accentColor.opacity(0.2) : Color(UIColor.systemBackground)) ForEach(borderEdges, id: \.self) { edge in switch edge { case .top: Path { path in path.move(to: CGPoint(x: 0, y: 0)) path.addLine(to: CGPoint(x: width, y: 0)) } .stroke(Color.accentColor) case .bottom: Path { path in path.move(to: CGPoint(x: 0, y: height)) path.addLine(to: CGPoint(x: width, y: height)) } .stroke(Color.accentColor) case .leading: Path { path in path.move(to: CGPoint(x: 0, y: 0)) path.addLine(to: CGPoint(x: 0, y: height)) } .stroke(Color.accentColor) case .trailing: Path { path in path.move(to: CGPoint(x: width, y: 0)) path.addLine(to: CGPoint(x: width, y: height)) } .stroke(Color.accentColor) } } if deleted { Image(systemName: "xmark") .foregroundColor(Color.red) .font(Font.system(size: 6).weight(.bold)) .zIndex(1) } } } } struct TableRow: View { @State var cols: Int @State var height: CGFloat @State var selected: Bool = false @State var selectCol: Int? = nil @State var deleted: Bool = false @State var deleteCols: [Int]? = nil @State var isHeader: Bool = false var body: some View { GeometryReader() { geometry in HStack(spacing: 0) { ForEach(0..<cols, id: \.self) { col in let select = selected ? true : col == selectCol let delete = deleted ? true : deleteCols?.contains(col) ?? false let trailingOnly = isHeader && col == cols - 1 let none = isHeader && cols > 2 && col > 0 && col < cols - 1 let both = !isHeader && col == cols - 1 // Each row draws the vertical lines of its cells; the creator of the row draws the horizontal ones // Each cell always draws its leading edge unless: // 1. It is not in the header and it's the last column, in which case it draws both leading and trailing // 2. It is in the header and it is in > the first column. In this case: // 2.1 If it is in between the first and last columns, it draws neither leading nor trailing edges // 2.2 If it is the last column, it draws the trailing edge // In any event, in case it's not obvious, we need a TableCell. if trailingOnly { TableCell(width: geometry.size.width / CGFloat(cols), height: height, selected: select, deleted: delete, borderEdges: [.trailing]) } else if both { TableCell(width: geometry.size.width / CGFloat(cols), height: height, selected: select, deleted: delete, borderEdges: [.leading, .trailing]) } else if none { TableCell(width: geometry.size.width / CGFloat(cols), height: height, selected: select, deleted: delete) } else { TableCell(width: geometry.size.width / CGFloat(cols), height: height, selected: select, deleted: delete, borderEdges: [.leading]) } } } } } } struct TableIcon: View { @State var rows: Int @State var cols: Int @State var inset: CGFloat = 3 @State var selectRow: Int? = nil @State var selectCol: Int? = nil @State var withHeader: Bool = false @State var deleteRows: [Int]? = nil @State var deleteCols: [Int]? = nil var body: some View { GeometryReader() { geometry in let rowHeight = geometry.size.height / CGFloat(rows) let rowWidth = geometry.size.width VStack(spacing: 0) { ForEach(0..<rows, id: \.self) { row in ZStack(alignment: .top) { TableRow( cols: cols, height: rowHeight, selected: row == selectRow, selectCol: selectCol, deleted: deleteRows?.contains(row) ?? false, deleteCols: deleteCols, isHeader: withHeader ? (row == 0) : false ) if row == 0 { Path { path in path.move(to: CGPoint(x: 0, y: 0)) path.addLine(to: CGPoint(x: rowWidth, y: 0)) } .stroke(Color.accentColor) .zIndex(0.5) } Path { path in path.move(to: CGPoint(x: 0, y: 0)) path.addLine(to: CGPoint(x: rowWidth, y: 0)) } .offset(CGSize(width: 0, height: rowHeight)) .stroke(Color.accentColor) .zIndex(0.5) } } } } .padding([.all], inset) } } struct AddRow: View { @State var direction: TableDirection var body: some View { VStack(spacing: -6) { if direction == .after { ZStack(alignment: .bottom) { TableIcon(rows: 3, cols: 3, selectRow: 2) Image(systemName: "arrow.down") .offset(CGSize(width: 0, height: -4)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) } } else { ZStack(alignment: .top) { Image(systemName: "arrow.up") .offset(CGSize(width: 0, height: 4)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) TableIcon(rows: 3, cols: 3, selectRow: 0) } } } } } struct AddCol: View { @State var direction: TableDirection var body: some View { HStack(spacing: -6) { if direction == .after { ZStack(alignment: .trailing) { TableIcon(rows: 3, cols: 3, selectCol: 2) Image(systemName: "arrow.right") .offset(CGSize(width: -4, height: 0)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) } } else { ZStack(alignment: .leading) { Image(systemName: "arrow.left") .offset(CGSize(width: 4, height: 0)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) TableIcon(rows: 3, cols: 3, selectCol: 0) } } } } } struct AddHeader: View { @State var rows: Int @State var cols: Int @State var inset: CGFloat = 2 var body: some View { ZStack(alignment: .top) { TableIcon(rows: 3, cols: 3, selectRow: 0, withHeader: true) Image(systemName: "arrow.up") .offset(CGSize(width: 0, height: 4)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) } } } struct DeleteRow: View { var body: some View { TableIcon(rows: 3, cols: 3, selectRow: 1, deleteRows: [1]) } } struct DeleteCol: View { var body: some View { TableIcon(rows: 3, cols: 3, selectCol: 1, deleteCols: [1]) } } struct DeleteTable: View { var body: some View { TableIcon(rows: 3, cols: 3, deleteRows: [0, 1, 2]) } } struct CreateTable: View { var body: some View { ZStack(alignment: .bottomTrailing) { TableIcon(rows: 3, cols: 3, selectRow: 2, selectCol: 2) Image(systemName: "arrow.down.forward") .offset(CGSize(width: -4, height: -4)) .foregroundColor(Color.red) .font(Font.system(size: 12).weight(.bold)) .zIndex(1) } } } struct TableIcon_Previews: PreviewProvider { static var previews: some View { VStack { TableIcon(rows: 3, cols: 4) } .frame(width: 30, height: 30) } }
[ -1 ]
ce45fc025b5d6b11357ece93d35341775958400f
4c8b941c927729e936d5766668b8f4810dcc5ae0
/DestroyTheWorld/AppDelegate.swift
8d19389b85f9b976ccb46e29fb410a674c770945
[]
no_license
cruzsolano/destroytheworld
260c9dcc2a44999737d3fd4633f7184c70180221
d2186fb8700d31a2ccfc2b1ee8f25f3a2e6aa46b
refs/heads/master
2021-01-15T11:03:35.039782
2017-08-07T20:24:43
2017-08-07T20:24:43
99,608,800
0
0
null
null
null
null
UTF-8
Swift
false
false
4,604
swift
// // AppDelegate.swift // DestroyTheWorld // // Created by Cruz Solano on 8/7/17. // Copyright © 2017 Cruz Solano. All rights reserved. // import UIKit import CoreData @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:. // Saves changes in the application's managed object context before the application terminates. self.saveContext() } // MARK: - Core Data stack lazy var persistentContainer: NSPersistentContainer = { /* The persistent container for the application. This implementation creates and returns a container, having loaded 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. */ let container = NSPersistentContainer(name: "DestroyTheWorld") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { // Replace this implementation with code to handle the error appropriately. // fatalError() 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. /* Typical reasons for an error here include: * The parent directory does not exist, cannot be created, or disallows writing. * The persistent store is not accessible, due to permissions or data protection when the device is locked. * The device is out of space. * The store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }() // MARK: - Core Data Saving support func saveContext () { let context = persistentContainer.viewContext if context.hasChanges { do { try context.save() } catch { // Replace this implementation with code to handle the error appropriately. // fatalError() 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 fatalError("Unresolved error \(nserror), \(nserror.userInfo)") } } } }
[ 294405, 243717, 163848, 313353, 320008, 320014, 313360, 288275, 322580, 289300, 290326, 329747, 139803, 103964, 322080, 306721, 229408, 296483, 322083, 229411, 306726, 309287, 308266, 292907, 217132, 322092, 40495, 316465, 288306, 322102, 324663, 164408, 308281, 322109, 286783, 315457, 313409, 349765, 320582, 309832, 288329, 242250, 215117, 196177, 241746, 344661, 231000, 212571, 300124, 287323, 309342, 325220, 306790, 290409, 310378, 296043, 311914, 322666, 334446, 307310, 292466, 314995, 307315, 314487, 291450, 314491, 288383, 318599, 312970, 239252, 311444, 294038, 311449, 323739, 300194, 298662, 233638, 233644, 313005, 286896, 295600, 300208, 286389, 294070, 125111, 234677, 309439, 235200, 284352, 296641, 242371, 302787, 284360, 321228, 319181, 298709, 284374, 189654, 182486, 320730, 241371, 311516, 357083, 179420, 322272, 317665, 298210, 165091, 311525, 288489, 290025, 229098, 307436, 304365, 323310, 125167, 313073, 286455, 306424, 322299, 319228, 302332, 319231, 184576, 309505, 241410, 311043, 366339, 309509, 318728, 254217, 125194, 234763, 321806, 125201, 296218, 313116, 237858, 326434, 295716, 313125, 300836, 289577, 125226, 133421, 317233, 241971, 316726, 318264, 201530, 313660, 159549, 287038, 292159, 218943, 182079, 288578, 301893, 234828, 292172, 300882, 321364, 243032, 201051, 230748, 258397, 294238, 298844, 291169, 199020, 293741, 266606, 319342, 292212, 313205, 244598, 316788, 124796, 196988, 305022, 317821, 243072, 314241, 303999, 242050, 313215, 325509, 293767, 306576, 322448, 308114, 319900, 298910, 313250, 308132, 316327, 306605, 316334, 324015, 324017, 200625, 300979, 316339, 322998, 296888, 316345, 67000, 300987, 319932, 310718, 292288, 317888, 323520, 312772, 214980, 298950, 306632, 310733, 289744, 310740, 235994, 286174, 315359, 240098, 323555, 236008, 319465, 248299, 311789, 326640, 188913, 203761, 320498, 314357, 288246, 309243, 300540, 310782 ]
b5783b42708151ccf27f1ac83bacb4308f362f3c
579cdd0a6c611492ec037568465a1a51cf0ce69d
/Guardian/ViewController/bar/cell/NotificacaoTableViewCell.swift
99c144a9730cf85c7bba54e0d5195140fc99e077
[]
no_license
brennodev/GuardianCar-ios
004b6d111e9d2ab03cdeedda0a18165df2ef8be2
6cc165112b482747b9ddc7317604561567397e50
refs/heads/master
2021-09-03T02:19:03.888757
2018-01-04T21:14:22
2018-01-04T21:14:22
113,636,761
0
0
null
null
null
null
UTF-8
Swift
false
false
567
swift
// // NotificacaoTableViewCell.swift // Guardian // // Created by Brenno Hayden on 11/12/17. // Copyright © 2017 Brenno Hayden. All rights reserved. // import UIKit class NotificacaoTableViewCell: UITableViewCell { @IBOutlet weak var cellView: UIView! @IBOutlet weak var imgInfo: UIImageView! @IBOutlet weak var lbTitulo: UILabel! override func awakeFromNib() { super.awakeFromNib() } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) } }
[ 348933, 163946, 253197, 336657, 348952, 330425 ]
39ee2bcf18b7aa1d992d3ca433099030122ffa23
85c5689e8fdef15a433ea4d3a8e7bb31da858d59
/MediumArticleSwiftReusableCode/Components/Button/GolfAIButton.swift
78b92ae42e12f1de532372b357d1b233dfc5663b
[]
no_license
ThomasStuart/CodeReusabilitySwiftUI
1d963b15caa60da9c7e87a3e22d8009c876fac05
9ab6a16b57b71abc81fb852b5621bf07fce8598a
refs/heads/master
2022-12-10T23:59:10.275597
2020-09-04T09:15:15
2020-09-04T09:15:15
292,801,547
0
0
null
null
null
null
UTF-8
Swift
false
false
1,697
swift
// // GolfAIButton.swift // GolfAI // // Created by Thomas James Stuart on 9/3/20. // Copyright © 2020 Broderick Higby. All rights reserved. // import SwiftUI struct GolfAIButton: View { var action: () -> Void var textObject: iText var padding:CGFloat = 10.0 var cornerRadius:CGFloat = 8.0 var borderColor: Color = Color.golfAiMainTheme var borderWidth: CGFloat = 1.0 var borderLength: CGFloat = 255.0 var borderHeight: CGFloat = 40 var isFilled: Bool = false var body: some View { Button (action: self.action ) { textObject .padding(self.padding) .background( RoundedRectangle(cornerRadius: self.cornerRadius) .stroke(self.borderColor, lineWidth: self.borderWidth) .frame(width:self.borderLength, height: self.borderHeight) .overlay( RoundedRectangle(cornerRadius: self.cornerRadius) .frame(width:self.borderLength, height: self.borderHeight) ) .foregroundColor( self.isFilled ? Color.golfAiMainTheme : Color.clear ) ) } } } struct GolfAIButton_Previews: PreviewProvider { static var previews: some View { Group { GolfAIButton(action: { print("hello") } , textObject: iText(text:"Swing Again", color: Color.golfAiMainTheme) ) GolfAIButton(action: { print("world") } , textObject: iText(text:"Select Frame", color: Color.white), isFilled: true) } } }
[ -1 ]
fe9de9433cbbaa9fe0049485f4fe0d151cb27f7e
780c7af4cecc3992d8b870ce1d3de1e280f4458c
/QRCodeScanner/View/ContentView.swift
dc0a28b3dfc99759a3694a9b3d6ecd909d6e56c8
[]
no_license
akarayelli/QRCodeScanner
c2a878fb966fc86fe2487af0f4a4faaab1d7b692
4d1ae0a75767a4e0b02119f9c62da3b612384bd5
refs/heads/master
2023-01-27T18:01:26.277583
2020-12-13T10:39:11
2020-12-13T10:39:11
292,840,725
2
1
null
null
null
null
UTF-8
Swift
false
false
1,181
swift
// ContentView.swift // QRCodeScanner // // User: Alican.Karayelli // Date: 31.08.2020 // Time: 15:09 import SwiftUI struct ContentView: View { @State private var defaultTab = 2 init() {} var body: some View { TabView(selection:$defaultTab){ HistoryView() .tabItem{ Image("history") Text("tab.title.recent") }.tag(1) ScannerView() .tabItem{ Image("scan") Text("tab.title.scan") }.tag(2) GenerateView() .tabItem{ Image("generate_qr") Text("tab.title.generate") }.tag(3) SettingsView() .tabItem{ Image("settings") Text("tab.title.settings") }.tag(4) } .accentColor(Constants.Colors.Main) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
e8e72f8baf25018ab08a2a6286c02b98bfe57a87
97225a8bf716c2523ed1c0be986e77f15fe2c1b7
/Brastlewark/Brastlewark/Modules/DashInhabitantCollectionViewCell.swift
0c745c62ce7e991a8dd739e87c99e54cae2ead54
[]
no_license
Zempoalteca/brastlewark
aa6b8ef4d8be48ce131331a1a845b499b18e1dd8
f00d3d538b50db3cb429ede425ec25333a4777b4
refs/heads/master
2022-11-26T09:47:43.384862
2020-07-20T07:05:01
2020-07-20T07:05:01
280,730,861
0
0
null
null
null
null
UTF-8
Swift
false
false
1,138
swift
// // DashInhabitantCollectionViewCell.swift // Brastlewark // // Created by Gabriel Z on 18/07/20. // Copyright © 2020 Zempoalteca. All rights reserved. // import UIKit class DashInhabitantCollectionViewCell: UICollectionViewCell { // MARK: - Identifier static let identifier: String = "DashInhabitantCollectionViewCell" // MARK: - IBOutlets @IBOutlet weak var imgThumbnail: UIImageView! @IBOutlet weak var container: UIView! @IBOutlet weak var lblName: UILabel! @IBOutlet weak var lblMoreInfo: UILabel! // MARK: - Functions func configure() { container.layer.cornerRadius = 5 } func setInfo(for inhabitant: Inhabitant) { lblName.text = inhabitant.name lblMoreInfo.text = "dshbrd_lbl_age".localized + String(inhabitant.ageInhabitant) if let thumbnail = inhabitant.image { imgThumbnail.image = UIImage(data: thumbnail) } else { imgThumbnail.image = nil } } func setThumbnail(data: Data?) { if let dataInfo = data { imgThumbnail.image = UIImage(data: dataInfo) } } }
[ -1 ]
fd3e32fd4d3d1091bcca4d58b95fbc2a4fa78a8f
eebb19002adcf7a266ad0516db620336942a83ca
/Unit1/Optionals.playground/Contents.swift
97907a2e27a3f1716928423fc75296c6d224f1b4
[]
no_license
SaiKhal/C4QAccessCode
d2ec0f5e88dbef80e0cd9b02cf13ccb2adfdabc3
e1dd1327e241181f92a9c4d32517a3dec409a4b3
refs/heads/master
2021-04-27T09:09:10.837834
2018-02-22T17:07:57
2018-02-22T17:07:57
122,508,232
0
0
null
null
null
null
UTF-8
Swift
false
false
1,939
swift
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" let myFavoriteSong: String? myFavoriteSong = nil let parsedInt: Int? = Int("dog") let parsedInt2: Int? = Int("10") let myName: String? = "Tank Man" let sisterName: String? = nil let myAge: Int? = 74 //FORCE UNWRAPPING var unwrappedName = myName! print("My name is \(unwrappedName)") if sisterName != nil { print("Sister is \(sisterName!)") } else { print("No sister found.") } //OPTIONAL BINDING if let tempName = myName { print("My name is \(tempName)") } else { print("Should use optional binding whenever the optinal might be nil.") } if let _ = myName, let myAge = myAge, myAge > 50 { print("Will only print if my name is has a value and my age is greater than 50.") } var randomArray = [4,3,5] while let last = randomArray.popLast() { print(last) } //GUARD LET //GUARD STATEMENT CAN BE USED INSIDE OF A LOOP TO ONLY PROCEED IF THE CONDITION CHECKED IS TRUE //GUARD MEANS - MAKE SURE THIS IS TRUE BEFORE CONTINUING LOOP. var tempRecordings: [Double?] = [78, nil, 85, 77, nil, 80] for temperature in tempRecordings { guard let temperature = temperature else { continue } print("We recorded a temperature of \(temperature)") } //ImplicitlyUnwrappedOptional var myDog: String! myDog = "Jazz" print(myDog) //NIL COALESCING var optionalPrice: Double? = 40.00 //optionalPrice = nil var mustHavePrice = optionalPrice ?? 5.00 optionalPrice != nil ? optionalPrice! : 5.00 print(mustHavePrice) //Exercises var bookEndorsement: String? = "Magic" bookEndorsement = nil if let _ = bookEndorsement { print("You had a book endorsement.") } else { print("You didnt have a book indorsement.") } var firstName: String? var lastName: String? if let _ = firstName { if let _ = lastName { print("You have both names.") } } else { print("No names though.") }
[ -1 ]
e30ba8f4105ec7a5a9988e97d2f446e8bb5d6dc1
5fe225362ac4325d2e5a9b9c1aa50fef56e08ef4
/astronomy-picture/ViewCode/Scenes/Login/VC/Screen/LoginScreen.swift
f020c844dcc5cbe814c1995b79a2260db1047ca2
[]
no_license
gsillis/astronomy-picture-of-the-day
727f3530c5983ac0d39d1d9d8611d531802bd6b6
8e389a09ae6c3bfc3cf53f81f26f51227ce896d1
refs/heads/main
2023-08-14T02:40:57.122366
2021-09-16T23:44:23
2021-09-16T23:44:23
404,518,279
1
0
null
2021-09-16T23:44:24
2021-09-08T22:56:35
Swift
UTF-8
Swift
false
false
7,566
swift
// // LoginScreen.swift // ViewCode // // Created by Gabriela Sillis on 23/08/21. // import UIKit protocol LoginScreenProtocol: AnyObject { func configTappedLoginButton() func configTappedRegisterButton() } class LoginScreen: UIView { private weak var delegate: LoginScreenProtocol? // MARK: - UIView lazy private var loginImageView: UIImageView = { let image = UIImageView() image.translatesAutoresizingMaskIntoConstraints = false image.image = UIImage(named: "login") image.contentMode = .scaleAspectFit return image }() lazy private var loginLabel: UILabel = { let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false label.text = "Astronomy Picture of the Day" label.font = UIFont.boldSystemFont(ofSize: 20) label.textColor = .customRed label.numberOfLines = 0 return label }() lazy var emailTexfield: UITextField = { let text = UITextField() text.translatesAutoresizingMaskIntoConstraints = false text.backgroundColor = .customRed text.borderStyle = .roundedRect text.keyboardType = .emailAddress text.attributedPlaceholder = NSAttributedString(string: "email", attributes: [NSAttributedString.Key.foregroundColor: UIColor.white]) text.autocorrectionType = .no text.textColor = .white text.font = UIFont.systemFont(ofSize: 15) return text }() lazy var passwordTexfield: UITextField = { let password = UITextField() password.translatesAutoresizingMaskIntoConstraints = false password.backgroundColor = .customRed password.borderStyle = .roundedRect password.keyboardType = .default password.isSecureTextEntry = true password.attributedPlaceholder = NSAttributedString(string: "password", attributes: [NSAttributedString.Key.foregroundColor: UIColor.white]) password.autocorrectionType = .no password.textColor = .white password.font = UIFont.systemFont(ofSize: 15) // text.becomeFirstResponder() return password }() lazy var loginButton: UIButton = { let button = UIButton() button.translatesAutoresizingMaskIntoConstraints = false button.clipsToBounds = true button.layer.cornerRadius = 7.5 button.layer.borderColor = UIColor.darkGray.cgColor button.layer.borderWidth = 1 button.setTitle("login", for: .normal) button.setTitleColor(.darkGray, for: .normal) button.isEnabled = false button.titleLabel?.font = UIFont.systemFont(ofSize: 20) button.addTarget(self, action: #selector(self.tappedLoginButton), for: .touchUpInside) return button }() lazy var registerButton: UIButton = { let registerButton = UIButton() registerButton.translatesAutoresizingMaskIntoConstraints = false registerButton.setTitle("create account", for: .normal) registerButton.setTitleColor(.customRed, for: .normal) registerButton.titleLabel?.font = UIFont.systemFont(ofSize: 15) registerButton.addTarget(self, action: #selector(self.tappedRegisterButton), for: .touchUpInside) return registerButton }() // MARK: - Init override init(frame: CGRect) { super.init(frame: frame) self.configBackground() self.configSubview() self.configConstraints() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } // MARK: - Public func public func configLoginDelegate(delegate: LoginScreenProtocol) { self.delegate = delegate } public func validateTexfield() { guard let email = emailTexfield.text, let pass = passwordTexfield.text else { return } email.isEmpty && pass.isEmpty ? self.configButtonEnable(is: false): self.configButtonEnable(is: true) } public func texfieldDelegate(delegate: UITextFieldDelegate) { self.emailTexfield.delegate = delegate self.passwordTexfield.delegate = delegate } // MARK: - Private func private func configSubview() { self.addSubview(self.loginImageView) self.addSubview(self.loginLabel) self.addSubview(self.emailTexfield) self.addSubview(self.passwordTexfield) self.addSubview(self.loginButton) self.addSubview(self.registerButton) } private func configBackground() { self.backgroundColor = .black } @objc private func tappedLoginButton() { self.delegate?.configTappedLoginButton() } @objc private func tappedRegisterButton() { self.delegate?.configTappedRegisterButton() } private func configButtonEnable(is enable: Bool) { if enable { self.loginButton.isEnabled = true self.loginButton.setTitleColor(.customRed, for: .normal) self.loginButton.layer.borderColor = UIColor.customRed.cgColor } } // MARK: - Constraints private func configConstraints() { NSLayoutConstraint.activate([ // MARK: - loginImageView self.loginImageView.topAnchor.constraint(equalTo: self.safeAreaLayoutGuide.topAnchor, constant: 10), // trailing = lado direito da tela self.loginImageView.trailingAnchor.constraint(equalTo: self.safeAreaLayoutGuide.trailingAnchor, constant: -30), // leading = lado esquerdo da tela self.loginImageView.leadingAnchor.constraint(equalTo: self.safeAreaLayoutGuide.leadingAnchor, constant: 30), self.loginImageView.heightAnchor.constraint(equalToConstant: 250), // MARK: - loginLabel self.loginLabel.topAnchor.constraint(equalTo: self.loginImageView.bottomAnchor, constant: 30), self.loginLabel.centerXAnchor.constraint(equalTo: self.loginImageView.centerXAnchor), // MARK: - emailTexfield self.emailTexfield.topAnchor.constraint(equalTo: self.loginLabel.bottomAnchor, constant: 30), self.emailTexfield.leadingAnchor.constraint(equalTo: self.leadingAnchor, constant: 60), self.emailTexfield.trailingAnchor.constraint(equalTo: self.trailingAnchor, constant: -60), self.emailTexfield.heightAnchor.constraint(equalToConstant: 40), // MARK: - passwordTexfield self.passwordTexfield.topAnchor.constraint(equalTo: self.emailTexfield.bottomAnchor, constant: 30), self.passwordTexfield.leadingAnchor.constraint(equalTo: self.emailTexfield.leadingAnchor), self.passwordTexfield.trailingAnchor.constraint(equalTo: self.emailTexfield.trailingAnchor), self.passwordTexfield.heightAnchor.constraint(equalTo: self.emailTexfield.heightAnchor), // MARK: - loginLabel self.loginButton.topAnchor.constraint(equalTo: self.passwordTexfield.bottomAnchor, constant: 50), self.loginButton.leadingAnchor.constraint(equalTo: self.emailTexfield.leadingAnchor), self.loginButton.trailingAnchor.constraint(equalTo: self.emailTexfield.trailingAnchor), self.loginButton.heightAnchor.constraint(equalToConstant: 50), // MARK: - loginLabel self.registerButton.topAnchor.constraint(equalTo: self.loginButton.bottomAnchor, constant: 10), self.registerButton.centerXAnchor.constraint(equalTo: self.loginButton.centerXAnchor) ]) } }
[ -1 ]
212575940fc71360377d4a05bf8fc3b7018f6de3
3c7ed88a5887e6b96e09e61385b9b63d77d07c9d
/BucketList/BucketList/MapView.swift
68ee91b29f27a39c71ef5399e3c4b8cc33f38994
[]
no_license
zmfrew/100-days-of-swiftui
cb9c64a7eef0aa8155a8361b5103cf7a6080c06d
4f47f63dc448e3fd56a65b76311a5dc126701985
refs/heads/master
2020-09-30T05:59:29.428067
2020-01-02T16:52:32
2020-01-02T16:52:32
227,222,262
0
0
null
null
null
null
UTF-8
Swift
false
false
2,021
swift
import MapKit import SwiftUI struct MapView: UIViewRepresentable { @Binding var centerCoordinate: CLLocationCoordinate2D @Binding var selectedPlace: MKPointAnnotation? @Binding var showingPlaceDetails: Bool var annotations: [MKPointAnnotation] func makeUIView(context: Context) -> MKMapView { let mapView = MKMapView() mapView.delegate = context.coordinator return mapView } func updateUIView(_ view: MKMapView, context: Context) { if annotations.count != view.annotations.count { view.removeAnnotations(view.annotations) view.addAnnotations(annotations) } } func makeCoordinator() -> Coordinator { Coordinator(self) } func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? { let identifier = "Placemark" var annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier) if annotationView == nil { annotationView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: identifier) annotationView?.canShowCallout = true annotationView?.rightCalloutAccessoryView = UIButton(type: .detailDisclosure) } else { annotationView?.annotation = annotation } return annotationView } class Coordinator: NSObject, MKMapViewDelegate { var parent: MapView init(_ parent: MapView) { self.parent = parent } func mapViewDidChangeVisibleRegion(_ mapView: MKMapView) { parent.centerCoordinate = mapView.centerCoordinate } func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { guard let placemark = view.annotation as? MKPointAnnotation else { return } parent.selectedPlace = placemark parent.showingPlaceDetails = true } } }
[ -1 ]
9856be1efe90510ff999059c3d67a9d43c939e3b
8d191ffc59fa2160f393face733f53f7e659c539
/BeastListUITests/BeastListUITests.swift
807c89dbe01195430a7ecd4037d796b61f5864a8
[]
no_license
yulu9206/iOS_beast
ede80502d34d48329c01c43939b5df427570cb36
d8c5f525fb0ee507737c6c5514ff6ed18a7a816f
refs/heads/master
2021-01-01T18:57:10.247844
2017-07-26T21:47:19
2017-07-26T21:47:19
98,468,461
0
0
null
null
null
null
UTF-8
Swift
false
false
1,238
swift
// // BeastListUITests.swift // BeastListUITests // // Created by Lu Yu on 9/23/16. // Copyright © 2016 Lu Yu. All rights reserved. // import XCTest class BeastListUITests: 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, 243720, 282634, 313356, 155665, 305173, 241695, 237599, 223269, 229414, 315431, 292901, 354342, 102441, 325675, 278571, 313388, 124974, 282671, 354346, 229425, 102446, 243763, 321589, 241717, 229431, 180279, 215095, 319543, 213051, 288829, 325695, 286787, 288835, 307269, 237638, 313415, 239689, 233548, 315468, 311373, 196687, 278607, 311377, 354386, 315477, 223317, 323678, 315488, 321632, 45154, 280676, 313446, 215144, 217194, 194667, 233578, 278637, 307306, 319599, 288878, 278642, 284789, 131190, 249976, 288890, 215165, 131199, 194692, 278669, 235661, 241809, 323730, 278676, 311447, 153752, 327834, 284827, 329884, 278684, 299166, 278690, 233635, 311459, 215204, 284840, 299176, 184489, 284843, 278698, 278703, 184498, 278707, 125108, 180409, 280761, 278713, 223418, 227517, 295099, 299197, 280767, 258233, 299202, 139459, 309443, 176325, 131270, 227525, 301255, 280779, 233678, 282832, 321744, 227536, 301270, 301271, 229591, 280792, 356575, 311520, 325857, 280803, 182503, 338151, 307431, 319719, 295147, 317676, 286957, 125166, 125170, 313595, 125180, 184574, 125184, 309504, 125192, 125197, 125200, 194832, 227601, 325904, 125204, 319764, 278805, 334104, 315674, 282908, 311582, 125215, 282912, 299294, 233761, 278817, 211239, 282920, 125225, 317738, 325930, 311596, 321839, 315698, 98611, 125236, 282938, 307514, 278843, 168251, 287040, 319812, 311622, 227655, 280903, 323914, 201037, 282959, 229716, 289109, 168280, 379224, 323934, 391521, 239973, 381286, 285031, 313703, 416103, 280938, 242027, 242028, 321901, 278895, 354672, 287089, 354671, 227702, 199030, 315768, 315769, 291193, 223611, 248188, 291194, 313726, 211327, 291200, 311679, 240003, 158087, 313736, 227721, 242059, 311692, 285074, 227730, 240020, 190870, 315798, 190872, 291225, 285083, 293275, 317851, 242079, 283039, 285089, 293281, 289185, 305572, 156069, 227743, 301482, 289195, 377265, 338359, 299449, 311739, 319931, 293309, 278974, 311744, 317889, 291266, 278979, 278988, 289229, 281038, 326093, 278992, 283089, 373196, 281039, 283088, 279000, 242138, 176602, 285152, 369121, 160224, 279009, 195044, 291297, 279014, 188899, 319976, 279017, 242150, 311787, 281071, 319986, 236020, 279030, 311800, 279033, 317949, 279042, 283138, 233987, 287237, 377352, 342537, 309770, 322057, 279053, 283154, 303635, 303634, 279061, 279060, 182802, 279066, 188954, 322077, 291359, 227881, 293420, 289328, 236080, 283185, 279092, 23093, 234037, 244279, 244280, 338491, 301635, 309831, 55880, 322119, 377419, 281165, 303693, 301647, 281170, 326229, 309847, 189016, 287319, 115287, 111197, 295518, 287327, 242274, 244326, 279143, 279150, 281200, 287345, 287348, 301688, 189054, 287359, 291455, 297600, 303743, 301702, 164487, 279176, 311944, 334473, 316044, 311948, 184974, 311950, 316048, 311953, 336531, 287379, 295575, 227991, 289435, 303772, 221853, 205469, 285348, 314020, 279207, 295591, 248494, 318127, 293552, 285360, 285362, 299698, 287412, 166581, 295598, 154295, 342705, 287418, 314043, 303802, 66243, 291529, 287434, 225996, 363212, 287438, 242385, 279249, 303826, 279253, 158424, 230105, 299737, 322269, 342757, 295653, 289511, 230120, 234216, 330473, 285419, 330476, 289517, 279278, 170735, 312046, 215790, 125683, 230133, 199415, 234233, 242428, 279293, 205566, 322302, 289534, 299777, 291584, 228099, 285443, 291591, 295688, 346889, 285450, 322312, 312076, 285457, 295698, 291605, 166677, 283418, 285467, 221980, 281378, 234276, 283431, 262952, 262953, 279337, 318247, 318251, 262957, 203560, 164655, 328495, 293673, 289580, 301872, 242481, 234290, 230198, 303921, 285496, 285493, 301883, 201534, 281407, 289599, 222017, 295745, 293702, 318279, 283466, 281426, 279379, 295769, 234330, 201562, 281434, 322396, 230238, 275294, 301919, 279393, 230239, 293729, 281444, 349025, 279398, 303973, 177002, 308075, 242540, 242542, 310132, 295797, 201590, 207735, 228214, 295799, 177018, 269179, 279418, 308093, 314240, 291713, 158594, 330627, 240517, 287623, 228232, 416649, 279434, 236427, 320394, 299912, 234382, 189327, 308111, 308113, 316299, 293780, 310166, 289691, 209820, 240543, 283551, 310177, 289699, 189349, 289704, 279465, 293801, 304050, 177074, 289720, 289723, 189373, 213956, 281541, 345030, 19398, 213961, 326602, 279499, 56270, 191445, 183254, 304086, 234469, 340967, 314343, 304104, 324587, 183276, 289773, 203758, 234476, 320492, 320495, 287730, 240631, 320504, 214009, 312313, 312317, 234499, 293894, 320520, 322571, 230411, 320526, 330766, 234513, 238611, 140311, 293911, 238617, 197658, 316441, 330789, 248871, 132140, 113710, 189487, 281647, 322609, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 336962, 160834, 314437, 349254, 238663, 300109, 207954, 234578, 205911, 296023, 314458, 281698, 281699, 230500, 285795, 322664, 228457, 279659, 318571, 234606, 300145, 230514, 238706, 187508, 312435, 279666, 302202, 285819, 314493, 285823, 150656, 234626, 279686, 222344, 285833, 318602, 234635, 285834, 228492, 337037, 177297, 162962, 187539, 308375, 324761, 285850, 296091, 119965, 234655, 330912, 300192, 302239, 306339, 339106, 234662, 300200, 249003, 208044, 238764, 302251, 3243, 322733, 294069, 300215, 294075, 339131, 228541, 64699, 283841, 148674, 283846, 312519, 279752, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 279775, 304352, 298209, 304353, 310496, 279780, 228587, 279789, 290030, 302319, 251124, 234741, 316661, 283894, 279803, 208123, 292092, 228608, 320769, 234756, 322826, 242955, 312588, 177420, 318732, 126229, 245018, 320795, 318746, 320802, 304422, 130342, 130344, 298290, 312628, 345398, 300342, 159033, 222523, 286012, 181568, 279872, 279874, 300355, 300354, 193858, 294210, 372039, 304457, 345418, 230730, 296269, 234830, 224591, 222542, 238928, 296274, 314708, 318804, 283990, 314711, 357720, 300378, 300379, 316764, 294236, 314721, 292194, 230757, 281958, 314727, 134504, 306541, 314734, 284015, 234864, 296304, 316786, 312688, 314740, 230772, 314742, 327030, 327023, 314745, 290170, 310650, 224637, 306558, 290176, 306561, 179586, 243073, 314752, 294278, 314759, 296328, 296330, 298378, 368012, 318860, 314765, 304523, 279955, 306580, 314771, 224662, 234902, 282008, 314776, 318876, 282013, 290206, 148899, 314788, 314790, 282023, 333224, 298406, 241067, 279980, 314797, 279979, 286128, 173492, 279988, 286133, 284090, 310714, 228796, 302523, 54719, 415170, 292291, 302530, 280003, 228804, 306630, 300488, 310725, 306634, 339403, 370122, 310731, 280011, 310735, 302539, 312785, 327122, 300490, 280020, 222674, 234957, 280025, 310747, 239069, 144862, 286176, 320997, 310758, 187877, 280042, 280043, 191980, 300526, 337391, 282097, 308722, 296434, 306678, 40439, 191991, 288248, 286201, 300539, 288252, 312830, 290304, 228868, 292359, 218632, 323079, 230922, 302602, 323083, 294413, 329231, 304655, 323088, 282132, 230933, 302613, 282135, 316951, 374297, 302620, 313338, 282147, 222754, 306730, 312879, 230960, 288305, 239159, 290359, 323132, 157246, 288319, 288322, 280131, 349764, 310853, 124486, 282182, 288328, 286281, 292426, 194118, 224848, 224852, 290391, 196184, 239192, 306777, 128600, 235096, 212574, 99937, 204386, 323171, 345697, 300643, 282214, 300645, 312937, 204394, 224874, 243306, 312941, 206447, 310896, 294517, 314997, 290425, 288377, 325246, 333438, 235136, 280193, 282244, 239238, 288391, 323208, 282248, 286344, 179853, 286351, 188049, 239251, 229011, 279215, 280217, 323226, 179868, 229021, 302751, 282272, 198304, 245413, 282279, 298664, 212649, 298666, 317102, 286387, 300725, 337590, 286392, 300729, 302778, 306875, 280252, 280253, 282302, 296636, 286400, 323265, 321217, 280259, 333508, 282309, 323262, 296649, 239305, 306891, 280266, 212684, 302798, 9935, 241360, 282321, 333522, 286419, 241366, 280279, 282330, 18139, 280285, 294621, 282336, 325345, 321250, 294629, 153318, 333543, 12009, 282347, 288492, 282349, 34547, 67316, 323315, 284410, 200444, 288508, 282366, 286463, 319232, 288515, 280326, 282375, 323335, 284425, 300810, 282379, 216844, 280333, 284430, 116491, 300812, 161553, 124691, 284436, 278292, 278294, 282390, 116502, 118549, 325403, 321308, 321309, 282399, 241440, 282401, 325411, 186148, 186149, 315172, 241447, 333609, 294699, 286507, 284460, 280367, 300849, 282418, 280373, 282424, 280377, 321338, 319289, 282428, 280381, 345918, 241471, 413500, 280386, 325444, 280391, 153416, 325449, 315209, 159563, 280396, 315433, 307024, 337746, 317268, 325460, 307030, 18263, 237397, 241494, 188250, 284508, 300893, 237411, 284515, 276326, 282471, 296807, 292713, 282476, 292719, 296815, 313200, 313204, 317305, 124795, 317308, 339840, 182145, 315265, 280451, 325508, 333700, 243590, 282503, 67464, 243592, 305032, 315272, 315275, 327556, 188293, 184207, 311183, 325514, 124816, 282517, 294806, 214936, 337816, 294808, 329627, 239515, 124826, 214943, 298912, 319393, 294820, 219046, 333734, 294824, 298921, 284584, 313257, 292783, 126896, 200628, 300983, 343993, 288698, 98240, 294849, 214978, 280517, 280518, 214983, 282572, 282573, 153553, 24531, 231382, 329696, 323554, 292835, 190437, 292838, 294887, 317416, 313322, 278507, 329707, 311277, 296942, 298987, 124912, 327666, 278515, 325620, 239610 ]
9d8ed502819f35616efe5b99ffe8a65f71791213
e9dd75311318c2801c73e658b4d6d55e258e1d5b
/Diggy/View/ArticleCell.swift
441acad514c753d105e8bc9b9a9e6410cfd63871
[]
no_license
igorDrive/Diggy
63305429185c95522519589fa108782c07105662
69bd1e310370b9929b9fa9717456205683b41342
refs/heads/main
2023-02-02T01:21:23.646633
2020-12-07T08:32:57
2020-12-07T08:32:57
304,760,139
0
0
null
2023-07-06T16:26:45
2020-10-16T23:35:55
Swift
UTF-8
Swift
false
false
3,828
swift
// // JobCell.swift // Diggy // // Created by Igor Gorbachov on 20/10/20. // import UIKit import Kingfisher class ArticleCell: UITableViewCell { let bubbleBackgroundView = UIView() static let cellId = "JobCell" func configureCell(article: Article) { if let url = URL(string: getImage(media: article.media) ?? "") { newsPicture.kf.setImage(with: url) } titleLabel.text = article.title descriptionLabel.text = article.abstract } func getImage(media: [Article.Media]) -> String? { if let media = media.first { return media.metadata[2].url } else { return nil } } lazy var newsPicture: UIImageView = { let image = UIImageView() image.translatesAutoresizingMaskIntoConstraints = false image.contentMode = .scaleAspectFit return image }() lazy var titleLabel: UILabel = { let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false label.numberOfLines = 0 label.font = UIFont.systemFont(ofSize: 24, weight: .bold) return label }() lazy var descriptionLabel: UILabel = { let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false label.numberOfLines = 0 label.font = UIFont.systemFont(ofSize: 15, weight: .regular) return label }() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) setupView() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func setupView() { contentView.addSubview(bubbleBackgroundView) bubbleBackgroundView.translatesAutoresizingMaskIntoConstraints = false bubbleBackgroundView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 8).isActive = true bubbleBackgroundView.leftAnchor.constraint(equalTo: contentView.leftAnchor, constant: 0).isActive = true bubbleBackgroundView.rightAnchor.constraint(equalTo: contentView.rightAnchor, constant: 0).isActive = true bubbleBackgroundView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -8).isActive = true bubbleBackgroundView.addSubview(newsPicture) bubbleBackgroundView.addSubview(titleLabel) bubbleBackgroundView.addSubview(descriptionLabel) titleLabel.topAnchor.constraint(equalTo: bubbleBackgroundView.topAnchor, constant: 8).isActive = true titleLabel.leftAnchor.constraint(equalTo: bubbleBackgroundView.leftAnchor, constant: 16).isActive = true titleLabel.rightAnchor.constraint(equalTo: bubbleBackgroundView.rightAnchor, constant: -16).isActive = true newsPicture.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 8).isActive = true newsPicture.leftAnchor.constraint(equalTo: bubbleBackgroundView.leftAnchor, constant: 8).isActive = true newsPicture.rightAnchor.constraint(equalTo: bubbleBackgroundView.rightAnchor, constant: -8).isActive = true newsPicture.heightAnchor.constraint(equalToConstant: 230).isActive = true descriptionLabel.topAnchor.constraint(equalTo: newsPicture.bottomAnchor, constant: 8).isActive = true descriptionLabel.leftAnchor.constraint(equalTo: bubbleBackgroundView.leftAnchor, constant: 21).isActive = true descriptionLabel.rightAnchor.constraint(equalTo: bubbleBackgroundView.rightAnchor, constant: -21).isActive = true descriptionLabel.bottomAnchor.constraint(equalTo: bubbleBackgroundView.bottomAnchor, constant: -8).isActive = true } }
[ -1 ]
3f9f48c1dc3672eaca59da04a9c1db01f4f77ca1
481359871e8bdb2f7fd28252a769035bac319497
/MSD-GPUIMAGE3/Source/MetalRenderingDevice.swift
d9aecc8c8477d639dfb03daff6296fbb3a0f5893
[]
no_license
madadoux/MSD_GPUImage3
0cf9df1ad915d8dc557e422b35f3182b6b4ea2af
d2926c5addde8bedbdc2cd4d253741d6a1bda725
refs/heads/master
2022-12-24T05:12:47.646330
2020-10-06T11:08:14
2020-10-06T11:08:14
299,880,109
0
0
null
2020-09-30T11:49:28
2020-09-30T10:08:50
Metal
UTF-8
Swift
false
false
1,874
swift
import Foundation import Metal import MetalPerformanceShaders public let sharedMetalRenderingDevice = MetalRenderingDevice() public class MetalRenderingDevice { // MTLDevice // MTLCommandQueue public let device: MTLDevice public let commandQueue: MTLCommandQueue public let shaderLibrary: MTLLibrary public let metalPerformanceShadersAreSupported: Bool lazy var passthroughRenderState: MTLRenderPipelineState = { let (pipelineState, _) = generateRenderPipelineState(device:self, vertexFunctionName:"oneInputVertex", fragmentFunctionName:"passthroughFragment", operationName:"Passthrough") return pipelineState }() lazy var colorSwizzleRenderState: MTLRenderPipelineState = { let (pipelineState, _) = generateRenderPipelineState(device:self, vertexFunctionName:"oneInputVertex", fragmentFunctionName:"colorSwizzleFragment", operationName:"ColorSwizzle") return pipelineState }() init() { guard let device = MTLCreateSystemDefaultDevice() else {fatalError("Could not create Metal Device")} self.device = device guard let queue = self.device.makeCommandQueue() else {fatalError("Could not create command queue")} self.commandQueue = queue if #available(iOS 9, macOS 10.13, *) { self.metalPerformanceShadersAreSupported = false //MPSSupportsMTLDevice(device) } else { self.metalPerformanceShadersAreSupported = false } do { let frameworkBundle = Bundle(for: MetalRenderingDevice.self) let metalLibraryPath = frameworkBundle.path(forResource: "default", ofType: "metallib")! self.shaderLibrary = try device.makeLibrary(filepath:metalLibraryPath) } catch { fatalError("Could not load library") } } }
[ -1 ]
a06fd5aa8d9d34bf15958a0390ebd8c86962e2ee
ff890def106462452acde502ab9a26fdfca27687
/TestFlurry/SceneDelegate.swift
d1f332b5cb151005ca5025de0fdfe6032a89c422
[]
no_license
perlasivakrishna/TestFlurry
e71410b78c6c20f959cc759e5588c942157371a8
46ec9571a030228ce2f407a0b7c3f3420185d5e7
refs/heads/main
2023-03-10T19:14:17.266314
2021-02-26T06:43:02
2021-02-26T06:43:02
342,486,930
0
0
null
null
null
null
UTF-8
Swift
false
false
2,293
swift
// // SceneDelegate.swift // TestFlurry // // Created by siva krishna on 26/02/21. // 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, 254045, 180322, 376932, 286845, 286851, 417925, 262284, 360598, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 377047, 418008, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 385281, 262405, 180491, 164107, 336140, 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, 328180, 328183, 328190, 254463, 328193, 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, 385671, 148106, 377485, 352919, 98969, 344745, 361130, 336556, 385714, 434868, 164535, 328379, 164539, 328387, 352969, 385743, 385749, 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, 328690, 435188, 328703, 328710, 418822, 328715, 377867, 361490, 386070, 271382, 336922, 345119, 377888, 345134, 345139, 361525, 361537, 377931, 189525, 402523, 361568, 148580, 345200, 361591, 386168, 410746, 361594, 214150, 345224, 386187, 345247, 361645, 345268, 402615, 361657, 402636, 328925, 165086, 165092, 222438, 386286, 328942, 386292, 206084, 328967, 345377, 353572, 345380, 345383, 263464, 337207, 345400, 378170, 369979, 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, 370208, 419360, 394787, 419363, 370214, 419369, 394796, 419377, 419386, 214594, 419401, 419404, 353868, 419408, 214611, 419412, 403040, 345702, 370298, 353920, 403073, 403076, 345737, 198282, 403085, 403092, 345750, 419484, 345758, 345763, 419492, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 419518, 403139, 337607, 419528, 419531, 419536, 272083, 394967, 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, 337751, 247639, 370520, 313181, 182110, 354143, 354157, 345965, 345968, 345971, 345975, 403321, 1914, 354173, 247692, 395148, 337809, 247701, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 346064, 247760, 346069, 329699, 354275, 190440, 354314, 346140, 436290, 378956, 395340, 436307, 338005, 100454, 329833, 329853, 329857, 329868, 411806, 329886, 346273, 362661, 100525, 387250, 379067, 387261, 256193, 395467, 256214, 411862, 411865, 411869, 411874, 379108, 411877, 387303, 346344, 395496, 338154, 387307, 346350, 338161, 436474, 379135, 411905, 411917, 379154, 395539, 387350, 387353, 338201, 338212, 395567, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 321911, 420237, 379279, 354728, 338353, 338382, 272849, 248279, 256474, 182755, 338404, 338411, 330225, 248309, 248332, 330254, 199189, 420377, 330268, 191012, 330320, 199250, 191069, 346722, 248427, 338544, 191093, 346743, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 273109, 355029, 264919, 256735, 264942, 363252, 338680, 264965, 338701, 256787, 363294, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 347106, 437219, 257009, 265208, 199681, 338951, 330761, 330769, 330775, 248863, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 248905, 330827, 248915, 183384, 339037, 412765, 257121, 265321, 248952, 420985, 330890, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 126148, 330959, 330966, 265433, 265438, 388320, 363757, 388348, 339199, 396552, 175376, 175397, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 437576, 437584, 437588, 396634, 175451, 437596, 429408, 175458, 175461, 175464, 265581, 331124, 175478, 249215, 175487, 249219, 175491, 249225, 249228, 249235, 175514, 175517, 396703, 396706, 175523, 355749, 396723, 388543, 380353, 216518, 380364, 339406, 372177, 339414, 413143, 249303, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 208399, 380433, 175637, 405017, 134689, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 224885, 224888, 224891, 224895, 372354, 421509, 126597, 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, 225013, 257788, 225021, 339711, 257791, 225027, 257796, 257802, 339722, 257805, 225039, 257808, 249617, 225044, 167701, 372500, 257815, 225049, 257820, 225054, 184096, 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, 225128, 257897, 225138, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 380919, 372739, 405534, 266295, 266298, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 250012, 225439, 135328, 225442, 438434, 192674, 225445, 438438, 225448, 438441, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 430275, 389322, 225485, 225488, 225491, 225494, 266454, 225497, 225500, 225503, 225506, 225511, 217319, 225515, 225519, 381177, 397572, 389381, 356638, 356641, 356644, 356647, 266537, 356650, 389417, 356656, 332081, 340276, 356662, 397623, 332091, 225599, 348489, 332107, 151884, 430422, 348503, 332118, 250201, 250203, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 332162, 389507, 348548, 356741, 332175, 160152, 373146, 373149, 70048, 356783, 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, 381513, 348745, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 340628, 184983, 373399, 258723, 332460, 389806, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 340724, 332534, 155647, 373499, 348926, 389927, 348979, 398141, 357202, 389971, 357208, 389979, 357212, 430940, 357215, 439138, 349041, 340850, 381815, 430967, 324473, 398202, 119675, 324476, 430973, 340859, 340863, 324479, 324482, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 398246, 373672, 324525, 340910, 5040, 111539, 324534, 5047, 324539, 324542, 398280, 349129, 340942, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 349173, 381947, 201724, 431100, 349181, 431107, 349203, 209944, 209948, 250917, 169002, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 209996, 431180, 341072, 349268, 177238, 250968, 210011, 373853, 341094, 210026, 210028, 210032, 349296, 210037, 210042, 210045, 349309, 152704, 160896, 349313, 210053, 210056, 349320, 373905, 259217, 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, 349486, 349492, 415034, 210261, 365912, 259423, 374113, 251236, 374118, 390518, 357756, 374161, 112021, 349591, 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, 259789, 366301, 333535, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333595, 210720, 358192, 366384, 366388, 210740, 358201, 325441, 366403, 325447, 341831, 341839, 341844, 415574, 358235, 350046, 399200, 399208, 358256, 268144, 358260, 399222, 325494, 333690, 325505, 399244, 333709, 333725, 333737, 382891, 382898, 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, 252021, 342134, 374904, 268435, 333998, 334012, 260299, 211161, 358645, 268553, 268560, 432406, 325920, 358701, 391469, 358705, 358714, 358717, 383307, 358738, 383331, 383334, 391531, 383342, 334204, 194942, 391564, 366991, 334224, 342431, 375209, 375220, 334263, 326087, 358857, 195041, 334312, 104940, 375279, 350724, 186898, 342546, 350740, 342551, 342555, 416294, 350762, 252463, 358962, 334397, 358973, 252483, 219719, 399957, 334425, 326240, 375401, 334466, 334469, 391813, 162446, 342680, 342685, 260767, 342711, 244410, 260798, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 203508, 375541, 342777, 391938, 391949, 375569, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 375613, 244542, 260925, 375616, 342857, 416599, 342875, 244572, 433001, 400238, 211826, 211832, 392061, 351102, 252801, 260993, 400260, 211846, 342921, 342931, 400279, 252823, 392092, 400286, 359335, 211885, 400307, 351169, 359362, 351172, 170950, 359367, 326599, 187335, 359383, 359389, 383968, 343018, 261109, 261112, 244728, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 261166, 359471, 375868, 384099, 384102, 384108, 367724, 187503, 343155, 384115, 212095, 384136, 384140, 384144, 351382, 384152, 384158, 384161, 351399, 384169, 367795, 244917, 384182, 384189, 343232, 351424, 384192, 367817, 244938, 384202, 253132, 384209, 146644, 351450, 384225, 359650, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 384270, 261391, 359695, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 245042, 326970, 384324, 212296, 212304, 367966, 343394, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 245152, 245155, 155045, 245158, 114093, 327090, 343478, 359867, 384444, 327108, 327112, 384457, 359887, 359891, 368093, 155103, 343535, 343540, 368120, 409092, 359948, 359951, 245295, 359984, 400977, 400982, 179803, 155241, 155255, 155274, 368289, 245410, 425652, 425663, 155328, 245463, 155352, 155356, 155364, 245477, 155372, 245487, 212723, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 376672, 155488, 155492, 327532, 261997, 376686, 262000, 262003, 327542, 147319, 262006, 262009, 425846, 262012, 155517, 155523, 155526, 360327, 376715, 155532, 262028, 262031, 262034, 262037, 262040, 262043, 155550, 253854, 262046, 262049, 262052, 327590, 155560, 155563, 155566, 327613, 393152, 393170, 155604, 155620, 253924, 155622, 327655, 253927, 360432, 393204, 360439, 253944, 393209, 393215 ]
115b281f5e6bc7d5d59be9a666280eff3f3614bc
88320cf6dd2064c19dd57fe862d454b49ee193c6
/Makestagram/ViewControllers/RealDonorViewController.swift
005f1f33f8b42ee0a6ea301c676c4f8efafae96a
[]
no_license
18rberry/RippleProject
245595ad3b1f009cde1880ddc6808eda9352c97e
9632d6ae039697ae655a7a56a679c75165012e4d
refs/heads/master
2020-04-16T22:57:02.133283
2019-01-18T09:43:08
2019-01-18T09:43:08
165,991,522
0
0
null
null
null
null
UTF-8
Swift
false
false
7,956
swift
// // RealDonorViewController.swift // Makestagram // // Created by Riya Berry on 3/2/17. // Copyright © 2017 Make School. All rights reserved. // View Controller that presents a Map View where all the campaigns are tagged as Point Annotations so the Donor can browse campaigns by location import UIKit import MapKit import CoreLocation import Parse class RealDonorViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate, UISearchBarDelegate { var searchController:UISearchController! var annotationFinal: MKAnnotation! var localSearchRequest:MKLocalSearchRequest! var localSearch:MKLocalSearch! var localSearchResponse: MKLocalSearchResponse! var error: NSError! var pointAnnotation:MKPointAnnotation! var pinAnnotationView:MKPinAnnotationView! @IBAction func backButton(sender: AnyObject) { self.dismissViewControllerAnimated(true, completion: nil) } //search Bar that enables users to search a location in the search bar and the screen will zoom into the corresponding search area @IBAction func showSearchBar(sender: AnyObject) { searchController = UISearchController(searchResultsController: nil) searchController.hidesNavigationBarDuringPresentation = false searchController.searchBar.delegate = self self.presentViewController(searchController, animated: true, completion: nil) } @IBOutlet weak var mapView: MKMapView! var locationManager: CLLocationManager = CLLocationManager() var annotations = [MKPointAnnotation]() override func viewDidLoad() { super.viewDidLoad() locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestWhenInUseAuthorization() locationManager.startUpdatingLocation() self.mapView.showsUserLocation = true mapView.delegate = self } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { // let lastLocation: CLLocation = locations.last! // let location = CLLocationCoordinate2D(latitude: lastLocation.coordinate.latitude, longitude: lastLocation.coordinate.longitude) // let region = MKCoordinateRegion(center: location, span: MKCoordinateSpanMake(1, 1)) // let regionCenter = region.center // mapView.setRegion(region, animated: true) queryForCampaigns() mapView.addAnnotations(annotations) //locationManager.stopUpdatingLvartion() } //query for the corresponding campaign in Parse Server func queryForCampaigns(){ let campaignQuery = Campaign.query() campaignQuery?.findObjectsInBackgroundWithBlock {(results: [PFObject]?, error: NSError?) -> Void in if let results = results { for campaign in results { let parseLocation = campaign.valueForKey("Location") let location = CLLocation(latitude: (parseLocation?.latitude)!, longitude: (parseLocation?.longitude)!) let annotation = MKPointAnnotation() let centerCoordinate = CLLocationCoordinate2D(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude) annotation.coordinate = centerCoordinate annotation.subtitle = "\(campaign.valueForKey("Title")!)" let name = "\(campaign.valueForKey("Name")!)" annotation.title = name self.annotations.append(annotation) } } } } //deal with errors in location func locationManager(manager: CLLocationManager, didFailWithError error: NSError) { print("Errors " + error.localizedDescription) } //provides the View for the map annotation - if you click on an annotation you will be able to see more information func mapView(mapView: MKMapView, viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView? { let reuseIdentifier = "pin" var pin = mapView.dequeueReusableAnnotationViewWithIdentifier(reuseIdentifier) as? MKPinAnnotationView if pin == nil { pin = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseIdentifier) pin!.pinColor = .Red pin!.canShowCallout = true pin!.rightCalloutAccessoryView = UIButton(type: .DetailDisclosure) } else { pin!.annotation = annotation } return pin } var selectedAnnotation: MKPointAnnotation! //goes to the next view controller after clicking on more information on a point annotation func mapView(mapView: MKMapView, annotationView: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { if control == annotationView.rightCalloutAccessoryView { selectedAnnotation = annotationView.annotation as? MKPointAnnotation performSegueWithIdentifier("NextScene", sender: self) print("it worked!") } } //prepares for segue by passing information to the next view controller override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if let destination = segue.destinationViewController as? CampaignDetailViewController { destination.annotation = selectedAnnotation } } //deals with searching for locations in the search bar func searchBarSearchButtonClicked(searchBar: UISearchBar){ //1 searchBar.resignFirstResponder() self.dismissViewControllerAnimated(true, completion: nil) if self.mapView.annotations.count != 0{ annotationFinal = self.mapView.annotations[0] self.mapView.removeAnnotation(annotationFinal) } //2 localSearchRequest = MKLocalSearchRequest() localSearchRequest.naturalLanguageQuery = searchBar.text localSearch = MKLocalSearch(request: localSearchRequest) localSearch.startWithCompletionHandler {(localSearchResponse, error) -> Void in if localSearchResponse == nil{ let alertController = UIAlertController(title: nil, message: "Place not found", preferredStyle: .Alert) let dismissAction: UIAlertAction = UIAlertAction(title: "Dismiss", style: .Default) { action -> Void in } alertController.addAction(dismissAction) self.presentViewController(alertController, animated: true, completion: nil) return } //3 self.pointAnnotation = MKPointAnnotation() self.pointAnnotation.title = searchBar.text self.pointAnnotation.coordinate = CLLocationCoordinate2D(latitude: localSearchResponse!.boundingRegion.center.latitude, longitude: localSearchResponse!.boundingRegion.center.longitude) self.pinAnnotationView = MKPinAnnotationView(annotation: self.pointAnnotation, reuseIdentifier: nil) self.mapView.centerCoordinate = self.pointAnnotation.coordinate let region = MKCoordinateRegion(center: self.pointAnnotation.coordinate, span: MKCoordinateSpanMake(10, 10)) let regionCenter = region.center self.mapView.setRegion(region, animated: true) } } /* // 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. } */ }
[ -1 ]
6c862d50b504ff2b5e83dbbfe393cf57590d5c8d
4333cb8cf0fe8589266c6b42c1324eb4d6d17ec3
/SwiftUIPopup/SceneDelegate.swift
57e04af2f8a343b6362a923a436c4420a3348a2e
[]
no_license
siposeduard/swiftUIPopupDemo
2fc37ce73bbdfbe98e635b39a026d5d3a59768e1
faaff3968d279177eaea58660d4eba305e43b9aa
refs/heads/master
2022-07-15T04:06:29.544453
2020-05-14T13:47:39
2020-05-14T13:47:39
263,880,264
1
0
null
null
null
null
UTF-8
Swift
false
false
3,457
swift
// // SceneDelegate.swift // SwiftUIPopup // // Created by Sipos Eduard on 14/05/2020. // import UIKit import SwiftUI import Combine class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? var popupManager: PopupManager? = nil func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { popupManager = PopupManager(topControllerProvide: { () -> UIViewController? in self.getTopController() }) // 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). // Create the SwiftUI view that provides the window contents. let contentView = MainView().environmentObject(popupManager!) // Use a UIHostingController as window root view controller. if let windowScene = scene as? UIWindowScene { let window = UIWindow(windowScene: windowScene) window.rootViewController = UIHostingController(rootView: contentView) self.window = window window.makeKeyAndVisible() } DispatchQueue.main.asyncAfter(deadline: .now() + 3) { self.popupManager!.showPopup.send(.somepopup) } } func getTopController() -> UIViewController? { if var topController = self.window?.rootViewController { while let presentedViewController = topController.presentedViewController { topController = presentedViewController } return topController } return nil } 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. } }
[ 325633, 325637, 163849, 333838, 346140, 16444, 337980, 217158, 243782, 395340, 327757, 200786, 286804, 329816, 217180, 368736, 342113, 180322, 329833, 286833, 252021, 342134, 286845, 286851, 329868, 250008, 329886, 135328, 286880, 192674, 333989, 286889, 430257, 180418, 350411, 180432, 350417, 350423, 350426, 385243, 334047, 356580, 346344, 327915, 350449, 338161, 350454, 350459, 321787, 336124, 350462, 336129, 350465, 350469, 325895, 350477, 194829, 43279, 350481, 350487, 356631, 338201, 350491, 325918, 182559, 350494, 325920, 350500, 350505, 350510, 248112, 332081, 307507, 340276, 336181, 356662, 332091, 332098, 201030, 332107, 190797, 334162, 332118, 321880, 332126, 332130, 250211, 340328, 250217, 348523, 348528, 182642, 321911, 332153, 334204, 332158, 250239, 332162, 348548, 332175, 160152, 340380, 326059, 342453, 334263, 338363, 324032, 336326, 248279, 369119, 334306, 338404, 334312, 338411, 104940, 375279, 162289, 328178, 328180, 248309, 328183, 340473, 199165, 328190, 324095, 328193, 98819, 324100, 324103, 164362, 248332, 199182, 328207, 324112, 330254, 186898, 342546, 340501, 324118, 334359, 342551, 324122, 334364, 330268, 340512, 191012, 332325, 324134, 197160, 324141, 324143, 334386, 324156, 334397, 324161, 324165, 219719, 324171, 324174, 324177, 244309, 334425, 326240, 248427, 191085, 338544, 334466, 336517, 344710, 119432, 213642, 148106, 162446, 330384, 326291, 340628, 342685, 340639, 336549, 332460, 336556, 332464, 164535, 336568, 174775, 248505, 174778, 244410, 328379, 332473, 223936, 328387, 332484, 332487, 154318, 332494, 342737, 154329, 139998, 189154, 338661, 332521, 338665, 330479, 342769, 340724, 332534, 338680, 342777, 344832, 207620, 191240, 328462, 326417, 336660, 199455, 336676, 334633, 326444, 215854, 271154, 152371, 326452, 328498, 326455, 340792, 348983, 244542, 326463, 326468, 328516, 336709, 127815, 244552, 328520, 326474, 328523, 336712, 342857, 326479, 355151, 330581, 326486, 136024, 330585, 326494, 326503, 201580, 326508, 201583, 326511, 211826, 340850, 330612, 201589, 340859, 324476, 328574, 340863, 351105, 324482, 324488, 324496, 330643, 324502, 252823, 324511, 324514, 252838, 201638, 211885, 324525, 5040, 5047, 324539, 324542, 340940, 345046, 330711, 248794, 340958, 248799, 340964, 328690, 359411, 244728, 330750, 328703, 199681, 328710, 330761, 328715, 330769, 209944, 336922, 209948, 248863, 345119, 250915, 357411, 250917, 158759, 328747, 209966, 209969, 330803, 209973, 209976, 339002, 339010, 209988, 209991, 248905, 330827, 197708, 330830, 248915, 345172, 183384, 156762, 343132, 339037, 322660, 326764, 210028, 326767, 345200, 330869, 361591, 210042, 210045, 152704, 160896, 330886, 351366, 384136, 384140, 210072, 337048, 248986, 384152, 210078, 384158, 210081, 384161, 210085, 210089, 339118, 337072, 337076, 210100, 249015, 324792, 367801, 339133, 384189, 343232, 384192, 210116, 244934, 326858, 333003, 322763, 384202, 343246, 384209, 333010, 146644, 330966, 210139, 328925, 384225, 343272, 351467, 328942, 251123, 384247, 384250, 242947, 206084, 115973, 343307, 384270, 333075, 384276, 333079, 251161, 384284, 245021, 384290, 208167, 171304, 245032, 245042, 345400, 208189, 343366, 337224, 251211, 337230, 331089, 337235, 331094, 175458, 343394, 208228, 175461, 337252, 343399, 175464, 345449, 333164, 99692, 343410, 234867, 331124, 175478, 155000, 378232, 249210, 175484, 337278, 249215, 245121, 249219, 245128, 249225, 181644, 249228, 136591, 245137, 181650, 249235, 112021, 181655, 245143, 175514, 245146, 343453, 245149, 245152, 245155, 355749, 40358, 181671, 245158, 333222, 245163, 181679, 327090, 337330, 210357, 146878, 181697, 327108, 181704, 327112, 339401, 384457, 327118, 208338, 366035, 181717, 343509, 337366, 249310, 249313, 333285, 329195, 343540, 343545, 339464, 337416, 249355, 329227, 175637, 345626, 366118, 339504, 206397, 333387, 214611, 333400, 339553, 343650, 333415, 327276, 245358, 222831, 333423, 138865, 339572, 126597, 126611, 333472, 245410, 345763, 245415, 337588, 337601, 337607, 210632, 333512, 339664, 358100, 245463, 212700, 181982, 153311, 333535, 225000, 337643, 245487, 339696, 337647, 245495, 141052, 337661, 339711, 225027, 337671, 339722, 249617, 321300, 245528, 333593, 116512, 184096, 339748, 358192, 372533, 399166, 325441, 247618, 325447, 341831, 329545, 341835, 323404, 354124, 339795, 354132, 341844, 247639, 337751, 358235, 341852, 313181, 413539, 339818, 327532, 339827, 358260, 325494, 182136, 186233, 1914, 333690, 243584, 325505, 333699, 339845, 247692, 333709, 247701, 329625, 327590, 333737, 337845, 190393, 327613, 333767, 350153, 346059, 311244, 358348, 247760, 212945, 333777, 219094, 329699, 358372, 327655, 247790, 333819 ]
613489bd76b25943d9f1675f893207b1324b6233
6b654eebd33c54d89be5919857978303c0f0650b
/RomanNumeralCalculatorTests/RomanNumeralCalculatorTests.swift
798fa4bab50fa5961d8e9f7fa621af898c1e77c3
[]
no_license
meatloaf111/ios-short-continuous-integration
085978dfada14c5a23a0e0d6fca9ad847f196f3b
73de4dd829625f1ef638833a61ba5157b62a3abb
refs/heads/master
2021-05-06T14:52:26.739749
2017-12-07T05:22:25
2017-12-07T05:22:25
113,403,359
0
0
null
2017-12-07T05:22:26
2017-12-07T04:37:09
Swift
UTF-8
Swift
false
false
1,159
swift
// // RomanNumeralCalculatorTests.swift // RomanNumeralCalculatorTests // // Created by Ken Adachi on H29/12/07. // Copyright © 平成29年 buddybuild. All rights reserved. // import XCTest @testable import RomanNumeralCalculator class RomanNumeralCalculatorTests: 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. XCTAssertEqual(toRoman(1), "I") XCTAssertEqual(toRoman(2), "II") XCTAssertEqual(toRoman(3), "III") } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 313357, 204840, 227370, 233517, 155694, 229424, 229430, 286788, 223316, 280661, 315476, 307289, 237663, 315487, 309345, 280675, 227428, 280677, 313447, 278634, 288879, 284788, 223350, 233590, 280694, 215166, 131198, 292992, 194691, 227460, 280712, 215178, 235662, 311438, 278677, 278691, 233636, 233642, 284842, 278714, 223419, 299198, 280778, 282831, 280795, 227548, 229597, 301279, 286958, 278816, 217380, 278842, 315706, 307517, 139589, 280902, 319813, 6481, 6489, 323935, 285040, 313713, 311681, 227725, 61857, 285090, 61859, 289189, 299441, 283064, 278970, 127427, 127428, 278989, 281040, 326100, 278999, 176601, 188894, 287198, 279008, 160225, 279018, 291311, 279029, 291333, 287241, 279050, 283153, 291358, 180771, 244269, 283182, 236081, 234036, 279094, 281171, 66150, 111208, 279146, 281199, 295536, 287352, 301689, 279164, 152203, 303771, 285361, 303793, 299699, 342706, 166582, 314040, 158394, 285373, 287422, 154316, 287439, 279252, 96984, 342762, 289518, 279280, 199414, 154359, 230134, 299770, 205568, 242433, 295682, 299776, 291604, 234277, 283430, 279336, 289576, 262954, 295724, 301871, 164656, 303920, 262962, 281408, 318278, 201551, 301918, 295776, 293730, 230248, 177001, 308076, 400239, 207732, 209783, 209785, 279417, 113542, 287622, 228233, 228234, 56208, 308112, 234386, 293781, 324507, 310176, 310178, 283558, 289703, 279464, 293800, 236461, 293806, 304051, 189374, 213960, 316364, 50143, 289774, 183279, 287731, 304122, 234500, 322570, 234514, 140310, 197657, 300084, 308287, 234577, 296019, 234587, 304222, 281697, 281700, 300135, 228458, 279660, 15471, 285814, 300151, 300158, 150657, 279685, 222343, 302216, 185493, 238743, 119962, 296092, 306338, 279728, 238769, 283840, 279747, 279760, 290000, 189652, 279765, 279774, 304351, 298212, 304356, 279785, 228588, 234733, 298228, 302325, 234742, 216315, 292091, 292107, 173334, 339234, 300359, 294218, 234827, 296270, 234831, 238927, 292195, 294243, 284014, 296307, 290173, 306559, 298374, 368011, 112017, 306579, 282007, 318875, 282024, 279989, 300487, 306631, 280010, 310732, 64975, 228827, 286172, 280032, 144867, 187878, 280041, 306673, 306677, 300535, 280055, 288249, 286202, 290300, 286205, 302590, 294400, 282114, 306692, 306693, 296461, 282129, 308756, 282136, 282141, 286244, 288318, 280130, 282183, 218696, 228943, 286288, 290390, 300630, 239198, 282213, 317032, 222832, 314998, 239237, 286343, 229001, 290443, 229020, 282271, 282273, 282276, 40613, 40614, 40615, 282280, 290471, 298667, 286388, 286391, 282303, 286399, 280257, 280267, 302802, 278233, 278234, 67292, 278240, 239341, 313081, 194304, 288512, 280327, 280329, 300811, 284442, 286494, 294700, 304977, 307025, 413521, 18262, 216918, 307031, 280410, 284507, 237408, 284512, 284514, 276327, 288620, 282480, 313203, 300918, 194429, 110480, 184208, 282519, 214937, 214938, 294809, 294814, 300963, 294823, 298920, 284587, 292782, 98239, 280514, 280519, 301008, 194515, 292837, 296941, 311282, 292858 ]
87908cb8f34dc5f792bbf71e0e14ac1a92228ef0
b95fa31de281a7008ba3f47cc50682271517b4f0
/Project 19 - SnowSeeker/SnowSeeker/SnowSeeker/Facility.swift
518cf63eaf30a61a6094582ba5bfba170504ec00
[ "MIT" ]
permissive
rajhraval/My100DaysOfSwiftUI
2605982ebac19f8b70baefd6c2c7ee4f49471fda
f693a9f19152a6d04bff6fb2768521aba82b902e
refs/heads/master
2022-04-16T08:18:09.026227
2020-04-09T07:59:00
2020-04-09T07:59:00
210,406,202
4
1
null
null
null
null
UTF-8
Swift
false
false
1,505
swift
// // Facility.swift // SnowSeeker // // Created by RAJ RAVAL on 07/04/20. // Copyright © 2020 Buck. All rights reserved. // import SwiftUI struct Facility: Identifiable { let id = UUID() var name: String var icon: some View { let icons = [ "Accommodation": "house", "Beginners": "1.circle", "Cross-country": "map", "Eco-friendly": "leaf.arrow.circlepath", "Family": "person.3" ] if let iconName = icons[name] { let image = Image(systemName: iconName) .accessibility(label: Text(name)) .foregroundColor(.secondary) return image } else { fatalError("Unknown facility type: \(name)") } } var alert: Alert { let messages = [ "Accommodation": "This resort has popular on-site accomodation.", "Beginners": "This resort has lots of ski schools", "Cross-country": "This resort has many cross-country ski routes.", "Eco-friendly": "This resort has won an award for environmental friendliness.", "Family": "This resort is popular with families." ] if let message = messages[name] { return Alert(title: Text(name), message: Text(message)) } else { fatalError("Unknown facility type: \(name)") } } }
[ 350443 ]
fd5edf2fbcf1d3d42d16e8b32231611fbf89ccc0
16732eea0c6e675e6529e40ef1577f3124f6013a
/Random Users/Views/UserTableViewCell.swift
205cfdaae9e64493f6ba0c28e9904d8cce22bf36
[]
no_license
stefanodem/ios-sprint7-challenge
ba82aaffecbca402538ae7317088a8d549bab180
ea33d4b7b10cff219f260fbc36c5840ae406ef33
refs/heads/master
2020-03-28T06:29:52.870999
2018-09-07T17:27:20
2018-09-07T17:27:20
null
0
0
null
null
null
null
UTF-8
Swift
false
false
393
swift
// // UserTableViewCell.swift // Random Users // // Created by De MicheliStefano on 07.09.18. // Copyright © 2018 Erica Sadun. All rights reserved. // import UIKit class UserTableViewCell: UITableViewCell { // MARK: - Properties @IBOutlet weak var nameTextLabel: UILabel! @IBOutlet weak var userImageView: UIImageView! // MARK: - Private methods }
[ -1 ]
c50b925df1c89bb179e004d90d410a910de21c2e
07fa95c7d10e6bb6324b0afa5541502f80a82191
/wjdj/DataContext.swift
63f5ef72e41916ba72279ff0cc6b6b304e044869
[]
no_license
songqi8848/wjdj-1.0
0b00c66421da7fc9815bb6cc99b0f6a04ffd41a2
a0626974c62deea2fac5483cf2c9125c6394ac4e
refs/heads/master
2021-01-10T03:35:41.080443
2015-09-26T14:55:05
2015-09-26T14:55:05
43,210,010
0
0
null
null
null
null
UTF-8
Swift
false
false
386
swift
// // DataContext.swift // wjdj // // Created by HANBANG on 15/6/23. // Copyright (c) 2015年 HANBANG. All rights reserved. // import Foundation import AlecrimCoreData let dataContext = DataContext()! final class DataContext: AlecrimCoreData.Context { var customerUser: AlecrimCoreData.Table<CustomerUser> { return AlecrimCoreData.Table<CustomerUser>(context: self) } }
[ -1 ]
4b1260e50c96c285e178676f7298212fde483232
3e4aec4c217867f8d57744469515d464a563bb99
/ScrollModifyNavi/AppDelegate.swift
b1e09a619bfe76c179f929e75c775df23359ad9d
[]
no_license
pxhmeiyangyang/iOS_ScrollModifyNavi
b1b09f2ffd9c6abea68d8e6c4a900a5b90236620
bcd74f8aca3b18074c49523b8f7c8b0341c0f660
refs/heads/master
2020-06-14T09:53:48.472521
2019-07-03T09:36:42
2019-07-03T09:36:42
194,974,186
1
0
null
null
null
null
UTF-8
Swift
false
false
2,166
swift
// // AppDelegate.swift // ScrollModifyNavi // // Created by pxh on 2019/7/3. // Copyright © 2019 pxh. 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, 327695, 229391, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 278556, 229405, 278559, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 237618, 229426, 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, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 286987, 319757, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 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, 311728, 278967, 311741, 278975, 319938, 278983, 319945, 278986, 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, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189040, 172660, 287349, 189044, 189039, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 303773, 164509, 172705, 287394, 172707, 303780, 287390, 287398, 205479, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 287427, 312005, 312006, 172748, 287436, 172751, 287440, 295633, 172755, 303827, 279255, 287450, 303835, 279258, 189149, 303838, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 295707, 328476, 295710, 230175, 295720, 303914, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 303976, 336744, 303981, 303985, 303987, 328563, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 304013, 295822, 213902, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 304065, 213954, 189378, 156612, 197580, 312272, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 304258, 279683, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 337067, 165035, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 304354, 296163, 320740, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 230763, 410987, 230768, 296305, 312692, 230773, 304505, 304506, 279929, 181626, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 288154, 337306, 288160, 173472, 288162, 288164, 279975, 304555, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 230860, 312783, 288208, 230865, 148946, 370130, 222676, 288210, 288212, 288214, 239064, 288217, 288218, 280027, 288220, 329177, 239070, 288224, 370146, 280034, 288226, 288229, 280036, 280038, 288232, 288230, 288234, 320998, 288236, 288238, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 230916, 230919, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 321336, 296767, 288576, 345921, 337732, 304968, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 305028, 280454, 247688, 124817, 280468, 239510, 124827, 214940, 247709, 214944, 321458, 296883, 124853, 214966, 296890, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 313358, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 288895, 321670, 215175, 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, 280811, 280817, 125171, 280819, 157940, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 280906, 305485, 305489, 280919, 248153, 354653, 354656, 313700, 313705, 190832, 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, 166378, 305647, 281075, 174580, 240124, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 330244, 223752, 150025, 338440, 223757, 281102, 223765, 322074, 281116, 182819, 281135, 150066, 158262, 158266, 289342, 322115, 158283, 281163, 338528, 338532, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 174764, 314029, 314033, 240309, 314045, 314047, 314051, 297671, 158409, 256716, 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, 158596, 183172, 338823, 322440, 314249, 183184, 142226, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 183260, 289762, 322534, 297961, 183277, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 322642, 314456, 281691, 314461, 281704, 314474, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 216376, 380226, 298306, 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, 298377, 314763, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 290305, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 290325, 282133, 241175, 290328, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 224849, 282195, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 290445, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 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, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 307027, 315221, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 241581, 241583, 323504, 241586, 290739, 241588, 282547, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 307211, 282639, 290835, 241693, 102438, 217127, 323630, 282681, 290877, 159811, 315463, 315466, 192589, 307278, 192596, 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, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 307374, 307376, 299185, 323763, 184503, 299191, 176311, 307385, 258235, 307388, 176316, 307390, 299200, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 299225, 233701, 307432, 282881, 323854, 291089, 291104, 233766, 307508, 315701, 332086, 307510, 307512, 307515, 307518, 282942, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127434, 315856, 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, 127494, 135689, 233994, 127497, 127500, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 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, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 201444, 299750, 234219, 283372, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 299778, 234242, 242436, 234246, 226056, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 201496, 234264, 234266, 234269, 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, 226182, 234375, 201603, 308105, 226185, 234379, 324490, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 234396, 324508, 291742, 324504, 234398, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 291754, 291756, 234410, 226220, 324527, 291760, 234414, 201650, 324531, 234417, 234422, 324536, 275384, 234428, 291773, 242623, 324544, 226239, 234434, 324546, 324548, 234431, 226245, 234437, 234439, 234443, 291788, 193486, 234446, 193488, 275406, 316370, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 234490, 234493, 316416, 234496, 308226, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 234648, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 324768, 234653, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 300263, 300265, 300267, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 275725, 177424, 283917, 349451, 349464, 415009, 292143, 283951, 300344, 243003, 283963, 226628, 300357, 283973, 283983, 316758, 357722, 316766, 292192, 316768, 292197, 316774, 218473, 284010, 136562, 324978, 333178, 275836, 275840, 316803, 316806, 316811, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 144814, 144820, 374196, 284084, 292279, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 300527, 308720, 292338, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 243268, 284231, 226886, 128584, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 276052, 276053, 235097, 243290, 284249, 300638, 284251, 284253, 284258, 292452, 292454, 284263, 284265, 292458, 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, 276122, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 284354, 358083, 284358, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 366406, 276295, 292681, 153417, 358224, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 292715, 300912, 292721, 284529, 300915, 292729, 317306, 284540, 292734, 325512, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 358312, 317353, 284585, 276395, 292784, 358326, 358330, 276411, 276418, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276452, 292839, 276455, 292843, 276460, 292845, 178161, 227314, 325624, 276472, 317435, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 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, 227418, 350299, 194654, 227423, 350304, 178273, 309346, 350302, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 227426, 227430, 276583, 350313, 301167, 350316, 350321, 276590, 284786, 276595, 350325, 252022, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 153765, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276811, 235853, 235858, 276829, 276833, 391523, 276836, 293227, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 293346, 227810, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 113167, 309779, 317971, 309781, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 23094, 277054, 219714, 129603, 301636, 318020, 301639, 301643, 285265, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 309885, 309888, 277122, 277128, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 137889, 383658, 285357, 318128, 293555, 342707, 154292, 318132, 285368, 318144, 277187, 277201, 342745, 137946, 342747, 342749, 113378, 228069, 277223, 342760, 285417, 56043, 277232, 228081, 56059, 310015, 310020, 285448, 310029, 228113, 277273, 293659, 326430, 228128, 285474, 293666, 318248, 277291, 318253, 293677, 301876, 293685, 285494, 301880, 301884, 293696, 310080, 277317, 293706, 162643, 310100, 301911, 301913, 277337, 301921, 236397, 162671, 326514, 310134, 236408, 277368, 15224, 416639, 416640, 113538, 310147, 416648, 277385, 187274, 301972, 424853, 277405, 310179, 277411, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 342994, 293849, 293861, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 293887, 277504, 277507, 138246, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 293956, 277573, 228422, 293960, 310344, 277577, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 367737, 285817, 302205, 285821, 392326, 285831, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 277671, 302248, 64682, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 228592, 294132, 138485, 228601, 204026, 228606, 64768, 310531, 138505, 228617, 318742, 277798, 130345, 285999, 113969, 318773, 318776, 286010, 417086, 286016, 302403, 294211, 384328, 294221, 294223, 326991, 179547, 302436, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 310657, 351619, 294276, 310659, 327046, 253320, 310665, 318858, 310672, 351633, 310689, 130468, 277932, 310703, 310710, 130486, 310712, 310715, 302526, 228799, 302534, 310727, 245191, 302541, 302543, 310737, 228825, 310749, 310755, 187880, 310764, 286188, 310772, 40440, 212472, 40443, 310780, 286203, 40448, 228864, 286214, 228871, 302603, 302614, 302617, 286233, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 196133, 310831, 245288, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 286425, 319194, 278235, 301163, 229086, 278238, 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, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40851, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
b3bb6d036f9d61681ac082105dab0b9288b66cd0
fefbfa395c9fbab49f97e420a2090be6d297d9d9
/Plum-o-Meter/AppDelegate.swift
82b03a64e3ca49d0100058689558c6f7d81e7910
[]
no_license
finngaida/Plum-O-Meter
ea5ab69ed92e8e4b26c295926fd76f4bcb0642ef
8d837a60073677212d4f24947e366a206cf0eb26
refs/heads/master
2021-01-12T12:05:50.518463
2016-09-26T09:40:20
2016-09-26T09:40:20
69,235,320
1
0
null
2016-09-26T09:38:38
2016-09-26T09:38:38
null
UTF-8
Swift
false
false
2,181
swift
// // AppDelegate.swift // Plum-o-Meter // // Created by Simon Gladman on 24/10/2015. // Copyright © 2015 Simon Gladman. All rights reserved. // 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 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, 319544, 204856, 229432, 286776, 286778, 352318, 286791, 237640, 278605, 286797, 311375, 237646, 163920, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 237693, 303230, 327814, 131209, 303241, 417930, 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, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 164509, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 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, 172550, 303623, 320007, 172552, 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, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 352880, 189044, 172660, 295538, 287349, 287355, 287360, 295553, 287365, 295557, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 287390, 295583, 303773, 172705, 287394, 172702, 172707, 303780, 287398, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 328384, 287423, 287427, 312006, 107208, 107212, 172748, 287436, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 279267, 312035, 295654, 279272, 312048, 230128, 312050, 230131, 205564, 303871, 230146, 295685, 328453, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 304007, 320391, 304009, 213895, 304011, 230284, 189325, 213902, 304013, 279438, 189329, 295822, 189331, 304019, 279445, 58262, 304023, 295825, 279452, 410526, 279461, 279462, 304042, 213931, 304055, 230327, 287675, 197564, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 230413, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 132165, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 361576, 296040, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 238770, 304311, 230592, 279750, 312518, 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, 230679, 320792, 230681, 296215, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 296264, 320840, 238919, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 181626, 304506, 279929, 181631, 312711, 312712, 296331, 288140, 230800, 288144, 304533, 288154, 337306, 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, 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, 288250, 148990, 321022, 206336, 402942, 296446, 296450, 230916, 230919, 214535, 370187, 304651, 304653, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 280152, 288344, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 18140, 288478, 313055, 321252, 313066, 288494, 280302, 280304, 313073, 419570, 288499, 321266, 288502, 280314, 288510, 124671, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 337732, 280388, 304968, 280393, 194130, 280402, 173907, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 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, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 149599, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 215154, 280691, 313458, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 288909, 141455, 141459, 275606, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 321740, 313548, 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, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 240011, 199051, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 338440, 240132, 150025, 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, 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, 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, 224151, 289687, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 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, 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, 306555, 314747, 298365, 290171, 290174, 224641, 281987, 314756, 298372, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 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, 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, 28219, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 323229, 282269, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 306904, 298714, 52959, 282337, 216801, 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, 307009, 413506, 241475, 307012, 298822, 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, 298901, 44948, 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, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 184503, 307385, 307386, 258235, 307388, 176316, 307390, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 282931, 307508, 315701, 307510, 332086, 151864, 307512, 176435, 307515, 168245, 282942, 307518, 151874, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 276053, 242018, 242024, 299373, 315757, 250231, 315771, 242043, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 291226, 242075, 283033, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 127407, 291247, 299440, 299444, 127413, 291254, 283062, 194660, 127417, 291260, 127421, 283069, 127424, 299457, 127429, 127431, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 291314, 127474, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 127506, 234003, 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, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 135844, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 234246, 226056, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 242450, 234258, 242452, 234261, 348950, 201496, 234264, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 291714, 291716, 234373, 316294, 226182, 234375, 308105, 226185, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 234396, 324504, 324508, 234398, 291742, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 234410, 291754, 226220, 291756, 324522, 324527, 234414, 234417, 201650, 324531, 291760, 234422, 226230, 324536, 275384, 234428, 291773, 234431, 242623, 324544, 324546, 234434, 324548, 226245, 234437, 226239, 234439, 234443, 291788, 193486, 234446, 193488, 234449, 275406, 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, 234520, 316439, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 308291, 316483, 234563, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 308373, 234647, 275608, 324757, 234650, 308379, 234648, 283805, 234653, 300189, 119967, 324766, 324768, 234657, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 308414, 300223, 234687, 316610, 300226, 283844, 300229, 308420, 308422, 234692, 308418, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 177419, 300299, 283917, 242957, 300301, 349451, 177424, 275725, 349464, 415009, 283939, 259367, 283951, 292143, 300344, 226617, 243003, 283963, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 316768, 218464, 292197, 316774, 243046, 218473, 324978, 136562, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 259567, 308720, 300527, 226802, 292338, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 308790, 284215, 316983, 194103, 284218, 194101, 226877, 284223, 284226, 284228, 243268, 226886, 284231, 128584, 292421, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 292433, 284243, 276052, 284245, 300628, 284247, 317015, 235097, 243290, 284251, 284249, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 292470, 284278, 292473, 284283, 276093, 284286, 276095, 284288, 292479, 284290, 325250, 284292, 292485, 276098, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 317098, 284331, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 317158, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 300832, 300834, 284449, 317221, 227109, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 292681, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 317279, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 317332, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301015, 301017, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 350186, 292843, 276460, 276464, 178161, 276466, 227314, 276472, 350200, 325624, 317435, 276476, 276479, 276482, 350210, 276485, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 243733, 317468, 243740, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 276539, 235581, 178238, 325692, 276544, 284739, 243779, 325700, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 194649, 194654, 227423, 350302, 178273, 227426, 309346, 309348, 350308, 227430, 276583, 309350, 350313, 309352, 301163, 350316, 309354, 276590, 292968, 227440, 350321, 284786, 301167, 276595, 350325, 350328, 292985, 301178, 292989, 301185, 317570, 350339, 292993, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 153765, 284837, 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, 309468, 194780, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 276848, 293232, 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, 236043, 317963, 342541, 55822, 113167, 317971, 309779, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 318020, 301636, 301639, 301643, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 154292, 277173, 318132, 342707, 285368, 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, 293666, 285474, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 293706, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 15224, 236408, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 244731, 293882, 285690, 302075, 293887, 277504, 277507, 277511, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 310344, 293960, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 203872, 277601, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 302205, 285821, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 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, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 228617, 138505, 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, 146765, 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, 310659, 351619, 294276, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 302614, 286233, 302617, 302621, 187936, 146977, 286240, 187939, 40484, 294435, 40486, 286246, 286248, 40488, 245288, 40491, 294439, 294440, 294443, 294445, 310831, 40499, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 400976, 212560, 228944, 40533, 147032, 40537, 40539, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40552, 40554, 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, 302793, 294601, 278227, 286420, 319187, 229076, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 311048, 294664, 352008, 319243, 311053, 302862, 319251, 302872, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 188252, 237409, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 319390, 237470, 40865, 319394, 294817, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
37f211130b85a699273ba6f7ae1949887aa429e5
4b38a07907c0b13b99a7b74f30f2c9f29721df94
/ManagementApp/Features/EmployeeList/Model/EmployeeList.Entity.swift
26f955273886cc6ca12153798f634e1ef389c155
[]
no_license
mathsatan/management_app
fbb405b6821ac7844cbe3fa0222011417cc2ee8d
d6a2d4e85f031c8454d9a6cbcf8b3964774b62d7
refs/heads/master
2020-09-04T09:21:38.482745
2019-11-05T15:18:32
2019-11-05T15:18:32
219,701,324
0
0
null
null
null
null
UTF-8
Swift
false
false
250
swift
// // EmployeeList.Entity.swift // ManagementApp // // Created by maxim kryuchkov on 03.11.2019. // Copyright (c) 2019 maxim kryuchkov. All rights reserved. // import Foundation extension EmployeeList { typealias Entity = EmployeeEntity }
[ -1 ]
feeef69f227e54e201f9d1da31d0403ad3ee6dd9
67e04bff3e529e352ece5d62f100a7486f7ec24a
/FinalProject/Model/Map/MyPin.swift
275381a64ec63caa343d735d8ddc03fbecdb2047
[ "MIT" ]
permissive
blkbrds/intern16_final_project_TrungLeD
459a0861591713fd5f6e6bd842288fccbadaff9b
0ac0ee2de6d2b8333f49726ff1430ff773e1cfa4
refs/heads/master
2023-01-01T15:03:55.096122
2020-10-15T01:57:25
2020-10-15T01:57:25
295,741,675
1
0
MIT
2020-10-19T17:10:36
2020-09-15T13:44:40
Swift
UTF-8
Swift
false
false
650
swift
// // Mypin.swift // FinalProject // // Created by Abcd on 10/7/20. // Copyright © 2020 Asian Tech Co., Ltd. All rights reserved. // import Foundation import MapKit class MyPin: NSObject, MKAnnotation { let id: Int let title: String? let locationName: String let coordinate: CLLocationCoordinate2D init(id: Int, title: String, locationName: String, coordinate: CLLocationCoordinate2D) { self.id = id self.title = title self.locationName = locationName self.coordinate = coordinate super.init() } var subtitle: String? { return locationName } }
[ -1 ]
0249b52470ec3917ea7eb5bae7a34633d5dd35fc
1890f5f0ca4c2500e79c3092ac5f7cd5bfdab9c1
/02_Reminder_Local/02_Reminder_Local/Service/AlertService.swift
325092cca74b4cebcb5a3a32997dbe6d99646772
[]
no_license
timmybea/PushNotifications
a80adbf8157546a40df310f7375425bda2687021
0074be673997304e16af2583a0cb4d420ec8b6cb
refs/heads/master
2021-08-23T13:40:45.447912
2017-12-05T03:21:51
2017-12-05T03:21:51
111,229,356
0
0
null
null
null
null
UTF-8
Swift
false
false
625
swift
// // AlertService.swift // 02_Reminder_Local // // Created by Tim Beals on 2017-11-18. // Copyright © 2017 Tim Beals. All rights reserved. // import UIKit class AlertService: NSObject { private override init() { } static func actionSheet(in vc: UIViewController, title: String, completion: @escaping() -> Void) { let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let action = UIAlertAction(title: title, style: .default) { (_) in completion() } alert.addAction(action) vc.present(alert, animated: true) } }
[ -1 ]
207efd6ebff3c01edab05f78ab9ead7b5db88d72
056bebd9bb88eba64320cfa49372342c1f958098
/SignupApp/Model/Managers/CoreDataManager.swift
427028d490e7fecb9cc48dca740add00a14cf110
[ "Apache-2.0" ]
permissive
acantillo-asw/SignupApp
96d137aa66f3a6d127f3462b80c992f5403093fe
c9b9dab9e3cd428ff2434ed1d1a3dbc6f43f86c1
refs/heads/main
2023-07-12T02:47:52.940099
2021-08-09T21:03:26
2021-08-09T21:03:26
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,714
swift
// // CoreDataManager.swift // SignupApp // // Created by Américo Cantillo Gutiérrez on 6/08/21. // import Foundation import CoreData class CoreDataManager: DataManagerContract { let databaseName = "signupdb" var managedObjectContext: NSManagedObjectContext? private var model: NSManagedObjectModel? static let shared: CoreDataManager = { let instance = CoreDataManager() let urls = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) let docURL = urls[urls.endIndex - 1] let storeURL = docURL.appendingPathComponent(instance.databaseName + ".sqlite") guard let modelURL = Bundle.main.url(forResource: instance.databaseName, withExtension:"momd"), let model = NSManagedObjectModel(contentsOf: modelURL) else { print("Error on instancing NSManagedObjectModel...") fatalError("Error loading model from bundle") } instance.model = model let psc = NSPersistentStoreCoordinator(managedObjectModel: model) instance.managedObjectContext = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType) instance.managedObjectContext!.persistentStoreCoordinator = psc var success = false do { try psc.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: storeURL, options: [NSInferMappingModelAutomaticallyOption: true, NSMigratePersistentStoresAutomaticallyOption: true]) success = true } catch { print("Error loading store persistence: \(error)") fatalError("Error migrating store.") } if success { print("Data persistence ready to work!.") } return instance }() func getContainer() -> NSPersistentContainer { let container = NSPersistentContainer(name: self.databaseName, managedObjectModel: self.model!) container.loadPersistentStores { (desc, err) in if let err = err { print("Error loading store \(desc): \(err)") return } print("Data persistence loaded ok!.") } return container } func saveContext() { let context = CoreDataManager.shared.getContainer().viewContext if context.hasChanges { do { try context.save() } catch { let nserror = error as NSError fatalError("Unresolved error \(nserror), \(nserror.userInfo)") } } } private init() { } }
[ -1 ]
2efdc0b060a1677f1e3f3c38e13c7e04a4ab6708
815341d40f25e0999d91587447d31955639ebf38
/Sources/DLParser/Models/Truncation.swift
b5c48153b4a0d85e43e11541583b9b51ae3737e3
[ "MIT" ]
permissive
ajohnson388/DLParser-Swift
04bf245d395edbd05f5dba2c7bb0257cea0ea1aa
cc4c72a22de25c6b315a55473978591129af2a82
refs/heads/master
2023-07-09T07:45:34.535496
2022-02-21T00:46:19
2022-02-21T00:46:19
130,599,750
22
15
NOASSERTION
2023-06-21T15:40:00
2018-04-22T19:17:53
Swift
UTF-8
Swift
false
false
351
swift
// // Truncation.swift // DLParser // // Created by Andrew Johnson on 3/12/18. // import Foundation /** AAMVA standard accepted truncation types. */ public enum Truncation: String, StringRepresentable { /// Indicates a name is truncated case truncated = "T" /// Indicates a name is not truncated case none = "N" }
[ -1 ]
f3bea5c9f39a319dee7b8a0ed64c2b299ae438e5
0b95569d2b5e9743d9861ad58af7d6a104c24a05
/Rehapp/Chart/ChartColors.swift
b2b1c7c99ea471f59fe45584736bcfc2e700aa58
[]
no_license
timh1004/Rehapp
6f6c665b6e77aa4f3bd9511c702ce56259e66270
7814443a33b76b9e07015df4bc18c49490e1e123
refs/heads/master
2020-06-03T15:27:14.165433
2015-08-25T09:02:27
2015-08-25T09:02:27
38,253,838
0
0
null
null
null
null
UTF-8
Swift
false
false
1,670
swift
// // ChartColors.swift // // Created by Giampaolo Bellavite on 07/11/14. // Copyright (c) 2014 Giampaolo Bellavite. All rights reserved. // import UIKit /** Shorthands for various colors to use freely in the charts. */ struct ChartColors { static func colorFromHex(hex: Int) -> UIColor { let red = CGFloat((hex & 0xFF0000) >> 16) / 255.0 let green = CGFloat((hex & 0xFF00) >> 8) / 255.0 let blue = CGFloat((hex & 0xFF)) / 255.0 return UIColor(red: red, green: green, blue: blue, alpha: 1) } static func blueColor() -> UIColor { return colorFromHex(0x4A90E2) } static func orangeColor() -> UIColor { return colorFromHex(0xF5A6b23) } static func greenColor() -> UIColor { return colorFromHex(0x7ED321) } static func darkGreenColor() -> UIColor { return colorFromHex(0x417505) } static func redColor() -> UIColor { return colorFromHex(0xFF3200) } static func darkRedColor() -> UIColor { return colorFromHex(0xD0021B) } static func purpleColor() -> UIColor { return colorFromHex(0x9013FE) } static func maroonColor() -> UIColor { return colorFromHex(0x8B572A) } static func pinkColor() -> UIColor { return colorFromHex(0xBD10E0) } static func greyColor() -> UIColor { return colorFromHex(0x7f7f7f) } static func cyanColor() -> UIColor { return colorFromHex(0x50E3C2) } static func goldColor() -> UIColor { return colorFromHex(0xbcbd22) } static func yellowColor() -> UIColor { return colorFromHex(0xF8E71C) } }
[ 253213 ]
e616540d2c24f6c5c3f4443617fa60ce28f7ebbe
1f4ffa7606f7b4c44bfaa2934967c44b733834f9
/NennosPizza/Shared/LocalDataManager/LocalDataManager.swift
7038270857022008b75ff0c8a1b5605b3d4558ac
[]
no_license
sharma-himanshu/NennosPizza
dccbb0637cc5b0e929543205ccc7b0712e67894e
2c4b6caf736799bd103f5374298149e17e2000ea
refs/heads/master
2023-01-27T17:21:04.407891
2020-12-07T09:00:58
2020-12-07T09:00:58
319,260,999
0
0
null
null
null
null
UTF-8
Swift
false
false
3,614
swift
// // LocalDataManager.swift // NennosPizza // // Created by Himanshu Sharma on 11/29/20. // Copyright © 2020 Docler. All rights reserved. // import Foundation var plistURL: URL { let documents = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! return documents.appendingPathComponent("cart.plist") } class LocalDataManager { static let shared = LocalDataManager() var cart: CartModel? var ingredients: [IngredientModel]? private init() { } func itemCount() -> Int { return ((self.cart?.pizzas.count ?? 0) + (self.cart?.drinks.count ?? 0)) } func saveCart() { let encoder = PropertyListEncoder() if let data = try? encoder.encode(cart) { if FileManager.default.fileExists(atPath: plistURL.path) { // Update an existing plist try? data.write(to:plistURL) } else { // Create a new plist FileManager.default.createFile(atPath: plistURL.path, contents: data, attributes: nil) } } } func resetCart() { self.cart = nil self.initializeCart() } func getCart() { let decoder = PropertyListDecoder() guard let data = try? Data.init(contentsOf:plistURL), let cart = try? decoder.decode(CartModel.self, from: data) else { return } self.cart = cart self.initializeCart() } func initializeCart() { if self.cart == nil { let emptyCart = CartModel(pizzas: [], drinks: []) self.cart = emptyCart self.saveCart() } } func addPizzaToCart(pizza:PizzaModel) { self.initializeCart() self.cart?.pizzas.append(pizza) self.saveCart() } func removePizzaFromCart(pizza: PizzaModel) { if let index = self.cart?.pizzas.firstIndex(of: pizza) { self.cart?.pizzas.remove(at: index) } self.saveCart() } func removeDrinkFromCart(drink: DrinkModel) { if let index = self.cart?.drinks.firstIndex(of: drink) { self.cart?.drinks.remove(at: index) } self.saveCart() } func addDrinkToCart(drink:DrinkModel) { self.initializeCart() self.cart?.drinks.append(drink) self.saveCart() } func reloadIngredients(completed:@escaping(_ completed:Bool) -> Void) { NetworkManager.shared.getIngredientsRequest { (ingredients, error) in self.ingredients = ingredients completed(true) } } func returnPriceTotalForIngredientIds(ids:[Int]) -> Double { var totalIngredientPrice: Double = 0 if let savedIngredients = ingredients { for id in ids { for ingredient in savedIngredients { if ingredient.id == id { totalIngredientPrice += ingredient.price } } } } return totalIngredientPrice } func returnAllIngredientsStringListForIds(ids:[Int]) -> String { var resultString:[String] = [] if let savedIngredients = ingredients { for id in ids { for ingredient in savedIngredients { if ingredient.id == id { resultString.append(ingredient.name) } } } } return resultString.joined(separator: ", ") } }
[ -1 ]
8a3dbaca84264d8f3b6af6187405b41218a6f0ac
3fbcb2b5ab3b8b1749f246fbb83945a2aab54ba6
/youtubeClone/Controller/HomeController.swift
5d187c68a54cdd6d124414ea7c47818a10138483
[]
no_license
agargurnis/youtubeClone
cf6d5d640aa4247ebb44886a3d1e29d6567fb970
c5edf9486356693e721ed8867bccb89f3e650286
refs/heads/master
2020-03-08T22:21:02.798869
2019-03-14T20:21:53
2019-03-14T20:21:53
128,428,416
0
0
null
null
null
null
UTF-8
Swift
false
false
5,413
swift
// // ViewController.swift // youtubeClone // // Created by Arvids Gargurnis on 06/04/2018. // Copyright © 2018 Arvids Gargurnis. All rights reserved. // import UIKit class HomeController: UICollectionViewController, UICollectionViewDelegateFlowLayout { let cellId = "cellId" let trendingCellId = "trendingCellId" let subscriptionCellId = "subscriptionCellId" let titles = ["Home", "Trending", "Subscriptions", "Account"] lazy var menuBar: MenuBar = { let mb = MenuBar() mb.homeController = self return mb }() override func viewDidLoad() { super.viewDidLoad() navigationController?.navigationBar.isTranslucent = false let titleLabel = UILabel(frame: CGRect(x: 0, y: 0, width: view.frame.width - 32, height: view.frame.height)) titleLabel.text = " Home" titleLabel.textColor = .white titleLabel.font = UIFont.systemFont(ofSize: 20) navigationItem.titleView = titleLabel setupCollectionView() setupMenuBar() setupNavBarButtons() } func setupCollectionView() { if let flowLayout = collectionView?.collectionViewLayout as? UICollectionViewFlowLayout { flowLayout.scrollDirection = .horizontal flowLayout.minimumLineSpacing = 0 } collectionView?.backgroundColor = .white collectionView?.register(FeedCell.self, forCellWithReuseIdentifier: cellId) collectionView?.register(TrendingCell.self, forCellWithReuseIdentifier: trendingCellId) collectionView?.register(SubscriptionCell.self, forCellWithReuseIdentifier: subscriptionCellId) collectionView?.contentInset = UIEdgeInsetsMake(50, 0, 0, 0) collectionView?.scrollIndicatorInsets = UIEdgeInsetsMake(50, 0, 0, 0) collectionView?.isPagingEnabled = true } private func setupNavBarButtons() { let searchImage = UIImage(named: "search_icon")?.withRenderingMode(.alwaysOriginal) let moreImage = UIImage(named: "nav_more_icon")?.withRenderingMode(.alwaysOriginal) let searchButton = UIBarButtonItem(image: searchImage, style: .plain, target: self, action: #selector(handleSearch)) let moreButton = UIBarButtonItem(image: moreImage, style: .plain, target: self, action: #selector(handleMore)) navigationItem.rightBarButtonItems = [moreButton, searchButton] } let settingsLauncher = SettingsLauncher() private func setupMenuBar() { navigationController?.hidesBarsOnSwipe = true let redView = UIView() redView.backgroundColor = UIColor.rgb(red: 230, green: 32, blue: 31) view.addSubview(redView) view.addConstraintsWithFormat(format: "H:|[v0]|", views: redView) view.addConstraintsWithFormat(format: "V:[v0(50)]", views: redView) view.addSubview(menuBar) view.addConstraintsWithFormat(format: "H:|[v0]|", views: menuBar) view.addConstraintsWithFormat(format: "V:[v0(50)]", views: menuBar) menuBar.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor).isActive = true } @objc func handleSearch() { // do search stuff } @objc func handleMore() { // show menu settingsLauncher.showSettings() } private func setTitleForIndex(index: Int) { if let titleLabel = navigationItem.titleView as? UILabel { titleLabel.text = " \(titles[index])" } } func scrollToMenuIndex(menuIndex: Int) { let indexPath = NSIndexPath(item: menuIndex, section: 0) collectionView?.scrollToItem(at: indexPath as IndexPath, at: [], animated: true) setTitleForIndex(index: menuIndex) } override func scrollViewDidScroll(_ scrollView: UIScrollView) { menuBar.horizontalBarLeftAnchorConstraint?.constant = scrollView.contentOffset.x / 4 } override func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) { let index = targetContentOffset.pointee.x / view.frame.width let indexPath = NSIndexPath(item: Int(index), section: 0) menuBar.collectionView.selectItem(at: indexPath as IndexPath, animated: true, scrollPosition: []) setTitleForIndex(index: Int(index)) } override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return 4 } override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let identifier: String if indexPath.item == 1 { identifier = trendingCellId } else if indexPath.item == 2 { identifier = subscriptionCellId } else { identifier = cellId } let cell = collectionView.dequeueReusableCell(withReuseIdentifier: identifier, for: indexPath) return cell } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { return CGSize(width: view.frame.width, height: view.frame.height - 50) } }
[ 239255 ]
548259aab171dbb956d6954a4903554f8d2c158e
a09d4873186bee0bf12039c44bd7255b03497f55
/Surf/Classes/Presentation/SearchSettingsScreen/SearchSettingsViewController.swift
863ae85787d36a287796b0252858b4b90ba068d5
[]
no_license
AgentChe/Surf
f86af0cc390796de4cb6019e04a2ca234bff4d13
982e20851ea46ab3f9451f49f67d3ca11dcf172e
refs/heads/master
2022-12-08T21:08:11.248890
2020-09-09T17:31:01
2020-09-09T17:31:01
278,627,017
0
0
null
null
null
null
UTF-8
Swift
false
false
3,202
swift
// // SearchSettingsViewController.swift // Surf // // Created by Andrey Chernyshev on 27.07.2020. // Copyright © 2020 Andrey Chernyshev. All rights reserved. // import UIKit import RxSwift import RangeSeekSlider final class SearchSettingsViewController: UIViewController { var searchSettingsView = SearchSettingsView() private let viewModel = SearchSettingsViewModel() private let disposeBag = DisposeBag() override func loadView() { super.loadView() view = searchSettingsView } override func viewDidLoad() { super.viewDidLoad() addHideAction() searchSettingsView.ageRangeSlider.delegate = self searchSettingsView .lookingForChoiceView.on = { [weak self] lookingFor in self?.updateSettings() } viewModel .profile() .drive(onNext: { [weak self] profile in guard let profile = profile else { return } self?.update(lookingFor: profile.lookingFor) self?.update(minAge: profile.minAge ?? 0, maxAge: profile.maxAge ?? 0) }) .disposed(by: disposeBag) viewModel .updatedLookingFor() .drive() .disposed(by: disposeBag) } } // MARK: Make extension SearchSettingsViewController { static func make() -> SearchSettingsViewController { let vc = SearchSettingsViewController() vc.modalPresentationStyle = .overCurrentContext return vc } } // MARK: RangeSeekSliderDelegate extension SearchSettingsViewController: RangeSeekSliderDelegate { func rangeSeekSlider(_ slider: RangeSeekSlider, didChange minValue: CGFloat, maxValue: CGFloat) { update(minAge: Int(minValue), maxAge: Int(maxValue)) updateSettings() } } // MARK: Private private extension SearchSettingsViewController { func updateSettings() { let settings: ([Gender], Int, Int) = (searchSettingsView.lookingForChoiceView.lookingFor, Int(searchSettingsView.ageRangeSlider.selectedMinValue), Int(searchSettingsView.ageRangeSlider.selectedMaxValue)) viewModel.updateLookingFor.accept(settings) } func update(lookingFor: [Gender]) { searchSettingsView.lookingForChoiceView.lookingFor = lookingFor } func update(minAge: Int, maxAge: Int) { searchSettingsView.ageRangeLabel.text = String(format: "%i-%i", minAge, maxAge) searchSettingsView.ageRangeSlider.selectedMinValue = CGFloat(minAge) searchSettingsView.ageRangeSlider.selectedMaxValue = CGFloat(maxAge) } func addHideAction() { let tapGesture = UITapGestureRecognizer(target: self, action: #selector(hideScreen)) searchSettingsView.backgroundView.addGestureRecognizer(tapGesture) searchSettingsView.backgroundView.isUserInteractionEnabled = true } @objc func hideScreen() { dismiss(animated: false) } }
[ -1 ]
891df4ca6cc33dbb40398cc8dd28b73519103c7a
b99d5adc8fe77f2cfb6c109e7d2833614000a727
/OnTheMap/SubmitViewController.swift
a666cf9fab0a811bb6ec234a57763c7d0e74e9c3
[]
no_license
aaron-m-f/On-The-Map
91509a8881a0a9e649e75216a3cc41a0390dd9a1
1349f3cbdf5c0bbdf139017c238af543f9941891
refs/heads/master
2021-01-10T14:45:03.965147
2016-04-08T19:54:25
2016-04-08T19:54:25
55,805,084
1
0
null
null
null
null
UTF-8
Swift
false
false
4,405
swift
// // SubmitViewController.swift // On The Map // // Created by AARON FARBER on 3/28/16. // Copyright © 2016 Aaron Farber. All rights reserved. // import UIKit import MapKit class SubmitViewController: InputViewController, MapViewControllerDelegate { @IBOutlet weak var userLocationLabel: UITextField! @IBOutlet weak var userLinkLabel: UITextField! @IBOutlet weak var submitButton: UIButton! @IBOutlet weak var backButton: UIButton! @IBOutlet weak var geocachingActivityIndicator: UIActivityIndicatorView! let studentModel = StudentModel.sharedInstance() let parseClient = ParseClient.sharedInstance() let geoCodingClient = GeoCodingClient.sharedInstance() var defaultLocationLabelText = "" var defaultLinkLabelText = "" override func viewDidLoad() { super.viewDidLoad() userLocationLabel.delegate = self userLinkLabel.delegate = self defaultLocationLabelText = userLocationLabel.text! defaultLinkLabelText = userLinkLabel.text! geocachingActivityIndicator.stopAnimating() } override func viewWillAppear(animated: Bool) { subscribeToKeyboardNotifications() } override func viewWillDisappear(animated: Bool) { unsubscribeToKeyboardNotifications() NSNotificationCenter.defaultCenter().removeObserver(self) } func toggleInputFieldsAndButtons() { userLocationLabel.enabled = !(userLocationLabel.enabled) userLinkLabel.enabled = !(userLinkLabel.enabled) submitButton.enabled = !(submitButton.enabled) } // MARK: Text Field Methods override func keyboardWillShow (notification : NSNotification) { view.bounds.origin.y = min(max(0, getKeyboardHeight(notification) - (view.frame.size.height * 0.5 - userLocationLabel.bounds.height * 4.0)), view.frame.size.height * 0.5 - userLocationLabel.bounds.height * 2.0) } // MARK: Back Button Method @IBAction func backPressed(sender: AnyObject) { dismissViewControllerAnimated(true, completion: nil) } // MARK: Submit User Pin Method @IBAction func submitUser(sender: UIButton) { toggleInputFieldsAndButtons() geocachingActivityIndicator.startAnimating() GeoCodingClient.sharedInstance().geoCodeLocation(userLocationLabel.text, withLink: userLinkLabel.text) { placemark, error in dispatch_async(dispatch_get_main_queue()) { self.toggleInputFieldsAndButtons() self.geocachingActivityIndicator.stopAnimating() /* GUARD: Was there an error? */ guard (error == nil) else { print("error: \(error)") self.presentError(error!) return } let mapViewController = self.storyboard?.instantiateViewControllerWithIdentifier("ON_THE_MAP") as! MapViewController mapViewController.delegate = self self.presentViewController(mapViewController, animated: true) {} } } } func userDidAcceptPinLocation(didAccept : Bool, mapViewController : MapViewController) { self.geoCodingClient.placingMark = false mapViewController.dismissViewControllerAnimated(true, completion: nil) if didAccept { toggleInputFieldsAndButtons() geocachingActivityIndicator.startAnimating() backButton.enabled = false studentModel.addUserAsStudent() parseClient.placeUserInformation() { result, error in dispatch_async(dispatch_get_main_queue()) { self.backButton.enabled = true /* GUARD: Was there an error? */ guard (error == nil) else { print("error: \(error)") self.geocachingActivityIndicator.stopAnimating() self.toggleInputFieldsAndButtons() self.presentError(error!) return } self.dismissViewControllerAnimated(true, completion: nil) } } } } }
[ -1 ]
60a6f90ae8cab87dd198bd6da9179c951656121c
5f0c763254c067920ba27ee41271c64c2d90016c
/mvc/CatDataSource.swift
247b1a0ae99d83e43ea07ed6549c1620e4b646ca
[]
no_license
AppleCEO/mvc
2bda5563593d733c1e52bb97563b6a51f1bfd2b2
a6437b601f16312817ce1b0b883f1e1f92893818
refs/heads/master
2023-04-05T12:59:24.641671
2021-04-16T06:55:59
2021-04-16T06:55:59
358,499,356
0
0
null
null
null
null
UTF-8
Swift
false
false
616
swift
// // CatDataSource.swift // mvc // // Created by joon-ho kil on 2021/04/16. // import UIKit class CatDataSource: NSObject, UITableViewDataSource { var dataList: [String] = [] func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return dataList.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let item = dataList[indexPath.row] let cell = tableView.dequeueReusableCell(withIdentifier: "catCell", for: indexPath) cell.textLabel?.text = item return cell } }
[ -1 ]
b89f9d48ff6525626c53f3b2451bfc3d0cdbbe94
7ddd185ec87d55580692852a89e9faa07f68ce31
/User/Faculty.swift
17b7e5be776e09f5144713f1ca275423792addbb
[]
no_license
shidhi16/ExamManagement
bbc807f4ac99b0e260d750405e789e0b9b09e8a9
4d238385661d8045f76ae6c67de486590c6295b5
refs/heads/master
2020-06-03T18:27:18.062451
2019-06-25T01:16:49
2019-06-25T01:16:49
191,682,307
0
0
null
null
null
null
UTF-8
Swift
false
false
2,027
swift
// // Faculty.swift // ExamManagement // // Created by Vijender Singh on 2019-06-12. // Copyright © 2019 Shivani Dhiman. All rights reserved. // import Foundation class Faculty : Person { var department: String var designation : String var salary : Float var joinDate : Date init(userid: Int, fname: String, lname: String, arrayexam: [Exam], gender: Gender, birthdate: Date, email: String,department : String, designation :String, salary : Float, joindate :Date,arraysubjects : [String], contactNo : String ) { self.department = department self.designation = designation self.salary = salary self.joinDate = joindate super.init(userid: userid, fname: fname, lname: lname, arrayexam: arrayexam, gender: gender, birthdate: birthdate, email: email, arraysubjects: arraysubjects, contactNo: contactNo) } func setQuiz(obj : quizQuestions) -> (String) { if obj == nil //use if-let { return "Object empty" } else { let quesId = obj.qId let currentQues = obj.ques let currentAns = obj.ans var currentOpt : Array<String> = obj.options return "Q \(quesId). \(currentQues)"+"\n 1.\(currentOpt[0])"+"\n 2.\(currentOpt[1])"+"\n 3.\(currentOpt[2])"+"\n 4.\(currentOpt[3])"+"\n Ans. \(currentAns)" } } override func display() { super.display() print( "Department : \(department)"+"\nDesignation : \(designation)"+"\nSalary : \(salary.currency())"+"\nJoin Date : \(joinDate.getForamttedDate())") print("\n------|| Exams Created ||------") for item in arrayOfExam { print("\n") print("Subjects :\(item.subject)") print("Exams : \(item.examname)") print("Exam Date :\(item.examDate.getForamttedDate())") } } }
[ -1 ]
21707e1dec35b022fed4d23dcc449e7cd1a81085
0ada9ef9ccf859200133aeb5edc128c63c8501b9
/Week_01/id_31/LeetCode_20_031.swift
38064abd9db9d58643402cf8029b2c08f785545a
[]
no_license
yanlingli3799/algorithm
a0b24092fd84e3e2e2568b01c17a3473e44b1288
2471dc738669ad3d9383a6e45bfd176986d58c90
refs/heads/master
2020-05-09T23:47:32.423942
2019-05-12T12:50:53
2019-05-12T12:50:53
181,512,276
1
0
null
2019-04-29T02:26:00
2019-04-15T15:10:44
Java
UTF-8
Swift
false
false
561
swift
// // LeetCode_20_031.swift // TestCoding // // Created by 龚欢 on 2019/4/16. // Copyright © 2019 龚欢. All rights reserved. // import Foundation class Solution { var stack: [Character] = [] func isValid(_ s: String) -> Bool { _ = s.map { if let lastChar = stack.last, ((lastChar == "{" && $0 == "}") || (lastChar == "(" && $0 == ")") || (lastChar == "[" && $0 == "]")) { stack.removeLast() } else { stack.append($0) } } return stack.isEmpty } }
[ -1 ]
25c2a5e4cdf37cc5c5f32083ae873ca315c388b0
8981bbaea27652de17746aa99d1732cc35a35190
/Beam/Protocols/MemberDataManaging.swift
aed91b4a15ec1ddcb2926eacedf8d16e503a9e1b
[]
no_license
ryanmsmith/Beam
304d5e338b73cc3b95cc256a6f3b42335bb2724c
f37dc7cb0e259ba052687c43b6c2e0b6b64e245a
refs/heads/master
2020-12-05T02:16:33.726807
2020-01-05T21:49:54
2020-01-05T21:49:54
231,979,967
0
0
null
null
null
null
UTF-8
Swift
false
false
266
swift
// // MemberDataManaging.swift // Beam // // Created by Ryan Smith on 5/19/19. // Copyright © 2019 Ryan Smith. All rights reserved. // import Foundation protocol MemberDataManaging { func fetchMemberData(completion: @escaping (Member?, Error?) -> Void) }
[ -1 ]
a90458ca3f1b92ab895b95a6176d2ca070868cdb
d57a72188307bfb92538f7bb19a26f4f7ac252dc
/week 4 algorithm/week 4 algorithm/6. Merge Two Sorted Lists.swift
b809727c122e6fd96c75acc418a6f74869da4f1e
[]
no_license
Lia316/Friday-algorithm
9e237221acff3215f875dcbaa619e7dcf6ad4b01
1b37f275df1572d03c98842b02d01d5d66dc18be
refs/heads/main
2023-03-02T18:22:00.830654
2021-02-08T03:45:49
2021-02-08T03:45:49
310,459,072
0
0
null
null
null
null
UTF-8
Swift
false
false
2,045
swift
// // 6. Merge Two Sorted Lists.swift // week 4 algorithm // // Created by Lia on 2020/11/28. // import Foundation public class ListNode { public var val: Int public var next: ListNode? public init() { self.val = 0; self.next = nil; } public init(_ val: Int) { self.val = val; self.next = nil; } public init(_ val: Int, _ next: ListNode?) { self.val = val; self.next = next; } } func printNode(_ node: ListNode?) { var current = node while current?.next != nil { print("\(current?.val ?? 0) ->", terminator:" ") current = current?.next } if current == nil {print("nil")} else{ print(current?.val ?? 0)} } //*************************** problem 6 ******************************* class Solution6 { var newList: ListNode? func insert(value: Int){ let head = newList if head == nil { newList = ListNode(value) } else { var current = head while current?.next != nil { current = current?.next } current?.next = ListNode(value) } } func mergeTwoLists(_ l1: ListNode?, _ l2: ListNode?) -> ListNode? { var checkOne = l1 var checkTwo = l2 while checkOne != nil && checkTwo != nil { if checkOne?.val ?? 0 <= checkTwo?.val ?? 0 { insert(value: checkOne?.val ?? 0) checkOne = checkOne?.next } else { insert(value: checkTwo?.val ?? 0) checkTwo = checkTwo?.next } } // 한 쪽 다 끝나고 나머지 한쪽이 여럿 남으면 오류 뜸. while 문으로 하나 남은 거 계속 돌려야함 var lastCheck = checkOne != nil ? checkOne : checkTwo while lastCheck != nil { insert(value: lastCheck?.val ?? 0) lastCheck = lastCheck?.next } print("newList: ", terminator: "") printNode(newList) return newList } }
[ -1 ]
28cb03de91d6226340dd2df78bad9a70952cb6ca
d70e6d0269cbe5edf12732cee109fcbcffb8527d
/People/Controller/Chat/PeopleTableViewCell.swift
cfc0b38e3e50f5084cede0ee753e12d01da992d5
[]
no_license
datcrown/People
cf894aad620973c66e7d44bc4dbf88aeeb8681e8
08e1ef6b523ff8a95528659ace60146f80be69ec
refs/heads/master
2021-09-06T01:07:27.063145
2018-02-01T06:22:05
2018-02-01T06:22:05
118,729,385
0
0
null
null
null
null
UTF-8
Swift
false
false
822
swift
// // PeopleTableViewCell.swift // People // // Created by Quoc Dat on 12/12/17. // Copyright © 2017 Quoc Dat. All rights reserved. // import UIKit class PeopleTableViewCell: UITableViewCell { @IBOutlet weak var userImage: UIImageView! @IBOutlet weak var userNameLabel: UILabel! @IBOutlet weak var lastMessageLabel: UILabel! @IBOutlet weak var timeOfLastMessageLabel: UILabel! override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) } override func prepareForReuse() { userImage.image = nil userNameLabel.text = "" lastMessageLabel.text = "" timeOfLastMessageLabel.text = "" } }
[ -1 ]
c482821261614625443da26dbc52ca25366d03ac
2372965f7efd1ac3dac46fe29e0d3b3307b137d4
/GHFollowers/GHFollowers/Extensions/Data+Ext.swift
f653026e08cf0f2207d2e6d987a21f7891bbed68
[]
no_license
Mohaaaa2012/GitHub-Followers
e1d91c04a9ea2cf34f33d88036547077a1469376
e154a6bb8b71c875bcad72f019414ab26b9ba840
refs/heads/master
2023-01-07T14:30:41.910746
2020-11-06T19:35:12
2020-11-06T19:35:12
300,036,614
0
0
null
null
null
null
UTF-8
Swift
false
false
381
swift
// // Data+Ext.swift // GHFollowers // // Created by Apple on 9/15/20. // Copyright © 2020 MohamedMostafa. All rights reserved. // import Foundation extension Date { func convertToMonthYearFotmat() -> String { let dateFotmatter = DateFormatter() dateFotmatter.dateFormat = "MMM yyyy" return dateFotmatter.string(from: self) } }
[ -1 ]