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
bf38eaf8ace352c0a9a2e954d29c04c9c940e802
68ac15de5a040e7317e1f64031f14ad658843960
/DanTang-swift/Classes/Product/View/DetailScrollView.swift
8bea6bb62164005be3a1b8c25e1958a91536ee5b
[ "Apache-2.0" ]
permissive
guofeifeifei/swift-DanTang
475162da0155ce13c81683aec21500ac82b54d37
657d8e7ffdf04228a086e27df62ae44051106a91
refs/heads/master
2021-01-25T13:19:19.773481
2018-04-17T01:59:26
2018-04-17T01:59:26
123,559,725
0
0
null
null
null
null
UTF-8
Swift
false
false
1,701
swift
// // DetailScrollView.swift // DanTang-swift // // Created by ZZCN77 on 2018/3/5. // Copyright © 2018年 ZZCN77. All rights reserved. // import UIKit class DetailScrollView: UIScrollView { var product : Product?{ didSet{ topSctrollView.product = product bottomScrollView.product = product } } override init(frame: CGRect) { super.init(frame: frame) setupUI() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } func setupUI() { addSubview(topSctrollView) addSubview(bottomScrollView) topSctrollView.snp.makeConstraints { (make) in make.left.equalTo(self) make.top.equalTo(self) make.size.equalTo(CGSize.init(width: KMainWidth, height: 520)) } bottomScrollView.snp.makeConstraints { (make) in make.left.equalTo(self) make.top.equalTo(topSctrollView.snp.bottom).offset(kMargin) make.size.equalTo(CGSize.init(width: KMainWidth, height: kMainHeight - 64 - 45)) } } //顶部滚动试图 private lazy var topSctrollView : DetailScrollViewTopView = { let topScrollView = DetailScrollViewTopView() topScrollView.backgroundColor = UIColor.white return topScrollView }() //底部视图 private lazy var bottomScrollView : ProduceDetailBottomView = { let bottomScrollView = ProduceDetailBottomView() bottomScrollView.backgroundColor = UIColor.white return bottomScrollView }() }
[ -1 ]
95fcbf5434b96eaab4dbd647183752b93a41dc6a
e6da1392b875ac8a781ee25beadf35f819fc9333
/Sources/SignalProducer.swift
1d9194a0fb04544b7bc3a9a97e8a2c39ca8711f7
[ "MIT" ]
permissive
tikitu/ReactiveSwift
51d89ff8ad41a82a9381600829990a1f1c6bbc4e
fd9295f97194e888c8bdc70fa0516b60a4467b4f
refs/heads/master
2020-12-30T16:27:08.123229
2017-05-11T12:05:22
2017-05-11T12:05:22
84,947,797
0
0
null
2017-03-14T12:43:08
2017-03-14T12:43:08
null
UTF-8
Swift
false
false
89,136
swift
import Dispatch import Foundation import Result /// A SignalProducer creates Signals that can produce values of type `Value` /// and/or fail with errors of type `Error`. If no failure should be possible, /// `NoError` can be specified for `Error`. /// /// SignalProducers can be used to represent operations or tasks, like network /// requests, where each invocation of `start()` will create a new underlying /// operation. This ensures that consumers will receive the results, versus a /// plain Signal, where the results might be sent before any observers are /// attached. /// /// Because of the behavior of `start()`, different Signals created from the /// producer may see a different version of Events. The Events may arrive in a /// different order between Signals, or the stream might be completely /// different! public struct SignalProducer<Value, Error: Swift.Error> { public typealias ProducedSignal = Signal<Value, Error> private let startHandler: (Signal<Value, Error>.Observer, CompositeDisposable) -> Void /// Initializes a `SignalProducer` that will emit the same events as the /// given signal. /// /// If the Disposable returned from `start()` is disposed or a terminating /// event is sent to the observer, the given signal will be disposed. /// /// - parameters: /// - signal: A signal to observe after starting the producer. public init(_ signal: Signal<Value, Error>) { self.init { observer, disposable in disposable += signal.observe(observer) } } /// Initializes a SignalProducer that will invoke the given closure once for /// each invocation of `start()`. /// /// The events that the closure puts into the given observer will become /// the events sent by the started `Signal` to its observers. /// /// - note: If the `Disposable` returned from `start()` is disposed or a /// terminating event is sent to the observer, the given /// `CompositeDisposable` will be disposed, at which point work /// should be interrupted and any temporary resources cleaned up. /// /// - parameters: /// - startHandler: A closure that accepts observer and a disposable. public init(_ startHandler: @escaping (Signal<Value, Error>.Observer, CompositeDisposable) -> Void) { self.startHandler = startHandler } /// Creates a producer for a `Signal` that will immediately send one value /// then complete. /// /// - parameters: /// - value: A value that should be sent by the `Signal` in a `value` /// event. public init(value: Value) { self.init { observer, disposable in observer.send(value: value) observer.sendCompleted() } } /// Creates a producer for a `Signal` that immediately sends one value, then /// completes. /// /// This initializer differs from `init(value:)` in that its sole `value` /// event is constructed lazily by invoking the supplied `action` when /// the `SignalProducer` is started. /// /// - parameters: /// - action: A action that yields a value to be sent by the `Signal` as /// a `value` event. public init(_ action: @escaping () -> Value) { self.init { observer, disposable in observer.send(value: action()) observer.sendCompleted() } } /// Creates a producer for a `Signal` that will immediately fail with the /// given error. /// /// - parameters: /// - error: An error that should be sent by the `Signal` in a `failed` /// event. public init(error: Error) { self.init { observer, disposable in observer.send(error: error) } } /// Creates a producer for a Signal that will immediately send one value /// then complete, or immediately fail, depending on the given Result. /// /// - parameters: /// - result: A `Result` instance that will send either `value` event if /// `result` is `success`ful or `failed` event if `result` is a /// `failure`. public init(result: Result<Value, Error>) { switch result { case let .success(value): self.init(value: value) case let .failure(error): self.init(error: error) } } /// Creates a producer for a Signal that will immediately send the values /// from the given sequence, then complete. /// /// - parameters: /// - values: A sequence of values that a `Signal` will send as separate /// `value` events and then complete. public init<S: Sequence>(_ values: S) where S.Iterator.Element == Value { self.init { observer, disposable in for value in values { observer.send(value: value) if disposable.isDisposed { break } } observer.sendCompleted() } } /// Creates a producer for a Signal that will immediately send the values /// from the given sequence, then complete. /// /// - parameters: /// - first: First value for the `Signal` to send. /// - second: Second value for the `Signal` to send. /// - tail: Rest of the values to be sent by the `Signal`. public init(values first: Value, _ second: Value, _ tail: Value...) { self.init([ first, second ] + tail) } /// A producer for a Signal that will immediately complete without sending /// any values. public static var empty: SignalProducer { return self.init { observer, disposable in observer.sendCompleted() } } /// A producer for a Signal that never sends any events to its observers. public static var never: SignalProducer { return self.init { _ in return } } /// Create a Signal from the producer, pass it into the given closure, /// then start sending events on the Signal when the closure has returned. /// /// The closure will also receive a disposable which can be used to /// interrupt the work associated with the signal and immediately send an /// `interrupted` event. /// /// - parameters: /// - setUp: A closure that accepts a `signal` and `interrupter`. public func startWithSignal(_ setup: (_ signal: Signal<Value, Error>, _ interrupter: Disposable) -> Void) { // Disposes of the work associated with the SignalProducer and any // upstream producers. let producerDisposable = CompositeDisposable() let (signal, observer) = Signal<Value, Error>.pipe(disposable: producerDisposable) // Directly disposed of when `start()` or `startWithSignal()` is // disposed. let cancelDisposable = ActionDisposable(action: observer.sendInterrupted) setup(signal, cancelDisposable) if cancelDisposable.isDisposed { return } startHandler(observer, producerDisposable) } } /// A protocol used to constraint `SignalProducer` operators. public protocol SignalProducerProtocol { /// The type of values being sent on the producer associatedtype Value /// The type of error that can occur on the producer. If errors aren't possible /// then `NoError` can be used. associatedtype Error: Swift.Error /// Extracts a signal producer from the receiver. var producer: SignalProducer<Value, Error> { get } } extension SignalProducer: SignalProducerProtocol { public var producer: SignalProducer { return self } } extension SignalProducer { /// Create a Signal from the producer, then attach the given observer to /// the `Signal` as an observer. /// /// - parameters: /// - observer: An observer to attach to produced signal. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the signal and immediately send an /// `interrupted` event. @discardableResult public func start(_ observer: Signal<Value, Error>.Observer = .init()) -> Disposable { var disposable: Disposable! startWithSignal { signal, innerDisposable in signal.observe(observer) disposable = innerDisposable } return disposable } /// Convenience override for start(_:) to allow trailing-closure style /// invocations. /// /// - parameters: /// - observerAction: A closure that accepts `Event` sent by the produced /// signal. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the signal and immediately send an /// `interrupted` event. @discardableResult public func start(_ observerAction: @escaping Signal<Value, Error>.Observer.Action) -> Disposable { return start(Observer(observerAction)) } /// Create a Signal from the producer, then add an observer to the `Signal`, /// which will invoke the given callback when `value` or `failed` events are /// received. /// /// - parameters: /// - result: A closure that accepts a `result` that contains a `.success` /// case for `value` events or `.failure` case for `failed` event. /// /// - returns: A Disposable which can be used to interrupt the work /// associated with the Signal, and prevent any future callbacks /// from being invoked. @discardableResult public func startWithResult(_ result: @escaping (Result<Value, Error>) -> Void) -> Disposable { return start( Observer( value: { result(.success($0)) }, failed: { result(.failure($0)) } ) ) } /// Create a Signal from the producer, then add exactly one observer to the /// Signal, which will invoke the given callback when a `completed` event is /// received. /// /// - parameters: /// - completed: A closure that will be envoked when produced signal sends /// `completed` event. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the signal. @discardableResult public func startWithCompleted(_ completed: @escaping () -> Void) -> Disposable { return start(Observer(completed: completed)) } /// Creates a Signal from the producer, then adds exactly one observer to /// the Signal, which will invoke the given callback when a `failed` event /// is received. /// /// - parameters: /// - failed: A closure that accepts an error object. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the signal. @discardableResult public func startWithFailed(_ failed: @escaping (Error) -> Void) -> Disposable { return start(Observer(failed: failed)) } /// Creates a Signal from the producer, then adds exactly one observer to /// the Signal, which will invoke the given callback when an `interrupted` /// event is received. /// /// - parameters: /// - interrupted: A closure that is invoked when `interrupted` event is /// received. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the signal. @discardableResult public func startWithInterrupted(_ interrupted: @escaping () -> Void) -> Disposable { return start(Observer(interrupted: interrupted)) } /// Creates a `Signal` from the producer. /// /// This is equivalent to `SignalProducer.startWithSignal`, but it has /// the downside that any values emitted synchronously upon starting will /// be missed by the observer, because it won't be able to subscribe in time. /// That's why we don't want this method to be exposed as `public`, /// but it's useful internally. internal func startAndRetrieveSignal() -> Signal<Value, Error> { var result: Signal<Value, Error>! self.startWithSignal { signal, _ in result = signal } return result } } extension SignalProducer where Error == NoError { /// Create a Signal from the producer, then add exactly one observer to /// the Signal, which will invoke the given callback when `value` events are /// received. /// /// - parameters: /// - value: A closure that accepts a value carried by `value` event. /// /// - returns: A `Disposable` which can be used to interrupt the work /// associated with the Signal, and prevent any future callbacks /// from being invoked. @discardableResult public func startWithValues(_ value: @escaping (Value) -> Void) -> Disposable { return start(Observer(value: value)) } } extension SignalProducer { /// Lift an unary Signal operator to operate upon SignalProducers instead. /// /// In other words, this will create a new `SignalProducer` which will apply /// the given `Signal` operator to _every_ created `Signal`, just as if the /// operator had been applied to each `Signal` yielded from `start()`. /// /// - parameters: /// - transform: An unary operator to lift. /// /// - returns: A signal producer that applies signal's operator to every /// created signal. public func lift<U, F>(_ transform: @escaping (Signal<Value, Error>) -> Signal<U, F>) -> SignalProducer<U, F> { return SignalProducer<U, F> { observer, outerDisposable in self.startWithSignal { signal, innerDisposable in outerDisposable += innerDisposable transform(signal).observe(observer) } } } /// Lift a binary Signal operator to operate upon SignalProducers instead. /// /// In other words, this will create a new `SignalProducer` which will apply /// the given `Signal` operator to _every_ `Signal` created from the two /// producers, just as if the operator had been applied to each `Signal` /// yielded from `start()`. /// /// - note: starting the returned producer will start the receiver of the /// operator, which may not be adviseable for some operators. /// /// - parameters: /// - transform: A binary operator to lift. /// /// - returns: A binary operator that operates on two signal producers. public func lift<U, F, V, G>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>) -> Signal<V, G>) -> (SignalProducer<U, F>) -> SignalProducer<V, G> { return liftRight(transform) } /// Right-associative lifting of a binary signal operator over producers. /// That is, the argument producer will be started before the receiver. When /// both producers are synchronous this order can be important depending on /// the operator to generate correct results. private func liftRight<U, F, V, G>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>) -> Signal<V, G>) -> (SignalProducer<U, F>) -> SignalProducer<V, G> { return { otherProducer in return SignalProducer<V, G> { observer, outerDisposable in self.startWithSignal { signal, disposable in outerDisposable.add(disposable) otherProducer.startWithSignal { otherSignal, otherDisposable in outerDisposable += otherDisposable transform(signal)(otherSignal).observe(observer) } } } } } /// Left-associative lifting of a binary signal operator over producers. /// That is, the receiver will be started before the argument producer. When /// both producers are synchronous this order can be important depending on /// the operator to generate correct results. fileprivate func liftLeft<U, F, V, G>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>) -> Signal<V, G>) -> (SignalProducer<U, F>) -> SignalProducer<V, G> { return { otherProducer in return SignalProducer<V, G> { observer, outerDisposable in otherProducer.startWithSignal { otherSignal, otherDisposable in outerDisposable += otherDisposable self.startWithSignal { signal, disposable in outerDisposable.add(disposable) transform(signal)(otherSignal).observe(observer) } } } } } /// Lift a binary Signal operator to operate upon a Signal and a /// SignalProducer instead. /// /// In other words, this will create a new `SignalProducer` which will apply /// the given `Signal` operator to _every_ `Signal` created from the two /// producers, just as if the operator had been applied to each `Signal` /// yielded from `start()`. /// /// - parameters: /// - transform: A binary operator to lift. /// /// - returns: A binary operator that works on `Signal` and returns /// `SignalProducer`. public func lift<U, F, V, G>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>) -> Signal<V, G>) -> (Signal<U, F>) -> SignalProducer<V, G> { return { otherSignal in return self.liftRight(transform)(SignalProducer<U, F>(otherSignal)) } } /// Map each value in the producer to a new value. /// /// - parameters: /// - transform: A closure that accepts a value and returns a different /// value. /// /// - returns: A signal producer that, when started, will send a mapped /// value of `self.` public func map<U>(_ transform: @escaping (Value) -> U) -> SignalProducer<U, Error> { return lift { $0.map(transform) } } /// Map errors in the producer to a new error. /// /// - parameters: /// - transform: A closure that accepts an error object and returns a /// different error. /// /// - returns: A producer that emits errors of new type. public func mapError<F>(_ transform: @escaping (Error) -> F) -> SignalProducer<Value, F> { return lift { $0.mapError(transform) } } /// Maps each value in the producer to a new value, lazily evaluating the /// supplied transformation on the specified scheduler. /// /// - important: Unlike `map`, there is not a 1-1 mapping between incoming /// values, and values sent on the returned producer. If /// `scheduler` has not yet scheduled `transform` for /// execution, then each new value will replace the last one as /// the parameter to `transform` once it is finally executed. /// /// - parameters: /// - transform: The closure used to obtain the returned value from this /// producer's underlying value. /// /// - returns: A producer that, when started, sends values obtained using /// `transform` as this producer sends values. public func lazyMap<U>(on scheduler: Scheduler, transform: @escaping (Value) -> U) -> SignalProducer<U, Error> { return lift { $0.lazyMap(on: scheduler, transform: transform) } } /// Preserve only the values of the producer that pass the given predicate. /// /// - parameters: /// - predicate: A closure that accepts value and returns `Bool` denoting /// whether value has passed the test. /// /// - returns: A producer that, when started, will send only the values /// passing the given predicate. public func filter(_ predicate: @escaping (Value) -> Bool) -> SignalProducer<Value, Error> { return lift { $0.filter(predicate) } } /// Applies `transform` to values from the producer and forwards values with non `nil` results unwrapped. /// - parameters: /// - transform: A closure that accepts a value from the `value` event and /// returns a new optional value. /// /// - returns: A producer that will send new values, that are non `nil` after the transformation. public func filterMap<U>(_ transform: @escaping (Value) -> U?) -> SignalProducer<U, Error> { return lift { $0.filterMap(transform) } } /// Yield the first `count` values from the input producer. /// /// - precondition: `count` must be non-negative number. /// /// - parameters: /// - count: A number of values to take from the signal. /// /// - returns: A producer that, when started, will yield the first `count` /// values from `self`. public func take(first count: Int) -> SignalProducer<Value, Error> { return lift { $0.take(first: count) } } /// Yield an array of values when `self` completes. /// /// - note: When `self` completes without collecting any value, it will send /// an empty array of values. /// /// - returns: A producer that, when started, will yield an array of values /// when `self` completes. public func collect() -> SignalProducer<[Value], Error> { return lift { $0.collect() } } /// Yield an array of values until it reaches a certain count. /// /// - precondition: `count` must be greater than zero. /// /// - note: When the count is reached the array is sent and the signal /// starts over yielding a new array of values. /// /// - note: When `self` completes any remaining values will be sent, the /// last array may not have `count` values. Alternatively, if were /// not collected any values will sent an empty array of values. /// /// - returns: A producer that, when started, collects at most `count` /// values from `self`, forwards them as a single array and /// completes. public func collect(count: Int) -> SignalProducer<[Value], Error> { precondition(count > 0) return lift { $0.collect(count: count) } } /// Yield an array of values based on a predicate which matches the values /// collected. /// /// - note: When `self` completes any remaining values will be sent, the /// last array may not match `predicate`. Alternatively, if were not /// collected any values will sent an empty array of values. /// /// ```` /// let (producer, observer) = SignalProducer<Int, NoError>.buffer(1) /// /// producer /// .collect { values in values.reduce(0, combine: +) == 8 } /// .startWithValues { print($0) } /// /// observer.send(value: 1) /// observer.send(value: 3) /// observer.send(value: 4) /// observer.send(value: 7) /// observer.send(value: 1) /// observer.send(value: 5) /// observer.send(value: 6) /// observer.sendCompleted() /// /// // Output: /// // [1, 3, 4] /// // [7, 1] /// // [5, 6] /// ```` /// /// - parameters: /// - predicate: Predicate to match when values should be sent (returning /// `true`) or alternatively when they should be collected /// (where it should return `false`). The most recent value /// (`value`) is included in `values` and will be the end of /// the current array of values if the predicate returns /// `true`. /// /// - returns: A producer that, when started, collects values passing the /// predicate and, when `self` completes, forwards them as a /// single array and complets. public func collect(_ predicate: @escaping (_ values: [Value]) -> Bool) -> SignalProducer<[Value], Error> { return lift { $0.collect(predicate) } } /// Yield an array of values based on a predicate which matches the values /// collected and the next value. /// /// - note: When `self` completes any remaining values will be sent, the /// last array may not match `predicate`. Alternatively, if no /// values were collected an empty array will be sent. /// /// ```` /// let (producer, observer) = SignalProducer<Int, NoError>.buffer(1) /// /// producer /// .collect { values, value in value == 7 } /// .startWithValues { print($0) } /// /// observer.send(value: 1) /// observer.send(value: 1) /// observer.send(value: 7) /// observer.send(value: 7) /// observer.send(value: 5) /// observer.send(value: 6) /// observer.sendCompleted() /// /// // Output: /// // [1, 1] /// // [7] /// // [7, 5, 6] /// ```` /// /// - parameters: /// - predicate: Predicate to match when values should be sent (returning /// `true`) or alternatively when they should be collected /// (where it should return `false`). The most recent value /// (`vaule`) is not included in `values` and will be the /// start of the next array of values if the predicate /// returns `true`. /// /// - returns: A signal that will yield an array of values based on a /// predicate which matches the values collected and the next /// value. public func collect(_ predicate: @escaping (_ values: [Value], _ value: Value) -> Bool) -> SignalProducer<[Value], Error> { return lift { $0.collect(predicate) } } /// Forward all events onto the given scheduler, instead of whichever /// scheduler they originally arrived upon. /// /// - parameters: /// - scheduler: A scheduler to deliver events on. /// /// - returns: A producer that, when started, will yield `self` values on /// provided scheduler. public func observe(on scheduler: Scheduler) -> SignalProducer<Value, Error> { return lift { $0.observe(on: scheduler) } } /// Combine the latest value of the receiver with the latest value from the /// given producer. /// /// - note: The returned producer will not send a value until both inputs /// have sent at least one value each. /// /// - note: If either producer is interrupted, the returned producer will /// also be interrupted. /// /// - note: The returned producer will not complete until both inputs /// complete. /// /// - parameters: /// - other: A producer to combine `self`'s value with. /// /// - returns: A producer that, when started, will yield a tuple containing /// values of `self` and given producer. public func combineLatest<U>(with other: SignalProducer<U, Error>) -> SignalProducer<(Value, U), Error> { return liftLeft(Signal.combineLatest)(other) } /// Combine the latest value of the receiver with the latest value from /// the given signal. /// /// - note: The returned producer will not send a value until both inputs /// have sent at least one value each. /// /// - note: If either input is interrupted, the returned producer will also /// be interrupted. /// /// - note: The returned producer will not complete until both inputs /// complete. /// /// - parameters: /// - other: A signal to combine `self`'s value with. /// /// - returns: A producer that, when started, will yield a tuple containing /// values of `self` and given signal. public func combineLatest<U>(with other: Signal<U, Error>) -> SignalProducer<(Value, U), Error> { return lift(Signal.combineLatest(with:))(other) } /// Delay `value` and `completed` events by the given interval, forwarding /// them on the given scheduler. /// /// - note: `failed` and `interrupted` events are always scheduled /// immediately. /// /// - parameters: /// - interval: Interval to delay `value` and `completed` events by. /// - scheduler: A scheduler to deliver delayed events on. /// /// - returns: A producer that, when started, will delay `value` and /// `completed` events and will yield them on given scheduler. public func delay(_ interval: TimeInterval, on scheduler: DateScheduler) -> SignalProducer<Value, Error> { return lift { $0.delay(interval, on: scheduler) } } /// Skip the first `count` values, then forward everything afterward. /// /// - parameters: /// - count: A number of values to skip. /// /// - returns: A producer that, when started, will skip the first `count` /// values, then forward everything afterward. public func skip(first count: Int) -> SignalProducer<Value, Error> { return lift { $0.skip(first: count) } } /// Treats all Events from the input producer as plain values, allowing them /// to be manipulated just like any other value. /// /// In other words, this brings Events “into the monad.” /// /// - note: When a Completed or Failed event is received, the resulting /// producer will send the Event itself and then complete. When an /// `interrupted` event is received, the resulting producer will /// send the `Event` itself and then interrupt. /// /// - returns: A producer that sends events as its values. public func materialize() -> SignalProducer<Event<Value, Error>, NoError> { return lift { $0.materialize() } } /// Forward the latest value from `self` with the value from `sampler` as a /// tuple, only when `sampler` sends a `value` event. /// /// - note: If `sampler` fires before a value has been observed on `self`, /// nothing happens. /// /// - parameters: /// - sampler: A producer that will trigger the delivery of `value` event /// from `self`. /// /// - returns: A producer that will send values from `self` and `sampler`, /// sampled (possibly multiple times) by `sampler`, then complete /// once both input producers have completed, or interrupt if /// either input producer is interrupted. public func sample<T>(with sampler: SignalProducer<T, NoError>) -> SignalProducer<(Value, T), Error> { return liftLeft(Signal.sample(with:))(sampler) } /// Forward the latest value from `self` with the value from `sampler` as a /// tuple, only when `sampler` sends a `value` event. /// /// - note: If `sampler` fires before a value has been observed on `self`, /// nothing happens. /// /// - parameters: /// - sampler: A signal that will trigger the delivery of `value` event /// from `self`. /// /// - returns: A producer that, when started, will send values from `self` /// and `sampler`, sampled (possibly multiple times) by /// `sampler`, then complete once both input producers have /// completed, or interrupt if either input producer is /// interrupted. public func sample<T>(with sampler: Signal<T, NoError>) -> SignalProducer<(Value, T), Error> { return lift(Signal.sample(with:))(sampler) } /// Forward the latest value from `self` whenever `sampler` sends a `value` /// event. /// /// - note: If `sampler` fires before a value has been observed on `self`, /// nothing happens. /// /// - parameters: /// - sampler: A producer that will trigger the delivery of `value` event /// from `self`. /// /// - returns: A producer that, when started, will send values from `self`, /// sampled (possibly multiple times) by `sampler`, then complete /// once both input producers have completed, or interrupt if /// either input producer is interrupted. public func sample(on sampler: SignalProducer<(), NoError>) -> SignalProducer<Value, Error> { return liftLeft(Signal.sample(on:))(sampler) } /// Forward the latest value from `self` whenever `sampler` sends a `value` /// event. /// /// - note: If `sampler` fires before a value has been observed on `self`, /// nothing happens. /// /// - parameters: /// - trigger: A signal whose `value` or `completed` events will start the /// deliver of events on `self`. /// /// - returns: A producer that will send values from `self`, sampled /// (possibly multiple times) by `sampler`, then complete once /// both inputs have completed, or interrupt if either input is /// interrupted. public func sample(on sampler: Signal<(), NoError>) -> SignalProducer<Value, Error> { return lift(Signal.sample(on:))(sampler) } /// Forward the latest value from `samplee` with the value from `self` as a /// tuple, only when `self` sends a `value` event. /// This is like a flipped version of `sample(with:)`, but `samplee`'s /// terminal events are completely ignored. /// /// - note: If `self` fires before a value has been observed on `samplee`, /// nothing happens. /// /// - parameters: /// - samplee: A producer whose latest value is sampled by `self`. /// /// - returns: A signal that will send values from `self` and `samplee`, /// sampled (possibly multiple times) by `self`, then terminate /// once `self` has terminated. **`samplee`'s terminated events /// are ignored**. public func withLatest<U>(from samplee: SignalProducer<U, NoError>) -> SignalProducer<(Value, U), Error> { return liftRight(Signal.withLatest)(samplee) } /// Forward the latest value from `samplee` with the value from `self` as a /// tuple, only when `self` sends a `value` event. /// This is like a flipped version of `sample(with:)`, but `samplee`'s /// terminal events are completely ignored. /// /// - note: If `self` fires before a value has been observed on `samplee`, /// nothing happens. /// /// - parameters: /// - samplee: A signal whose latest value is sampled by `self`. /// /// - returns: A signal that will send values from `self` and `samplee`, /// sampled (possibly multiple times) by `self`, then terminate /// once `self` has terminated. **`samplee`'s terminated events /// are ignored**. public func withLatest<U>(from samplee: Signal<U, NoError>) -> SignalProducer<(Value, U), Error> { return lift(Signal.withLatest)(samplee) } /// Forwards events from `self` until `lifetime` ends, at which point the /// returned producer will complete. /// /// - parameters: /// - lifetime: A lifetime whose `ended` signal will cause the returned /// producer to complete. /// /// - returns: A producer that will deliver events until `lifetime` ends. public func take(during lifetime: Lifetime) -> SignalProducer<Value, Error> { return lift { $0.take(during: lifetime) } } /// Forward events from `self` until `trigger` sends a `value` or `completed` /// event, at which point the returned producer will complete. /// /// - parameters: /// - trigger: A producer whose `value` or `completed` events will stop the /// delivery of `value` events from `self`. /// /// - returns: A producer that will deliver events until `trigger` sends /// `value` or `completed` events. public func take(until trigger: SignalProducer<(), NoError>) -> SignalProducer<Value, Error> { return liftRight(Signal.take(until:))(trigger) } /// Forward events from `self` until `trigger` sends a `value` or /// `completed` event, at which point the returned producer will complete. /// /// - parameters: /// - trigger: A signal whose `value` or `completed` events will stop the /// delivery of `value` events from `self`. /// /// - returns: A producer that will deliver events until `trigger` sends /// `value` or `completed` events. public func take(until trigger: Signal<(), NoError>) -> SignalProducer<Value, Error> { return lift(Signal.take(until:))(trigger) } /// Do not forward any values from `self` until `trigger` sends a `value` /// or `completed`, at which point the returned producer behaves exactly /// like `producer`. /// /// - parameters: /// - trigger: A producer whose `value` or `completed` events will start /// the deliver of events on `self`. /// /// - returns: A producer that will deliver events once the `trigger` sends /// `value` or `completed` events. public func skip(until trigger: SignalProducer<(), NoError>) -> SignalProducer<Value, Error> { return liftRight(Signal.skip(until:))(trigger) } /// Do not forward any values from `self` until `trigger` sends a `value` /// or `completed`, at which point the returned signal behaves exactly like /// `signal`. /// /// - parameters: /// - trigger: A signal whose `value` or `completed` events will start the /// deliver of events on `self`. /// /// - returns: A producer that will deliver events once the `trigger` sends /// `value` or `completed` events. public func skip(until trigger: Signal<(), NoError>) -> SignalProducer<Value, Error> { return lift(Signal.skip(until:))(trigger) } /// Forward events from `self` with history: values of the returned producer /// are a tuple whose first member is the previous value and whose second /// member is the current value. `initial` is supplied as the first member /// when `self` sends its first value. /// /// - parameters: /// - initial: A value that will be combined with the first value sent by /// `self`. /// /// - returns: A producer that sends tuples that contain previous and /// current sent values of `self`. public func combinePrevious(_ initial: Value) -> SignalProducer<(Value, Value), Error> { return lift { $0.combinePrevious(initial) } } /// Send only the final value and then immediately completes. /// /// - parameters: /// - initial: Initial value for the accumulator. /// - combine: A closure that accepts accumulator and sent value of /// `self`. /// /// - returns: A producer that sends accumulated value after `self` /// completes. public func reduce<U>(_ initial: U, _ combine: @escaping (U, Value) -> U) -> SignalProducer<U, Error> { return lift { $0.reduce(initial, combine) } } /// Send only the final value and then immediately completes. /// /// - parameters: /// - initial: Initial value for the accumulator. /// - combine: A closure that accepts accumulator and sent value of /// `self`. /// /// - returns: A producer that sends accumulated value after `self` /// completes. public func reduce<U>(into initial: U, _ combine: @escaping (inout U, Value) -> Void) -> SignalProducer<U, Error> { return lift { $0.reduce(into: initial, combine) } } /// Aggregate `self`'s values into a single combined value. When `self` /// emits its first value, `combine` is invoked with `initial` as the first /// argument and that emitted value as the second argument. The result is /// emitted from the producer returned from `scan`. That result is then /// passed to `combine` as the first argument when the next value is /// emitted, and so on. /// /// - parameters: /// - initial: Initial value for the accumulator. /// - combine: A closure that accepts accumulator and sent value of /// `self`. /// /// - returns: A producer that sends accumulated value each time `self` /// emits own value. public func scan<U>(_ initial: U, _ combine: @escaping (U, Value) -> U) -> SignalProducer<U, Error> { return lift { $0.scan(initial, combine) } } /// Aggregate `self`'s values into a single combined value. When `self` /// emits its first value, `combine` is invoked with `initial` as the first /// argument and that emitted value as the second argument. The result is /// emitted from the producer returned from `scan`. That result is then /// passed to `combine` as the first argument when the next value is /// emitted, and so on. /// /// - parameters: /// - initial: Initial value for the accumulator. /// - combine: A closure that accepts accumulator and sent value of /// `self`. /// /// - returns: A producer that sends accumulated value each time `self` /// emits own value. public func scan<U>(into initial: U, _ combine: @escaping (inout U, Value) -> Void) -> SignalProducer<U, Error> { return lift { $0.scan(into: initial, combine) } } /// Forward only those values from `self` which do not pass `isRepeat` with /// respect to the previous value. /// /// - note: The first value is always forwarded. /// /// - returns: A producer that does not send two equal values sequentially. public func skipRepeats(_ isRepeat: @escaping (Value, Value) -> Bool) -> SignalProducer<Value, Error> { return lift { $0.skipRepeats(isRepeat) } } /// Do not forward any values from `self` until `predicate` returns false, /// at which point the returned producer behaves exactly like `self`. /// /// - parameters: /// - predicate: A closure that accepts a value and returns whether `self` /// should still not forward that value to a `producer`. /// /// - returns: A producer that sends only forwarded values from `self`. public func skip(while predicate: @escaping (Value) -> Bool) -> SignalProducer<Value, Error> { return lift { $0.skip(while: predicate) } } /// Forward events from `self` until `replacement` begins sending events. /// /// - parameters: /// - replacement: A producer to wait to wait for values from and start /// sending them as a replacement to `self`'s values. /// /// - returns: A producer which passes through `value`, `failed`, and /// `interrupted` events from `self` until `replacement` sends an /// event, at which point the returned producer will send that /// event and switch to passing through events from `replacement` /// instead, regardless of whether `self` has sent events /// already. public func take(untilReplacement signal: SignalProducer<Value, Error>) -> SignalProducer<Value, Error> { return liftRight(Signal.take(untilReplacement:))(signal) } /// Forwards events from `self` until `replacement` begins sending events. /// /// - parameters: /// - replacement: A signal to wait to wait for values from and start /// sending them as a replacement to `self`'s values. /// /// - returns: A producer which passes through `value`, `failed`, and /// `interrupted` events from `self` until `replacement` sends an /// event, at which point the returned producer will send that /// event and switch to passing through events from `replacement` /// instead, regardless of whether `self` has sent events /// already. public func take(untilReplacement signal: Signal<Value, Error>) -> SignalProducer<Value, Error> { return lift(Signal.take(untilReplacement:))(signal) } /// Wait until `self` completes and then forward the final `count` values /// on the returned producer. /// /// - parameters: /// - count: Number of last events to send after `self` completes. /// /// - returns: A producer that receives up to `count` values from `self` /// after `self` completes. public func take(last count: Int) -> SignalProducer<Value, Error> { return lift { $0.take(last: count) } } /// Forward any values from `self` until `predicate` returns false, at which /// point the returned producer will complete. /// /// - parameters: /// - predicate: A closure that accepts value and returns `Bool` value /// whether `self` should forward it to `signal` and continue /// sending other events. /// /// - returns: A producer that sends events until the values sent by `self` /// pass the given `predicate`. public func take(while predicate: @escaping (Value) -> Bool) -> SignalProducer<Value, Error> { return lift { $0.take(while: predicate) } } /// Zip elements of two producers into pairs. The elements of any Nth pair /// are the Nth elements of the two input producers. /// /// - parameters: /// - other: A producer to zip values with. /// /// - returns: A producer that sends tuples of `self` and `otherProducer`. public func zip<U>(with other: SignalProducer<U, Error>) -> SignalProducer<(Value, U), Error> { return liftLeft(Signal.zip(with:))(other) } /// Zip elements of this producer and a signal into pairs. The elements of /// any Nth pair are the Nth elements of the two. /// /// - parameters: /// - other: A signal to zip values with. /// /// - returns: A producer that sends tuples of `self` and `otherSignal`. public func zip<U>(with other: Signal<U, Error>) -> SignalProducer<(Value, U), Error> { return lift(Signal.zip(with:))(other) } /// Apply `operation` to values from `self` with `success`ful results /// forwarded on the returned producer and `failure`s sent as `failed` /// events. /// /// - parameters: /// - operation: A closure that accepts a value and returns a `Result`. /// /// - returns: A producer that receives `success`ful `Result` as `value` /// event and `failure` as `failed` event. public func attempt(operation: @escaping (Value) -> Result<(), Error>) -> SignalProducer<Value, Error> { return lift { $0.attempt(operation) } } /// Apply `operation` to values from `self` with `success`ful results /// mapped on the returned producer and `failure`s sent as `failed` events. /// /// - parameters: /// - operation: A closure that accepts a value and returns a result of /// a mapped value as `success`. /// /// - returns: A producer that sends mapped values from `self` if returned /// `Result` is `success`ful, `failed` events otherwise. public func attemptMap<U>(_ operation: @escaping (Value) -> Result<U, Error>) -> SignalProducer<U, Error> { return lift { $0.attemptMap(operation) } } /// Forward the latest value on `scheduler` after at least `interval` /// seconds have passed since *the returned signal* last sent a value. /// /// If `self` always sends values more frequently than `interval` seconds, /// then the returned signal will send a value every `interval` seconds. /// /// To measure from when `self` last sent a value, see `debounce`. /// /// - seealso: `debounce` /// /// - note: If multiple values are received before the interval has elapsed, /// the latest value is the one that will be passed on. /// /// - note: If `self` terminates while a value is being throttled, that /// value will be discarded and the returned producer will terminate /// immediately. /// /// - note: If the device time changed backwards before previous date while /// a value is being throttled, and if there is a new value sent, /// the new value will be passed anyway. /// /// - parameters: /// - interval: Number of seconds to wait between sent values. /// - scheduler: A scheduler to deliver events on. /// /// - returns: A producer that sends values at least `interval` seconds /// appart on a given scheduler. public func throttle(_ interval: TimeInterval, on scheduler: DateScheduler) -> SignalProducer<Value, Error> { return lift { $0.throttle(interval, on: scheduler) } } /// Conditionally throttles values sent on the receiver whenever /// `shouldThrottle` is true, forwarding values on the given scheduler. /// /// - note: While `shouldThrottle` remains false, values are forwarded on the /// given scheduler. If multiple values are received while /// `shouldThrottle` is true, the latest value is the one that will /// be passed on. /// /// - note: If the input signal terminates while a value is being throttled, /// that value will be discarded and the returned signal will /// terminate immediately. /// /// - note: If `shouldThrottle` completes before the receiver, and its last /// value is `true`, the returned signal will remain in the throttled /// state, emitting no further values until it terminates. /// /// - parameters: /// - shouldThrottle: A boolean property that controls whether values /// should be throttled. /// - scheduler: A scheduler to deliver events on. /// /// - returns: A producer that sends values only while `shouldThrottle` is false. public func throttle<P: PropertyProtocol>(while shouldThrottle: P, on scheduler: Scheduler) -> SignalProducer<Value, Error> where P.Value == Bool { // Using `Property.init(_:)` avoids capturing a strong reference // to `shouldThrottle`, so that we don't extend its lifetime. let shouldThrottle = Property(shouldThrottle) return lift { $0.throttle(while: shouldThrottle, on: scheduler) } } /// Forward the latest value on `scheduler` after at least `interval` /// seconds have passed since `self` last sent a value. /// /// If `self` always sends values more frequently than `interval` seconds, /// then the returned signal will never send any values. /// /// To measure from when the *returned signal* last sent a value, see /// `throttle`. /// /// - seealso: `throttle` /// /// - note: If multiple values are received before the interval has elapsed, /// the latest value is the one that will be passed on. /// /// - note: If `self` terminates while a value is being debounced, /// that value will be discarded and the returned producer will /// terminate immediately. /// /// - parameters: /// - interval: A number of seconds to wait before sending a value. /// - scheduler: A scheduler to send values on. /// /// - returns: A producer that sends values that are sent from `self` at /// least `interval` seconds apart. public func debounce(_ interval: TimeInterval, on scheduler: DateScheduler) -> SignalProducer<Value, Error> { return lift { $0.debounce(interval, on: scheduler) } } /// Forward events from `self` until `interval`. Then if producer isn't /// completed yet, fails with `error` on `scheduler`. /// /// - note: If the interval is 0, the timeout will be scheduled immediately. /// The producer must complete synchronously (or on a faster /// scheduler) to avoid the timeout. /// /// - parameters: /// - interval: Number of seconds to wait for `self` to complete. /// - error: Error to send with `failed` event if `self` is not completed /// when `interval` passes. /// - scheduler: A scheduler to deliver error on. /// /// - returns: A producer that sends events for at most `interval` seconds, /// then, if not `completed` - sends `error` with `failed` event /// on `scheduler`. public func timeout(after interval: TimeInterval, raising error: Error, on scheduler: DateScheduler) -> SignalProducer<Value, Error> { return lift { $0.timeout(after: interval, raising: error, on: scheduler) } } } extension SignalProducer where Value: OptionalProtocol { /// Unwraps non-`nil` values and forwards them on the returned signal, `nil` /// values are dropped. /// /// - returns: A producer that sends only non-nil values. public func skipNil() -> SignalProducer<Value.Wrapped, Error> { return lift { $0.skipNil() } } } extension SignalProducer where Value: EventProtocol, Error == NoError { /// The inverse of materialize(), this will translate a producer of `Event` /// _values_ into a producer of those events themselves. /// /// - returns: A producer that sends values carried by `self` events. public func dematerialize() -> SignalProducer<Value.Value, Value.Error> { return lift { $0.dematerialize() } } } extension SignalProducer where Error == NoError { /// Promote a producer that does not generate failures into one that can. /// /// - note: This does not actually cause failers to be generated for the /// given producer, but makes it easier to combine with other /// producers that may fail; for example, with operators like /// `combineLatestWith`, `zipWith`, `flatten`, etc. /// /// - parameters: /// - _ An `ErrorType`. /// /// - returns: A producer that has an instantiatable `ErrorType`. public func promoteErrors<F: Swift.Error>(_: F.Type) -> SignalProducer<Value, F> { return lift { $0.promoteErrors(F.self) } } /// Forward events from `self` until `interval`. Then if producer isn't /// completed yet, fails with `error` on `scheduler`. /// /// - note: If the interval is 0, the timeout will be scheduled immediately. /// The producer must complete synchronously (or on a faster /// scheduler) to avoid the timeout. /// /// - parameters: /// - interval: Number of seconds to wait for `self` to complete. /// - error: Error to send with `failed` event if `self` is not completed /// when `interval` passes. /// - scheudler: A scheduler to deliver error on. /// /// - returns: A producer that sends events for at most `interval` seconds, /// then, if not `completed` - sends `error` with `failed` event /// on `scheduler`. public func timeout<NewError: Swift.Error>( after interval: TimeInterval, raising error: NewError, on scheduler: DateScheduler ) -> SignalProducer<Value, NewError> { return lift { $0.timeout(after: interval, raising: error, on: scheduler) } } /// Apply a failable `operation` to values from `self` with successful /// results forwarded on the returned producer and thrown errors sent as /// failed events. /// /// - parameters: /// - operation: A failable closure that accepts a value. /// /// - returns: A producer that forwards successes as `value` events and thrown /// errors as `failed` events. public func attempt(_ operation: @escaping (Value) throws -> Void) -> SignalProducer<Value, AnyError> { return lift { $0.attempt(operation) } } /// Apply a failable `operation` to values from `self` with successful /// results mapped on the returned producer and thrown errors sent as /// failed events. /// /// - parameters: /// - operation: A failable closure that accepts a value and attempts to /// transform it. /// /// - returns: A producer that sends successfully mapped values from `self`, /// or thrown errors as `failed` events. public func attemptMap<U>(_ operation: @escaping (Value) throws -> U) -> SignalProducer<U, AnyError> { return lift { $0.attemptMap(operation) } } } extension SignalProducer { /// Create a `SignalProducer` that will attempt the given operation once for /// each invocation of `start()`. /// /// Upon success, the started signal will send the resulting value then /// complete. Upon failure, the started signal will fail with the error that /// occurred. /// /// - parameters: /// - operation: A closure that returns instance of `Result`. /// /// - returns: A `SignalProducer` that will forward `success`ful `result` as /// `value` event and then complete or `failed` event if `result` /// is a `failure`. public static func attempt(_ operation: @escaping () -> Result<Value, Error>) -> SignalProducer<Value, Error> { return SignalProducer<Value, Error> { observer, disposable in operation().analysis(ifSuccess: { value in observer.send(value: value) observer.sendCompleted() }, ifFailure: { error in observer.send(error: error) }) } } } // FIXME: SWIFT_COMPILER_ISSUE // // One of the `SignalProducer.attempt` overloads is kept in the protocol to // mitigate an overloading issue. Moving them back to the concrete type would be // a binary-breaking, source-compatible change. extension SignalProducerProtocol where Error == AnyError { /// Create a `SignalProducer` that will attempt the given failable operation once for /// each invocation of `start()`. /// /// Upon success, the started producer will send the resulting value then /// complete. Upon failure, the started signal will fail with the error that /// occurred. /// /// - parameters: /// - operation: A failable closure. /// /// - returns: A `SignalProducer` that will forward a success as a `value` /// event and then complete or `failed` event if the closure throws. public static func attempt(_ operation: @escaping () throws -> Value) -> SignalProducer<Value, AnyError> { return .attempt { ReactiveSwift.materialize { try operation() } } } } extension SignalProducer where Error == AnyError { /// Apply a failable `operation` to values from `self` with successful /// results forwarded on the returned producer and thrown errors sent as /// failed events. /// /// - parameters: /// - operation: A failable closure that accepts a value. /// /// - returns: A producer that forwards successes as `value` events and thrown /// errors as `failed` events. public func attempt(_ operation: @escaping (Value) throws -> Void) -> SignalProducer<Value, AnyError> { return lift { $0.attempt(operation) } } /// Apply a failable `operation` to values from `self` with successful /// results mapped on the returned producer and thrown errors sent as /// failed events. /// /// - parameters: /// - operation: A failable closure that accepts a value and attempts to /// transform it. /// /// - returns: A producer that sends successfully mapped values from `self`, /// or thrown errors as `failed` events. public func attemptMap<U>(_ operation: @escaping (Value) throws -> U) -> SignalProducer<U, AnyError> { return lift { $0.attemptMap(operation) } } } extension SignalProducer where Value: Equatable { /// Forward only those values from `self` which are not duplicates of the /// immedately preceding value. /// /// - note: The first value is always forwarded. /// /// - returns: A producer that does not send two equal values sequentially. public func skipRepeats() -> SignalProducer<Value, Error> { return lift { $0.skipRepeats() } } } extension SignalProducer { /// Forward only those values from `self` that have unique identities across /// the set of all values that have been seen. /// /// - note: This causes the identities to be retained to check for /// uniqueness. /// /// - parameters: /// - transform: A closure that accepts a value and returns identity /// value. /// /// - returns: A producer that sends unique values during its lifetime. public func uniqueValues<Identity: Hashable>(_ transform: @escaping (Value) -> Identity) -> SignalProducer<Value, Error> { return lift { $0.uniqueValues(transform) } } } extension SignalProducer where Value: Hashable { /// Forward only those values from `self` that are unique across the set of /// all values that have been seen. /// /// - note: This causes the values to be retained to check for uniqueness. /// Providing a function that returns a unique value for each sent /// value can help you reduce the memory footprint. /// /// - returns: A producer that sends unique values during its lifetime. public func uniqueValues() -> SignalProducer<Value, Error> { return lift { $0.uniqueValues() } } } extension SignalProducer { /// Injects side effects to be performed upon the specified producer events. /// /// - note: In a composed producer, `starting` is invoked in the reverse /// direction of the flow of events. /// /// - parameters: /// - starting: A closure that is invoked before the producer is started. /// - started: A closure that is invoked after the producer is started. /// - event: A closure that accepts an event and is invoked on every /// received event. /// - failed: A closure that accepts error object and is invoked for /// `failed` event. /// - completed: A closure that is invoked for `completed` event. /// - interrupted: A closure that is invoked for `interrupted` event. /// - terminated: A closure that is invoked for any terminating event. /// - disposed: A closure added as disposable when signal completes. /// - value: A closure that accepts a value from `value` event. /// /// - returns: A producer with attached side-effects for given event cases. public func on( starting: (() -> Void)? = nil, started: (() -> Void)? = nil, event: ((Event<Value, Error>) -> Void)? = nil, failed: ((Error) -> Void)? = nil, completed: (() -> Void)? = nil, interrupted: (() -> Void)? = nil, terminated: (() -> Void)? = nil, disposed: (() -> Void)? = nil, value: ((Value) -> Void)? = nil ) -> SignalProducer<Value, Error> { return SignalProducer { observer, compositeDisposable in starting?() defer { started?() } self.startWithSignal { signal, disposable in compositeDisposable += disposable signal .on( event: event, failed: failed, completed: completed, interrupted: interrupted, terminated: terminated, disposed: disposed, value: value ) .observe(observer) } } } /// Start the returned producer on the given `Scheduler`. /// /// - note: This implies that any side effects embedded in the producer will /// be performed on the given scheduler as well. /// /// - note: Events may still be sent upon other schedulers — this merely /// affects where the `start()` method is run. /// /// - parameters: /// - scheduler: A scheduler to deliver events on. /// /// - returns: A producer that will deliver events on given `scheduler` when /// started. public func start(on scheduler: Scheduler) -> SignalProducer<Value, Error> { return SignalProducer { observer, compositeDisposable in compositeDisposable += scheduler.schedule { self.startWithSignal { signal, signalDisposable in compositeDisposable += signalDisposable signal.observe(observer) } } } } } extension SignalProducer { /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>) -> SignalProducer<(Value, B), Error> { return a.combineLatest(with: b) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>) -> SignalProducer<(Value, B, C), Error> { return combineLatest(a, b) .combineLatest(with: c) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>) -> SignalProducer<(Value, B, C, D), Error> { return combineLatest(a, b, c) .combineLatest(with: d) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>) -> SignalProducer<(Value, B, C, D, E), Error> { return combineLatest(a, b, c, d) .combineLatest(with: e) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E, F>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>) -> SignalProducer<(Value, B, C, D, E, F), Error> { return combineLatest(a, b, c, d, e) .combineLatest(with: f) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E, F, G>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>) -> SignalProducer<(Value, B, C, D, E, F, G), Error> { return combineLatest(a, b, c, d, e, f) .combineLatest(with: g) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E, F, G, H>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H), Error> { return combineLatest(a, b, c, d, e, f, g) .combineLatest(with: h) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E, F, G, H, I>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>, _ i: SignalProducer<I, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H, I), Error> { return combineLatest(a, b, c, d, e, f, g, h) .combineLatest(with: i) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. public static func combineLatest<B, C, D, E, F, G, H, I, J>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>, _ i: SignalProducer<I, Error>, _ j: SignalProducer<J, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H, I, J), Error> { return combineLatest(a, b, c, d, e, f, g, h, i) .combineLatest(with: j) .map(repack) } /// Combines the values of all the given producers, in the manner described by /// `combineLatest(with:)`. Will return an empty `SignalProducer` if the sequence is empty. public static func combineLatest<S: Sequence>(_ producers: S) -> SignalProducer<[Value], Error> where S.Iterator.Element == SignalProducer<Value, Error> { var generator = producers.makeIterator() if let first = generator.next() { let initial = first.map { [$0] } return IteratorSequence(generator).reduce(initial) { producer, next in producer.combineLatest(with: next).map { $0.0 + [$0.1] } } } return .empty } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>) -> SignalProducer<(Value, B), Error> { return a.zip(with: b) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>) -> SignalProducer<(Value, B, C), Error> { return zip(a, b) .zip(with: c) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>) -> SignalProducer<(Value, B, C, D), Error> { return zip(a, b, c) .zip(with: d) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>) -> SignalProducer<(Value, B, C, D, E), Error> { return zip(a, b, c, d) .zip(with: e) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E, F>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>) -> SignalProducer<(Value, B, C, D, E, F), Error> { return zip(a, b, c, d, e) .zip(with: f) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E, F, G>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>) -> SignalProducer<(Value, B, C, D, E, F, G), Error> { return zip(a, b, c, d, e, f) .zip(with: g) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E, F, G, H>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H), Error> { return zip(a, b, c, d, e, f, g) .zip(with: h) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E, F, G, H, I>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>, _ i: SignalProducer<I, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H, I), Error> { return zip(a, b, c, d, e, f, g, h) .zip(with: i) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. public static func zip<B, C, D, E, F, G, H, I, J>(_ a: SignalProducer<Value, Error>, _ b: SignalProducer<B, Error>, _ c: SignalProducer<C, Error>, _ d: SignalProducer<D, Error>, _ e: SignalProducer<E, Error>, _ f: SignalProducer<F, Error>, _ g: SignalProducer<G, Error>, _ h: SignalProducer<H, Error>, _ i: SignalProducer<I, Error>, _ j: SignalProducer<J, Error>) -> SignalProducer<(Value, B, C, D, E, F, G, H, I, J), Error> { return zip(a, b, c, d, e, f, g, h, i) .zip(with: j) .map(repack) } /// Zips the values of all the given producers, in the manner described by /// `zipWith`. Will return an empty `SignalProducer` if the sequence is empty. public static func zip<S: Sequence>(_ producers: S) -> SignalProducer<[Value], Error> where S.Iterator.Element == SignalProducer<Value, Error> { var generator = producers.makeIterator() if let first = generator.next() { let initial = first.map { [$0] } return IteratorSequence(generator).reduce(initial) { producer, next in producer.zip(with: next).map { $0.0 + [$0.1] } } } return .empty } } extension SignalProducer { /// Repeat `self` a total of `count` times. In other words, start producer /// `count` number of times, each one after previously started producer /// completes. /// /// - note: Repeating `1` time results in an equivalent signal producer. /// /// - note: Repeating `0` times results in a producer that instantly /// completes. /// /// - precondition: `count` must be non-negative integer. /// /// - parameters: /// - count: Number of repetitions. /// /// - returns: A signal producer start sequentially starts `self` after /// previously started producer completes. public func `repeat`(_ count: Int) -> SignalProducer<Value, Error> { precondition(count >= 0) if count == 0 { return .empty } else if count == 1 { return producer } return SignalProducer { observer, disposable in let serialDisposable = SerialDisposable() disposable += serialDisposable func iterate(_ current: Int) { self.startWithSignal { signal, signalDisposable in serialDisposable.inner = signalDisposable signal.observe { event in if case .completed = event { let remainingTimes = current - 1 if remainingTimes > 0 { iterate(remainingTimes) } else { observer.sendCompleted() } } else { observer.action(event) } } } } iterate(count) } } /// Ignore failures up to `count` times. /// /// - precondition: `count` must be non-negative integer. /// /// - parameters: /// - count: Number of retries. /// /// - returns: A signal producer that restarts up to `count` times. public func retry(upTo count: Int) -> SignalProducer<Value, Error> { precondition(count >= 0) if count == 0 { return producer } else { return flatMapError { _ in self.retry(upTo: count - 1) } } } /// Wait for completion of `self`, *then* forward all events from /// `replacement`. Any failure or interruption sent from `self` is /// forwarded immediately, in which case `replacement` will not be started, /// and none of its events will be be forwarded. /// /// - note: All values sent from `self` are ignored. /// /// - parameters: /// - replacement: A producer to start when `self` completes. /// /// - returns: A producer that sends events from `self` and then from /// `replacement` when `self` completes. public func then<U>(_ replacement: SignalProducer<U, NoError>) -> SignalProducer<U, Error> { return _then(replacement.promoteErrors(Error.self)) } /// Wait for completion of `self`, *then* forward all events from /// `replacement`. Any failure or interruption sent from `self` is /// forwarded immediately, in which case `replacement` will not be started, /// and none of its events will be be forwarded. /// /// - note: All values sent from `self` are ignored. /// /// - parameters: /// - replacement: A producer to start when `self` completes. /// /// - returns: A producer that sends events from `self` and then from /// `replacement` when `self` completes. public func then<U>(_ replacement: SignalProducer<U, Error>) -> SignalProducer<U, Error> { return _then(replacement) } // NOTE: The overload below is added to disambiguate compile-time selection of // `then(_:)`. /// Wait for completion of `self`, *then* forward all events from /// `replacement`. Any failure or interruption sent from `self` is /// forwarded immediately, in which case `replacement` will not be started, /// and none of its events will be be forwarded. /// /// - note: All values sent from `self` are ignored. /// /// - parameters: /// - replacement: A producer to start when `self` completes. /// /// - returns: A producer that sends events from `self` and then from /// `replacement` when `self` completes. public func then(_ replacement: SignalProducer<Value, Error>) -> SignalProducer<Value, Error> { return _then(replacement) } // NOTE: The method below is the shared implementation of `then(_:)`. The underscore // prefix is added to avoid self referencing in `then(_:)` overloads with // regard to the most specific rule of overload selection in Swift. internal func _then<U>(_ replacement: SignalProducer<U, Error>) -> SignalProducer<U, Error> { return SignalProducer<U, Error> { observer, observerDisposable in self.startWithSignal { signal, signalDisposable in observerDisposable += signalDisposable signal.observe { event in switch event { case let .failed(error): observer.send(error: error) case .completed: observerDisposable += replacement.start(observer) case .interrupted: observer.sendInterrupted() case .value: break } } } } } } extension SignalProducer where Error == NoError { /// Wait for completion of `self`, *then* forward all events from /// `replacement`. /// /// - note: All values sent from `self` are ignored. /// /// - parameters: /// - replacement: A producer to start when `self` completes. /// /// - returns: A producer that sends events from `self` and then from /// `replacement` when `self` completes. public func then<U, NewError: Swift.Error>(_ replacement: SignalProducer<U, NewError>) -> SignalProducer<U, NewError> { return promoteErrors(NewError.self)._then(replacement) } // NOTE: The overload below is added to disambiguate compile-time selection of // `then(_:)`. /// Wait for completion of `self`, *then* forward all events from /// `replacement`. /// /// - note: All values sent from `self` are ignored. /// /// - parameters: /// - replacement: A producer to start when `self` completes. /// /// - returns: A producer that sends events from `self` and then from /// `replacement` when `self` completes. public func then<U>(_ replacement: SignalProducer<U, NoError>) -> SignalProducer<U, NoError> { return _then(replacement) } } extension SignalProducer { /// Start the producer, then block, waiting for the first value. /// /// When a single value or error is sent, the returned `Result` will /// represent those cases. However, when no values are sent, `nil` will be /// returned. /// /// - returns: Result when single `value` or `failed` event is received. /// `nil` when no events are received. public func first() -> Result<Value, Error>? { return take(first: 1).single() } /// Start the producer, then block, waiting for events: `value` and /// `completed`. /// /// When a single value or error is sent, the returned `Result` will /// represent those cases. However, when no values are sent, or when more /// than one value is sent, `nil` will be returned. /// /// - returns: Result when single `value` or `failed` event is received. /// `nil` when 0 or more than 1 events are received. public func single() -> Result<Value, Error>? { let semaphore = DispatchSemaphore(value: 0) var result: Result<Value, Error>? take(first: 2).start { event in switch event { case let .value(value): if result != nil { // Move into failure state after recieving another value. result = nil return } result = .success(value) case let .failed(error): result = .failure(error) semaphore.signal() case .completed, .interrupted: semaphore.signal() } } semaphore.wait() return result } /// Start the producer, then block, waiting for the last value. /// /// When a single value or error is sent, the returned `Result` will /// represent those cases. However, when no values are sent, `nil` will be /// returned. /// /// - returns: Result when single `value` or `failed` event is received. /// `nil` when no events are received. public func last() -> Result<Value, Error>? { return take(last: 1).single() } /// Starts the producer, then blocks, waiting for completion. /// /// When a completion or error is sent, the returned `Result` will represent /// those cases. /// /// - returns: Result when single `completion` or `failed` event is /// received. public func wait() -> Result<(), Error> { return then(SignalProducer<(), Error>(value: ())).last() ?? .success(()) } /// Creates a new `SignalProducer` that will multicast values emitted by /// the underlying producer, up to `capacity`. /// This means that all clients of this `SignalProducer` will see the same /// version of the emitted values/errors. /// /// The underlying `SignalProducer` will not be started until `self` is /// started for the first time. When subscribing to this producer, all /// previous values (up to `capacity`) will be emitted, followed by any new /// values. /// /// If you find yourself needing *the current value* (the last buffered /// value) you should consider using `PropertyType` instead, which, unlike /// this operator, will guarantee at compile time that there's always a /// buffered value. This operator is not recommended in most cases, as it /// will introduce an implicit relationship between the original client and /// the rest, so consider alternatives like `PropertyType`, or representing /// your stream using a `Signal` instead. /// /// This operator is only recommended when you absolutely need to introduce /// a layer of caching in front of another `SignalProducer`. /// /// - precondition: `capacity` must be non-negative integer. /// /// - parameters: /// - capacity: Number of values to hold. /// /// - returns: A caching producer that will hold up to last `capacity` /// values. public func replayLazily(upTo capacity: Int) -> SignalProducer<Value, Error> { precondition(capacity >= 0, "Invalid capacity: \(capacity)") // This will go "out of scope" when the returned `SignalProducer` goes // out of scope. This lets us know when we're supposed to dispose the // underlying producer. This is necessary because `struct`s don't have // `deinit`. let lifetimeToken = Lifetime.Token() let lifetime = Lifetime(lifetimeToken) let state = Atomic(ReplayState<Value, Error>(upTo: capacity)) let start: Atomic<(() -> Void)?> = Atomic { // Start the underlying producer. self .take(during: lifetime) .start { event in let observers: Bag<Signal<Value, Error>.Observer>? = state.modify { state in defer { state.enqueue(event) } return state.observers } observers?.forEach { $0.action(event) } } } return SignalProducer { observer, disposable in // Don't dispose of the original producer until all observers // have terminated. disposable += { _ = lifetimeToken } while true { var result: Result<Bag<Signal<Value, Error>.Observer>.Token?, ReplayError<Value>>! state.modify { result = $0.observe(observer) } switch result! { case let .success(token): if let token = token { disposable += { state.modify { $0.removeObserver(using: token) } } } // Start the underlying producer if it has never been started. start.swap(nil)?() // Terminate the replay loop. return case let .failure(error): error.values.forEach(observer.send(value:)) } } } } } extension SignalProducer where Value == Bool { /// Create a producer that computes a logical NOT in the latest values of `self`. /// /// - returns: A producer that emits the logical NOT results. public func negate() -> SignalProducer<Value, Error> { return self.lift { $0.negate() } } /// Create a producer that computes a logical AND between the latest values of `self` /// and `producer`. /// /// - parameters: /// - producer: Producer to be combined with `self`. /// /// - returns: A producer that emits the logical AND results. public func and(_ producer: SignalProducer<Value, Error>) -> SignalProducer<Value, Error> { return self.liftLeft(Signal.and)(producer) } /// Create a producer that computes a logical AND between the latest values of `self` /// and `signal`. /// /// - parameters: /// - signal: Signal to be combined with `self`. /// /// - returns: A producer that emits the logical AND results. public func and(_ signal: Signal<Value, Error>) -> SignalProducer<Value, Error> { return self.lift(Signal.and)(signal) } /// Create a producer that computes a logical OR between the latest values of `self` /// and `producer`. /// /// - parameters: /// - producer: Producer to be combined with `self`. /// /// - returns: A producer that emits the logical OR results. public func or(_ producer: SignalProducer<Value, Error>) -> SignalProducer<Value, Error> { return self.liftLeft(Signal.or)(producer) } /// Create a producer that computes a logical OR between the latest values of `self` /// and `signal`. /// /// - parameters: /// - signal: Signal to be combined with `self`. /// /// - returns: A producer that emits the logical OR results. public func or(_ signal: Signal<Value, Error>) -> SignalProducer<Value, Error> { return self.lift(Signal.or)(signal) } } /// Represents a recoverable error of an observer not being ready for an /// attachment to a `ReplayState`, and the observer should replay the supplied /// values before attempting to observe again. private struct ReplayError<Value>: Error { /// The values that should be replayed by the observer. let values: [Value] } private struct ReplayState<Value, Error: Swift.Error> { let capacity: Int /// All cached values. var values: [Value] = [] /// A termination event emitted by the underlying producer. /// /// This will be nil if termination has not occurred. var terminationEvent: Event<Value, Error>? /// The observers currently attached to the caching producer, or `nil` if the /// caching producer was terminated. var observers: Bag<Signal<Value, Error>.Observer>? = Bag() /// The set of in-flight replay buffers. var replayBuffers: [ObjectIdentifier: [Value]] = [:] /// Initialize the replay state. /// /// - parameters: /// - capacity: The maximum amount of values which can be cached by the /// replay state. init(upTo capacity: Int) { self.capacity = capacity } /// Attempt to observe the replay state. /// /// - warning: Repeatedly observing the replay state with the same observer /// should be avoided. /// /// - parameters: /// - observer: The observer to be registered. /// /// - returns: If the observer is successfully attached, a `Result.success` /// with the corresponding removal token would be returned. /// Otherwise, a `Result.failure` with a `ReplayError` would be /// returned. mutating func observe(_ observer: Signal<Value, Error>.Observer) -> Result<Bag<Signal<Value, Error>.Observer>.Token?, ReplayError<Value>> { // Since the only use case is `replayLazily`, which always creates a unique // `Observer` for every produced signal, we can use the ObjectIdentifier of // the `Observer` to track them directly. let id = ObjectIdentifier(observer) switch replayBuffers[id] { case .none where !values.isEmpty: // No in-flight replay buffers was found, but the `ReplayState` has one or // more cached values in the `ReplayState`. The observer should replay // them before attempting to observe again. replayBuffers[id] = [] return .failure(ReplayError(values: values)) case let .some(buffer) where !buffer.isEmpty: // An in-flight replay buffer was found with one or more buffered values. // The observer should replay them before attempting to observe again. defer { replayBuffers[id] = [] } return .failure(ReplayError(values: buffer)) case let .some(buffer) where buffer.isEmpty: // Since an in-flight but empty replay buffer was found, the observer is // ready to be attached to the `ReplayState`. replayBuffers.removeValue(forKey: id) default: // No values has to be replayed. The observer is ready to be attached to // the `ReplayState`. break } if let event = terminationEvent { observer.action(event) } return .success(observers?.insert(observer)) } /// Enqueue the supplied event to the replay state. /// /// - parameter: /// - event: The event to be cached. mutating func enqueue(_ event: Event<Value, Error>) { switch event { case let .value(value): for key in replayBuffers.keys { replayBuffers[key]!.append(value) } switch capacity { case 0: // With a capacity of zero, `state.values` can never be filled. break case 1: values = [value] default: values.append(value) let overflow = values.count - capacity if overflow > 0 { values.removeFirst(overflow) } } case .completed, .failed, .interrupted: // Disconnect all observers and prevent future attachments. terminationEvent = event observers = nil } } /// Remove the observer represented by the supplied token. /// /// - parameters: /// - token: The token of the observer to be removed. mutating func removeObserver(using token: Bag<Signal<Value, Error>.Observer>.Token) { observers?.remove(using: token) } } extension SignalProducer where Value == Date, Error == NoError { /// Create a repeating timer of the given interval, with a reasonable default /// leeway, sending updates on the given scheduler. /// /// - note: This timer will never complete naturally, so all invocations of /// `start()` must be disposed to avoid leaks. /// /// - precondition: `interval` must be non-negative number. /// /// - note: If you plan to specify an `interval` value greater than 200,000 /// seconds, use `timer(interval:on:leeway:)` instead /// and specify your own `leeway` value to avoid potential overflow. /// /// - parameters: /// - interval: An interval between invocations. /// - scheduler: A scheduler to deliver events on. /// /// - returns: A producer that sends `NSDate` values every `interval` seconds. public static func timer(interval: DispatchTimeInterval, on scheduler: DateScheduler) -> SignalProducer<Value, Error> { // Apple's "Power Efficiency Guide for Mac Apps" recommends a leeway of // at least 10% of the timer interval. return timer(interval: interval, on: scheduler, leeway: interval * 0.1) } /// Creates a repeating timer of the given interval, sending updates on the /// given scheduler. /// /// - note: This timer will never complete naturally, so all invocations of /// `start()` must be disposed to avoid leaks. /// /// - precondition: `interval` must be non-negative number. /// /// - precondition: `leeway` must be non-negative number. /// /// - parameters: /// - interval: An interval between invocations. /// - scheduler: A scheduler to deliver events on. /// - leeway: Interval leeway. Apple's "Power Efficiency Guide for Mac Apps" /// recommends a leeway of at least 10% of the timer interval. /// /// - returns: A producer that sends `NSDate` values every `interval` seconds. public static func timer(interval: DispatchTimeInterval, on scheduler: DateScheduler, leeway: DispatchTimeInterval) -> SignalProducer<Value, Error> { precondition(interval.timeInterval >= 0) precondition(leeway.timeInterval >= 0) return SignalProducer { observer, compositeDisposable in compositeDisposable += scheduler.schedule(after: scheduler.currentDate.addingTimeInterval(interval), interval: interval, leeway: leeway, action: { observer.send(value: scheduler.currentDate) }) } } }
[ 116629 ]
0da91f43da99e39cc1505674ffcb0f859b30ea57
a035a05a7ca09a4fc0cc6506551febef34d366fd
/mes apps iOS 13/GreekGodsApp/GreekGodsApp/Model/God.swift
e0f24299f16893c9924c7e0e9ddc88a611b76135
[]
no_license
Starkiller75000/SwiftProjects
2884ee204a640f2be34cd4d3a377d8ee5db39059
339049950e66cf2c2a3d1f3d306bcdab38a02abf
refs/heads/master
2022-11-14T18:13:28.155997
2020-07-02T13:40:23
2020-07-02T13:40:23
276,655,498
0
0
null
null
null
null
UTF-8
Swift
false
false
560
swift
// // God.swift // GreekGodsApp // // Created by Benoît Bouton on 19/06/2020. // Copyright © 2020 Benoît Bouton. All rights reserved. // import UIKit class God { var name: String var desc: String var image: UIImage? { let imageAccent = name.lowercased() let imageNoAccent = imageAccent.replacingOccurrences(of: "é", with: "e").replacingOccurrences(of: "è", with: "e") return UIImage(named: imageNoAccent) } init(name: String, desc: String) { self.name = name self.desc = desc } }
[ -1 ]
bcaffd8c9564b386cca5615404adc742dfb82de6
2fd73bd890f0b2bb7c7e1df8410211baba87d681
/HandyTwitter/TweetCell.swift
7acd323e65752ecbd8e8e061817b70575c1c3e0b
[ "Apache-2.0" ]
permissive
quayphong/HandyTwitter
b813363b521d3d2e4aae7296cc6f9a5048429800
073ee2bf5eb0e46ebf67f212c85352e42d23c362
refs/heads/master
2021-01-17T11:23:07.380742
2017-03-06T05:37:45
2017-03-06T05:37:45
84,032,723
0
0
null
null
null
null
UTF-8
Swift
false
false
2,643
swift
// // TweetCell.swift // HandyTwitter // // Created by Phong on 4/3/17. // Copyright © 2017 Phong. All rights reserved. // import UIKit import AFNetworking class TweetCell: UITableViewCell { @IBOutlet weak var profileImage: UIImageView! @IBOutlet weak var userNameLabel: UILabel! @IBOutlet weak var timeStampLabel: UILabel! @IBOutlet weak var tweetTextLabel: UILabel! @IBOutlet weak var retweetLabel: UILabel! @IBOutlet weak var screenNameLabel: UILabel! @IBOutlet weak var retweetImage: UIImageView! @IBOutlet weak var retweetIcon: UIImageView! @IBOutlet weak var retweetCountLabel: UILabel! @IBOutlet weak var favoriteIcon: UIImageView! @IBOutlet weak var favoriteCountLabel: UILabel! @IBOutlet weak var profileImgTopConstraint: NSLayoutConstraint! var tweet: Tweet! { didSet{ if tweet.user?.profileImageUrl != nil { profileImage.setImageWith((tweet.user?.profileImageUrl!)!) } userNameLabel.text = tweet.user?.name screenNameLabel.text = "@\(tweet.user!.screenName!)" timeStampLabel.text = tweet.timeSinceCreated tweetTextLabel.text = tweet.text retweetCountLabel.text = String(tweet.retweetCount) favoriteCountLabel.text = String(tweet.favCount) if tweet.favorited != nil && tweet.favorited == true{ favoriteIcon.image = UIImage(named: "like_on") } else{ favoriteIcon.image = UIImage(named: "like_off") } if tweet.retweeted != nil && tweet.retweeted == true{ retweetIcon.image = UIImage(named: "retweet_on") }else{ retweetIcon.image = UIImage(named: "retweet_off") } if tweet.isRetweeted != nil && tweet.isRetweeted == true { retweetLabel.text = "\(tweet.retweetedBy!) retweeted" retweetImage.isHidden = false profileImgTopConstraint.constant = 28 } else{ retweetLabel.text = "" retweetImage.isHidden = true profileImgTopConstraint.constant = 8 //self.view.layoutIfNeeded() } } } override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }
[ -1 ]
95d5d4253b6f2e7ade05e266e8669cc69f6b414f
5ca4f8231a816c3bbe1487b44fd7efb4bf1e9f2b
/Market/Helpers/Constants.swift
a8ece79369d0d0910876923f3c01c41e89d48f69
[]
no_license
EKrkmz/Market
3461db682f81abd35ce2958c73d6e52391c6e454
7f03d47bc6c9f20e660cba338cdc588fdcb9f4d4
refs/heads/main
2023-04-27T11:17:38.698392
2021-05-10T10:11:45
2021-05-10T10:11:45
365,220,886
1
0
null
null
null
null
UTF-8
Swift
false
false
930
swift
// // Constants.swift // Market // // Created by MYMACBOOK on 27.04.2021. // //import Foundation //MARK: - Users public let USER1 = "User 1" public let USER2 = "User 2" //MARK: - IDs and Keys public let kFILEREFERENCE = "gs://projem-366b9.appspot.com" //MARK: - Firebase Headers /* public let kUSER_PATH = "User" public let kCATEGORY_PATH = "Category" public let kITEMS_PATH = "Items" public let kBASKET_PATH = "Basket" public let kCOMMENT_PATH = "Comments"*/ //MARK: - Category public let kNAME = "name" public let kIMAGENAME = "imageName" public let kOBJECTID = "objectId" //MARK: - Item public let kCATEGORYID = "categoryId" public let kDESCRIPTION = "description" public let kPRICE = "price" public let kIMAGELINK = "imageLink" //MARK: - Basket public let kOWNERID = "ownerId" public let kITEMIDS = "itemIds" //MARK: - Comment public let kCOMMENT = "comment" public let kITEMID = "itemId" public let kDATE = "date"
[ -1 ]
985cdf2e20ae7897eb05ab9399a53739cf8ade55
d6a38a67595bae9c324965f71e4becb849f292ca
/Art Book/TableViewController.swift
bd2c159976eabac12d2ddacb181c693bf8b6f6f9
[]
no_license
Tarrasse/Art-app-ios-udemy
b1422e09af0c2e3380c5ea1055ba67fa1971a714
aba39c2c900fcd25e0b76ec5c9f05a035d198270
refs/heads/master
2021-01-18T17:06:14.517837
2017-08-16T11:50:20
2017-08-16T11:50:20
100,483,783
0
0
null
null
null
null
UTF-8
Swift
false
false
4,702
swift
// // TableViewController.swift // Art Book // // Created by Mahmoud El-Tarrasse on 8/14/17. // Copyright © 2017 Mahmoud El-Tarrasse. All rights reserved. // import UIKit import CoreData class TableViewController: UITableViewController { let cellId = "id" var names = [String]() var years = [Int]() var artists = [String]() var images = [UIImage]() var selectedPainting = "" override func viewDidLoad() { super.viewDidLoad() reviveData() } private func reviveData(){ names.removeAll() years.removeAll() artists.removeAll() images.removeAll() let appDelegate = UIApplication.shared.delegate as? AppDelegate let context = appDelegate?.persistentContainer.viewContext let fetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: "Paintings") fetchRequest.returnsObjectsAsFaults = false do{ let results = try context?.fetch(fetchRequest) if (results?.count)! > 0{ for result in (results as? [NSManagedObject])!{ if let name = result.value(forKey: "name") as? String{ names.append(name) } if let year = result.value(forKey: "year") as? Int{ years.append(year) } if let artist = result.value(forKey: "artist")as? String{ artists.append(artist) } if let imageData = result.value(forKey: "image") as? Data{ let image = UIImage(data: imageData) images.append(image!) } } } }catch{ print("retch error") } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } // MARK: - Table view data source override func numberOfSections(in tableView: UITableView) -> Int { return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return images.count } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: cellId, for: indexPath) cell.textLabel?.text = names[indexPath.row] cell.detailTextLabel?.text = artists[indexPath.row] return cell } override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { self.selectedPainting = names[indexPath.row] performSegue(withIdentifier: "toCreate", sender: nil) } /* // Override to support conditional editing of the table view. override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { // Return false if you do not want the specified item to be editable. return true } */ /* // Override to support editing the table view. override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { // Delete the row from the data source tableView.deleteRows(at: [indexPath], with: .fade) } else if editingStyle == .insert { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } */ /* // Override to support rearranging the table view. override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { } */ /* // Override to support conditional rearranging of the table view. override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { // Return false if you do not want the item to be re-orderable. return true } */ // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "toCreate"{ if let destVC = segue.destination as? ItemViewController{ print(self.selectedPainting) destVC.chosenPainting = selectedPainting } } } }
[ -1 ]
808bc01c83f21947bd31853450e82090cfc8504f
8da86a4d400cebda3f253aa89566dc0167c71a95
/RxSwiftDemo/AppDelegate.swift
c16478a7e60ce75a56ea9e045b23df861c8173bd
[ "MIT" ]
permissive
chuangliu133130/RxSwiftDemo
4e393d2f26652b40d26230f0b8ff66b1786ec0d3
265449fcf08057f8eb2e86422b8bdc158bc5bfd9
refs/heads/master
2021-12-15T04:11:48.077869
2017-07-26T09:36:56
2017-07-26T09:36:56
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,171
swift
// // AppDelegate.swift // RxSwiftDemo // // Created by Scott_Mr on 2017/7/24. // Copyright © 2017年 Scott. 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 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, 229426, 237618, 229428, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 319809, 319810, 278849, 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, 98756, 278980, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 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, 279178, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 287398, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 230284, 304013, 295822, 213902, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 304065, 189378, 213954, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 164973, 205934, 279661, 312432, 279669, 337018, 66690, 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, 214294, 296215, 320792, 230681, 230679, 296213, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 279929, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 288154, 337306, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 148946, 370130, 222676, 288210, 288212, 288214, 239064, 329177, 288217, 288218, 280027, 288220, 239070, 288224, 370146, 280034, 288226, 288229, 280036, 280038, 288232, 288230, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 181854, 370272, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 321336, 296767, 288576, 345921, 304968, 280393, 280402, 173907, 313171, 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, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 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, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 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, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 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, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 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, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 282481, 110450, 315251, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 299191, 176311, 307386, 258235, 307388, 176316, 307390, 307385, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 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, 291299, 127463, 242152, 291305, 127466, 176620, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 135689, 233994, 127497, 127500, 291341, 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, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 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, 316294, 226182, 234375, 308105, 226185, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 324504, 234396, 291742, 324508, 234398, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 234410, 291756, 291754, 226220, 324527, 234414, 234417, 201650, 324531, 291760, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226239, 226245, 234439, 234443, 291788, 234446, 193486, 193488, 234449, 275406, 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, 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, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 234648, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 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, 275725, 177424, 283917, 349451, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 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, 284223, 284226, 284228, 243268, 292421, 284231, 226886, 128584, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276052, 276053, 284249, 300638, 284251, 284253, 243293, 284258, 284255, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276452, 292839, 276455, 292843, 276460, 178161, 227314, 325624, 276472, 317435, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 350302, 194654, 350304, 178273, 309346, 227423, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 153765, 284837, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 293346, 227810, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 285265, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 318132, 342707, 154292, 277173, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 293706, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 277804, 285997, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 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, 302614, 302617, 286233, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 245288, 310831, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 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, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
700f3a67124bf0197df451c1366df8243cadd4ed
3b9b539640ce6b05ce922f2a13e8d6bb77e61aae
/Demos/苹果地图拖动/Pulley/Pulley/AppDelegate.swift
ab46ce30ff0c47d66f9d54f85f36d1d9c6770baa
[ "MIT" ]
permissive
mohsinalimat/Pandora
5e356449b9066875afdcb8563d0ae17e48cdb649
6c8d7a08e9d1c9919678288f557f25156f36295e
refs/heads/master
2020-11-23T20:40:06.920922
2019-07-15T06:27:40
2019-07-15T06:27:40
227,811,231
1
0
MIT
2019-12-13T10:10:04
2019-12-13T10:10:03
null
UTF-8
Swift
false
false
3,171
swift
// // AppDelegate.swift // Pulley // // Created by Brendan Lee on 7/6/16. // Copyright © 2016 52inc. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { // Override point for customization after application launch. window = UIWindow(frame: UIScreen.main.bounds) // To create from a Storyboard window?.rootViewController = UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController()! // To create in code (uncomment this block) /* let mainContentVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "PrimaryContentViewController") let drawerContentVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DrawerContentViewController") let pulleyDrawerVC = PulleyViewController(contentViewController: mainContentVC, drawerViewController: drawerContentVC) // Uncomment this next line to give the drawer a starting position, in this case: closed. // pulleyDrawerVC.initialDrawerPosition = .closed window?.rootViewController = pulleyDrawerVC */ window?.makeKeyAndVisible() 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, 229388, 229391, 327695, 229394, 229397, 229399, 229402, 229405, 229415, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 319544, 204856, 229432, 286776, 286778, 286791, 237640, 286797, 237646, 311375, 196692, 311383, 131192, 237693, 303230, 327814, 131209, 311436, 303244, 319633, 311460, 311469, 32944, 327862, 286906, 180413, 286910, 286926, 155872, 319716, 286962, 303347, 237826, 286987, 311569, 319770, 287003, 287006, 287009, 287012, 287014, 287019, 311598, 287023, 262448, 311601, 319809, 319810, 319814, 311623, 319818, 311628, 287054, 319822, 196969, 139638, 213367, 319872, 311693, 65943, 319898, 311719, 139689, 311741, 319938, 188895, 172512, 319978, 172526, 311791, 180727, 287230, 303617, 287234, 172550, 320007, 172558, 172572, 172577, 295459, 172581, 172591, 172598, 172607, 172609, 172612, 172614, 213575, 172618, 172634, 262752, 172644, 311911, 172656, 352880, 172660, 287355, 295553, 295557, 311942, 303751, 352905, 311946, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 230045, 287390, 172702, 172705, 287394, 172707, 303780, 287398, 287400, 172714, 189102, 172721, 66227, 287419, 303804, 287423, 328384, 287427, 312006, 172751, 172755, 303835, 189149, 303838, 312035, 230128, 312048, 312050, 303871, 230146, 328453, 312077, 295710, 295720, 312124, 328508, 222018, 303959, 303976, 303981, 303985, 303987, 328563, 303991, 303997, 304005, 304007, 304009, 304011, 295825, 189331, 304019, 279445, 304023, 304042, 213931, 304055, 197564, 304090, 320490, 328687, 320496, 320505, 238620, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 205895, 320584, 402518, 296036, 296044, 205934, 312432, 205968, 296084, 304285, 238756, 205991, 222377, 165035, 165038, 238766, 148690, 304348, 304354, 320748, 304370, 296189, 320771, 296205, 320786, 214294, 320792, 230689, 173350, 312622, 296243, 296255, 312639, 296259, 238919, 320840, 337244, 230752, 312676, 173418, 230768, 312692, 304505, 181626, 304506, 312711, 312712, 296331, 288140, 230800, 288144, 304533, 288162, 288164, 304555, 173488, 288176, 312755, 312759, 288185, 222652, 312766, 173507, 222665, 312783, 329177, 239070, 288229, 288232, 288244, 288250, 148990, 321022, 230916, 304651, 304653, 222752, 108066, 230961, 124489, 288338, 239194, 403039, 116354, 321195, 321200, 296637, 313027, 206536, 206539, 206541, 206543, 321239, 288478, 321252, 313066, 321266, 419570, 288510, 67330, 313093, 198416, 321304, 329498, 296731, 313121, 288576, 304968, 173907, 313176, 321381, 313201, 305028, 247688, 124817, 124827, 214940, 247709, 214944, 321458, 124853, 288700, 190403, 165831, 239586, 313320, 231404, 124913, 239612, 313340, 239617, 313347, 288773, 313358, 313371, 305191, 124978, 215090, 124980, 288824, 288826, 321595, 288831, 288836, 215123, 288855, 288859, 280669, 280671, 149599, 149601, 321634, 280681, 280687, 215154, 313458, 313464, 321659, 321670, 141455, 141459, 280725, 313498, 100520, 280747, 288940, 321717, 313548, 321740, 313557, 338147, 280804, 125171, 280825, 280831, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280891, 239944, 305480, 239947, 305489, 354653, 313700, 313705, 280940, 313720, 313731, 199051, 240011, 240052, 305594, 174580, 240124, 305664, 223752, 223763, 223765, 322074, 150066, 289342, 322115, 199262, 199273, 158317, 297594, 158347, 314003, 314007, 330404, 174764, 314029, 314033, 314047, 314051, 199364, 199367, 297671, 363234, 322303, 264969, 322314, 322318, 322341, 289593, 289601, 240458, 240468, 297818, 224110, 207737, 158596, 338823, 314249, 183184, 297883, 289712, 281529, 322534, 297961, 134142, 322563, 314372, 322599, 322610, 281654, 314427, 322642, 248995, 322734, 306354, 199877, 290008, 363745, 322801, 388350, 199976, 199978, 216376, 380226, 224587, 224594, 216404, 150870, 314718, 265568, 314723, 150890, 306539, 314732, 314736, 306549, 314743, 306552, 306555, 314747, 298365, 224641, 314756, 314763, 298381, 142733, 314768, 306581, 314773, 314779, 314785, 314793, 241070, 150966, 323015, 306635, 290263, 290270, 290275, 191985, 241142, 191992, 151036, 290305, 192008, 323084, 241175, 241181, 306731, 306778, 314979, 224875, 241260, 315016, 323266, 306904, 52959, 241380, 306945, 241412, 323333, 315167, 315169, 315174, 323367, 241448, 315176, 241450, 306988, 315184, 241464, 159545, 307009, 298822, 315211, 307027, 315221, 315223, 241496, 307040, 110433, 241509, 110438, 110445, 315251, 315253, 339838, 315267, 241544, 241546, 241548, 298896, 298898, 241556, 298901, 241560, 241563, 241565, 241567, 241581, 241583, 323504, 241588, 241590, 241592, 241598, 241600, 241605, 241610, 241632, 241640, 241643, 241649, 241652, 323574, 241661, 315396, 241669, 315397, 241693, 241701, 217127, 159811, 315463, 307287, 217179, 315483, 192605, 217188, 315495, 356457, 192624, 307314, 315524, 307338, 241813, 307352, 299164, 315557, 307372, 307374, 323763, 307385, 307386, 258235, 307388, 307390, 307394, 299204, 307396, 307399, 323784, 307409, 307411, 307432, 323854, 307508, 307510, 332086, 151864, 307512, 307515, 282942, 307518, 151874, 110926, 323921, 315733, 323926, 315739, 242018, 242024, 250231, 242043, 299398, 242057, 315801, 242075, 127405, 127407, 127413, 127424, 299457, 315856, 315860, 283095, 242152, 291305, 127474, 135672, 135689, 127511, 152087, 135707, 135710, 291378, 70213, 242250, 299620, 242279, 184952, 135805, 135808, 373383, 135820, 225941, 299672, 135834, 225948, 373404, 135839, 225954, 135844, 242343, 373421, 135873, 135876, 135879, 242431, 234242, 242436, 234246, 242443, 234252, 242445, 242450, 242452, 291608, 201496, 234269, 234281, 234287, 185138, 160572, 234302, 234307, 316235, 234324, 201557, 349027, 234341, 234344, 234347, 234350, 324464, 234353, 234358, 234364, 234370, 308105, 234390, 324504, 234393, 209818, 308123, 324508, 234401, 291748, 291750, 324518, 324520, 234410, 291754, 324522, 324527, 234417, 234422, 275384, 324536, 234431, 242623, 324548, 234437, 234443, 291788, 234446, 234449, 234452, 234455, 234464, 234478, 316400, 316403, 234496, 316416, 308231, 234504, 234507, 234519, 234528, 300066, 234532, 234535, 234537, 234549, 300088, 234558, 316483, 234574, 160879, 234629, 275594, 234634, 234640, 234643, 308373, 324757, 234647, 234650, 308379, 234653, 119967, 324768, 242852, 234667, 308414, 234687, 300223, 308418, 316610, 300226, 283844, 300229, 308420, 283850, 300234, 283854, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300267, 300270, 300278, 275703, 316663, 300284, 275710, 292097, 300289, 300292, 275719, 275725, 349464, 243003, 283973, 300357, 283983, 316758, 357722, 316766, 316768, 243046, 218473, 275836, 316803, 316806, 316811, 316814, 300433, 316824, 144807, 144810, 144812, 144814, 144820, 144826, 144830, 144832, 144837, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 333280, 218597, 259565, 259567, 292338, 316917, 308727, 308757, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284213, 308790, 284215, 316983, 284218, 284226, 243268, 284228, 284231, 366155, 284238, 284241, 194130, 284243, 300628, 284245, 284247, 235097, 243290, 284249, 284272, 284274, 284278, 284283, 284288, 284290, 292485, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 284306, 284308, 284312, 276122, 284316, 284320, 284327, 284329, 284331, 284333, 284335, 284343, 284346, 284350, 358080, 284354, 358083, 284358, 358089, 284362, 284368, 284370, 358098, 284372, 284377, 358114, 358116, 317158, 358119, 358135, 358138, 300795, 358140, 358142, 358146, 317187, 317189, 317191, 300816, 300819, 317207, 300828, 300830, 300832, 300834, 317221, 300845, 243504, 300850, 325436, 358206, 366406, 153417, 358224, 178006, 317271, 317279, 292715, 300915, 284533, 317306, 284564, 358292, 284572, 358312, 317353, 292784, 161718, 358326, 358330, 301011, 301013, 358360, 301017, 153568, 292839, 317435, 317456, 317458, 243733, 317468, 317472, 243762, 325685, 325689, 235579, 325692, 235581, 325700, 350293, 350295, 350299, 350302, 178273, 309348, 309350, 292968, 350313, 276586, 301163, 309352, 309354, 301167, 350321, 350325, 350328, 301185, 317570, 350339, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350375, 350379, 350381, 350383, 350385, 350389, 350395, 350397, 350399, 301252, 301258, 309462, 301272, 309468, 309471, 317672, 317674, 243948, 309491, 309494, 243960, 325910, 342298, 276766, 211232, 317729, 211241, 325937, 325943, 235853, 235858, 391523, 293232, 211324, 285061, 317833, 317853, 342434, 235955, 317910, 317917, 293352, 236013, 309764, 121352, 342541, 113167, 309779, 309781, 227882, 236082, 219714, 301639, 301643, 309844, 121458, 309888, 318092, 326285, 318094, 334476, 318108, 318110, 137889, 383658, 318128, 318132, 113378, 342760, 56043, 56059, 310020, 310029, 293659, 326430, 318248, 301880, 301884, 293706, 310100, 301911, 301921, 236397, 326514, 310134, 15224, 236408, 416639, 416640, 113538, 187274, 424853, 277411, 310179, 293817, 293820, 326603, 318442, 228332, 326638, 318450, 302073, 293917, 318516, 310336, 310344, 293960, 310359, 236632, 203872, 203879, 277608, 310376, 228460, 318573, 203886, 367737, 302205, 392326, 302218, 285852, 302237, 285854, 285856, 302241, 302248, 302258, 318651, 244930, 302275, 130244, 302277, 302285, 302288, 302290, 302292, 302294, 302296, 318698, 302315, 294132, 138485, 204031, 64768, 204067, 285999, 318773, 318776, 302403, 384328, 327015, 327017, 310651, 310657, 310659, 327046, 310665, 318858, 310672, 310689, 130468, 228776, 310710, 310715, 245191, 310727, 302541, 310737, 310749, 310755, 327156, 310772, 40440, 40443, 286203, 40448, 302603, 302614, 302621, 146977, 40484, 40486, 286248, 40491, 40499, 212538, 40507, 40511, 40513, 40521, 286283, 40525, 40527, 40529, 40533, 40537, 40539, 40541, 40544, 40548, 40550, 286312, 40554, 40557, 40560, 343679, 294537, 122517, 179870, 327333, 229030, 212648, 302764, 319153, 302781, 319187, 286425, 319226, 286460, 302852, 278277, 302854, 311048, 302862, 319280, 319290, 188247, 188252, 237409, 360317, 327554, 40851, 237470, 319390, 40865, 311209, 180142, 40886, 294847, 393177, 294879, 237555, 311283, 237562 ]
508a827c7d83a22684c810ec79537d77fa0588cc
50704c8bd33d1f6f12000a5f72aa91c7299a13ad
/ios_notepad/ios_notepad/AppDelegate.swift
5e94887dc7e1edb8f52e09b65692f5a9c13334ea
[]
no_license
dong706/swift_notepad
72c826a8d47ae0ee8c849edd99500dea8f479d57
e33cdff2b3ec86840c9ec8850c843a870b9b9e02
refs/heads/main
2023-09-03T19:09:06.954980
2021-11-04T07:36:44
2021-11-04T07:36:44
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,346
swift
// // AppDelegate.swift // ios_notepad // // Created by 吴超 on 2021/7/21. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 327756, 254030, 286800, 368727, 180313, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 164028, 327871, 180416, 377036, 180431, 377046, 418007, 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, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 262566, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 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, 328378, 164538, 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, 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, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 181670, 181673, 181678, 181681, 337329, 181684, 181690, 361917, 181696, 337349, 181703, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 394853, 345701, 222830, 370297, 403070, 353919, 403075, 345736, 198280, 403091, 345749, 419483, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 419517, 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, 345964, 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, 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, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 355218, 330642, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 347176, 396328, 158761, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 412764, 339036, 257120, 265320, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 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, 249214, 175486, 175489, 249218, 249224, 249227, 249234, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 388542, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 339420, 249308, 339424, 249312, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 175635, 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, 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, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 397571, 389380, 61722, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 348502, 250199, 250202, 332125, 250210, 348522, 348525, 348527, 332152, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 160234, 127471, 340472, 381436, 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, 430965, 381813, 324472, 398201, 119674, 324475, 430972, 340858, 340861, 324478, 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, 209943, 357410, 250914, 185380, 357418, 209965, 209971, 209975, 209979, 209987, 209990, 209995, 341071, 349267, 250967, 210010, 341091, 210025, 210030, 210036, 210039, 349308, 210044, 349311, 160895, 152703, 210052, 210055, 349319, 218247, 210067, 210077, 210080, 251044, 210084, 185511, 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, 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, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 358234, 341851, 350045, 399199, 259938, 399206, 358255, 268143, 399215, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 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, 325919, 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, 195039, 334304, 334311, 375277, 334321, 350723, 391690, 186897, 342545, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 358961, 383536, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 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, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 359366, 326598, 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, 384269, 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 ]
9ff7348c5c0251025e4f8991de8cc3229f889a43
71f323b31181a2ef54e9361bd8554c31c73edc84
/4Season/View Controllers/Menu/Slide Menu Options/Hotel/Summer/SummerCollectionCell/SummerBookViewController/SummerBookViewController.swift
5d4098ed5701c2e2c29d263c7c491844cfd5293d
[]
no_license
Niklaus2000/season4
b3c9bde60dbb498307fd926e5e409c38dcf4fa26
5d60588707646ab92254b2833353e9ee51ea588f
refs/heads/main
2023-07-18T15:53:04.558709
2021-09-12T21:16:48
2021-09-12T21:16:48
405,754,830
0
0
null
null
null
null
UTF-8
Swift
false
false
3,291
swift
// // SummerBookViewController.swift // 4Season // // Created by Nika on 25.07.21. // import UIKit import CoreLocation import MapKit import MessageUI class SummerBookViewController: UIViewController, MKMapViewDelegate, MFMailComposeViewControllerDelegate { // MARK: - IBOutlets @IBOutlet private weak var backgroundView: UIView! @IBOutlet private weak var collectionView: UICollectionView! @IBOutlet private weak var summerhotelnameLAbel: UILabel! @IBOutlet private weak var summerlocationLabel: UILabel! @IBOutlet private weak var summerpriceLabel: UILabel! @IBOutlet private weak var mapView: MKMapView! // MARK: - Variables var imagesArr = [String]() var latitude: Double = 0 var longitude: Double = 0 var hotelname = "" var hotelloacation = "" var hotelprice = "" // MARK - View Life Cycle override func viewDidLoad() { super.viewDidLoad() self.setUpUI() } // MARK: - Methods private func setUpUI() { collectionView.dataSource = self collectionView.delegate = self mapView.delegate = self summerhotelnameLAbel.text = hotelname summerpriceLabel.text = hotelprice summerlocationLabel.text = hotelloacation collectionView.register(SummerHotelCollectionViewCell.self, forCellWithReuseIdentifier: "CHALLENGECELL") let coordinaters = CLLocationCoordinate2D(latitude: self.latitude, longitude: self.longitude) let region = MKCoordinateRegion(center: coordinaters , latitudinalMeters: 750.0, longitudinalMeters: 750.0) mapView.setRegion(region, animated: true) } private func showMail() { guard MFMailComposeViewController.canSendMail() else { return } let composer = MFMailComposeViewController() composer.mailComposeDelegate = self composer.setToRecipients(["[email protected]"]) composer.setSubject("სასტუმროში ვიზიტი") composer.setMessageBody("მსურს დავჯავშნო სასტუმრო, გთხოვთ დამიკავშირდეთ და შევათანხმოთ ვიზიტის დრო ", isHTML: false) present(composer, animated: true) } // MARK: - IBActions @IBAction func summerBookButton(_ sender: UIButton) { showMail() } } extension SummerBookViewController: UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection: Int) -> Int { return imagesArr.count } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "SummerHotelCollectionViewCell", for: indexPath) as! SummerHotelCollectionViewCell let image = imagesArr[indexPath.row] cell.imageView.kf.setImage(with: URL(string: image)) return cell } }
[ -1 ]
c44a0acf5e36254efe55c3731a58e042d4b33f2d
51091bf6c571074c038e2f3e3bee9ec3346067c2
/Example/MLHelper/ViewController.swift
f265e9b4877e927899be09a36434526187dd187a
[ "MIT" ]
permissive
Mario-li-crab/MLHelper
638e061c931982eec4750e2759720e1495d40f30
6448591de8be99b1c661dede62cc3ba20a0c1240
refs/heads/master
2022-12-06T14:31:45.889085
2020-09-02T08:22:14
2020-09-02T08:22:14
291,492,972
0
0
null
null
null
null
UTF-8
Swift
false
false
496
swift
// // ViewController.swift // MLHelper // // Created by Mario on 08/31/2020. // Copyright (c) 2020 Mario. 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. } }
[ 278543, 309264, 317473, 286775, 288827, 286786, 159812, 286796, 278606, 237655, 307288, 200802, 309347, 276580, 309349, 309351, 309353, 307311, 276597, 278657, 276612, 280710, 303242, 311437, 278675, 299165, 278686, 278693, 100521, 307379, 280760, 280770, 227523, 280772, 280775, 280777, 276686, 229585, 307410, 280797, 278749, 278752, 301284, 280808, 280810, 286963, 280821, 286965, 280824, 280826, 280832, 276736, 278791, 287004, 287005, 287007, 282917, 233767, 282922, 282926, 307516, 278845, 289088, 289112, 311645, 289120, 227688, 313706, 299374, 199024, 276849, 313733, 233869, 227740, 285087, 289187, 289190, 289191, 305577, 289196, 305582, 289204, 278968, 127418, 293308, 278973, 289224, 281042, 279011, 281078, 236022, 233980, 287231, 279041, 279046, 215562, 287243, 277006, 281107, 279064, 281118, 295460, 289318, 309807, 281142, 279096, 234043, 277057, 129604, 301637, 158285, 311913, 281202, 277108, 281218, 281221, 227984, 303760, 117399, 228000, 225955, 287399, 326311, 209577, 277171, 277180, 299709, 285377, 277192, 226009, 291556, 277224, 199402, 234223, 312049, 289524, 226038, 234232, 230147, 226055, 299786, 369434, 281373, 295711, 228127, 281380, 283433, 289578, 312107, 293682, 289596, 283453, 289600, 279360, 293700, 283461, 279380, 295766, 279386, 308064, 293742, 162672, 277364, 207738, 291709, 303998, 183173, 304008, 324491, 304012, 234380, 304015, 279442, 226196, 275358, 277406, 289697, 234402, 291755, 277420, 277422, 297903, 324528, 230323, 277429, 277430, 234423, 277432, 277433, 277434, 293816, 281530, 291774, 295874, 299973, 234465, 168936, 289771, 183278, 277487, 293874, 277502, 277512, 275466, 277527, 300057, 197677, 304174, 300086, 234551, 300089, 238653, 293961, 203858, 300116, 277602, 281703, 296042, 277612, 164974, 300149, 234619, 226447, 234641, 349332, 226454, 226455, 226456, 226458, 285855, 302256, 283839, 277696, 228548, 228551, 279751, 279754, 230604, 298189, 302286, 230608, 290004, 290006, 189655, 302295, 298202, 298204, 298206, 298207, 290016, 363743, 298211, 290020, 228585, 120054, 333048, 312586, 296214, 277796, 277797, 130346, 113972, 300358, 234829, 296272, 306540, 216433, 290166, 333179, 290175, 275842, 224643, 300432, 310673, 226705, 306577, 306578, 288165, 370093, 279982, 286126, 277935, 282035, 292277, 296374, 130487, 337336, 306633, 286158, 280015, 310734, 163289, 280028, 280029, 280030, 286175, 286189, 282095, 308721, 296436, 292341, 302580, 290299, 286204, 288251, 290303, 282128, 286234, 284197, 296487, 286249, 296489, 286257, 226878, 288321, 228932, 226887, 288331, 288332, 226896, 212561, 284242, 292435, 228945, 300629, 276054, 280146, 284240, 212573, 40545, 292451, 284261, 306791, 286314, 284275, 284276, 284277, 294518, 314996, 276087, 284279, 292478, 284287, 284289, 284293, 284298, 278157, 282262, 280219, 284315, 284317, 282270, 284323, 282275, 284328, 313007, 284336, 284341, 286390, 300727, 276150, 282301, 296638, 302788, 276167, 282311, 284361, 282320, 317137, 284373, 282329, 282338, 284391, 282346, 294636, 358127, 288501, 282357, 286456, 358137, 358139, 282365, 286462, 282368, 358147, 282377, 300817, 282389, 282393, 278298, 329499, 276256, 315170, 282403, 304933, 315177, 282411, 159541, 282426, 288579, 298830, 307029, 298842, 298843, 241499, 188253, 292701, 200549, 296813, 315250, 292730, 313222, 284570, 294812, 284574, 284577, 284580, 284586, 276396, 282548, 298936, 276412, 298951, 165832, 301012, 301016, 294889, 298989, 231405, 227315, 237556 ]
d76e7c8089ab6645e4f9c846b7bcc0ac6e1038c8
97e463b7a4ea94094a868ac05fdabe1b0d74582f
/o-fish-ios/Model/Report/Fishery.swift
55f3f2b494309a8b7d1883bffa805aa09bcdfd26
[ "Apache-2.0" ]
permissive
jkreller/o-fish-ios
a69370b6199eb78e40e2088980b2610dc03dcadd
c239eb7c5e2865a2b555bd7deb5d05da68c6657b
refs/heads/main
2023-01-02T19:00:56.186209
2020-10-31T15:48:06
2020-10-31T15:48:06
308,447,101
0
0
Apache-2.0
2020-10-29T20:52:38
2020-10-29T20:52:38
null
UTF-8
Swift
false
false
274
swift
// // Fishery.swift // // Created on 08/04/2020. // Copyright © 2020 WildAid. All rights reserved. // import RealmSwift class Fishery: EmbeddedObject, ObservableObject { @objc dynamic var name = "" @objc dynamic var attachments: Attachments? = Attachments() }
[ -1 ]
2567ceec824a357961c1c4451f8cdc971bfc8664
d1a8581583159dc67bf11b414fbb8759e083de0f
/Sources/Quick/Configuration/QuickConfiguration.swift
006c19d034debd78303b8a7a4668b3b22368414e
[ "Apache-2.0" ]
permissive
raviTokopedia/Quick
50e67c794a6bcb1fd2a5999ea6cc213d3e896653
8d0f3957f5cc7b7db81720972f0b3f3522306b71
refs/heads/master
2022-04-19T16:35:28.599719
2020-04-17T12:40:30
2020-04-17T12:40:30
256,497,763
0
0
Apache-2.0
2020-04-17T12:40:31
2020-04-17T12:32:35
null
UTF-8
Swift
false
false
2,706
swift
import Foundation import XCTest #if SWIFT_PACKAGE open class QuickConfiguration: NSObject { open class func configure(_ configuration: Configuration) {} } #endif extension QuickConfiguration { #if !canImport(Darwin) private static var configurationSubclasses: [QuickConfiguration.Type] = [] #endif /// Finds all direct subclasses of QuickConfiguration and passes them to the block provided. /// The classes are iterated over in the order that objc_getClassList returns them. /// /// - parameter block: A block that takes a QuickConfiguration.Type. /// This block will be executed once for each subclass of QuickConfiguration. private static func enumerateSubclasses(_ block: (QuickConfiguration.Type) -> Void) { #if canImport(Darwin) let classesCount = objc_getClassList(nil, 0) guard classesCount > 0 else { return } let classes = UnsafeMutablePointer<AnyClass?>.allocate(capacity: Int(classesCount)) defer { free(classes) } objc_getClassList(AutoreleasingUnsafeMutablePointer(classes), classesCount) var configurationSubclasses: [QuickConfiguration.Type] = [] for i in 0..<classesCount { guard let subclass = classes[Int(i)], let superclass = class_getSuperclass(subclass), superclass == QuickConfiguration.self else { continue } // swiftlint:disable:next force_cast configurationSubclasses.append(subclass as! QuickConfiguration.Type) } #endif configurationSubclasses.forEach(block) } #if canImport(Darwin) @objc static func configureSubclassesIfNeeded(world: World) { _configureSubclassesIfNeeded(world: world) } #else static func configureSubclassesIfNeeded(_ configurationSubclasses: [QuickConfiguration.Type]? = nil, world: World) { // Storing subclasses for later use (will be used when running additional test suites) if let configurationSubclasses = configurationSubclasses { self.configurationSubclasses = configurationSubclasses } _configureSubclassesIfNeeded(world: world) } #endif private static func _configureSubclassesIfNeeded(world: World) { if world.isConfigurationFinalized { return } // Perform all configurations (ensures that shared examples have been discovered) world.configure { configuration in enumerateSubclasses { configurationClass in configurationClass.configure(configuration) } } world.finalizeConfiguration() } }
[ 265490, 172413 ]
71df431528f48528f3f041dc0b63ec08f3d8193c
86cdb4cd8e5775d6c452e23acb367f357f14c000
/Sources/XMLCoder/Decoder/XMLUnkeyedDecodingContainer.swift
0ba8b3a204fd6992726c678f99550bfdb2d87049
[ "MIT" ]
permissive
huwr/XMLCoder
e667eaad60412dd64d3450f31d83f03588016bc9
c4f12d46deff4e31ca469761cec5189491bacd75
refs/heads/main
2023-08-25T12:25:08.989377
2021-10-23T04:01:26
2021-10-23T04:01:26
342,759,119
0
0
MIT
2021-02-27T03:13:50
2021-02-27T03:13:49
null
UTF-8
Swift
false
false
8,042
swift
// Copyright (c) 2017-2020 Shawn Moore and XMLCoder contributors // // This software is released under the MIT License. // https://opensource.org/licenses/MIT // // Created by Shawn Moore on 11/21/17. // import Foundation struct XMLUnkeyedDecodingContainer: UnkeyedDecodingContainer { // MARK: Properties /// A reference to the decoder we're reading from. private let decoder: XMLDecoderImplementation /// A reference to the container we're reading from. private let container: SharedBox<UnkeyedBox> /// The path of coding keys taken to get to this point in decoding. public private(set) var codingPath: [CodingKey] /// The index of the element we're about to decode. public private(set) var currentIndex: Int // MARK: - Initialization /// Initializes `self` by referencing the given decoder and container. init(referencing decoder: XMLDecoderImplementation, wrapping container: SharedBox<UnkeyedBox>) { self.decoder = decoder self.container = container codingPath = decoder.codingPath currentIndex = 0 } // MARK: - UnkeyedDecodingContainer Methods public var count: Int? { return container.withShared { unkeyedBox in unkeyedBox.count } } public var isAtEnd: Bool { return currentIndex >= count! } public mutating func decodeNil() throws -> Bool { guard !isAtEnd else { throw DecodingError.valueNotFound(Any?.self, DecodingError.Context( codingPath: decoder.codingPath + [XMLKey(index: currentIndex)], debugDescription: "Unkeyed container is at end." )) } let isNull = container.withShared { unkeyedBox in unkeyedBox[self.currentIndex].isNull } if isNull { currentIndex += 1 return true } else { return false } } public mutating func decode<T: Decodable>(_ type: T.Type) throws -> T { return try decode(type) { decoder, box in try decoder.unbox(box) } } private mutating func decode<T: Decodable>( _ type: T.Type, decode: (XMLDecoderImplementation, Box) throws -> T? ) throws -> T { decoder.codingPath.append(XMLKey(index: currentIndex)) let nodeDecodings = decoder.options.nodeDecodingStrategy.nodeDecodings( forType: T.self, with: decoder ) decoder.nodeDecodings.append(nodeDecodings) defer { _ = decoder.nodeDecodings.removeLast() _ = decoder.codingPath.removeLast() } guard !isAtEnd else { throw DecodingError.valueNotFound(type, DecodingError.Context( codingPath: decoder.codingPath + [XMLKey(index: currentIndex)], debugDescription: "Unkeyed container is at end." )) } decoder.codingPath.append(XMLKey(index: currentIndex)) defer { self.decoder.codingPath.removeLast() } let box = container.withShared { unkeyedBox in unkeyedBox[self.currentIndex] } var value: T? if let singleKeyed = box as? SingleKeyedBox { do { value = try decode(decoder, singleKeyed) } catch { do { // Drill down to the element in the case of an nested unkeyed element value = try decode(decoder, singleKeyed.element) } catch { // Specialize for choice elements value = try decode(decoder, ChoiceBox(key: singleKeyed.key, element: singleKeyed.element)) } } } else { value = try decode(decoder, box) } defer { currentIndex += 1 } if value == nil, let type = type as? AnyOptional.Type, let result = type.init() as? T { return result } guard let decoded: T = value else { throw DecodingError.valueNotFound(type, DecodingError.Context( codingPath: decoder.codingPath + [XMLKey(index: currentIndex)], debugDescription: "Expected \(type) but found null instead." )) } return decoded } public mutating func nestedContainer<NestedKey>( keyedBy _: NestedKey.Type ) throws -> KeyedDecodingContainer<NestedKey> { decoder.codingPath.append(XMLKey(index: currentIndex)) defer { self.decoder.codingPath.removeLast() } guard !isAtEnd else { throw DecodingError.valueNotFound( KeyedDecodingContainer<NestedKey>.self, DecodingError.Context( codingPath: codingPath, debugDescription: "Cannot get nested keyed container -- unkeyed container is at end." ) ) } let value = self.container.withShared { unkeyedBox in unkeyedBox[self.currentIndex] } guard !value.isNull else { throw DecodingError.valueNotFound(KeyedDecodingContainer<NestedKey>.self, DecodingError.Context( codingPath: codingPath, debugDescription: "Cannot get keyed decoding container -- found null value instead." )) } guard let keyedContainer = value as? SharedBox<KeyedBox> else { throw DecodingError.typeMismatch(at: codingPath, expectation: [String: Any].self, reality: value) } currentIndex += 1 let container = XMLKeyedDecodingContainer<NestedKey>( referencing: decoder, wrapping: keyedContainer ) return KeyedDecodingContainer(container) } public mutating func nestedUnkeyedContainer() throws -> UnkeyedDecodingContainer { decoder.codingPath.append(XMLKey(index: currentIndex)) defer { self.decoder.codingPath.removeLast() } guard !isAtEnd else { throw DecodingError.valueNotFound( UnkeyedDecodingContainer.self, DecodingError.Context( codingPath: codingPath, debugDescription: "Cannot get nested keyed container -- unkeyed container is at end." ) ) } let value = container.withShared { unkeyedBox in unkeyedBox[self.currentIndex] } guard !value.isNull else { throw DecodingError.valueNotFound(UnkeyedDecodingContainer.self, DecodingError.Context( codingPath: codingPath, debugDescription: "Cannot get keyed decoding container -- found null value instead." )) } guard let unkeyedContainer = value as? SharedBox<UnkeyedBox> else { throw DecodingError.typeMismatch(at: codingPath, expectation: UnkeyedBox.self, reality: value) } currentIndex += 1 return XMLUnkeyedDecodingContainer(referencing: decoder, wrapping: unkeyedContainer) } public mutating func superDecoder() throws -> Decoder { decoder.codingPath.append(XMLKey(index: currentIndex)) defer { self.decoder.codingPath.removeLast() } guard !isAtEnd else { throw DecodingError.valueNotFound(Decoder.self, DecodingError.Context( codingPath: codingPath, debugDescription: "Cannot get superDecoder() -- unkeyed container is at end." )) } let value = container.withShared { unkeyedBox in unkeyedBox[self.currentIndex] } currentIndex += 1 return XMLDecoderImplementation( referencing: value, options: decoder.options, nodeDecodings: decoder.nodeDecodings, codingPath: decoder.codingPath ) } }
[ -1 ]
838f4a8f8a7ff407c36457c72a012532a11e1792
e6279d18d90c033cfcee506e467e447dd4e60f6a
/TableViewOperations/AppDelegate.swift
6c8be1ee349a321c2589b0bca66caef96f615b89
[]
no_license
bniranjan/TableViewOperation
9eb02c16a61468ce90dc588c829b48c570b78ebc
2cd009c0681856222e325108f2cb64e54dcfa0ef
refs/heads/master
2020-04-03T18:57:24.825783
2018-10-31T12:19:28
2018-10-31T12:19:28
155,503,797
0
0
null
null
null
null
UTF-8
Swift
false
false
2,813
swift
// // AppDelegate.swift // TableViewOperations // // Created by mahendra on 14/08/18. // Copyright © 2018 mahindra. 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. let storyBoard = UIStoryboard(name: "Main", bundle: nil) let vc = storyBoard.instantiateViewController(withIdentifier: "vc") as! ViewController let tabvc = storyBoard.instantiateViewController(withIdentifier: "tvc") as! TabbarViewController if UserDefaults.standard.string(forKey: "LogStatus") != nil{ if UserDefaults.standard.string(forKey: "LogStatus") == "Y" { self.window?.rootViewController = tabvc } else{ self.window?.rootViewController = vc } } 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:. } }
[ 294924, 294950, 229415, 229417, 327722, 237613, 229422, 229426, 229428, 311349, 229432, 286776, 319544, 286791, 311375, 163920, 196692, 319573, 311383, 319590, 311400, 131192, 237693, 327814, 303241, 303244, 319633, 286873, 311469, 32944, 286906, 286910, 286916, 286926, 131281, 295133, 319716, 237807, 303345, 286962, 229622, 327930, 237826, 319751, 286987, 319757, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 311601, 295220, 319809, 319810, 319814, 311628, 287054, 319822, 229717, 196963, 196969, 139638, 213367, 106872, 319879, 139689, 311728, 311741, 319938, 319945, 172520, 319978, 172526, 311791, 172529, 319989, 311804, 287230, 303617, 172550, 320007, 172552, 303623, 172558, 303637, 172577, 295459, 172581, 295461, 172591, 172607, 172609, 172612, 172614, 172618, 303690, 33357, 172634, 172644, 172656, 352880, 295538, 172660, 295553, 311942, 352905, 311946, 311951, 287377, 172691, 311957, 287386, 230045, 172702, 303773, 172705, 287394, 172707, 287398, 205479, 295595, 230061, 189102, 287409, 172721, 66227, 303797, 189114, 328381, 287423, 328384, 172748, 287440, 172755, 303827, 303835, 189149, 303838, 230128, 312048, 205564, 230146, 230154, 312077, 295695, 230169, 328476, 295710, 230175, 303914, 312124, 328508, 222018, 148302, 287569, 303959, 230237, 230241, 303976, 336744, 303985, 303987, 303991, 303997, 295806, 295808, 295813, 304005, 304007, 320391, 304009, 304011, 304013, 189329, 304019, 279461, 304042, 304055, 230334, 213954, 312272, 304090, 304106, 312302, 304114, 295928, 295945, 230413, 140312, 295961, 238620, 304164, 304170, 304175, 238655, 238658, 336964, 238666, 296021, 230497, 296036, 296040, 312432, 337018, 304258, 222340, 205968, 238745, 304285, 238756, 222377, 337067, 238766, 304311, 230592, 148690, 320727, 279777, 304354, 296163, 320740, 304360, 320748, 304370, 320771, 296205, 320786, 296213, 214294, 296215, 320792, 230689, 173350, 312622, 312630, 296255, 312639, 230727, 238919, 320840, 230739, 312676, 148843, 230763, 230768, 296305, 312692, 304505, 304506, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 288176, 312755, 312759, 222652, 312766, 230860, 288208, 222676, 296446, 230916, 230919, 230923, 304651, 304653, 230940, 296488, 157229, 157236, 288320, 288325, 124489, 288338, 288344, 239194, 239202, 312938, 116354, 288408, 321195, 296622, 321200, 337585, 296634, 296637, 206536, 321239, 313052, 288478, 313055, 321252, 288499, 288510, 198416, 296723, 321304, 321311, 313121, 304932, 321316, 288576, 345921, 173907, 313176, 321381, 296809, 313201, 305028, 280458, 124817, 124827, 214944, 321458, 296883, 124853, 296890, 288700, 296894, 190403, 296900, 337862, 165831, 313320, 124913, 165876, 313340, 239612, 313347, 313358, 305176, 313371, 305191, 313386, 124978, 215090, 124980, 288824, 288826, 313406, 288831, 288836, 215123, 280669, 149599, 149601, 321634, 149603, 215154, 313458, 321659, 288895, 321670, 215175, 313498, 321740, 338147, 125171, 280825, 125187, 125191, 125207, 125209, 321842, 223539, 125239, 289087, 305480, 305485, 305489, 354653, 313700, 190832, 313720, 313731, 199051, 240011, 289166, 240017, 297363, 297365, 297372, 289186, 297391, 289201, 240052, 289207, 289210, 289218, 166378, 174580, 240124, 305664, 305666, 240132, 223749, 305668, 223752, 322074, 289317, 150066, 158266, 322115, 199273, 19053, 158317, 313973, 297594, 158347, 117398, 289436, 174754, 289448, 314033, 240309, 314047, 297671, 158409, 289493, 289513, 289522, 289532, 322303, 322310, 322314, 322318, 215850, 240458, 240468, 224110, 207733, 207737, 183172, 338823, 322440, 314249, 183184, 240535, 289687, 289696, 289724, 289762, 322563, 314372, 175134, 322610, 314421, 314427, 314433, 314461, 314474, 306341, 306347, 306354, 199877, 289991, 306377, 289997, 363742, 298216, 257302, 199976, 199978, 298294, 216376, 298306, 380226, 224587, 314714, 314718, 314723, 150890, 306539, 314732, 314736, 290161, 306549, 298358, 314743, 290171, 306555, 298365, 314747, 290174, 224641, 298372, 314756, 298377, 314763, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 241072, 150966, 323015, 306640, 290263, 290270, 290275, 339431, 191985, 191992, 290298, 290302, 290305, 257550, 290325, 290328, 290332, 290344, 290349, 290356, 306778, 314979, 298598, 224875, 323181, 290445, 282255, 298651, 282269, 323229, 298655, 241362, 306904, 241380, 323318, 241412, 315167, 315169, 315174, 323367, 315184, 315190, 241464, 159545, 298811, 307012, 315211, 315221, 241496, 241498, 307035, 307040, 110433, 241509, 110438, 298860, 110445, 315253, 315255, 339838, 315267, 315269, 241544, 241546, 241548, 298896, 298898, 241556, 298901, 241560, 241565, 241567, 241574, 298922, 241583, 323504, 241586, 290739, 241588, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 290807, 315396, 241669, 315397, 241693, 102438, 217127, 290877, 315463, 315466, 315482, 217179, 315483, 192605, 233567, 200801, 217188, 307303, 307307, 315502, 192624, 307314, 299126, 233591, 307329, 307338, 233613, 307352, 299164, 299167, 184486, 307370, 307372, 307376, 299185, 323763, 307385, 307388, 299200, 307394, 299204, 307396, 184518, 307399, 323784, 307409, 307411, 299225, 233701, 307432, 291104, 315701, 307510, 307515, 323917, 233808, 315733, 323926, 233815, 315739, 299357, 242018, 242024, 299373, 242043, 299391, 291202, 242057, 299405, 291222, 315801, 242075, 61855, 291231, 291238, 291241, 127403, 127405, 127407, 291247, 127413, 127417, 291260, 127421, 127424, 299457, 127429, 127431, 127434, 176592, 315856, 315860, 127447, 299481, 127457, 291299, 127463, 291305, 127466, 176620, 127469, 127474, 135672, 233979, 291323, 291330, 127494, 127497, 135689, 233994, 233998, 127506, 234003, 234006, 127511, 152087, 135707, 135710, 242206, 242208, 291361, 135717, 152118, 234038, 234041, 315961, 70213, 111193, 242275, 299620, 135805, 135808, 316054, 135834, 135839, 135844, 299684, 242343, 242345, 299706, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 299750, 234219, 242431, 299778, 234246, 291601, 234258, 242452, 201496, 234264, 283421, 234272, 152355, 299814, 185138, 234296, 160572, 316235, 234319, 308063, 234336, 242530, 349027, 152435, 177011, 234364, 291711, 201603, 234373, 324490, 324504, 308123, 324508, 234396, 291742, 291747, 291748, 234405, 291750, 324518, 324522, 291756, 291760, 201650, 324531, 324536, 291773, 242623, 324544, 324546, 324548, 234464, 168935, 316400, 234485, 316416, 308231, 234520, 234526, 234540, 300085, 234553, 316479, 234561, 160835, 308291, 316483, 316491, 234574, 234597, 300133, 234610, 316530, 300148, 144506, 242822, 177293, 234640, 308373, 324757, 234647, 234650, 308379, 300189, 324766, 119967, 324768, 242852, 300197, 234667, 316596, 300226, 234692, 300229, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300253, 300256, 300258, 300260, 300263, 300265, 300267, 300270, 300272, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 300292, 275719, 300301, 242957, 275725, 349464, 300344, 226617, 300357, 316758, 316766, 218464, 292192, 316768, 292197, 316774, 316811, 316814, 300433, 300448, 144810, 284076, 144814, 292279, 144826, 144830, 144832, 144837, 144839, 144841, 144844, 144847, 144852, 103899, 300507, 333280, 218597, 292329, 300523, 300527, 292338, 316917, 292343, 300537, 308762, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 284215, 284218, 292414, 284223, 284226, 292421, 284231, 284234, 317004, 284238, 284241, 292433, 284243, 284245, 284247, 284249, 292452, 292454, 292458, 292461, 284272, 284274, 284278, 292470, 292473, 284283, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 284297, 284299, 317068, 284301, 284303, 284306, 284308, 284312, 284314, 284316, 284320, 284322, 284327, 284329, 317098, 284331, 284333, 284335, 284337, 284339, 300726, 284343, 284350, 358080, 284354, 358083, 284358, 358089, 284362, 284370, 317138, 284372, 276187, 358114, 358116, 358119, 325353, 358122, 358126, 358128, 358133, 358135, 358138, 300795, 358140, 358142, 358146, 317189, 317191, 300816, 300819, 317207, 300830, 300832, 317221, 358183, 300845, 243504, 276291, 153417, 284499, 317271, 292700, 292721, 300915, 292729, 317306, 325512, 358292, 350106, 292776, 358312, 358326, 358330, 276433, 292823, 301015, 292828, 292843, 317435, 317456, 317458, 178195, 243733, 243740, 317468, 325666, 243751, 243762, 309298, 235581, 292934, 243785, 350293, 350295, 309337, 350302, 309346, 194660, 309348, 309350, 350308, 292968, 350313, 309354, 301163, 350316, 227440, 350321, 350325, 350328, 292985, 350332, 292989, 292993, 350339, 350342, 276617, 350345, 350349, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 350402, 301252, 350406, 194780, 309468, 301283, 317672, 317674, 325867, 325910, 342298, 211241, 325943, 276809, 235858, 391523, 293227, 293232, 186744, 211324, 317833, 227738, 317853, 342434, 317864, 235955, 293304, 293307, 293314, 317910, 293336, 235996, 317917, 293343, 293346, 293364, 293370, 317951, 309764, 301575, 342541, 309779, 317971, 293417, 236082, 301636, 318020, 301639, 301643, 399955, 309844, 309849, 326244, 309885, 309888, 146052, 301706, 318092, 326285, 334476, 318110, 383658, 318144, 137946, 113378, 342760, 56043, 56059, 310015, 285441, 310029, 293666, 228135, 293677, 318253, 301880, 301884, 293696, 277314, 293706, 162643, 310100, 301911, 301921, 236397, 162671, 236408, 416640, 113538, 416648, 301972, 424853, 310179, 293802, 236460, 293820, 318450, 293876, 56313, 302073, 121850, 293899, 302105, 293917, 293939, 318516, 310336, 293956, 293960, 203857, 310355, 236632, 310374, 318573, 367737, 302205, 392326, 162964, 384148, 187542, 285852, 302237, 285854, 285856, 302241, 285862, 64682, 277678, 302258, 318651, 318657, 310481, 310498, 302315, 294132, 138485, 204026, 310531, 285999, 318773, 318776, 302403, 294221, 326991, 294246, 327015, 310632, 351594, 351607, 310651, 310657, 310659, 253320, 310665, 318858, 310672, 310689, 130468, 228776, 310703, 310710, 310712, 228799, 245191, 310727, 302543, 163290, 310749, 310755, 40440, 40443, 286203, 40448, 302614, 302621, 146977, 187939, 40484, 286246, 40486, 40488, 294439, 294440, 294443, 40491, 294445, 40499, 40502, 212538, 40507, 327240, 40521, 40525, 212560, 40533, 40537, 40539, 40541, 40550, 40554, 310892, 40557, 294521, 343679, 294537, 327333, 229030, 278192, 319153, 302781, 302789, 294599, 212690, 286425, 319194, 294625, 294634, 319226, 286460, 302852, 302854, 294664, 311048, 319243, 294682, 188199, 294701, 229192, 188252, 237409, 294803, 319390, 40865, 319394, 311209, 294844, 294847, 294876, 294879, 311279, 237555, 311283, 237562 ]
0062e0fe8ab549c315cbfa668ed5e6d8d89122bf
75477dd6731d957c7e6e835172f698fd0d38e30c
/TwoCans/NewRequestViewController.swift
2789309af5b5d17e98663c56afbf84734c3fccce
[]
no_license
IronManMAA/TwoCans
e2fa663701bdb8b3bb49024c1868d089ea61abf7
99aaf83e0980eb1a5c2abf16911f91c2a544b8b5
refs/heads/master
2021-01-11T23:59:36.771142
2017-01-11T20:45:59
2017-01-11T20:45:59
77,967,481
0
0
null
null
null
null
UTF-8
Swift
false
false
3,336
swift
// // NewRequestViewController.swift // Requests // // Created by Marco Almeida on 1/7/17. // Copyright © 2017 The Iron Yard. All rights reserved. // import Foundation import UIKit import Firebase class NewRequestViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var status: UISwitch? @IBOutlet weak var titleR: UITextField? @IBOutlet weak var name: UILabel? @IBOutlet weak var textRequest: UITextView? @IBOutlet weak var role: UILabel? @IBOutlet weak var sendButtonTapped: UIButton! @IBOutlet weak var cancelB: UIButton! var aRequest = [String: String]() var newRequestNameSegue = String() var roleNewSegue = String() override func viewWillAppear(_ animated: Bool){ name?.text = self.newRequestNameSegue role?.text = self.roleNewSegue self.status?.isOn = false } var ref: FIRDatabaseReference! fileprivate var refHandle: FIRDatabaseHandle! var messages = Array<FIRDataSnapshot>() override func viewDidLoad() { super.viewDidLoad() title = "New Request" configureDatabase() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } deinit { self.ref.child("messages").removeObserver(withHandle: refHandle) } func configureDatabase() { ref = FIRDatabase.database().reference() // Listen for new messages in the Firebase database refHandle = ref.child("messages").observe(.childAdded, with: { (snapshot) -> Void in self.messages.append(snapshot) }) } @IBAction func sendButtonTapped(_ sender: UIButton) { sendMessage() dismiss(animated: true, completion: nil) } @IBAction func cancelB(_ sender: UIButton) { dismiss(animated: true, completion: nil) } func sendMessage() { if var requestText = textRequest?.text { if var username = name?.text { var titleReq = self.titleR?.text var statusReq = "Pending" if (self.status?.isOn == true) { statusReq = "Completed" } else { statusReq = "Pending" } var roleReq = self.role?.text if username == "Ben" { roleReq = "teacher"} // ******* poor mans' error handling if requestText == "" { requestText = "No request" } if username == "" { username = "No name" } if titleReq == "" || titleReq == nil { titleReq = "No Title" } if statusReq == "" { statusReq = "No status" } if roleReq == "" || roleReq == nil { roleReq = "No role" } // ******* let requestData = ["text": requestText, "name": username, "title": titleReq, "status": statusReq, "role": roleReq] ref.child("messages").childByAutoId().setValue(requestData) // childByAutoId will create a new child and assign the key automatically } } } } // End of Class
[ -1 ]
85b9faee4fa0012628fc5b77dd2971df3ae39d3c
5319aeda5bc1eff62bd24d159c1a52d0d67f27d4
/Listenr/Listenr/Contexts/Album List/View Model/AlbumListViewModel.swift
b743d356d2b9c5415f87ccd4818d169c90019aa0
[]
no_license
TiagoSantosSilva/Listenr
ce3127e01e8be905854b81dbc29ff7cd2ebac367
ea76f7b3add8951e1cb2463c543b880f5d4a1f40
refs/heads/main
2022-12-31T07:31:37.919496
2020-10-26T23:28:41
2020-10-26T23:28:41
307,218,857
2
0
null
null
null
null
UTF-8
Swift
false
false
5,943
swift
// // AlbumListViewModel.swift // Listenr // // Created by Tiago Silva on 24/10/2020. // import CoreKit import Foundation protocol AlbumListViewModelDelegate: ServiceFailRecoverDelegate { func viewModel(_ viewModel: AlbumListViewModel, didLoadAlbumsAt indexPaths: [IndexPath]) func viewModelDidLoadFirstAlbumBatch(_ viewModel: AlbumListViewModel) } protocol AlbumListViewModelable: class { var selectedTag: ChartTopTag { get } var albums: [Album?] { get } var delegate: AlbumListViewModelDelegate? { get set } init(loader: AlbumListLoadable, queue: DispatchQueue) func loadAlbums(at indexPath: IndexPath) func reloadData(for tag: ChartTopTag) } private enum Status { case loading case reloading case userInteracting } final class AlbumListViewModel: AlbumListViewModelable { // MARK: - Properties var selectedTag: ChartTopTag = Constants.defaultTag var albums: [Album?] = [] private var pageRequestsStatuses: [PageRequestStatus] = [] private var status: Status = .loading private var itemsPerPage: Int? // MARK: - Queues private let queue: DispatchQueue // MARK: - Loader private let loader: AlbumListLoadable // MARK: - Delegate weak var delegate: AlbumListViewModelDelegate? // MARK: - Constants private enum Constants { static let firstPage: Int = 1 static let maximumNumberOfAlbums: Int = 1000 static let defaultTag: ChartTopTag = .init(name: "Hip-Hop") } // MARK: - Initialization required init(loader: AlbumListLoadable, queue: DispatchQueue = .init(label: #file)) { self.loader = loader self.queue = queue } // MARK: - Functions func loadAlbums(at indexPath: IndexPath) { PaginationFunctions.performPaginatedLoadIfNeeded(at: indexPath.row, itemsPerPage: itemsPerPage, expectedTotalItems: albums.isEmpty ? nil : albums.count, currentResults: &self.pageRequestsStatuses, loadHandler: { [weak self] page in self?.loadAlbums(for: page) }) } func reloadData(for tag: ChartTopTag) { self.selectedTag = tag self.status = .reloading self.pageRequestsStatuses.removeAll() self.loadAlbums(at: .zero) } // MARK: - Private Functions private func loadAlbums(for page: Int) { loader.loadAlbums(at: page, tag: selectedTag) { [weak self] in guard let self = self else { return } switch $0 { case let .success(result): self.assignSucceededRequestStatus(for: page) switch self.status { case .loading: self.handleLoadOfFirstAlbumBatch(values: result, at: page) case .reloading: guard page == Constants.firstPage else { return } self.handleLoadOfFirstAlbumBatch(values: result, at: page) case .userInteracting: self.handleLoadOfIncrementedAlbumBatch(values: result, at: page) } case .failure: self.handleLoadFailure(at: page) } } } private func assignSucceededRequestStatus(for page: Int) { result(for: page) { result in guard let result = result else { return } result.requestStatus = .succeeded } } private func handleLoadOfFirstAlbumBatch(values: AlbumValues, at page: Int) { guard let attributesTotal = Int(values.attributes.total) else { return } let total: Int = attributesTotal <= Constants.maximumNumberOfAlbums ? attributesTotal : Constants.maximumNumberOfAlbums self.albums = (0..<total).map { _ in nil } self.itemsPerPage = Int(values.attributes.perPage) self.assignNewAlbums(values.albums, for: page) self.status = .userInteracting self.delegate?.viewModelDidLoadFirstAlbumBatch(self) } private func handleLoadOfIncrementedAlbumBatch(values: AlbumValues, at page: Int) { guard let itemsPerPage = self.itemsPerPage else { return } self.assignNewAlbums(values.albums, for: page) let indexPaths = PaginationFunctions.indexPaths(itemsPerPage: itemsPerPage, itemCount: self.albums.count, page: page) delegate?.viewModel(self, didLoadAlbumsAt: indexPaths) } private func handleLoadFailure(at page: Int) { result(for: page) { [weak self] result in guard let result = result else { guard let self = self else { return } guard self.status == .loading || self.status == .reloading else { return } self.delegate?.viewModelDidFailServiceCall(self) { [weak self] in self?.loadAlbums(at: .zero) } return } result.requestStatus = .failed } } private func result(for page: Int, completion: @escaping (_ status: PageRequestStatus?) -> Void) { queue.async { completion(self.pageRequestsStatuses.first(where: { $0.page == page })) } } private func assignNewAlbums(_ newAlbums: [Album], for page: Int) { PaginationFunctions.assign(items: newAlbums, to: &self.albums, at: page, itemsPerPage: itemsPerPage) } }
[ -1 ]
4b21c6177c2c3f145246788e3b8ef26d842b98cd
5f8cace44e969c5675c3b8cd671e3abd6671e59a
/001-SwiftPracticeDemo/001-SwiftPracticeDemo/AppDelegate.swift
03e51d4026def575601c38adbec55901b099467b
[ "MIT" ]
permissive
zhangjiang1203/learnSwiftRoute
515270bf84cc2beca1f92a7ca0286208861c648f
a2a4f41fc609df5f7db6f5eadeedfff3ce38ed09
refs/heads/master
2020-04-05T13:04:59.005416
2017-07-25T07:23:27
2017-07-25T07:23:27
95,061,781
2
0
null
null
null
null
UTF-8
Swift
false
false
2,176
swift
// // AppDelegate.swift // 001-SwiftPracticeDemo // // Created by DFHZ on 2017/6/21. // Copyright © 2017年 DFHZ. 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 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, 294924, 229388, 327695, 229391, 229394, 229397, 229399, 229402, 278556, 229405, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 237618, 229426, 229428, 286774, 286776, 319544, 286778, 229432, 204856, 286791, 237640, 286797, 278605, 311375, 237646, 163920, 196692, 319573, 311383, 319590, 311400, 278635, 303212, 278639, 131192, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 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, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 311850, 279082, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 287371, 279178, 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, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 304009, 213895, 304011, 230284, 304013, 295822, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 337067, 165035, 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, 214294, 296215, 320792, 230681, 296213, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 230763, 410987, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 288154, 337306, 173472, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 148946, 370130, 222676, 288210, 280021, 288212, 288214, 329177, 239064, 288217, 288218, 280027, 239070, 288220, 288224, 370146, 288226, 280036, 288229, 320998, 280038, 288232, 288230, 288234, 280034, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 206336, 296450, 148990, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 190118, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 313027, 280260, 206536, 280264, 206539, 206541, 206543, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 288499, 419570, 288502, 288510, 124671, 67330, 280324, 198405, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 173907, 313171, 313176, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 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, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 275608, 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, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 305464, 280888, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 133776, 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, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 183277, 322550, 134142, 322563, 314372, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 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, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 282481, 110450, 315251, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 290739, 241588, 282547, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 184503, 299191, 307385, 176311, 258235, 307388, 176316, 307390, 307386, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 276053, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 291226, 242075, 283033, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 127440, 176592, 315860, 176597, 283095, 127447, 299481, 127449, 176605, 242143, 127455, 291299, 127463, 242152, 291305, 127466, 176620, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 135689, 233994, 127497, 127500, 291341, 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, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 299778, 234242, 242436, 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, 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, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 226182, 234375, 308105, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 234396, 324508, 291742, 226200, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 291754, 291756, 226220, 234414, 324527, 291760, 234417, 201650, 324531, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226245, 226239, 234439, 234443, 291788, 193486, 234446, 193488, 234449, 316370, 275406, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 308226, 234501, 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, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 234648, 226453, 234650, 308379, 275606, 300189, 324766, 119967, 324768, 234653, 283805, 234657, 242852, 300197, 283813, 234661, 234664, 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, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 275725, 177424, 283917, 349464, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 136562, 324978, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 284076, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 227430, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 284223, 284226, 284228, 292421, 243268, 284231, 226886, 128584, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 284249, 235097, 243290, 284251, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 276206, 358128, 284399, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 178006, 317271, 284502, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 317332, 358292, 284564, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 292839, 276455, 292843, 276460, 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, 292934, 243785, 350293, 350295, 309337, 194649, 350299, 227418, 350302, 194654, 350304, 178273, 309346, 227423, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 350313, 350316, 301163, 276583, 301167, 276586, 350321, 276590, 227440, 284786, 350325, 252022, 276595, 350328, 292985, 301178, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 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, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 227571, 309494, 243960, 227583, 276735, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 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, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 318132, 154292, 277173, 342707, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 293706, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 310179, 277411, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 318442, 228332, 326638, 277486, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 285792, 277601, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 310780, 286203, 40448, 228864, 286214, 228871, 302603, 302614, 302617, 286233, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 286248, 310831, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 302764, 278188, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 188252, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 311283, 278516, 237562 ]
b3cee1c1bffa41eab4ecd16058f35aad849b52eb
408097aef5bcece93dcd036b8ed63a2692c87c58
/EtsyShop/Product.swift
8e5590e55d26d2aeba00c4a1192ccca8a83e7238
[]
no_license
outmn/EtsyShop
c20e8e9b96a91a406f2cd909e6ad9407511eb9d1
2ab88b992eb8c84e79abad29276203af0be031d4
refs/heads/master
2020-06-01T06:05:08.618437
2017-06-12T09:32:38
2017-06-12T09:32:38
94,064,687
0
0
null
null
null
null
UTF-8
Swift
false
false
183
swift
// // Product.swift // EtsyShop // // Created by Maxim Grozniy on 6/9/17. // Copyright © 2017 Maxim Grozniy. All rights reserved. // import Foundation class Product { }
[ -1 ]
15e033c0a90889fb95d5f19fc4e58f773816a36f
89c06212795dae08c11d390a1d2fc825c426252a
/Sources/DotKit/CAAnimation+DotKit.swift
fe989c0408f2fd7337dd3511b33f3b9e562d60fd
[ "MIT" ]
permissive
E13Lau/DotKit
ce41fc95531142476d19d6bc9b1d4c652207ad13
f240742afa43eaf3ec798a8bb71719e124d7bc2f
refs/heads/main
2023-06-01T19:06:08.183874
2021-06-21T14:55:57
2021-06-21T14:55:57
371,954,188
20
1
null
2021-05-29T12:47:21
2021-05-29T11:22:05
Swift
UTF-8
Swift
false
false
5,907
swift
// // File.swift // // // Created by lau on 2021/6/5. // import UIKit extension Dotkit where Base: CAAnimation { @discardableResult public func timingFunction(_ value: CAMediaTimingFunction?) -> Self { base.timingFunction = value return self } @discardableResult public func delegate(_ value: CAAnimationDelegate?) -> Self { base.delegate = value return self } @discardableResult public func isRemovedOnCompletion(_ value: Bool) -> Self { base.isRemovedOnCompletion = value return self } } extension Dotkit where Base: CAPropertyAnimation { @discardableResult public func keyPath(_ value: String?) -> Self { base.keyPath = value return self } @discardableResult public func isAdditive(_ value: Bool) -> Self { base.isAdditive = value return self } @discardableResult public func isCumulative(_ value: Bool) -> Self { base.isCumulative = value return self } @discardableResult public func valueFunction(_ value: CAValueFunction?) -> Self { base.valueFunction = value return self } } extension Dotkit where Base: CABasicAnimation { @discardableResult public func fromValue(_ value: Any?) -> Self { base.fromValue = value return self } @discardableResult public func toValue(_ value: Any?) -> Self { base.toValue = value return self } @discardableResult public func byValue(_ value: Any?) -> Self { base.byValue = value return self } } extension Dotkit where Base: CAKeyframeAnimation { @discardableResult public func values(_ value: [Any]?) -> Self { base.values = value return self } @discardableResult public func path(_ value: CGPath?) -> Self { base.path = value return self } @discardableResult public func keyTimes(_ value: [NSNumber]?) -> Self { base.keyTimes = value return self } @discardableResult public func timingFunctions(_ value: [CAMediaTimingFunction]?) -> Self { base.timingFunctions = value return self } @discardableResult public func calculationMode(_ value: CAAnimationCalculationMode) -> Self { base.calculationMode = value return self } @discardableResult public func tensionValues(_ value: [NSNumber]?) -> Self { base.tensionValues = value return self } @discardableResult public func continuityValues(_ value: [NSNumber]?) -> Self { base.continuityValues = value return self } @discardableResult public func biasValues(_ value: [NSNumber]?) -> Self { base.biasValues = value return self } @discardableResult public func rotationMode(_ value: CAAnimationRotationMode?) -> Self { base.rotationMode = value return self } } extension Dotkit where Base: CASpringAnimation { @discardableResult public func mass(_ value: CGFloat) -> Self { base.mass = value return self } @discardableResult public func stiffness(_ value: CGFloat) -> Self { base.stiffness = value return self } @discardableResult public func damping(_ value: CGFloat) -> Self { base.damping = value return self } @discardableResult public func initialVelocity(_ value: CGFloat) -> Self { base.initialVelocity = value return self } } extension Dotkit where Base: CATransition { @discardableResult public func type(_ value: CATransitionType) -> Self { base.type = value return self } @discardableResult public func subtype(_ value: CATransitionSubtype?) -> Self { base.subtype = value return self } @discardableResult public func startProgress(_ value: Float) -> Self { base.startProgress = value return self } @discardableResult public func endProgress(_ value: Float) -> Self { base.endProgress = value return self } } extension Dotkit where Base: CAAnimationGroup { @discardableResult public func animations(_ value: [CAAnimation]?) -> Self { base.animations = value return self } } extension Dotkit where Base: CAMediaTiming { @discardableResult public func beginTime(_ value: CFTimeInterval) -> Self { base.beginTime = value return self } @discardableResult public func duration(_ value: CFTimeInterval) -> Self { base.duration = value return self } @discardableResult public func speed(_ value: Float) -> Self { base.speed = value return self } @discardableResult public func timeOffset(_ value: CFTimeInterval) -> Self { base.timeOffset = value return self } @discardableResult public func repeatCount(_ value: Float) -> Self { base.repeatCount = value return self } @discardableResult public func repeatDuration(_ value: CFTimeInterval) -> Self { base.repeatDuration = value return self } @discardableResult public func autoreverses(_ value: Bool) -> Self { base.autoreverses = value return self } @discardableResult public func fillMode(_ value: CAMediaTimingFillMode) -> Self { base.fillMode = value return self } } //out of foundation method extension Dotkit where Base: CAAnimation { @discardableResult public func asAnimationAdd(to layer: CALayer, forKey: String) -> Self { layer.add(base, forKey: forKey) return self } }
[ -1 ]
ee3c5fc8e758c8f3301da0c1dcde135887a91b79
9155460e1e6e3ec988b53113746d1d83502a7500
/FlipAnimation/FlipAnimation/ViewController.swift
4b34f22f77a720427059486e45280397d75ca500
[]
no_license
PHI33/AwesomeAnimationsiOS
1d8f28b43109dcff96d5d84536e9d6218b48412a
68461c0e943e8d11d9935fe8f967bc2927ef4c3f
refs/heads/master
2021-05-15T13:39:59.272965
2017-05-03T17:08:38
2017-05-03T17:08:38
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,234
swift
// // ViewController.swift // FlipAnimation // // Created by Arun Gupta on 17/02/17. // Copyright © 2017 Arun Gupta. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var frontImageView: UIImageView! var isFrontVisible = true 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. } @IBAction func flipBtnTapped(_ sender: UIButton) { var option: UIViewAnimationOptions = .transitionFlipFromRight if(self.isFrontVisible) { self.isFrontVisible = false self.frontImageView.image = UIImage.init(named: "kiwi1.jpg") option = .transitionFlipFromRight } else { self.isFrontVisible = true self.frontImageView.image = UIImage.init(named: "kiwi.jpg") option = .transitionFlipFromLeft } UIView.transition(with: self.frontImageView, duration: 0.8, options: option, animations: nil, completion: nil) } }
[ -1 ]
1b72b58156b8076b22c8fd9fe2f5274c350c962c
c8cde27ff91400cd6743a63aebe8f9221bd2cb6e
/Sources/Xcodeproj/pbxproj().swift
b4de63854e799a29396807f3f2bb390261fafa79
[ "Apache-2.0", "Swift-exception" ]
permissive
pk-codebox-evo/sdk-apple-swift-package-manager
80d5b6d54e47513da089d249aa42a4309a4b61a4
e80994c709e89fd8cda0f6a62f9af277c4ce94de
refs/heads/master
2021-06-03T21:24:12.365608
2016-07-15T22:18:01
2016-07-16T13:57:35
null
0
0
null
null
null
null
UTF-8
Swift
false
false
18,351
swift
/* This source file is part of the Swift.org open source project Copyright 2015 - 2016 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See http://swift.org/LICENSE.txt for license information See http://swift.org/CONTRIBUTORS.txt for Swift project authors */ import Basic import POSIX import PackageModel import Utility // FIXME: escaping public func pbxproj(srcroot: AbsolutePath, projectRoot: AbsolutePath, xcodeprojPath: AbsolutePath, modules: [Module], externalModules: [Module], products _: [Product], directoryReferences: [AbsolutePath], options: XcodeprojOptions, printer print: (String) -> Void) throws { // let rootModulesSet = Set(modules).subtract(Set(externalModules)) let rootModulesSet = modules let nonTestRootModules = rootModulesSet.filter{ !$0.isTest } print("// !$*UTF8*$!") print("{") print(" archiveVersion = 1;") print(" classes = {};") print(" objectVersion = 46;") print(" rootObject = \(rootObjectReference);") print(" objects = {") ////// root object, ie. the Project itself print(" \(rootObjectReference) = {") print(" isa = PBXProject;") print(" attributes = {LastUpgradeCheck = 9999;};") // we're generated: don’t upgrade check print(" buildConfigurationList = \(rootBuildConfigurationListReference);") print(" compatibilityVersion = 'Xcode 3.2';") print(" developmentRegion = English;") print(" hasScannedForEncodings = 0;") print(" knownRegions = (en);") print(" mainGroup = \(rootGroupReference);") print(" productRefGroup = \(productsGroupReference);") print(" projectDirPath = '';") print(" projectRoot = '';") print(" targets = (" + modules.map{ $0.targetReference }.joined(separator: ", ") + ");") print(" };") ////// Package.swift file let packageSwift = fileRef(inProjectRoot: "Package.swift", srcroot: srcroot) print(" \(packageSwift.refId) = {") print(" isa = PBXFileReference;") print(" lastKnownFileType = sourcecode.swift;") print(" path = '\(packageSwift.path.relative(to: projectRoot).asString)';") print(" sourceTree = '<group>';") print(" };") ////// Reference directories var folderRefs = "" for directoryReference in directoryReferences { let folderRef = fileRef(inProjectRoot: directoryReference.relative(to: srcroot), srcroot: srcroot) folderRefs.append("\(folderRef.refId),") print(" \(folderRef.refId) = {") print(" isa = PBXFileReference;") print(" lastKnownFileType = folder;") print(" name = '\(directoryReference.basename)';") print(" path = '\(folderRef.path.relative(to: projectRoot).asString)';") print(" sourceTree = '<group>';") print(" };") } ////// root group print(" \(rootGroupReference) = {") print(" isa = PBXGroup;") print(" children = (\(packageSwift.refId), \(configsGroupReference), \(sourcesGroupReference), \(folderRefs) \(dependenciesGroupReference), \(testsGroupReference), \(productsGroupReference));") print(" sourceTree = '<group>';") print(" };") ////// modules group for module in modules { // Base directory for source files belonging to the module. let moduleRoot = module.sources.root // Contruct an array of (refId, path, bflId) tuples for all the source files in the model. The reference id is for the PBXFileReference in the group hierarchy, and the build file id is for the PBXBuildFile in the CompileSources build phase. let sourceFileRefs = fileRefs(forModuleSources: module, srcroot: srcroot) // Make an array of all the source file reference ids to add to the main group. var sourceRefIds = sourceFileRefs.map{ $0.refId } ////// Info.plist file reference if this a framework target if module.isLibrary { let infoPlistFileRef = fileRef(ofInfoPlistFor: module, srcroot: xcodeprojPath) print(" \(infoPlistFileRef.refId) = {") print(" isa = PBXFileReference;") print(" lastKnownFileType = text.plist.xml;") print(" path = '\(infoPlistFileRef.path.relative(to: projectRoot).asString)';") print(" sourceTree = SOURCE_ROOT;") print(" };") sourceRefIds.append(infoPlistFileRef.refId) } // the “Project Navigator” group for this module print(" \(module.groupReference) = {") print(" isa = PBXGroup;") print(" name = '\(module.name)';") print(" path = '\(moduleRoot.relative(to: projectRoot).asString)';") print(" sourceTree = '<group>';") print(" children = (" + sourceRefIds.joined(separator: ", ") + ");") print(" };") // the contents of the “Project Navigator” group for this module for fileRef in sourceFileRefs { let path = fileRef.path.relative(to: moduleRoot) print(" \(fileRef.refId) = {") print(" isa = PBXFileReference;") print(" lastKnownFileType = \(module.fileType(forSource: path));") print(" path = '\(fileRef.path.relative(to: moduleRoot).asString)';") print(" sourceTree = '<group>';") print(" };") } // the target reference for this module’s product print(" \(module.targetReference) = {") print(" isa = PBXNativeTarget;") print(" buildConfigurationList = \(module.configurationListReference);") print(" buildPhases = (\(module.compilePhaseReference), \(module.linkPhaseReference));") print(" buildRules = ();") print(" dependencies = (\(module.nativeTargetDependencies));") print(" name = '\(module.name)';") print(" productName = \(module.c99name);") print(" productReference = \(module.productReference);") print(" productType = '\(module.productType)';") print(" };") // the product file reference print(" \(module.productReference) = {") print(" isa = PBXFileReference;") print(" explicitFileType = '\(module.explicitFileType)';") print(" path = '\(module.productPath)';") print(" sourceTree = BUILT_PRODUCTS_DIR;") print(" };") // sources build phase print(" \(module.compilePhaseReference) = {") print(" isa = PBXSourcesBuildPhase;") print(" files = (\(sourceFileRefs.map{ $0.bflId }.joined(separator: ", ")));") print(" runOnlyForDeploymentPostprocessing = 0;") print(" };") // the fileRefs for the children in the build phases for fileRef in sourceFileRefs { print(" \(fileRef.bflId) = {") print(" isa = PBXBuildFile;") print(" fileRef = \(fileRef.refId);") print(" };") } // link build phase let linkPhaseFileRefs = module.linkPhaseFileRefs print(" \(module.linkPhaseReference) = {") print(" isa = PBXFrameworksBuildPhase;") print(" files = (\(linkPhaseFileRefs.map{ $0.fileRef }.joined(separator: ", ")));") print(" runOnlyForDeploymentPostprocessing = 0;") print(" };") for item in linkPhaseFileRefs { print(" \(item.fileRef) = {") print(" isa = PBXBuildFile;") print(" fileRef = \(item.dependency.productReference);") print(" };") } // the target build configuration print(" \(module.configurationListReference) = {") print(" isa = XCConfigurationList;") print(" buildConfigurations = (\(module.debugConfigurationReference), \(module.releaseConfigurationReference));") print(" defaultConfigurationIsVisible = 0;") print(" defaultConfigurationName = Debug;") print(" };") print(" \(module.debugConfigurationReference) = {") print(" isa = XCBuildConfiguration;") print(" buildSettings = { \(try module.getDebugBuildSettings(options, xcodeProjectPath: xcodeprojPath)) };") print(" name = Debug;") print(" };") print(" \(module.releaseConfigurationReference) = {") print(" isa = XCBuildConfiguration;") print(" buildSettings = { \(try module.getReleaseBuildSettings(options, xcodeProjectPath: xcodeprojPath)) };") print(" name = Release;") print(" };") //TODO ^^ probably can consolidate this into the three kinds //TODO we use rather than have one per module // targets that depend on this target use these print(" \(module.dependencyReference) = {") print(" isa = PBXTargetDependency;") print(" target = \(module.targetReference);") print(" };") } ////// “Configs” group // The project-level xcconfig files. // // FIXME: Generate these into a sane path. let projectXCConfig = fileRef(inProjectRoot: RelativePath("\(xcodeprojPath.basename)/Configs/Project.xcconfig"), srcroot: srcroot) try Utility.makeDirectories(projectXCConfig.path.parentDirectory.asString) try open(projectXCConfig.path) { print in // Set the standard PRODUCT_NAME. print("PRODUCT_NAME = $(TARGET_NAME)") // Set SUPPORTED_PLATFORMS to all platforms. // // The goal here is to define targets which *can be* built for any // platform (although some might not work correctly). It is then up to // the integrating project to only set these targets up as dependencies // where appropriate. let supportedPlatforms = [ "macosx", "iphoneos", "iphonesimulator", "appletvos", "appletvsimulator", "watchos", "watchsimulator"] print("SUPPORTED_PLATFORMS = \(supportedPlatforms.joined(separator: " "))") // Set a conservative default deployment target. // // We currently *must* do this for SwiftPM to be able to self-host in // Xcode (otherwise, the PackageDescription library will be incompatible // with the default deployment target we pass when building). // // FIXME: Eventually there should be a way for the project using Xcode // generation to have control over this. print("MACOSX_DEPLOYMENT_TARGET = 10.10") // Default to @rpath-based install names. // // The expectation is that the application or executable consuming these // products will need to establish the appropriate runpath search paths // so that all the products can be found in a relative manner. print("DYLIB_INSTALL_NAME_BASE = @rpath") // Propagate any user provided build flag overrides. // // FIXME: Need to get quoting correct here. if !options.flags.cCompilerFlags.isEmpty { print("OTHER_CFLAGS = \(options.flags.cCompilerFlags.joined(separator: " "))") } if !options.flags.linkerFlags.isEmpty { print("OTHER_LDFLAGS = \(options.flags.linkerFlags.joined(separator: " "))") } print("OTHER_SWIFT_FLAGS = \((options.flags.swiftCompilerFlags+["-DXcode"]).joined(separator: " "))") // Prevents Xcode project upgrade warnings. print("COMBINE_HIDPI_IMAGES = YES") // Always disable use of headermaps. // // The semantics of the build should be explicitly defined by the // project structure, we don't want any additional behaviors not shared // with `swift build`. print("USE_HEADERMAP = NO") // If the user provided an overriding xcconfig path, include it here. if let path = options.xcconfigOverrides { print("\n#include \"\(path.asString)\"") } } let configs = [projectXCConfig] for configInfo in configs { print(" \(configInfo.refId) = {") print(" isa = PBXFileReference;") print(" lastKnownFileType = text.xcconfig;") print(" path = '\(configInfo.path.relative(to: projectRoot).asString)';") print(" sourceTree = '<group>';") print(" };") } print(" \(configsGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + configs.map{ $0.refId }.joined(separator: ", ") + ");") print(" name = Configs;") print(" sourceTree = '<group>';") print(" };") ////// “Sources” group print(" \(sourcesGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + nonTestRootModules.map{ $0.groupReference }.joined(separator: ", ") + ");") print(" name = Sources;") print(" sourceTree = '<group>';") print(" };") if !externalModules.isEmpty { ////// “Dependencies” group print(" \(dependenciesGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + externalModules.map{ $0.groupReference }.joined(separator: ", ") + ");") print(" name = Dependencies;") print(" sourceTree = '<group>';") print(" };") } ////// “Tests” group let tests = modules.filter{ $0.isTest } if !tests.isEmpty { print(" \(testsGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + tests.map{ $0.groupReference }.joined(separator: ", ") + ");") print(" name = Tests;") print(" sourceTree = '<group>';") print(" };") } var productReferences: [String] = [] if !tests.isEmpty { ////// “Product/Tests” group print(" \(testProductsGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + tests.map{ $0.productReference }.joined(separator: ", ") + ");") print(" name = Tests;") print(" sourceTree = '<group>';") print(" };") productReferences = [testProductsGroupReference] } ////// “Products” group productReferences += modules.flatMap { !$0.isTest ? $0.productReference : nil } print(" \(productsGroupReference) = {") print(" isa = PBXGroup;") print(" children = (" + productReferences.joined(separator: ", ") + ");") print(" name = Products;") print(" sourceTree = '<group>';") print(" };") ////// primary build configurations print(" \(rootDebugBuildConfigurationReference) = {") print(" isa = XCBuildConfiguration;") print(" baseConfigurationReference = \(projectXCConfig.0);") print(" buildSettings = {};") print(" name = Debug;") print(" };") print(" \(rootReleaseBuildConfigurationReference) = {") print(" isa = XCBuildConfiguration;") print(" baseConfigurationReference = \(projectXCConfig.0);") print(" buildSettings = {};") print(" name = Release;") print(" };") print(" \(rootBuildConfigurationListReference) = {") print(" isa = XCConfigurationList;") print(" buildConfigurations = (\(rootDebugBuildConfigurationReference), \(rootReleaseBuildConfigurationReference));") print(" defaultConfigurationIsVisible = 0;") print(" defaultConfigurationName = Debug;") print(" };") print(" };") ////// done! print("}") } extension Module { var blueprintIdentifier: String { return targetReference } var buildableName: String { return productName } var blueprintName: String { return name } } private extension SupportedLanguageExtension { var xcodeFileType: String { switch self { case .c: return "sourcecode.c.c" case .m: return "sourcecode.c.objc" case .cxx, .cc, .cpp: return "sourcecode.cpp.cpp" case .mm: return "sourcecode.cpp.objcpp" case .swift: return "sourcecode.swift" } } } private extension Module { func fileType(forSource source: RelativePath) -> String { switch self { case is SwiftModule: // SwiftModules only has one type of source so just always return this. return SupportedLanguageExtension.swift.xcodeFileType case is ClangModule: guard let suffix = source.suffix else { fatalError("Source \(source) doesn't have an extension in ClangModule \(name)") } // Suffix includes `.` so drop it. assert(suffix.hasPrefix(".")) let fileExtension = String(suffix.characters.dropFirst()) guard let ext = SupportedLanguageExtension(rawValue: fileExtension) else { fatalError("Unknown source extension \(source) in ClangModule \(name)") } return ext.xcodeFileType default: fatalError("unexpected module type") } } }
[ -1 ]
02974cbd5afaed26d0240c4daf04a5567ede696c
0d3044d7ea41da2d98e9ea6f26cb560a3fce29ec
/YZNews/YZNews/Home/HomeViewController.swift
534c10141c92ce4ff873f7d8b8ba4efcfe347c66
[ "MIT" ]
permissive
ITyongzhen/YZNews
461a281f64bbc42c67e8e7b652946016d4a11d13
efa20fb1f991d1af5d6601e571ca92a3c3497382
refs/heads/master
2020-03-22T23:06:19.241013
2018-07-21T08:07:59
2018-07-21T08:07:59
140,789,717
1
0
null
null
null
null
UTF-8
Swift
false
false
2,242
swift
// // HomeViewController.swift // YZNews // // Created by yongzhen on 2018/7/13. // Copyright © 2018年 yongzhen. All rights reserved. // import UIKit class HomeViewController: UIViewController, YZPageTitleViewDelegate, PageContentViewDelegate { private let navigationVBar = HomeNaviView.loadViewFromNib() var pageTitleView : YZPageTitleView? var pageContentView: YZPageContentView? override func viewDidLoad() { super.viewDidLoad() layoutNavigationBar() NetWorkTool.loadHomeNewTitleData { (arr: [HomeTitleModel]) in print(arr) let titles: [String] = arr.compactMap({ (model) -> String? in model.name }) self.navigationController!.navigationBar.isTranslucent = false self.view.backgroundColor = UIColor.white self.pageTitleView = YZPageTitleView(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 40), titleNames: titles) self.pageTitleView?.layer.borderWidth = 2 self.pageTitleView?.layer.borderColor = UIColor.yellow.cgColor self.pageTitleView?.delegate = self self.view.addSubview(self.pageTitleView!) for _ in arr{ self.addChildViewController(HotPageViewController()) } self.pageContentView = YZPageContentView(frame: CGRect(x: 0, y: 40, width: kScreenWidth, height: kScreenHeight - 40), childViewControllers: self.childViewControllers) self.pageContentView?.delegate = self self.view.addSubview(self.pageContentView!) } } } extension HomeViewController{ private func layoutNavigationBar(){ // view.backgroundColor = UIColor.yellow navigationVBar.backgroundColor = UIColor.white navigationItem.titleView = navigationVBar } func YZPageTitleViewDidSelected(atIndex index: Int) { pageContentView?.setIndex(index: index) } func pageContentViewDidEndScroll(index: Int) { pageTitleView?.setSelect(index: index) } }
[ -1 ]
dbcab3d8214541525767adc41f2549404e899952
36b7638bec85ff82f2afa98a5d140c748202afc6
/Hangout/SwiftJSON/JSONPath.swift
2b58e244782db7ae45d31dfac046af2bbe4e7ad5
[]
no_license
mirceah13/HangOut-iOS
26b36f93b30c18436c4fff9eaf27f11561bc7264
eeb9f9f74c37da88af509607845f0802c3b4b5eb
refs/heads/master
2020-06-03T13:25:14.087992
2014-12-12T10:57:01
2014-12-12T10:57:01
26,748,749
0
0
null
null
null
null
UTF-8
Swift
false
false
1,469
swift
// // JSONPath.swift // SwiftJSONParser // // Created by mrap on 8/27/14. // Copyright (c) 2014 Mike Rapadas. All rights reserved. // import Foundation class JSONPath { let path: String? var pathComponents = Array<String>() init(_ path: String?) { if let nsPath = path as NSString? { self.path = path pathComponents = nsPath.componentsSeparatedByString(".") as Array<String> } } func popNext() -> String? { if pathComponents.isEmpty { return nil } return pathComponents.removeAtIndex(0) } class func getArrayKeyAndIndex(optionalKey: String?) -> (String?, Int?)? { if let key = optionalKey as String? { var arrayKey: String? var arrayIndex: Int? var itr = 0 // Match the key of the array and the index let regex:NSRegularExpression = NSRegularExpression(pattern: "\\w+(?=\\[)|(?<=\\w\\[)(\\d+)(?=\\])", options: nil, error: nil)! //for match in (key =~ "\\w+(?=\\[)|(?<=\\w\\[)(\\d+)(?=\\])") { for match in regex.matchesInString(key, options: nil, range: NSMakeRange(0, countElements(key))) as [String]{ if (itr == 0) { arrayKey = match } else { arrayIndex = match.toInt() } ++itr } return (arrayKey, arrayIndex) } return nil } }
[ -1 ]
fa94867734a0eb4a603d9eee92a5db6aea09ba54
a15f712e12491e5280329f694564a0a82ad051d4
/Universe Docs/Controller/View/UVCNavigationCellDelegate.swift
d637741bd0886b9d5634da88cb43ae002ee071b5
[ "MIT" ]
permissive
root-eth/Universe-Docs
49741a4cf60af9095d941b517f4ac12878aa46c1
ba9abc993bf0fa5de11c39173f53cb2ce48633b8
refs/heads/master
2023-04-18T09:19:29.819956
2021-04-29T17:12:04
2021-04-29T17:12:04
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,554
swift
// // UVCCollectionViewCellDelegate.swift // UniversalViewController // // Created by Kumar Muthaiah on 18/12/18. // Copyright © 2018 Kumar Muthaiah. All rights reserved. // //Copyright 2020 Kumar Muthaiah // //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 protocol UVCNavigationViewCellDelegate { func editOk(index: Int, sender: Any) func textFieldDidChange(index: Int, sender: Any) func navigationViewCellEvent(uvcViewItemType: String, eventName: String, uvcObject: Any, uiObject: Any, navigationViewCell: NavigationViewCell) }
[ 194560, 196636, 98341, 98346, 98347, 59445, 327749, 174152, 174159, 354400, 235658, 229532, 125086, 125087, 191, 262357, 262359, 106713, 106715, 106719, 35040, 106737, 176369, 176370, 106741, 260342, 106750, 141566, 141576, 141578, 141588, 12565, 141591, 141592, 227608, 227610, 141595, 141596, 141597, 141598, 141600, 141601, 141603, 289068, 289071, 289074, 141627, 141628, 141629, 141632, 141634, 141639, 141640, 141641, 141642, 241994, 241999, 141649, 141654, 141655, 141663, 215396, 141670, 375153, 287090, 375155, 334196, 375163, 375164, 375166, 375171, 141701, 375173, 375181, 197021, 213421, 303550, 305637, 305638, 223741, 125456, 57893, 328232, 57901, 336450, 336451, 336455, 336459, 336460, 55886, 336464, 336467, 336469, 336470, 336479, 336480, 336481, 297620, 135860, 299713, 66261, 334563, 334564, 172784, 244469, 111356, 66302, 142078, 244480, 142081, 142083, 142085, 142087, 142089, 334601, 318220, 318223, 142097, 318233, 318246, 187176, 396095, 396098, 279366, 299858, 396115, 396118, 396127, 396134, 299884, 248696, 297858, 60304, 60312, 60319, 60323, 23473, 60337, 23481, 23487, 23493, 23501, 23508, 259036, 23519, 23531, 203755, 433131, 23554, 23555, 437252, 23557, 23559, 23560, 23562, 437258, 437266, 437267, 23572, 23573, 23575, 437273, 23580, 437277, 23582, 437281, 3119, 189488, 187442, 189490, 187444, 187445, 189492, 187447, 144440, 189493, 437305, 144443, 341054, 341055, 341059, 341063, 341066, 23636, 437333, 285783, 23640, 285784, 437338, 285787, 312412, 437340, 312417, 437353, 185451, 437356, 185454, 437364, 437369, 437371, 142463, 294015, 294016, 437384, 437390, 248975, 437392, 312473, 312476, 189598, 40095, 228512, 312478, 40098, 312479, 437412, 437415, 437416, 437423, 437426, 312499, 312501, 312502, 437431, 437433, 437440, 437445, 437458, 203993, 204000, 204003, 281832, 152821, 294138, 206094, 206098, 206104, 206107, 206108, 206109, 27943, 27945, 27948, 173368, 290126, 290135, 171363, 222566, 228717, 222581, 222582, 222594, 363913, 279954, 54678, 173465, 54692, 298431, 157151, 222692, 112115, 65016, 112120, 40450, 206344, 40459, 355859, 40471, 40482, 34359, 34362, 316993, 173635, 173640, 173641, 263755, 106082, 106085, 319088, 52855, 52884, 394910, 52896, 394930, 108245, 212694, 192230, 296679, 34537, 155377, 296691, 296700, 276236, 311055, 227116, 210756, 120655, 218960, 120656, 120657, 180059, 292708, 292709, 223081, 227179, 227180, 116600, 169881, 290767, 141272, 141284, 174067, 237559, 194558, 194559 ]
55a65b08406dbfa394e64943ab10b4134d04e2ae
1cb255f641cd9ed91fa15413d8b100eca9336e7f
/Sources/Sorcery/uikit/Components/Views/ToolbarBaseView.swift
ad18d36f7f7bed0642e44186e6351590c9aa1326
[ "MIT" ]
permissive
siliconsorcery/Sorcery
fbcc63909eaa6317f579314dc84fffb2625a6380
f9c9065738eb21c7b557489eb9a8c08de78cb22e
refs/heads/master
2023-07-18T18:12:15.573342
2021-09-21T00:26:15
2021-09-21T00:26:15
216,612,276
0
0
null
null
null
null
UTF-8
Swift
false
false
267
swift
// // ToolbarBaseView.swift // Sorcery // // Created by John Cumming on 10/19/19. // Copyright © 2019 Silicon Sorcery, MIT License. https://opensource.org/licenses/MIT // import UIKit class ToolbarBaseView: Component { // override func update() { // } }
[ -1 ]
cc9fa015be2b56381d8426318f8d365b4956dd80
2b76083746bc93e384ecc273df51827e0c2bee5e
/Makestagram/Views/PostImageCell.swift
ba807d05586076bc5b02dfaf092bcc67d6b15b87
[]
no_license
mmontori1/Makestagram
f4322085052f55048b328cfbb020801c65405691
6d401436f1f916e46219a1b080ea13754cbf9098
refs/heads/master
2020-12-02T17:49:53.232429
2018-01-03T20:49:28
2018-01-03T20:49:28
96,434,643
0
0
null
null
null
null
UTF-8
Swift
false
false
470
swift
// // PostImageCell.swift // Makestagram // // Created by Mariano Montori on 7/7/17. // Copyright © 2017 Mariano Montori. All rights reserved. // import UIKit class PostImageCell: UITableViewCell { @IBOutlet weak var postImageView: UIImageView! override func awakeFromNib() { super.awakeFromNib() } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) } }
[ -1 ]
b2daf6d69de9fcec204918f7becd51d9547d8481
432bf985f6f246566484f6d1488078ed6f5cc0e9
/TimesTableTests/TimesTableTests.swift
a788096b8ba773cac198d859cf8a33da3ac3e04d
[]
no_license
RommelTJ/TimesTable
2d678e10130800756c68f3ef4171bded72ec66a0
fee4e66357bfbea92c3c5adf030d4df23700ba45
refs/heads/master
2021-01-21T11:23:36.560615
2015-02-26T05:20:26
2015-02-26T05:20:26
31,351,865
0
0
null
null
null
null
UTF-8
Swift
false
false
909
swift
// // TimesTableTests.swift // TimesTableTests // // Created by Rommel Rico on 2/25/15. // Copyright (c) 2015 Rommel Rico. All rights reserved. // import UIKit import XCTest class TimesTableTests: 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. XCTAssert(true, "Pass") } func testPerformanceExample() { // This is an example of a performance test case. self.measureBlock() { // Put the code you want to measure the time of here. } } }
[ 276481, 276492, 278541, 278544, 278550, 276509, 278561, 278570, 159807, 276543, 280649, 223318, 278615, 288857, 278618, 227417, 194652, 194653, 276577, 276581, 276582, 43109, 276585, 223340, 276589, 227439, 276592, 284788, 227446, 276603, 276606, 141450, 311435, 276627, 276632, 184475, 196773, 129203, 176314, 227528, 276684, 282831, 278742, 278746, 155867, 278753, 276709, 276710, 276715, 233715, 227576, 157944, 227585, 227592, 276753, 276760, 278810, 276764, 276774, 262450, 278846, 164162, 278856, 276813, 278863, 6482, 276821, 276822, 276835, 276847, 278898, 278908, 178571, 276891, 276900, 278954, 278965, 276920, 278969, 127427, 127428, 278985, 276962, 276963, 227813, 279018, 279019, 279022, 186893, 223767, 289304, 223769, 277017, 279065, 277029, 277048, 301634, 369220, 277066, 277094, 166507, 277101, 277118, 184962, 225933, 277133, 133774, 225936, 277138, 277142, 164512, 225956, 225962, 209581, 154291, 154294, 277175, 277176, 303803, 277182, 199366, 277190, 225997, 277198, 164563, 277204, 203478, 119513, 201442, 226043, 209660, 234241, 226051, 209670, 277254, 226058, 234256, 234263, 234268, 105246, 228129, 281377, 234280, 277289, 293672, 234283, 152365, 234286, 277294, 226097, 162621, 234301, 234304, 295744, 162626, 277316, 234311, 234312, 234317, 277327, 234323, 234326, 277339, 234335, 234340, 174949, 234343, 234346, 234349, 400239, 277360, 213876, 277366, 234361, 226170, 277370, 234367, 234372, 277381, 226184, 234377, 234381, 226194, 234387, 234392, 279456, 277410, 234404, 234409, 234412, 234419, 226227, 277435, 234430, 226241, 275397, 234438, 226249, 234450, 234451, 234454, 234457, 275418, 234463, 234466, 277479, 277480, 179176, 183279, 234482, 234492, 277505, 234498, 277510, 234503, 277513, 234506, 234509, 277517, 197647, 277518, 295953, 275469, 234517, 281625, 234530, 234534, 275495, 234539, 275500, 310317, 277550, 275505, 234548, 203830, 277563, 7229, 277566, 7230, 7231, 156733, 234560, 234565, 277574, 234569, 207953, 277585, 296018, 234583, 234584, 275547, 277596, 234594, 277603, 234603, 281707, 156785, 275571, 234612, 285814, 398457, 234622, 275590, 234631, 253063, 277640, 302217, 226451, 275607, 119963, 234652, 277665, 275625, 208043, 275628, 226479, 277690, 277694, 203989, 275671, 195811, 285929, 204022, 120055, 204041, 199971, 259363, 277800, 113962, 277803, 113966, 277806, 226608, 226609, 277821, 277824, 277825, 226624, 277831, 226632, 277838, 277841, 222548, 277844, 277845, 224605, 224606, 142689, 277862, 173420, 277868, 277871, 279919, 275831, 277882, 142716, 275838, 275839, 277890, 277891, 148867, 226694, 275847, 277896, 277897, 230799, 296338, 277907, 206228, 226711, 226712, 277927, 277936, 277939, 173491, 296375, 277946, 277949, 277952, 296387, 163269, 277962, 282060, 277965, 306639, 284116, 277974, 228823, 228824, 277977, 277980, 226781, 277983, 277988, 277993, 277994, 296425, 277997, 306673, 278002, 226805, 153095, 175625, 192010, 65041, 204313, 278060, 228917, 288326, 282183, 128583, 276046, 226906, 243292, 239198, 226910, 276088, 278140, 188031, 276097, 276100, 276101, 312972, 278160, 278162, 239250, 276116, 276117, 276120, 278170, 280220, 276126, 276129, 278191, 278195, 276148, 296628, 278201, 276156, 278214, 280267, 323276, 276179, 276180, 18138, 216795, 216796, 276195, 313065, 12010, 276210, 276219, 171776, 278285, 276238, 227091, 184086, 278299, 276253, 276257, 278307, 288547, 200498, 276279, 276282, 276283, 276287, 307011, 276298, 276311, 280410, 276325, 292712, 276332, 173936, 313203, 110452, 276344, 227199, 40850, 282518, 44952, 247712, 227238, 276394, 276400, 276401, 276408, 161722, 276413, 237504, 276421, 276422, 284619, 153552, 276443, 276444, 276450, 317415, 276459, 276462, 276468, 278518 ]
02a6ce2c46f84bc2496f1343d1771ce0a35768b9
cd3d23754117b9deb3296e98e02db1570073fb8f
/AdjustA/AppDelegate.swift
27fde89e14a8e7716b7cbd9621e5b8afa742b032
[]
no_license
sakura0221/AdjustA
6d3a45b0bf0add9666fd3d962e1f4ad2c2fc241f
e7352d276d01e8809e9a2a2cc000ce895e59eb34
refs/heads/master
2020-11-30T08:00:19.788853
2019-12-28T01:07:24
2019-12-28T01:07:24
230,352,500
0
0
null
null
null
null
UTF-8
Swift
false
false
1,415
swift
// // AppDelegate.swift // AdjustA // // Created by sakura0221 on 2019/12/26. // Copyright © 2019 sakura0221. All rights reserved. // 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, 262283, 377012, 327871, 180416, 377036, 180431, 377046, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 385280, 336128, 262404, 180490, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 262472, 344403, 213332, 65880, 418144, 262496, 262499, 213352, 246123, 262507, 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, 197159, 377383, 352821, 188987, 418363, 369223, 385609, 385616, 352856, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 336512, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 434867, 164534, 336567, 164538, 328378, 328386, 352968, 344776, 418507, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 344831, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 336711, 328522, 336714, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 369542, 361360, 222128, 345035, 345043, 386003, 386011, 386018, 386022, 435187, 328702, 328714, 361489, 386069, 336921, 386073, 336925, 345118, 377887, 345138, 386101, 361536, 197707, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 361598, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 386258, 328924, 66782, 222437, 328941, 386285, 386291, 345376, 353570, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 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, 419410, 345701, 394853, 222830, 370297, 403070, 403075, 198280, 345736, 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, 337659, 141051, 337668, 362247, 395021, 362255, 321299, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 345930, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436132, 337833, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 329832, 329855, 329867, 329885, 411805, 346272, 100524, 387249, 379066, 387260, 256191, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 321786, 379134, 411903, 379152, 387349, 338199, 387352, 182558, 338211, 395566, 248111, 362822, 436555, 190796, 321879, 354673, 321910, 248186, 420236, 379278, 354727, 338352, 330189, 338381, 338386, 338403, 338409, 248308, 199164, 330252, 199186, 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, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 330760, 330768, 248862, 396328, 158761, 199728, 330800, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 339036, 412764, 257120, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330958, 330965, 265432, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 372015, 347441, 372018, 199988, 175415, 396600, 437566, 175423, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249227, 249234, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 388542, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 249308, 339420, 339424, 339428, 339434, 249328, 69113, 372228, 339461, 208398, 380432, 175635, 339503, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 126596, 339588, 421508, 224904, 224909, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 225058, 339747, 339749, 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, 339826, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 339844, 225165, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 217157, 421960, 356439, 421990, 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, 225493, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 389380, 356637, 356640, 356643, 356646, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 348502, 250199, 250202, 332125, 250210, 348525, 332152, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 340451, 160234, 127471, 340472, 324094, 266754, 324099, 324102, 324111, 340500, 324117, 324131, 332324, 381481, 324139, 356907, 324142, 356916, 324149, 324155, 348733, 324160, 324164, 348743, 381512, 324170, 324173, 324176, 389723, 332380, 381545, 340627, 184982, 373398, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 152370, 348978, 340789, 348982, 398139, 127814, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 201588, 430965, 381813, 324472, 398201, 119674, 340858, 324475, 430972, 340861, 324478, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 201637, 398245, 324524, 340909, 324533, 5046, 324538, 324541, 398279, 340939, 340941, 340957, 431072, 398306, 340963, 201711, 381946, 349180, 439294, 431106, 209943, 250914, 357410, 185380, 357418, 209965, 209968, 209971, 209975, 209987, 209990, 341071, 349267, 250967, 341091, 210027, 210039, 341113, 349308, 210044, 349311, 152703, 160895, 210052, 349319, 210067, 210071, 210077, 210080, 251044, 210084, 185511, 210088, 210095, 210098, 210115, 332997, 333009, 333014, 210138, 218354, 218360, 251128, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 251189, 415033, 251210, 357708, 210260, 259421, 365921, 333154, 251235, 333162, 234866, 390516, 333175, 357755, 251271, 136590, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 423392, 333284, 366056, 366061, 210420, 423423, 366117, 144939, 210487, 415300, 333386, 333399, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 333498, 210631, 333511, 358099, 153302, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 210695, 210698, 366348, 210706, 399128, 333594, 210719, 358191, 366387, 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, 333818, 350202, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 342133, 374902, 432271, 333997, 334011, 260289, 260298, 350410, 350416, 350422, 211160, 350425, 268507, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 325891, 350467, 350475, 350480, 432405, 350486, 350490, 325914, 325917, 350493, 350498, 350504, 358700, 350509, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 334304, 334311, 375277, 334321, 350723, 186897, 342545, 334358, 342550, 342554, 334363, 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, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 326451, 326454, 326460, 244540, 260924, 375612, 326467, 244551, 326473, 326477, 326485, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 400259, 342915, 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, 384188, 384191, 351423, 326855, 244937, 384201, 343244, 384208, 146642, 384224, 359649, 343270, 351466, 384246, 351479, 343306, 261389, 359694, 384275, 384283, 245020, 384288, 245029, 171302, 351534, 376110, 245040, 425276, 384323, 212291, 343365, 212303, 343393, 343398, 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, 343544, 368122, 409091, 359947, 359955, 359983, 343630, 327275, 245357, 138864, 155254, 155273, 245409, 425638, 425649, 155322, 425662, 155327, 253943, 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, 262005, 147317, 425845, 262008, 262011, 155516, 155521, 155525, 360326, 376714, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 384977, 393169, 155611, 155619, 253923, 155621, 253926, 327654, 393203, 360438, 393206, 393212, 155646 ]
4913c0ffae325cf36206aee2bd6caa587121c085
c2af9baf5231c11a6dc692e8fe51f61f96ea0821
/Pace/AllWorkoutsViewController+Extension.swift
43206c2dec8cd75b32adc01e0dc142ba3bb81a83
[]
no_license
mhlangagc/Pace-Old
027bd4558a7ff39ed8a3a1595be03229226b89ec
d671d615256f60bcdf2783821a7217468d38b46a
refs/heads/master
2021-06-23T05:01:20.698706
2017-08-05T22:00:30
2017-08-05T22:00:30
99,440,350
0
0
null
null
null
null
UTF-8
Swift
false
false
755
swift
// // AllWorkoutsViewController+Extension.swift // Pace // // Created by Gugulethu Mhlanga on 2016/12/17. // Copyright © 2016 Pace. All rights reserved. // import UIKit import AsyncDisplayKit extension AllWorkoutsViewController { func numberOfSections(in collectionNode: ASCollectionNode) -> Int { return 1 } func collectionNode(_ collectionNode: ASCollectionNode, numberOfItemsInSection section: Int) -> Int { return 7 //(workoutsPassed?.count)! } func collectionNode(_ collectionNode: ASCollectionNode, nodeForItemAt indexPath: IndexPath) -> ASCellNode { let workoutDetailCellNode = WorkoutsCell() //workoutDetailCellNode.exploreWorkout = workoutsPassed?[indexPath.item] return workoutDetailCellNode } }
[ -1 ]
848e122f32add74a5b1b19e546708cc7354b66e9
e5ddc49748d18013def3dd011aca48351750105b
/VIPER_Demo/VIPER_Demo/Modules/PeopleList/View/PeopleListView.swift
e0591ee2606febade1ff97d2d101097a2a105cf4
[ "MIT" ]
permissive
sclark01/Swift_VIPER_Demo
06f510d3782b7633d0d308265a76cad87d4d17e2
2089a82b3d6a4883c7c63a189bc5fb50411ea989
refs/heads/master
2020-04-05T22:57:16.439795
2016-09-27T00:49:36
2016-09-27T00:49:36
68,147,428
4
1
MIT
2018-11-10T06:06:56
2016-09-13T21:04:22
Swift
UTF-8
Swift
false
false
95
swift
import Foundation protocol PeopleListViewType { func set(_ people: PeopleListDataModel) }
[ -1 ]
7f03c8a822afc3ff7eb7ca40c48d473421ea14a2
07f2617ef5d474359f3774abe2b6d8020fb76ee6
/SwiftExperiment/Presenters/CellPresenterDataSource.swift
30c7b854d36ad36c05f560beecaf8b10e95522f4
[ "MIT" ]
permissive
alexbasson/swift-experiment
539936e5f59fb358e056360828f9092db1f65c99
b50d6e364273ee98b3dc0e0867e92dc955b59e94
refs/heads/master
2021-01-17T13:21:51.064768
2016-06-20T10:36:55
2016-06-20T10:36:55
38,514,841
2
1
null
2016-06-20T10:36:55
2015-07-03T23:53:33
Swift
UTF-8
Swift
false
false
954
swift
import UIKit public class CellPresenterDataSource: NSObject { var cellPresenters: [CellPresenter] = [] public func display(cellPresenters cellPresenters: [CellPresenter], tableView: UITableView?) -> Void { self.cellPresenters = cellPresenters if let tableView = tableView { tableView.dataSource = self as UITableViewDataSource? performOnMainQueue { tableView.reloadData() } } } } extension CellPresenterDataSource: UITableViewDataSource { public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return cellPresenters.count } public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cellPresenter = cellPresenters[indexPath.row] let cell = tableView.dequeueReusableCellWithIdentifier(cellPresenter.cellIdentifier(), forIndexPath: indexPath) cellPresenter.present(cell) return cell } }
[ -1 ]
6c978f1a45b73ab0759e29cc6562e670e4c381d5
2268e48d247d9559fe9c213de52daf41acc9786f
/NasaSearch/SceneDelegate.swift
62ea73e4866058b7a13abacdc0cccaf2e70b7d50
[ "MIT" ]
permissive
lynksdomain/NasaSearch
990c135823781fb43c0a5714ca7cfa014d517522
43ba254452dbb6c14bba3b5c3ce2857e4119e6cd
refs/heads/master
2023-04-05T07:17:20.819967
2021-03-26T20:55:49
2021-03-26T20:55:49
351,890,589
0
0
null
null
null
null
UTF-8
Swift
false
false
2,284
swift
// // SceneDelegate.swift // NasaSearch // // Created by Lynk on 3/25/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, 180314, 254045, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 377047, 418008, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 385281, 336129, 262405, 180491, 336140, 164107, 262417, 368913, 262423, 377118, 377121, 262437, 254253, 336181, 262455, 393539, 262473, 344404, 213333, 418135, 270687, 262497, 418145, 262501, 213354, 246124, 262508, 262512, 213374, 385420, 393613, 262551, 262553, 385441, 385444, 262567, 385452, 262574, 393649, 385460, 262587, 344512, 262593, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 164362, 328207, 410129, 393748, 262679, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 385610, 270922, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 385671, 148106, 213642, 377485, 352919, 98969, 344745, 361130, 336556, 385714, 434868, 164535, 336568, 164539, 328379, 328387, 352969, 344777, 418508, 385743, 385749, 139998, 189154, 369382, 361196, 418555, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 262943, 369439, 418591, 418594, 336676, 418600, 418606, 369464, 361274, 328516, 336709, 328520, 336712, 361289, 328523, 336715, 361300, 213848, 426842, 361307, 197469, 361310, 254813, 361318, 344936, 361323, 361335, 328574, 369544, 361361, 222129, 345036, 115661, 386004, 345046, 386012, 386019, 386023, 328690, 435188, 328703, 328710, 418822, 377867, 328715, 361490, 386070, 271382, 336922, 345119, 377888, 214060, 345134, 345139, 361525, 386102, 361537, 377931, 345172, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 386168, 361594, 410746, 214150, 345224, 386187, 345247, 361645, 345268, 402615, 361657, 337093, 402636, 328925, 165086, 66783, 165092, 328933, 222438, 328942, 386286, 386292, 206084, 328967, 345377, 345380, 353572, 345383, 263464, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 271731, 378232, 337278, 271746, 181639, 353674, 181644, 361869, 181650, 181655, 230810, 181671, 181674, 181679, 181682, 337330, 181687, 370105, 181691, 181697, 361922, 337350, 181704, 337366, 271841, 329192, 361961, 329195, 116211, 337399, 402943, 337416, 329227, 419341, 419345, 329234, 419351, 345626, 419357, 345631, 419360, 370208, 394787, 419363, 370214, 419369, 394796, 419377, 419386, 206397, 214594, 419401, 353868, 419404, 173648, 419408, 214611, 419412, 403040, 345702, 222831, 370298, 353920, 403073, 403076, 345737, 198282, 403085, 403092, 345750, 419484, 345758, 345763, 419492, 345766, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 419518, 337601, 403139, 337607, 419528, 419531, 419536, 272083, 394967, 419543, 419545, 345819, 419548, 419551, 345829, 419560, 337643, 419564, 337647, 370416, 337671, 362249, 362252, 395022, 362256, 321300, 345888, 362274, 378664, 354107, 345916, 354112, 370504, 329545, 345932, 370510, 354132, 247639, 337751, 370520, 313181, 182110, 354143, 354157, 345965, 345968, 345971, 345975, 403321, 1914, 354173, 395148, 247692, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 346059, 247760, 346064, 346069, 419810, 329699, 354275, 190440, 354314, 346140, 436290, 395340, 378956, 436307, 338005, 100454, 329833, 329853, 329857, 329868, 411806, 329886, 346273, 362661, 100525, 387250, 379067, 387261, 256193, 395467, 346317, 411862, 256214, 411865, 411869, 411874, 379108, 411877, 387303, 346344, 395496, 338154, 387307, 346350, 338161, 387314, 436474, 321787, 379135, 411905, 411917, 379154, 395539, 387350, 387353, 338201, 182559, 338212, 395567, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 321911, 420237, 379279, 272787, 354728, 338353, 338382, 272849, 248279, 256474, 182755, 338404, 330225, 248309, 248332, 330254, 199189, 420377, 330268, 191012, 330320, 199250, 191069, 346722, 248427, 191085, 338544, 346736, 191093, 346743, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 273109, 355029, 264919, 256735, 338661, 264942, 363252, 338680, 264965, 338701, 256787, 363294, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 355151, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 355185, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 437219, 257009, 265208, 265215, 199681, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 248952, 420985, 330886, 330890, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 126148, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 388348, 339199, 396552, 175376, 175397, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 126279, 437576, 437584, 331089, 437588, 331094, 396634, 175451, 437596, 429408, 175458, 175461, 175464, 265581, 175478, 249210, 175484, 175487, 249215, 175491, 249219, 249225, 249228, 249235, 175514, 175517, 396703, 396706, 175523, 355749, 396723, 388543, 380353, 216518, 380364, 339406, 372177, 339414, 249303, 413143, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 208399, 380433, 175637, 405017, 134689, 339504, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 224885, 224888, 224891, 224895, 372354, 126597, 421509, 224905, 11919, 224911, 224914, 126611, 224917, 224920, 126618, 208539, 224923, 224927, 224930, 224933, 257705, 224939, 224943, 257713, 224949, 257717, 257721, 224954, 257725, 224960, 257733, 224966, 224970, 257740, 224976, 257745, 339664, 257748, 224982, 257752, 224987, 257762, 224996, 225000, 225013, 257788, 225021, 339711, 257791, 225027, 257796, 339722, 257802, 257805, 225039, 257808, 249617, 225044, 167701, 372500, 257815, 225049, 257820, 225054, 184096, 397089, 257825, 225059, 339748, 225068, 257837, 413485, 225071, 225074, 257843, 225077, 257846, 225080, 397113, 225083, 397116, 257853, 225088, 225094, 225097, 257869, 257872, 225105, 397140, 225109, 225113, 257881, 257884, 257887, 225120, 257891, 413539, 225128, 257897, 339818, 225138, 339827, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 380919, 393215, 372739, 405534, 266295, 266298, 217158, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 250012, 225439, 135328, 192674, 225442, 438434, 225445, 225448, 438441, 356521, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 389322, 225485, 225488, 225491, 266454, 225494, 225497, 225500, 225503, 225506, 356580, 225511, 217319, 225515, 225519, 381177, 397572, 389381, 381212, 356638, 356641, 356644, 356647, 266537, 389417, 356650, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 250203, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 332162, 389507, 348548, 356741, 250239, 332175, 160152, 373146, 340380, 373149, 70048, 356783, 373169, 266688, 324032, 201158, 340452, 127473, 217590, 340473, 324095, 324100, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324150, 324156, 168509, 348734, 324161, 324165, 356935, 348745, 381513, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 119432, 340628, 184983, 373399, 258723, 332455, 332460, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 373499, 348926, 389927, 348979, 152371, 348983, 340792, 398141, 357202, 389971, 357208, 389979, 430940, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 381815, 430967, 324473, 398202, 119675, 340859, 324476, 430973, 324479, 340863, 324482, 373635, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 398246, 373672, 324525, 111539, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 340942, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 349173, 381947, 201724, 349181, 431100, 431107, 349203, 209944, 209948, 357411, 250915, 250917, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 431180, 209996, 341072, 349268, 250968, 210011, 373853, 341094, 210026, 210028, 210032, 349296, 210037, 210042, 210045, 349309, 152704, 349313, 160896, 210053, 210056, 349320, 259217, 373905, 210068, 210072, 210078, 210081, 210085, 210089, 210096, 210100, 324792, 210108, 357571, 210116, 210128, 210132, 333016, 210139, 210144, 218355, 218361, 275709, 128254, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 210261, 365912, 259423, 374113, 251236, 374118, 333164, 234867, 390518, 357756, 374161, 112021, 349591, 357793, 333222, 259516, 415168, 366035, 415187, 366039, 415192, 415194, 415197, 415200, 333285, 415208, 366057, 366064, 415217, 415225, 423424, 415258, 415264, 366118, 415271, 382503, 349739, 144940, 415279, 415282, 415286, 210488, 415291, 415295, 349762, 333396, 374359, 333400, 366173, 423529, 423533, 210547, 415354, 333440, 267910, 267929, 333512, 259789, 366301, 333535, 153311, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333595, 210720, 366384, 358192, 210740, 366388, 358201, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 268144, 358256, 358260, 341877, 399222, 325494, 333690, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 382898, 350153, 358348, 333777, 219094, 399318, 358372, 350190, 350194, 333819, 350204, 350207, 325633, 325637, 350214, 219144, 268299, 333838, 350225, 186388, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350257, 350260, 350272, 243782, 350281, 350286, 374865, 342113, 252021, 342134, 374904, 268435, 333998, 334012, 260299, 350411, 350417, 350423, 211161, 350426, 350449, 375027, 358645, 350459, 350462, 350465, 350469, 268553, 350477, 268560, 350481, 432406, 350487, 325915, 350491, 325918, 350494, 325920, 350500, 194854, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 366991, 334224, 268702, 342431, 375209, 375220, 334263, 326087, 358857, 195041, 334312, 104940, 375279, 416255, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 358973, 252483, 219719, 399957, 334425, 326240, 375401, 334466, 334469, 391813, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 334530, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 342769, 203508, 375541, 342777, 391938, 391949, 375569, 326417, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 260925, 375616, 326463, 326468, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 433001, 400238, 326511, 211826, 211832, 392061, 351102, 359296, 252801, 260993, 351105, 400260, 211846, 342921, 342931, 252823, 400279, 392092, 400286, 252838, 359335, 211885, 252846, 400307, 351169, 359362, 351172, 170950, 187335, 326599, 359367, 359383, 359389, 383968, 343018, 359411, 261109, 261112, 244728, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 261166, 359471, 375868, 343132, 384099, 384102, 384108, 367724, 187503, 343155, 384115, 212095, 351366, 384136, 384140, 384144, 351382, 384152, 384158, 384161, 351399, 384169, 367795, 244917, 384182, 367801, 384189, 384192, 351424, 343232, 367817, 244938, 384202, 253132, 326858, 384209, 146644, 351450, 384225, 359650, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 359695, 261391, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 376111, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 343453, 245152, 245155, 155045, 245158, 40358, 245163, 114093, 327090, 343478, 359867, 384444, 146878, 327108, 327112, 384457, 359887, 359891, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 253445, 359948, 359951, 245295, 359984, 343610, 400977, 400982, 179803, 155241, 245358, 155255, 155274, 368289, 245410, 425639, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 384831, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 155488, 376672, 155492, 327532, 261997, 376686, 262000, 262003, 425846, 262006, 147319, 262009, 327542, 262012, 155517, 155523, 155526, 360327, 376715, 155532, 262028, 262031, 262034, 262037, 262040, 262043, 155550, 253854, 262046, 262049, 262052, 327590, 155560, 155563, 155566, 327613, 393152, 311244, 393170, 155604, 155620, 253924, 155622, 253927, 327655, 360432, 393204, 360439, 253944, 393209, 155647 ]
4352ae751030c881869dde27a9fc63f620596cf0
d3c8a1e6119c64e2ab91b2ed5fe6b9f93900a462
/TestLocationService/TabBarViewController.swift
1ce536e74a3fdfd264b12cf8d389beb56765b23b
[]
no_license
AlexndrOdi/TestLocationService
8c27e80978469789171461678383c529e0dd26b1
4a6facf64714090b6bac6c94c96726bbf1d2226a
refs/heads/master
2020-03-21T15:10:00.638619
2018-07-03T19:57:16
2018-07-03T19:57:16
138,697,490
0
0
null
null
null
null
UTF-8
Swift
false
false
1,976
swift
// // TabBarViewController.swift // TestLocationService // // Created by Alex Odintsov on 20.06.2018. // Copyright © 2018 Alex Odintsov. All rights reserved. // import UIKit class TabBarViewController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() setupControllers() } // MARK: - Private functions private func setupControllers() { let debugController = DebugViewController() let debugMenuController = UINavigationController(rootViewController: debugController) let mapController = MapViewController() let settigsController = UINavigationController(rootViewController: SettingsViewController()) let mode: UIImageRenderingMode = .alwaysOriginal let mapTabBarItem = UITabBarItem(title: Consts.NavigationTitle.map.rawValue, image: UIImage(named: "normalMap")?.withRenderingMode(mode), selectedImage: UIImage(named: "selectedMap")?.withRenderingMode(mode)) let debugTabBarItem = UITabBarItem(title: Consts.NavigationTitle.debug.rawValue, image: UIImage(named: "normalDebug")?.withRenderingMode(.alwaysOriginal), selectedImage: UIImage(named: "selectedDebug")?.withRenderingMode(mode)) let settingsTabBarItem = UITabBarItem(title: Consts.NavigationTitle.settings.rawValue, image: UIImage(named: "normalSettings")?.withRenderingMode(mode), selectedImage: UIImage(named: "selectedSettings")?.withRenderingMode(mode)) mapController.tabBarItem = mapTabBarItem debugMenuController.tabBarItem = debugTabBarItem settigsController.tabBarItem = settingsTabBarItem setViewControllers([mapController, debugMenuController, settigsController], animated: true) } }
[ -1 ]
62a234a74c0ccfd7945c17a0e12583d9f542718f
5aa93c23956dc2bf65c32b2affd065d4314fcb05
/P3HR/Modules/Patient/View/Cell/PaitentHomeCellTableViewCell.swift
e31b29d0bd55bc2489a44167f38d415e65af1777
[]
no_license
angra007/P3HR
a8962af26fa3c70d7753e09f7e456788cb607994
7d5a5004b59930ef8d12e8522c96181e8199dc8d
refs/heads/master
2020-03-29T07:41:09.436047
2018-09-13T19:51:50
2018-09-13T19:51:50
149,674,867
0
0
null
null
null
null
UTF-8
Swift
false
false
531
swift
// // PaitentHomeCellTableViewCell.swift // P3HR // // Created by Ankit Angra on 13/07/18. // Copyright © 2018 Ankit Angra. All rights reserved. // import UIKit class PaitentHomeCellTableViewCell: UITableViewCell, NibLoadableView { override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }
[ 283040, 180676, 379078, 283048, 240008, 217069, 228144, 327344, 312531, 303540, 312535, 283900, 196093, 155614 ]
ae315bd978c5c44292549e2b036c1cdc2d563e06
78e294402b4e8fd988ab52bb16ea24629b76e1ca
/Sources/Bow/Optics/Typeclasses/Each.swift
089d167aecf7aa2ba717ac21cc606bc947059ab2
[ "Apache-2.0" ]
permissive
KeithPiTsui/bow
ed4ce91ddec77aff76f4c85c66853afa5830914c
c4d57601202944085499e34580c93d9726f41963
refs/heads/master
2020-03-22T02:39:18.617542
2018-06-28T12:07:28
2018-06-28T12:07:28
null
0
0
null
null
null
null
UTF-8
Swift
false
false
126
swift
import Foundation public protocol Each { associatedtype S associatedtype A func each() -> Traversal<S, A> }
[ -1 ]
5b388d755f0c7c05e4861492a714c5276cef6b8a
ad21cb121e2ce380a74fc912b49f5776fdfeeff7
/FLPPD/FLPPDProperty.swift
b359427babbd732b56e091b110a723cc1479adfd
[]
no_license
devGenius929/FLPPD-iOS-
49afcc1117ea97f3a19d851cef7c5cce375efca4
b6cb639ac0f7ca78376a0f2d270c0076fbc646fc
refs/heads/master
2023-02-19T13:47:37.658777
2021-01-18T14:02:27
2021-01-18T14:02:27
330,681,231
0
0
null
null
null
null
UTF-8
Swift
false
false
5,483
swift
// // Property.swift // FLPPD // // Created by Anibal Rodriguez on 3/2/17. // Copyright © 2017 New Centuri Properties LLC. All rights reserved. // import Foundation import MapKit import RxSwift public struct FLPPDPhoto:Codable { var id:Int var image:String } public struct FLPPDProperty:Decodable{ //MARK: propeties var id: Int var arv: Int? var rehub_cost:Int? var price: Int? var street: String? var city: String? var state: String? var zip_code: Int? var nbeds: String? var nbath: String? var description: String? var sqft: Int? var parking:String? var zoning:String? var property_type_id:Int var property_listing_id:Int var default_img: String? var first_name: String? var last_name: String? var email: String? var created_at_in_words: String? var pubDate: String? var price_currency: String? var arv_currency: String? var user:User var starred:Bool? = false var photos:[FLPPDPhoto] // extra var property_category:String? var number_unit:Int? var year_built:Int32? var lot_size:String? } public struct FLPPDPropertyViewModel{ let flppdProperty:FLPPDProperty var avatarURL:URL var defaultImageURL:URL } func getPropertiesObservable(_ user_id:Int? = nil, _ filters:String? = nil)->Observable<FLPPDPropertyViewModel>?{ let header = [ "Authorization": ClientAPI.default.authToken, "Accept": "application/json" ] var urlString = ClientAPI.Constants.apiBaseUrl + ClientAPI.Constants.apiPath + ClientAPI.Constants.FLPPDMethods.properties var limit = !InAppPurchasesController.default.proSubsciptionIsActive if let user_id = user_id { urlString += "?user_id=\(user_id)" if user_id == ClientAPI.currentUser!.user_id { limit = false } if limit { urlString += "&limit=5" } } else if limit { urlString += "?limit=5" } if let filters = filters { if urlString.contains("?") { urlString += "&" + filters } else { urlString += "?" + filters } } let url = URL(string:urlString)! guard let urlRequest = try? URLRequest(url: url, method: .get,headers:header) else{ return nil } return URLSession.shared.rx.data(request:urlRequest).flatMap({(json:Data)->Observable<(FLPPDProperty,URL,URL)> in let decoder = JSONDecoder() var results = [FLPPDProperty]() do { results = try decoder.decode(Array<FLPPDProperty>.self, from: json) } catch let error { dprint("decoder error:" + error.localizedDescription) return Observable.empty() } var returnObservable:[Observable<(FLPPDProperty,URL,URL)>] = [] for property in results { let avatarStr = property.user.avatar let avatarURL = URL(string:avatarStr)! let avatarObservable = Observable.just(avatarURL) var defaultImgObservable:Observable<URL>? = nil if let defaultImgURL = URL(string:property.default_img!), defaultImgURL.host != nil{ defaultImgObservable = Observable.just(defaultImgURL) } else { defaultImgObservable = Observable.just(ClientAPI.defautPropertImageUrl) } returnObservable.append(Observable.combineLatest(Observable.of(property),avatarObservable, defaultImgObservable!)) } return Observable.concat(returnObservable) }).map({(response)->FLPPDPropertyViewModel in return FLPPDPropertyViewModel(flppdProperty: response.0, avatarURL: response.1, defaultImageURL: response.2) }) } func getFavoritePropertiesObservable()->Observable<FLPPDPropertyViewModel>?{ let header = [ "Authorization": ClientAPI.default.authToken, "Accept": "application/json" ] let urlString = ClientAPI.Constants.apiBaseUrl + ClientAPI.Constants.apiPath + "favorites" let url = URL(string:urlString)! guard let urlRequest = try? URLRequest(url: url, method: .get,headers:header) else{ return nil } return URLSession.shared.rx.data(request:urlRequest).flatMap({(json:Data)->Observable<(FLPPDProperty,URL, URL)> in let decoder = JSONDecoder() var results = [FLPPDProperty]() do { results = try decoder.decode(Array<FLPPDProperty>.self, from: json) } catch let error { dprint("decoder error:" + error.localizedDescription) return Observable.empty() } var returnObservable:[Observable<(FLPPDProperty,URL,URL)>] = [] for property in results { let avatarStr = property.user.avatar let avatarURL = URL(string:avatarStr)! let avatarObservable = Observable.just(avatarURL) var defaultImgObservable:Observable<URL>? = nil if let defaultImgURL = URL(string:property.default_img!), defaultImgURL.host != nil{ defaultImgObservable = Observable.just(defaultImgURL) } else { defaultImgObservable = Observable.just(ClientAPI.defautPropertImageUrl) } returnObservable.append(Observable.combineLatest(Observable.of(property),avatarObservable,defaultImgObservable!)) } return Observable.concat(returnObservable) }).map({(response)->FLPPDPropertyViewModel in return FLPPDPropertyViewModel(flppdProperty: response.0, avatarURL: response.1, defaultImageURL: response.2) }) }
[ -1 ]
6edc39d8e924dedc13abaaf9fd0fd62366e0a6f4
712dd117efc99765eca50aa52dbc8f841191dcba
/PlacesFinder/Services/UserDefaults/UserDefaultsService.swift
0d84d9cd6ebcf9a51c0a1b26a958cca1f73c3fd9
[ "MIT" ]
permissive
jpeckner/PlacesFinder
358b8c761673c30fac987133f8ea8a4ea5093d4b
94d804b721450e86f84165faf9fc7ff50895c931
refs/heads/develop
2023-09-04T04:15:52.615306
2023-07-02T19:59:54
2023-07-02T19:59:54
192,161,329
2
0
MIT
2023-09-05T00:00:50
2019-06-16T07:11:47
Swift
UTF-8
Swift
false
false
2,786
swift
// // UserDefaultsService.swift // PlacesFinder // // Copyright (c) 2019 Justin Peckner // // 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 import Shared // sourcery: AutoMockable protocol UserDefaultsServiceProtocol { func getSearchPreferences() throws -> StoredSearchPreferences func setSearchPreferences(_ searchPreferences: StoredSearchPreferences) throws } enum UserDefaultsServiceError: Error { case valueNotFound } class UserDefaultsService: UserDefaultsServiceProtocol { private let userDefaults: UserDefaults private let encoder: JSONEncoder private let decoder: JSONDecoder init(userDefaults: UserDefaults) { self.userDefaults = userDefaults self.encoder = JSONEncoder() self.decoder = JSONDecoder() } // MARK: SearchPreferencesState private static let searchPreferencesStateKey = "searchPreferencesState" func getSearchPreferences() throws -> StoredSearchPreferences { return try getValue(UserDefaultsService.searchPreferencesStateKey) } func setSearchPreferences(_ searchPreferences: StoredSearchPreferences) throws { try setValue(searchPreferences, key: UserDefaultsService.searchPreferencesStateKey) } } private extension UserDefaultsService { func getValue<T: Decodable>(_ key: String) throws -> T { guard let data = userDefaults.data(forKey: key) else { throw UserDefaultsServiceError.valueNotFound } return try decoder.decode(T.self, from: data) } func setValue<T: Encodable>(_ value: T, key: String) throws { let data = try encoder.encode(value) userDefaults.setValue(data, forKey: key) } }
[ -1 ]
11a177c9b06220aa5def2ba93c89710cc107ca5f
80c80f6361638d1f0d5189cb00e38d45bbe1d660
/eva_app2/eva_app/ViewControllerTallas.swift
38eaaa392ffd2c1dc2f054286f57432f94e1ffdb
[]
no_license
amoroso18/app_swift_eva1
5d5f0134fe6b97e184ba9b7f409d0f510f84cabf
225ef318545164344ecbb9a372f7524bc73cd232
refs/heads/main
2023-02-10T00:47:25.803541
2020-12-27T04:39:32
2020-12-27T04:39:32
322,470,505
0
0
null
null
null
null
UTF-8
Swift
false
false
2,168
swift
import UIKit class ViewControllerTallas: UIViewController { @IBOutlet weak var stock: UILabel! @IBOutlet weak var color: UILabel! @IBOutlet weak var precio: UILabel! @IBOutlet weak var cupon: UITextField! @IBOutlet weak var descuento: UILabel! override func viewDidLoad() { super.viewDidLoad() } @IBAction func tallas(_ sender: UIButton) { buscarTalla(valor: "s") } @IBAction func tallaxs(_ sender: UIButton) { buscarTalla(valor: "xs") } @IBAction func tallam(_ sender: UIButton) { buscarTalla(valor: "m") } @IBAction func tallal(_ sender: UIButton) { buscarTalla(valor: "l") } @IBAction func tallaxl(_ sender: UIButton) { buscarTalla(valor: "xl") } func buscarTalla(valor:String){ cuponverdad() let talla = valor switch talla { case "s": stock.text = "90" color.text = "Rojo y Negro" precio.text = "50" break case "xs": stock.text = "60" color.text = "solo verde" precio.text = "s/.55 U" break case "m": stock.text = "100" color.text = "Amarillo y gris" precio.text = "s/.45 U" break case "l": stock.text = "80" color.text = "Verde y Negro" precio.text = "s/.70 U" break case "xl": stock.text = "30" color.text = "Violeta y Marron" precio.text = "s/.65 U" break default: stock.text = "" color.text = "" precio.text = "" break } } func cuponverdad(){ let descuentodia = "10" //var temp = Int(descuentodia ?? "0")! let temp = Int(descuentodia)! //let descuentito = "s/.\(temp)" let descuentito = "s/.\(String(temp))" let copon = cupon.text descuento.text = copon=="2020" ? descuentito: "-" } }
[ -1 ]
af8c5fe58fc3886ea9459c49d68652affe847eed
9553a6a9e25d16a7e7e9fcb5a5affba5e77036c3
/Example/AppDelegate.swift
727dd7320516a7d234b43229373bb078374bdfa2
[ "Apache-2.0" ]
permissive
www16852/Setting_swift
922b470af19af1b7803a70f2a3648c4ca38a588b
4ce47a57ab37fa3c06cd13014caee86d3dc32bb6
refs/heads/master
2020-05-21T10:10:06.585096
2017-08-05T17:41:27
2017-08-05T17:41:27
70,029,818
1
2
null
null
null
null
UTF-8
Swift
false
false
2,794
swift
/* * Copyright (C) 2016 Xu,Cheng Wei <[email protected]> * * 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. */ // // AppDelegate.swift // Setting // // Created by waltoncob on 2016/9/29. // Copyright © 2016年 waltoncob. 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 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, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 287238, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 164509, 303773, 172705, 287394, 172707, 303780, 287390, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 213902, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 279929, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 222676, 288214, 280021, 239064, 288217, 329177, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 280937, 313705, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 150025, 338440, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 240519, 322440, 314249, 338823, 183184, 289687, 224151, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 148946, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 44948, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307385, 307386, 307388, 258235, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 276052, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 292433, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 308105, 226185, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 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, 308226, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 324757, 308379, 300189, 324766, 119967, 234653, 234648, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 324768, 275626, 234667, 177318, 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, 349451, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 227440, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 276053, 284247, 317015, 284249, 243290, 284251, 235097, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 284290, 325250, 284292, 292485, 292479, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 399252, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 350186, 292843, 276460, 276464, 178161, 227314, 276466, 325624, 350200, 276472, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 325700, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 227426, 276579, 227430, 276583, 309354, 301167, 276590, 350321, 350313, 350316, 284786, 350325, 252022, 276595, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 277173, 318132, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 146765, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 64966, 245191, 163272, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187936, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286313, 40554, 286312, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 278227, 286420, 229076, 286425, 319194, 278235, 301163, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 188252, 237409, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
ce92509aea84a4687cb4fa1b571f7c025cebcb07
39a960edff8689d0da91ad2ec26e9661ea812bf4
/CoinCalendar/Expert Portfolios/TopTradersTableViewCell.swift
482a3cd3c71399cd3794a4ea8e6ed8e1a05a0a78
[]
no_license
brianjohnson21/CryptoCalendar
9568ed6a250b613aa8d94cfb8a13a547bb908acb
5b16e10b38470690a050f1f4fa25b34087a85153
refs/heads/main
2023-05-01T02:34:58.568334
2021-05-19T04:57:01
2021-05-19T04:57:01
null
0
0
null
null
null
null
UTF-8
Swift
false
false
3,940
swift
// // TopTradersTableViewCell.swift // CoinCalendar // // Created by Stephen Mata on 4/18/21. // import UIKit class TopTradersTableViewCell: UITableViewCell { let traderImageView = UIImageView() let traderNameLabel = UILabel() let traderCoinsLabel = UILabel() let returnPercentLabel = UILabel() let returnImageView = UIImageView() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) self.backgroundColor = .clear self.contentView.backgroundColor = .clear self.selectionStyle = .none setupViews() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } } //MARK: VIEWS extension TopTradersTableViewCell { func setupViews() { traderImageView.backgroundColor = .lightGray traderImageView.layer.cornerRadius = 61/2 traderImageView.layer.masksToBounds = true traderImageView.contentMode = .scaleAspectFill traderImageView.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(traderImageView) traderImageView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 23).isActive = true traderImageView.centerYAnchor.constraint(equalTo: contentView.centerYAnchor, constant: 0).isActive = true traderImageView.heightAnchor.constraint(equalToConstant: 61).isActive = true traderImageView.widthAnchor.constraint(equalToConstant: 61).isActive = true traderNameLabel.textAlignment = .left traderNameLabel.font = .sofiaSemiBold(ofSize: 20) traderNameLabel.textColor = .black traderNameLabel.numberOfLines = 0 traderNameLabel.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(traderNameLabel) traderNameLabel.leadingAnchor.constraint(equalTo: traderImageView.trailingAnchor, constant: 13).isActive = true traderNameLabel.topAnchor.constraint(equalTo: traderImageView.topAnchor, constant: 8).isActive = true traderCoinsLabel.textAlignment = .left traderCoinsLabel.font = .sofiaRegular(ofSize: 15) traderCoinsLabel.textColor = UIColor.black.withAlphaComponent(0.6) traderCoinsLabel.numberOfLines = 0 traderCoinsLabel.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(traderCoinsLabel) traderCoinsLabel.leadingAnchor.constraint(equalTo: traderNameLabel.leadingAnchor, constant: 0).isActive = true traderCoinsLabel.topAnchor.constraint(equalTo: traderNameLabel.bottomAnchor, constant: 7).isActive = true returnPercentLabel.textAlignment = .right returnPercentLabel.font = .sofiaSemiBold(ofSize: 15) returnPercentLabel.textColor = .black returnPercentLabel.numberOfLines = 0 returnPercentLabel.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(returnPercentLabel) returnPercentLabel.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -23).isActive = true returnPercentLabel.centerYAnchor.constraint(equalTo: traderNameLabel.centerYAnchor, constant: 0).isActive = true returnImageView.image = UIImage(named: "greenArrowDownTwo") returnImageView.contentMode = .scaleAspectFill returnImageView.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(returnImageView) returnImageView.trailingAnchor.constraint(equalTo: returnPercentLabel.leadingAnchor, constant: -5).isActive = true returnImageView.centerYAnchor.constraint(equalTo: returnPercentLabel.centerYAnchor, constant: 0).isActive = true returnImageView.heightAnchor.constraint(equalToConstant: 13).isActive = true returnImageView.widthAnchor.constraint(equalToConstant: 11).isActive = true } }
[ -1 ]
e091238df1b402b7b491e218f7e1dee2ae608cd0
3fee2ad9536e08e5c5021647d7a69632d30dcf1c
/DropboxDemo/SignInRootViewController.swift
4403680e7d78a5e4cf192b5b46e7b11be3115ea0
[]
no_license
Rudko/DropboxDemo
6251421041833d1c64866d161015d43a4f121a0f
9b38c507a8932ba312c04d4e3be68d1963f89644
refs/heads/master
2021-01-11T04:17:40.108184
2016-10-18T23:54:41
2016-10-18T23:54:41
71,214,282
0
0
null
null
null
null
UTF-8
Swift
false
false
881
swift
// // SignInRootViewController.swift // DropboxDemo // // Created by Grigory Rudko on 10/16/16. // Copyright © 2016 Grigory Rudko. All rights reserved. // import UIKit class SignInRootViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() performSegue(withIdentifier: "signinSegue", sender: nil) } 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. } */ }
[ 284577, 289190, 289191, 292156, 285378, 283461, 288332, 292429, 288847, 292432, 175826, 289234, 279380, 173531, 280029, 280030, 298206, 281959, 290160, 166642, 280435, 290166, 280445 ]
6c12abc3294a28741145fbe8a3bc4312f286f273
d3a2e772fee8ea49f32a9be68f3a03751eeceb47
/MultiCurrencyConversionInterface-LegacyTests/MultiCurrencyConversionInterface_LegacyTests.swift
17c8fe5f8ce7c1575db9eba5646650d7c5da6c9d
[]
no_license
JohnKuan/MultiCurrencyConversionInterface-Legacy
50617998b20d191e40ef73147450842696a31de1
785b55ebdbbe1adf3c079f89ea483eb57c57dc82
refs/heads/master
2022-09-12T18:32:29.588418
2020-05-31T14:27:51
2020-05-31T14:27:51
267,533,806
0
0
null
null
null
null
UTF-8
Swift
false
false
1,144
swift
// // MultiCurrencyConversionInterface_LegacyTests.swift // MultiCurrencyConversionInterface-LegacyTests // // Created by John Kuan on 28/5/20. // Copyright © 2020 JohnKuan. All rights reserved. // import XCTest @testable import MultiCurrencyConversionInterface_Legacy class MultiCurrencyConversionInterface_LegacyTests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. let viewModel = TestCurrencyConversionViewModel() } func testPerformanceExample() throws { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 257024, 210433, 254465, 366083, 253451, 398869, 418837, 253463, 182296, 134686, 252958, 349726, 207393, 16419, 223268, 355876, 377386, 349741, 347694, 197167, 357423, 346162, 252980, 352315, 348732, 352829, 376894, 248901, 348742, 359495, 250954, 348749, 340558, 341073, 356447, 436832, 253029, 257125, 120427, 54893, 352368, 187506, 370296, 341115, 366203, 363644, 337534, 339584, 248961, 349316, 224901, 336518, 348806, 369289, 344715, 169104, 346772, 271000, 342682, 363163, 339100, 351390, 344738, 343203, 49316, 258214, 333991, 333992, 253099, 224946, 367799, 342713, 379071, 367810, 164560, 345814, 351446, 224984, 361176, 254170, 134366, 359647, 222440, 345834, 346858, 372460, 351476, 351478, 348920, 363771, 35583, 162561, 175873, 360195, 369930, 353551, 254226, 272660, 349462, 345879, 257305, 249626, 344865, 341796, 362283, 189228, 353078, 116026, 259899, 336702, 252741, 420677, 360264, 337225, 251213, 383311, 250192, 353616, 366930, 348500, 255829, 341847, 272729, 159066, 189275, 350044, 345951, 362337, 357218, 160110, 207727, 362352, 341879, 361337, 362881, 254850, 359298, 260996, 253829, 340357, 378244, 388487, 349067, 349072, 355217, 39324, 350109, 253856, 251298, 354212, 140204, 252847, 362417, 342450, 210358, 188348, 362431, 336320, 349121, 342466, 359364, 380357, 188871, 212942, 212946, 346067, 359381, 353750, 210391, 210392, 340955, 219101, 343005, 130016, 360417, 342498, 340453, 253929, 361963, 247791, 362480, 254456 ]
ba8837eda0f41a1cb4f7a7db3d8c528402fe43f5
08544c8df63bbc91ddf16d350b9ee6d9ba90effe
/ble_connection_charastristic/AppDelegate.swift
41aa69fb7cd38e160a6dc13dd3af0ca80f9c29bc
[]
no_license
KiichiSugihara/ble_connection_charastristic
07f0098d1a5a83d8ce2044635abbad4246eac316
e3f12e65375171f5d742398c0e01fdea9eee1d76
refs/heads/master
2020-04-21T01:01:23.999387
2019-02-05T07:55:20
2019-02-05T07:55:20
169,211,770
0
0
null
null
null
null
UTF-8
Swift
false
false
4,635
swift
// // AppDelegate.swift // ble_connection_charastristic // // Created by Kiichi on 2019/02/05. // Copyright © 2019 Kiichi Sugihara. All rights reserved. // import UIKit import CoreData @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:. // 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: "ble_connection_charastristic") 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, 322080, 306721, 229408, 296483, 322083, 229411, 306726, 309287, 308266, 292907, 217132, 322092, 40495, 316465, 288306, 322102, 324663, 164408, 308281, 322109, 286783, 315457, 313409, 313413, 349765, 320582, 309832, 288329, 242250, 215117, 196177, 241746, 344661, 231000, 212571, 300124, 287323, 309342, 325220, 306790, 290409, 310378, 296043, 311914, 152685, 334446, 239726, 307310, 322666, 292466, 314995, 307315, 314487, 291450, 314491, 222846, 288383, 318599, 312970, 239252, 311444, 294038, 311449, 323739, 300194, 298662, 233638, 233644, 286896, 295600, 300208, 286389, 294070, 125111, 234677, 321212, 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, 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, 379218, 300882, 321364, 243032, 201051, 230748, 258397, 294238, 298844, 300380, 291169, 199020, 293741, 266606, 319342, 292212, 313205, 244598, 316788, 124796, 196988, 305022, 317821, 243072, 314241, 303999, 313215, 242050, 325509, 293767, 316300, 306576, 322448, 308114, 319900, 298910, 313250, 308132, 316327, 306605, 316334, 324015, 324017, 200625, 300979, 316339, 322998, 67000, 316345, 296888, 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 ]
65299f1b5fe62eeb089b3a3c55dc6734496678cc
770fee2026832517b879c3981de78f88986132de
/languageTestTests/languageTestTests.swift
30187d22ce98797029d23e3d659fe4d50ad43f0c
[]
no_license
547/languageTest
0a049eba528adfc7a718f53a45b7d0f05e26c6a6
cba3b881eb73df4bf93187407bacdae914473665
refs/heads/master
2020-04-25T15:17:54.899178
2019-03-15T01:59:34
2019-03-15T01:59:34
172,873,844
1
0
null
null
null
null
UTF-8
Swift
false
false
912
swift
// // languageTestTests.swift // languageTestTests // // Created by seven on 2019/2/27. // Copyright © 2019 seven. All rights reserved. // import XCTest @testable import languageTest class languageTestTests: XCTestCase { override func 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. } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 282633, 241692, 98333, 239650, 223268, 229413, 329765, 354343, 315432, 354345, 325674, 223274, 102437, 243759, 309295, 229424, 241716, 319542, 243767, 325694, 288834, 313416, 354385, 196691, 315476, 329814, 338007, 354393, 200794, 315487, 227428, 321637, 329829, 319591, 315497, 194666, 315498, 319598, 288879, 333940, 288889, 292988, 313469, 215164, 131198, 333955, 194691, 241808, 323729, 325776, 317587, 278677, 278691, 333991, 333992, 241843, 278708, 280762, 280768, 338119, 282831, 334042, 301279, 356576, 280802, 338150, 286958, 327929, 227578, 12542, 184575, 194820, 313608, 321800, 325905, 319763, 338197, 334103, 325912, 315673, 309529, 237856, 282919, 325931, 321840, 98610, 332083, 127284, 336183, 287041, 241986, 321860, 319813, 182598, 280902, 332101, 323916, 319821, 325968, 6489, 332123, 106847, 391520, 354655, 242023, 280939, 246127, 250226, 246136, 139640, 246137, 317820, 211326, 313727, 311681, 240002, 248194, 311685, 332167, 242058, 311691, 240016, 108944, 190871, 291224, 293274, 317852, 121245, 141728, 246178, 315810, 315811, 108972, 311727, 334260, 319930, 336317, 324039, 129483, 317901, 278993, 278999, 242139, 369116, 188894, 358882, 242148, 242149, 127465, 279018, 330218, 319981, 291311, 281072, 109042, 319987, 279029, 279039, 324097, 301571, 291333, 342536, 279050, 283153, 279065, 23092, 315960, 338490, 242237, 70209, 115270, 70215, 322120, 340558, 309846, 244310, 285271, 332378, 295519, 242273, 242277, 66150, 244327, 111208, 344680, 313971, 244347, 311941, 287374, 326287, 316049, 311954, 334481, 111253, 316053, 111258, 111259, 289434, 318107, 221852, 205471, 295599, 303793, 318130, 166582, 230072, 109241, 248517, 334547, 318173, 279269, 246503, 330474, 342762, 129773, 289518, 322291, 312052, 312053, 230134, 228088, 299776, 191235, 285444, 336648, 322316, 117517, 326414, 312079, 310036, 207640, 285466, 283419, 326429, 336671, 281377, 283430, 318250, 295724, 353069, 318252, 353078, 285497, 293693, 342847, 281408, 279362, 353094, 353095, 244568, 244570, 322395, 109409, 351077, 201577, 326505, 246641, 228215, 246648, 209785, 177019, 240518, 109447, 236428, 58253, 56208, 308112, 295824, 326553, 318364, 127902, 240544, 289698, 289703, 279464, 353195, 353197, 347055, 326581, 353216, 330689, 19399, 279498, 340961, 324586, 340974, 183279, 320507, 318461, 330754, 320516, 134150, 330763, 320527, 324625, 140310, 322582, 320536, 326685, 336929, 189474, 330788, 345132, 322612, 324666, 308287, 336960, 21569, 214086, 238664, 250956, 353367, 156764, 277597, 304222, 113760, 314467, 250981, 285798, 300136, 318572, 15471, 291959, 337017, 285820, 330888, 177296, 326804, 185493, 296086, 187544, 324760, 296092, 300188, 339102, 3246, 318639, 238769, 339130, 208058, 230588, 353479, 353480, 283847, 244940, 283853, 290000, 228563, 333011, 189653, 148696, 296153, 279774, 298208, 310497, 290022, 330984, 328940, 228588, 353524, 228600, 128251, 316669, 388349, 228609, 322824, 242954, 312587, 328971, 318733, 353551, 251153, 177428, 126237, 130338, 208164, 130348, 318775, 312634, 306494, 216386, 193859, 279875, 345415, 312648, 304456, 331090, 120148, 314710, 283991, 327024, 327025, 243056, 316787, 116084, 314741, 296307, 312689, 306559, 224640, 318848, 179587, 314758, 314760, 304524, 296335, 112018, 306579, 9619, 282007, 357786, 318875, 333220, 282022, 314791, 245161, 316842, 241066, 314798, 150965, 210358, 302531, 292292, 339398, 300487, 296392, 280010, 280013, 366037, 210392, 239068, 286172, 310748, 280032, 103909, 187878, 329197, 329200, 282096, 306673, 308723, 191990, 300535, 288249, 323080, 329225, 230921, 323087, 304656, 316946, 175639, 374296, 282141, 306723, 312880, 312889, 280130, 349763, 282183, 288327, 218696, 243274, 333388, 286288, 128599, 306776, 196187, 345700, 310889, 323178, 243307, 312940, 204397, 120427, 138863, 325231, 222832, 288378, 323196, 325245, 175741, 235135, 337535, 339584, 312965, 282245, 323217, 282271, 282276, 229029, 298661, 245412, 206504, 282280, 323236, 298667, 61101, 321199, 337591, 321207, 280251, 286399, 323264, 323263, 319177, 313041, 245457, 241365, 181975, 278233, 18138, 321247, 278240, 298720, 333542, 153319, 280300, 239341, 284401, 229113, 278272, 319233, 323331, 323332, 216839, 280327, 323346, 325404, 286494, 241441, 241442, 325410, 339745, 341796, 247590, 294700, 317232, 300848, 280374, 319288, 321337, 319292, 280380, 325439, 315202, 325445, 153415, 159562, 325457, 280410, 345955, 282474, 325484, 280430, 313199, 292720, 325492, 317304, 333688, 325503, 182144, 315264, 339841, 327557, 247686, 243591, 282504, 325515, 325518, 337815, 294807, 214938, 118685, 298909, 319392, 313254, 333735, 284587, 292782, 200627, 323507, 243637, 294843, 280514, 294850, 174019, 151497, 298980, 292837, 294886, 174057, 296941, 327661, 329712, 362480, 325619, 282612, 333817, 290811 ]
5d4d1399f40accea0fab7f00b0b964de961a2f94
200682f84e0b72bab9475c9ac39e927a607abf2e
/samples/client/petstore/swift4/rxswift/PetstoreClient/Classes/Swaggers/Models/Client.swift
b6af0a778cd5e133860c597ebff0a80fa85282da
[ "Apache-2.0" ]
permissive
paveI-fando/swagger-codegen
4ddba5ac6e65e9acc60cab52909eb165fefc0f6d
1ba93b5cdda481a2630fffbd4d1ca436b9e37a46
refs/heads/3.0.0
2021-06-30T15:10:00.633706
2021-06-08T12:19:05
2021-06-08T12:19:05
238,979,476
0
2
NOASSERTION
2021-06-08T12:19:39
2020-02-07T16:55:42
Java
UTF-8
Swift
false
false
746
swift
// // Client.swift // // Generated by swagger-codegen // https://github.com/swagger-api/swagger-codegen // import Foundation open class Client: Codable { public var client: String? public init(client: String?) { self.client = client } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: String.self) try container.encodeIfPresent(client, forKey: "client") } // Decodable protocol methods public required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: String.self) client = try container.decodeIfPresent(String.self, forKey: "client") } }
[ -1 ]
a3e59673d9882f57a6ea73055ede39b27f649c12
1cc0b31a6117b92165bdc26a9ad4bbb125677c88
/RangeTree/Array+BinarySearch.swift
0a8479b0d386d265069e9f22079b35e2c6af667d
[]
no_license
yllan/RangeTree
50d8b64e39156a574dfc330a38fbcb98d6b0a935
1d8eb79aba57efa8de21a8091c8127e676dbf9bd
refs/heads/master
2020-03-25T21:06:56.093821
2018-08-09T13:56:52
2018-08-09T13:56:52
144,160,058
1
0
null
null
null
null
UTF-8
Swift
false
false
829
swift
// // Array+BinarySearch.swift // RangeTree // // Created by Yung-Luen Lan on 2018/8/2. // Copyright © 2018 yllan. All rights reserved. // extension Array { // Assuming the array is ordered like this: [F, F, F, ... T, T, T] // This function find the index of first element evaluates to true. // Time complexity: O(lgn) func indexOfFirst(where f: (Element) -> Bool) -> Index { guard let last = self.last, f(last) else { return self.count } var idx: Int = 0 var len: Int = self.count while len > 0 { let half = (len >> 1) let m = idx + half if f(self[m]) { len = half } else { idx = m + 1 len = len - half - 1 } } return idx } }
[ -1 ]
742d1247df5779cd2667ba71e881c68ccffd9a69
176bd239c7817af1cdcd1f7b40ff68563b2757fe
/StateAndDataFlow/TimeCounter.swift
ada003fa312a8337744dc4e9749fe281d1a6ca41
[]
no_license
AnnGolub/StateAndDataFlow
a2616e932d636287340f38200c1f811b635ce4af
0e075655d9c5333f99bcb0f49b326ec3d959dfee
refs/heads/main
2023-05-31T21:51:33.027941
2021-06-10T06:03:30
2021-06-10T06:03:30
375,587,992
0
0
null
null
null
null
UTF-8
Swift
false
false
1,211
swift
// // TimeCounter.swift // StateAndDataFlow // // Created by Alexey Efimov on 08.06.2021. // import Foundation import Combine class TimeCounter: ObservableObject { let objectWillChange = PassthroughSubject<TimeCounter, Never>() var counter = 3 var timer: Timer? var buttonTitle = "Start" func startTimer() { if counter > 0 { timer = Timer.scheduledTimer( timeInterval: 1, target: self, selector: #selector(updateCounter), userInfo: nil, repeats: true ) } buttonDidTapped() } @objc private func updateCounter() { if counter > 0 { counter -= 1 } else { killTimer() buttonTitle = "Reset" } objectWillChange.send(self) } private func killTimer() { timer?.invalidate() timer = nil } private func buttonDidTapped() { if buttonTitle == "Reset" { counter = 3 buttonTitle = "Start" } else { buttonTitle = "Wait..." } objectWillChange.send(self) } }
[ -1 ]
32cef0d16c07e3a78a576200ef681d080a546ab0
519c51d2eb889a5049c73be065c2145d10473fc0
/MoneyMouse/MoneyMouse/Models/BudgetGoal.swift
d886a6d2be23e9a83aa5f7a37f2323e037a72d1b
[ "MIT" ]
permissive
EisenHuang/MoneyMouse
f8f3458204645c82132f9b182a8021e98eef08fd
678c4a8408a199a9720ccfc3ee5926711a9c82d4
refs/heads/master
2020-04-09T06:08:32.708834
2018-12-26T22:55:12
2018-12-26T22:55:12
160,099,981
0
0
null
2018-12-02T21:52:11
2018-12-02T21:52:10
null
UTF-8
Swift
false
false
1,927
swift
// // BudgetGoal.swift // MoneyMouse // // Created by Luis Olivar on 12/2/18. // Copyright © 2018 edu.nyu. All rights reserved. // import Foundation import FirebaseDatabase struct BudgetGoal { let ref: DatabaseReference? let key: String let addedByUser: String var completed: Bool let category: String let totalAmount: Float let currentAmount: Float let title: String init(title: String, totalAmount: Float, currentAmount: Float, category: String, addedByUser: String, completed: Bool, key: String = ""){ self.ref = nil self.key = key self.addedByUser = addedByUser self.completed = completed self.totalAmount = totalAmount self.currentAmount = currentAmount self.category = category self.title = title } init?(snapshot: DataSnapshot) { guard let value = snapshot.value as? [String: AnyObject], let addedByUser = value["addedByUser"] as? String, let category = value["category"] as? String, let totalAmount = value["totalAmount"] as? Float, let title = value["title"] as? String, let currentAmount = value["currentAmount"] as? Float, let completed = value["completed"] as? Bool else{ return nil } self.ref = snapshot.ref self.key = snapshot.key self.addedByUser = addedByUser self.completed = completed self.category = category self.totalAmount = totalAmount self.currentAmount = currentAmount self.title = title } func toAnyObject() -> Any { return [ "title": title, "addedByUser": addedByUser, "completed": completed, "category": category, "totalAmount": totalAmount, "currentAmount": currentAmount ] } }
[ -1 ]
881bb7d48e4c6370e9781350f3a472dcd6d34a2c
d6926c3527f2586f29c641880f822f90bd0448cd
/BinaryCounterUITests/BinaryCounterUITests.swift
d1074dba785ff7e553dbd6428b7aa5989fb752e0
[]
no_license
havishat/binarycounter
779282040e88dac8f700aa2e370db417491173d5
d1c10e05ec3d9f85af65affed0b168ce79fef3b6
refs/heads/master
2021-06-28T13:55:02.910965
2017-09-17T20:34:40
2017-09-17T20:34:40
103,859,991
0
0
null
null
null
null
UTF-8
Swift
false
false
1,272
swift
// // BinaryCounterUITests.swift // BinaryCounterUITests // // Created by havisha tiruvuri on 9/13/17. // Copyright © 2017 havisha tiruvuri. All rights reserved. // import XCTest class BinaryCounterUITests: 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, 102441, 315433, 325675, 354342, 354346, 124974, 282671, 102446, 229425, 278571, 243763, 313388, 321589, 241717, 229431, 180279, 215095, 319543, 213051, 288829, 325695, 286787, 288835, 307269, 237638, 313415, 285360, 239689, 233548, 315468, 311373, 196687, 278607, 311377, 354386, 333902, 329812, 315477, 223317, 354394, 200795, 323678, 315488, 321632, 45154, 315489, 280676, 313446, 215144, 227432, 217194, 194667, 233578, 278637, 307306, 319599, 288878, 278642, 284789, 131190, 284790, 249976, 288890, 292987, 215165, 131199, 227459, 194692, 235661, 278669, 241809, 323730, 278676, 311447, 153752, 327834, 284827, 329884, 278684, 299166, 278690, 233635, 215204, 311459, 284840, 184489, 278698, 284843, 299176, 278703, 323761, 184498, 278707, 125108, 180409, 280761, 295099, 278713, 227517, 299197, 280767, 258233, 223418, 299202, 139459, 309443, 176325, 131270, 301255, 299208, 227525, 280779, 233678, 282832, 321744, 227536, 301270, 301271, 229591, 280792, 356575, 311520, 325857, 334049, 280803, 18661, 182503, 338151, 319719, 307431, 295147, 317676, 286957, 125166, 125170, 313595, 125180, 184574, 125184, 309504, 125192, 217352, 125197, 125200, 194832, 227601, 325904, 125204, 319764, 278805, 334104, 315674, 282908, 311582, 125215, 299294, 233761, 282912, 278817, 211239, 282920, 125225, 317738, 325930, 311596, 321839, 315698, 98611, 125236, 332084, 307514, 282938, 278843, 168251, 287040, 319812, 311622, 227655, 280903, 319816, 323914, 201037, 282959, 229716, 289109, 168280, 379224, 323934, 391521, 239973, 381286, 285031, 313703, 416103, 280938, 242027, 242028, 321901, 354671, 354672, 287089, 278895, 227702, 199030, 315768, 315769, 291194, 223611, 248188, 291193, 313726, 211327, 291200, 311679, 139641, 158087, 313736, 227721, 242059, 311692, 285074, 227730, 240020, 190870, 315798, 291225, 285083, 293275, 317851, 242079, 227743, 285089, 293281, 289185, 305572, 156069, 283039, 301482, 289195, 311723, 377265, 338359, 299449, 311739, 319931, 293309, 278974, 311744, 317889, 291266, 278979, 326083, 278988, 289229, 281038, 326093, 278992, 283089, 373196, 283088, 281039, 279000, 242138, 176602, 285152, 369121, 291297, 279009, 195044, 160224, 242150, 279014, 319976, 279017, 188899, 311787, 281071, 319986, 236020, 279030, 293368, 311800, 279033, 317949, 279042, 283138, 233987, 287237, 377352, 322057, 309770, 342537, 279053, 182802, 303635, 283154, 279061, 303634, 279066, 188954, 322077, 291359, 370122, 227881, 293420, 289328, 283185, 236080, 279092, 23093, 234037, 244279, 244280, 338491, 234044, 301635, 309831, 55880, 322119, 377419, 303693, 281165, 301647, 281170, 326229, 309847, 189016, 115287, 332379, 111197, 295518, 287327, 242274, 244326, 279143, 279150, 281200, 287345, 313970, 287348, 301688, 244345, 189054, 287359, 291455, 297600, 303743, 301702, 164487, 279176, 311944, 334473, 316044, 311948, 184974, 311950, 316048, 311953, 316050, 336531, 287379, 326288, 227991, 295575, 289435, 303772, 221853, 205469, 285348, 314020, 279207, 295591, 248494, 318127, 293552, 295598, 285362, 279215, 287412, 166581, 299698, 154295, 164532, 342705, 287418, 314043, 303802, 66243, 291529, 287434, 225996, 363212, 287438, 242385, 303826, 164561, 279253, 158424, 230105, 299737, 322269, 295653, 342757, 289511, 230120, 330473, 234216, 285419, 330476, 289517, 279278, 170735, 312046, 215790, 125683, 230133, 199415, 234233, 242428, 279293, 205566, 289534, 322302, 299777, 291584, 228099, 285443, 291591, 295688, 346889, 285450, 322312, 312076, 264971, 326413, 322320, 285457, 295698, 166677, 291605, 283418, 285467, 326428, 221980, 281378, 234276, 283431, 262952, 262953, 279337, 318247, 318251, 262957, 289580, 164655, 328495, 301872, 242481, 303921, 234290, 285493, 230198, 285496, 301883, 201534, 281407, 289599, 222017, 295745, 342846, 293702, 318279, 283466, 281426, 279379, 295769, 201562, 244569, 281434, 322396, 230238, 275294, 301919, 293729, 230239, 279393, 349025, 281444, 279398, 303973, 351078, 177002, 308075, 242540, 242542, 310132, 295797, 201590, 207735, 228214, 295799, 177018, 269179, 279418, 308093, 314240, 291713, 158594, 330627, 240517, 287623, 299912, 416649, 279434, 236427, 316299, 252812, 228232, 189327, 308111, 308113, 320394, 234382, 293780, 310166, 289691, 209820, 277404, 240543, 283551, 310177, 289699, 189349, 293673, 289704, 293801, 279465, 326571, 177074, 304050, 326580, 289720, 326586, 289723, 189373, 213956, 281541, 345030, 19398, 213961, 326602, 279499, 56270, 191445, 183254, 304086, 183258, 234469, 340967, 304104, 314343, 324587, 183276, 289773, 203758, 320495, 320492, 234476, 287730, 277493, 240631, 320504, 312313, 214009, 312315, 312317, 328701, 328705, 234499, 293894, 320520, 230411, 320526, 330766, 234513, 238611, 140311, 293911, 238617, 316441, 197658, 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, 156763, 277600, 281698, 281699, 230500, 285795, 214116, 322664, 228457, 318571, 279659, 234606, 300145, 238706, 312435, 187508, 279666, 300147, 230514, 302202, 285819, 314493, 285823, 150656, 234626, 279686, 222344, 318602, 285834, 228492, 337037, 234635, 177297, 162962, 187539, 326803, 308375, 324761, 285850, 296091, 119965, 302239, 330912, 300192, 339106, 234655, 306339, 234662, 300200, 249003, 208044, 238764, 322733, 3243, 302251, 279729, 294069, 300215, 294075, 339131, 228541, 64699, 148674, 283846, 312519, 279752, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 279775, 304352, 298209, 304353, 310496, 279780, 228587, 279789, 290030, 302319, 251124, 234741, 283894, 316661, 279803, 292092, 208123, 228608, 320769, 234756, 322826, 242955, 177420, 312588, 318732, 126229, 245018, 320795, 318746, 320802, 304422, 130342, 130344, 292145, 298290, 312628, 345398, 300342, 159033, 333114, 333115, 286012, 222523, 181568, 279872, 279874, 294210, 216387, 286019, 193858, 300354, 300355, 304457, 345418, 230730, 372039, 296269, 234830, 224591, 238928, 294220, 296274, 314708, 318804, 283990, 314711, 357720, 300378, 300379, 316764, 294236, 234330, 314721, 292194, 230757, 281958, 314727, 134504, 306541, 314734, 284015, 234864, 296304, 316786, 327023, 314740, 230772, 314742, 327030, 312688, 314745, 290170, 310650, 224637, 306558, 290176, 243073, 179586, 306561, 314752, 294278, 314759, 296328, 296330, 298378, 318860, 314765, 368012, 304523, 292242, 279955, 306580, 314771, 234902, 224662, 282008, 314776, 112019, 318876, 282013, 290206, 148899, 314788, 314790, 282023, 333224, 298406, 245160, 241067, 279980, 314797, 279979, 286128, 173492, 279988, 284086, 286133, 284090, 302523, 228796, 310714, 54719, 415170, 292291, 302530, 280003, 228804, 310725, 300488, 306630, 306634, 339403, 280011, 234957, 302539, 300490, 310731, 312785, 327122, 222674, 329168, 280020, 329170, 310735, 280025, 310747, 239069, 144862, 286176, 320997, 310758, 187877, 280042, 280043, 191980, 300526, 329198, 337391, 282097, 308722, 296434, 306678, 40439, 191991, 288248, 286201, 300539, 288252, 312830, 290304, 286208, 245249, 228868, 292359, 218632, 323079, 230922, 302602, 323083, 294413, 329231, 304655, 323088, 282132, 230933, 302613, 316951, 282135, 374297, 302620, 313338, 282147, 222754, 306730, 245291, 312879, 230960, 288305, 239159, 290359, 323132, 235069, 157246, 288319, 288322, 280131, 349764, 310853, 124486, 194118, 292424, 286281, 292426, 288328, 282182, 333389, 224848, 224852, 290391, 196184, 239192, 306777, 128600, 235096, 230999, 212574, 99937, 204386, 323171, 345697, 300645, 282214, 300643, 312937, 204394, 224874, 243306, 312941, 206447, 310896, 294517, 314997, 288377, 290425, 325246, 333438, 235136, 280193, 282244, 239238, 288391, 323208, 286344, 282248, 286351, 188049, 239251, 229011, 280217, 323226, 229021, 302751, 282272, 198304, 245413, 282279, 298664, 212649, 298666, 317102, 286387, 300725, 337590, 286392, 300729, 302778, 306875, 280252, 296636, 282302, 280253, 286400, 323265, 323262, 280259, 333508, 321220, 282309, 321217, 296649, 239305, 306891, 212684, 280266, 302798, 9935, 241360, 282321, 333522, 286419, 313042, 241366, 280279, 282330, 18139, 280285, 294621, 282336, 325345, 321250, 294629, 153318, 333543, 181992, 12009, 337638, 282347, 288492, 282349, 34547, 67316, 323315, 286457, 284410, 288508, 200444, 282366, 286463, 319232, 278273, 288515, 280326, 282375, 323335, 284425, 300810, 282379, 116491, 280333, 216844, 300812, 284430, 161553, 124691, 278292, 118549, 278294, 282390, 116502, 284436, 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, 307024, 337746, 317268, 325460, 307030, 237397, 18263, 241494, 188250, 284508, 300893, 307038, 237411, 284515, 276326, 296807, 282471, 292713, 282476, 292719, 296815, 313200, 325491, 313204, 333687, 317305, 124795, 317308, 339840, 182145, 315265, 280451, 325508, 333700, 243590, 282503, 67464, 327556, 188293, 325514, 243592, 305032, 315272, 184207, 124816, 315275, 311183, 279218, 282517, 294806, 214936, 337816, 294808, 329627, 239515, 214943, 298912, 319393, 333727, 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, 6116, 190437, 292838, 294887, 317416, 313322, 278507, 329707, 298987, 296942, 311277, 124912, 327666, 278515, 325620, 239610 ]
9eb84b7dac681de5b123223850cc17defbd68f83
0dcff6469ec4cdacc9dc29dabed178cff60896a5
/ThingsToDo/WebViewController.swift
4f8f9cbae3ad33953508879b6c01b952d5aaa6b4
[]
no_license
emansishah/PlacesToSee
2efc83877d27a24bedc464b498c506b728908def
1c9fb7c80d2b095355984faa64f6b11c8769a802
refs/heads/master
2016-08-11T08:05:35.363703
2016-03-05T06:16:15
2016-03-05T06:16:15
53,186,793
0
0
null
null
null
null
UTF-8
Swift
false
false
1,155
swift
// // WebViewController.swift // ThingsToDo // // Created by Mansi Shah on 3/3/16. // Copyright © 2016 Mansi Shah. All rights reserved. // import UIKit class WebViewController: UIViewController { @IBOutlet weak var WebView: UIWebView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. let url = NSURL(string: "https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=berkeley+points+of+interest") let request = NSURLRequest(URL: url!) WebView.loadRequest(request) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ -1 ]
006511dca1eaf98550ba600429a47be09bee0492
4d6d0d082f1a028aae90928d70104e8ee8781e19
/my41/Classes/AlphaKeyboard.swift
c6be42b6bec7b544d4951f757c8f51c28fedc8e3
[ "BSD-3-Clause" ]
permissive
hooji/my41
5255e4a43a4edea507e971be6ca6dbb01a326274
a83a08c86acf3ce00ee774a54f6c69f8ae704aa8
refs/heads/master
2021-09-22T21:33:56.984883
2018-09-17T08:16:30
2018-09-17T08:16:30
null
0
0
null
null
null
null
UTF-8
Swift
false
false
15,545
swift
// // AlphaKeyboard.swift // my41 // // Created by Miroslav Perovic on 11/27/14. // Copyright (c) 2014 iPera. All rights reserved. // import Foundation import Cocoa final class AlphaKeyboardViewController: NSViewController { @IBOutlet weak var labelSigmaMinus: NSTextField! @IBOutlet weak var buttonCellSigmaPlus: ButtonCell! @IBOutlet weak var buttonSigmaPlus: Key! @IBOutlet weak var labelYX: NSTextField! @IBOutlet weak var buttonCellOneX: ButtonCell! @IBOutlet weak var buttonOneX: Key! @IBOutlet weak var labelXSquare: NSTextField! @IBOutlet weak var buttonCellSquareRoot: ButtonCell! @IBOutlet weak var buttonSquareRoot: Key! @IBOutlet weak var labelTenX: NSTextField! @IBOutlet weak var buttonCellLog: ButtonCell! @IBOutlet weak var buttonLog: Key! @IBOutlet weak var labelEX: NSTextField! @IBOutlet weak var buttonCellLn: ButtonCell! @IBOutlet weak var buttonLn: Key! @IBOutlet weak var labelCLSigma: NSTextField! @IBOutlet weak var buttonCellXexY: ButtonCell! @IBOutlet weak var buttonXexY: Key! @IBOutlet weak var labelPercent: NSTextField! @IBOutlet weak var buttonCellRArrrow: ButtonCell! @IBOutlet weak var buttonRArrrow: Key! @IBOutlet weak var labelSin: NSTextField! @IBOutlet weak var buttonCellSin: ButtonCell! @IBOutlet weak var buttonSin: Key! @IBOutlet weak var labelCos: NSTextField! @IBOutlet weak var buttonCellCos: ButtonCell! @IBOutlet weak var buttonCos: Key! @IBOutlet weak var labelTan: NSTextField! @IBOutlet weak var buttonCellTan: ButtonCell! @IBOutlet weak var buttonTan: Key! @IBOutlet weak var labelShift: NSTextField! @IBOutlet weak var buttonCellShift: ButtonCell! @IBOutlet weak var buttonShift: Key! @IBOutlet weak var labelASN: NSTextField! @IBOutlet weak var buttonCellXEQ: ButtonCell! @IBOutlet weak var buttonXEQ: Key! @IBOutlet weak var labelLBL: NSTextField! @IBOutlet weak var buttonCellSTO: ButtonCell! @IBOutlet weak var buttonSTO: Key! @IBOutlet weak var labelGTO: NSTextField! @IBOutlet weak var buttonCellRCL: ButtonCell! @IBOutlet weak var buttonRCL: Key! @IBOutlet weak var labelBST: NSTextField! @IBOutlet weak var buttonCellSST: ButtonCell! @IBOutlet weak var buttonSST: Key! @IBOutlet weak var labelCATALOG: NSTextField! @IBOutlet weak var buttonCellENTER: ButtonCell! @IBOutlet weak var buttonENTER: Key! @IBOutlet weak var labelISG: NSTextField! @IBOutlet weak var buttonCellCHS: ButtonCell! @IBOutlet weak var buttonCHS: Key! @IBOutlet weak var labelRTN: NSTextField! @IBOutlet weak var buttonCellEEX: ButtonCell! @IBOutlet weak var buttonEEX: Key! @IBOutlet weak var labelCLXA: NSTextField! @IBOutlet weak var buttonCellBack: ButtonCell! @IBOutlet weak var buttonBack: Key! @IBOutlet weak var labelXEQY: NSTextField! @IBOutlet weak var buttonCellMinus: ButtonCell! @IBOutlet weak var buttonMinus: Key! @IBOutlet weak var labelXLessThanY: NSTextField! @IBOutlet weak var buttonCellPlus: ButtonCell! @IBOutlet weak var buttonPlus: Key! @IBOutlet weak var labelXGreaterThanY: NSTextField! @IBOutlet weak var buttonCellMultiply: ButtonCell! @IBOutlet weak var buttonMultiply: Key! @IBOutlet weak var labelXEQ0: NSTextField! @IBOutlet weak var buttonCellDivide: ButtonCell! @IBOutlet weak var buttonDivide: Key! @IBOutlet weak var labelSF: NSTextField! @IBOutlet weak var buttonCell7: ButtonCell! @IBOutlet weak var button7: Key! @IBOutlet weak var labelCF: NSTextField! @IBOutlet weak var buttonCell8: ButtonCell! @IBOutlet weak var button8: Key! @IBOutlet weak var labelFS: NSTextField! @IBOutlet weak var buttonCell9: ButtonCell! @IBOutlet weak var button9: Key! @IBOutlet weak var labelBEEP: NSTextField! @IBOutlet weak var buttonCell4: ButtonCell! @IBOutlet weak var button4: Key! @IBOutlet weak var labelPR: NSTextField! @IBOutlet weak var buttonCell5: ButtonCell! @IBOutlet weak var button5: Key! @IBOutlet weak var labelRP: NSTextField! @IBOutlet weak var buttonCell6: ButtonCell! @IBOutlet weak var button6: Key! @IBOutlet weak var labelFIX: NSTextField! @IBOutlet weak var buttonCell1: ButtonCell! @IBOutlet weak var button1: Key! @IBOutlet weak var labelSCI: NSTextField! @IBOutlet weak var buttonCell2: ButtonCell! @IBOutlet weak var button2: Key! @IBOutlet weak var labelENG: NSTextField! @IBOutlet weak var buttonCell3: ButtonCell! @IBOutlet weak var button3: Key! @IBOutlet weak var labelPI: NSTextField! @IBOutlet weak var buttonCell0: ButtonCell! @IBOutlet weak var button0: Key! @IBOutlet weak var labelLASTX: NSTextField! @IBOutlet weak var buttonCellPoint: ButtonCell! @IBOutlet weak var buttonPoint: Key! @IBOutlet weak var labelVIEW: NSTextField! @IBOutlet weak var buttonCellRS: ButtonCell! @IBOutlet weak var buttonRS: Key! override func viewWillAppear() { self.view.layer = CALayer() self.view.layer?.backgroundColor = NSColor(calibratedRed: 0.221, green: 0.221, blue: 0.221, alpha: 1.0).cgColor self.view.wantsLayer = true // Label Σ- labelSigmaMinus.attributedStringValue = mutableAttributedStringFromString("a", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button Σ+ buttonCellSigmaPlus.upperText = mutableAttributedStringFromString("A", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label yx labelYX.attributedStringValue = mutableAttributedStringFromString("b", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 1/x buttonCellOneX.upperText = mutableAttributedStringFromString("B", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label x^2 labelXSquare.attributedStringValue = mutableAttributedStringFromString("c", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button √x buttonCellSquareRoot.upperText = mutableAttributedStringFromString("C", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label 10^x labelTenX.attributedStringValue = mutableAttributedStringFromString("d", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button LOG buttonCellLog.upperText = mutableAttributedStringFromString("D", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label e^x labelEX.attributedStringValue = mutableAttributedStringFromString("e", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button LN buttonCellLn.upperText = mutableAttributedStringFromString("E", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label CLΣ labelCLSigma.attributedStringValue = mutableAttributedStringFromString("Σ", color: nil, fontName: "Helvetica", fontSize: 11.0) // Button x≷y buttonCellXexY.upperText = mutableAttributedStringFromString("F", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label % labelPercent.attributedStringValue = mutableAttributedStringFromString("%", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button R↓ buttonCellRArrrow.upperText = mutableAttributedStringFromString("G", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label SIN-1 labelSin.attributedStringValue = mutableAttributedStringFromString("≠", color: nil, fontName: "Helvetica", fontSize: 15.0) // Button SIN buttonCellSin.upperText = mutableAttributedStringFromString("H", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label COS-1 labelCos.attributedStringValue = mutableAttributedStringFromString("<", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button COS buttonCellCos.upperText = mutableAttributedStringFromString("I", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label TAN-1 labelTan.attributedStringValue = mutableAttributedStringFromString(">", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button TAN buttonCellTan.upperText = mutableAttributedStringFromString("J", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label ASN labelASN.attributedStringValue = mutableAttributedStringFromString("⊦", color: nil, fontName: "Helvetica", fontSize: 15.0) // Button XEQ buttonCellXEQ.upperText = mutableAttributedStringFromString("K", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label LBL labelLBL.attributedStringValue = mutableAttributedStringFromString("ASTO", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button STO buttonCellSTO.upperText = mutableAttributedStringFromString("L", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label GTO labelGTO.attributedStringValue = mutableAttributedStringFromString("ARCL", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button RCL buttonCellRCL.upperText = mutableAttributedStringFromString("M", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label BST labelBST.attributedStringValue = mutableAttributedStringFromString("BST", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button SST buttonCellSST.upperText = mutableAttributedStringFromString("SST", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label CATALOG labelCATALOG.attributedStringValue = mutableAttributedStringFromString("↑", color: nil, fontName: "Helvetica", fontSize: 11.0) // Button ENTER buttonCellENTER.upperText = mutableAttributedStringFromString("N", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label ISG labelISG.attributedStringValue = mutableAttributedStringFromString("∡", color: nil, fontName: "Helvetica", fontSize: 16.0) // Button CHS buttonCellCHS.upperText = mutableAttributedStringFromString("O", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label RTN labelRTN.attributedStringValue = mutableAttributedStringFromString("$", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button EEX buttonCellEEX.upperText = mutableAttributedStringFromString("P", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label CL X/A labelCLXA.attributedStringValue = mutableAttributedStringFromString("CLA", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button Back buttonCellBack.upperText = mutableAttributedStringFromString("←", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label x=y ? labelXEQY.attributedStringValue = mutableAttributedStringFromString("━", color: nil, fontName: "Helvetica", fontSize: 8.0) // Button Minus buttonCellMinus.upperText = mutableAttributedStringFromString("Q", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label x≤y ? labelXLessThanY.attributedStringValue = mutableAttributedStringFromString("+", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button Plus buttonCellPlus.upperText = mutableAttributedStringFromString("U", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label x≥y ? labelXGreaterThanY.attributedStringValue = mutableAttributedStringFromString("*", color: nil, fontName: "Times New Roman", fontSize: 14.0) // Button Multiply buttonCellMultiply.upperText = mutableAttributedStringFromString("Y", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label x=0 ? labelXEQ0.attributedStringValue = mutableAttributedStringFromString("/", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button Divide buttonCellDivide.upperText = mutableAttributedStringFromString(":", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label SF labelSF.attributedStringValue = mutableAttributedStringFromString("7", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 7 buttonCell7.upperText = mutableAttributedStringFromString("R", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label CF labelCF.attributedStringValue = mutableAttributedStringFromString("8", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 8 buttonCell8.upperText = mutableAttributedStringFromString("S", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label FS? labelFS.attributedStringValue = mutableAttributedStringFromString("9", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 9 buttonCell9.upperText = mutableAttributedStringFromString("T", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label BEEP labelBEEP.attributedStringValue = mutableAttributedStringFromString("4", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 4 buttonCell4.upperText = mutableAttributedStringFromString("V", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label P→R labelPR.attributedStringValue = mutableAttributedStringFromString("5", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 5 buttonCell5.upperText = mutableAttributedStringFromString("W", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label R→P labelRP.attributedStringValue = mutableAttributedStringFromString("6", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 6 buttonCell6.upperText = mutableAttributedStringFromString("X", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label FIX labelFIX.attributedStringValue = mutableAttributedStringFromString("1", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 1 buttonCell1.upperText = mutableAttributedStringFromString("Z", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label SCI labelSCI.attributedStringValue = mutableAttributedStringFromString("3", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 2 buttonCell2.upperText = mutableAttributedStringFromString("=", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label ENG labelENG.attributedStringValue = mutableAttributedStringFromString("3", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 3 buttonCell3.upperText = mutableAttributedStringFromString("?", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label PI labelPI.attributedStringValue = mutableAttributedStringFromString("0", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button 0 buttonCell0.upperText = mutableAttributedStringFromString("SPACE", color: NSColor.white, fontName: "Helvetica", fontSize: 9.0) // Label LAST X labelLASTX.attributedStringValue = mutableAttributedStringFromString("•", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button • buttonCellPoint.upperText = mutableAttributedStringFromString(",", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) // Label VIEW labelVIEW.attributedStringValue = mutableAttributedStringFromString("AVIEW", color: nil, fontName: "Helvetica", fontSize: 12.0) // Button R/S buttonCellRS.upperText = mutableAttributedStringFromString("R/S", color: NSColor.white, fontName: "Helvetica", fontSize: 12.0) } func mutableAttributedStringFromString(_ aString: String, color: NSColor?, fontName: String, fontSize: CGFloat) -> NSMutableAttributedString { let aFont = NSFont(name: fontName, size: fontSize) if let actualFont = aFont { if let aColor = color { return NSMutableAttributedString( string: aString, attributes: [NSFontAttributeName : actualFont, NSForegroundColorAttributeName: aColor ] ) } else { return NSMutableAttributedString(string: aString, attributes: [NSFontAttributeName : actualFont ] ) } } else { return NSMutableAttributedString() } } }
[ -1 ]
b9959454d8ac1965c3efd38f561c7f03e0952655
38a53559af1fa0f20641e2536f4dcb681599c789
/Reward/Reward/Helpers/Classes/RealmConfiguration.swift
00af6d1eb9a40863f2b2898eeea764bc6ffcb483
[]
no_license
jwqfqf21231231/Rewards-iOS
d44679af76bdadcb689f1046c8f596aa531fa099
e60a29e8a3c129ce321cadf57bd062ae56af8f9d
refs/heads/main
2023-04-15T09:38:38.811526
2021-04-30T05:15:25
2021-04-30T05:15:25
null
0
0
null
null
null
null
UTF-8
Swift
false
false
309
swift
// // RealmConfiguration.swift // Reward // // Created by Keval Vadoliya on 04/04/21. // import Foundation import RealmSwift class RealmConfiguration { func setDefaultConfiguration() { let config = Realm.Configuration() Realm.Configuration.defaultConfiguration = config } }
[ -1 ]
38a0a2e97b8619d2c8b1dfc84be2a21068d062d7
43c6dfdecadabcac38f992df0b951aed087bf53d
/Todoey/AppDelegate.swift
c354eaa050c33b911727c71d955511933782218f
[]
no_license
rlmellow/Todoey
7f4741f4dd8d1e8269d46418758d218d0e040c25
4e0b639abc7795172a8a92420c594d8bfd0129a0
refs/heads/master
2020-03-22T23:58:24.775203
2018-07-13T11:07:38
2018-07-13T11:07:38
140,837,051
0
0
null
null
null
null
UTF-8
Swift
false
false
2,185
swift
// // AppDelegate.swift // Todoey // // Created by Rattana Leedamrongprasert on 11/7/2561 BE. // Copyright © 2561 Rat Lee. 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 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, 229426, 237618, 229428, 286774, 286776, 319544, 204856, 229432, 286778, 352318, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 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, 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, 172618, 303690, 33357, 287309, 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, 295583, 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, 295685, 328453, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 304007, 320391, 213895, 304009, 304011, 230284, 304013, 279438, 189325, 295822, 189329, 213902, 189331, 304019, 295825, 58262, 304023, 279452, 234648, 410526, 279461, 279462, 304042, 213931, 304055, 230327, 287675, 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, 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, 230679, 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, 148946, 288214, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 148990, 321022, 206336, 402942, 296446, 296450, 230916, 230919, 214535, 304651, 370187, 304653, 230923, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 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, 215154, 313458, 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, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 354656, 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, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 338440, 150025, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 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, 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, 224151, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 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, 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, 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, 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, 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, 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, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 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, 127440, 315860, 176597, 283095, 127447, 299481, 127449, 176605, 242143, 127455, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 135672, 127480, 233979, 291323, 127485, 291330, 283142, 127494, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 234006, 127511, 152087, 283161, 234010, 242202, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 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, 185074, 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, 226185, 234379, 291716, 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, 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, 234563, 160835, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 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, 324757, 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, 177419, 300299, 242957, 283917, 300301, 177424, 349451, 275725, 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, 194101, 284215, 316983, 194103, 284218, 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, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 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, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 358292, 284564, 317332, 399252, 284566, 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, 350186, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 350200, 325624, 276472, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 243733, 317468, 243740, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 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, 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, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 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, 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, 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, 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, 310080, 293696, 277317, 277322, 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, 121850, 293882, 244731, 302075, 293887, 277504, 277507, 277511, 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, 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, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 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, 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, 187936, 146977, 286240, 187939, 40484, 294435, 40486, 286246, 40488, 278057, 245288, 40491, 294439, 294440, 294443, 310831, 294445, 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, 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, 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 ]
86bc03d3a9f293e80f6bce516f16fd6f5e092c66
7579394d860fd084a9efebc836a7a95f6b2b0b4e
/KatanaTests/Mocks/TestDependenciesContainer.swift
0b8a35a079303e85f669a6c90ea903eca01b02bf
[ "MIT" ]
permissive
gsanguino/katana-swift
334b3c945a82f55303b1a3b030b7d4a7405903db
73fad492d00a16a66526ed7eabc4880e7e9a0602
refs/heads/master
2020-05-19T05:42:27.083767
2019-04-30T18:49:17
2019-04-30T18:49:17
null
0
0
null
null
null
null
UTF-8
Swift
false
false
606
swift
// // TestDependenciesContainer.swift // KatanaTests // // Copyright © 2019 Bending Spoons. // Distributed under the MIT License. // See the LICENSE file for more information. import Foundation import Katana import Hydra final class TestDependenciesContainer: SideEffectDependencyContainer { func delay(of interval: TimeInterval) -> Promise<Void> { return Promise { resolve, reject, _ in DispatchQueue.global().asyncAfter(deadline: .now() + interval, execute: resolve) } } init(dispatch: @escaping PromisableStoreDispatch, getState: @escaping GetState) { } }
[ -1 ]
13d3a833facff7b1169a29e42953e092fd9ff4cc
8d2d1c42b09d4f1a343f0f8ca6202219e8f94e90
/SportsRoom/LaunchScreen/SignUpViewController.swift
e651c9548d6f5c5117837295406c432f33529189
[]
no_license
javx123/SportsRoom
a06373898a9dfeff66cf18470872c477fbef554a
fc3518270483af20f9f6f2fa214e81b1e1c2aa01
refs/heads/master
2023-01-11T18:23:03.502816
2019-05-23T06:23:30
2019-05-23T06:23:30
114,180,573
2
4
null
2023-01-09T09:34:14
2017-12-13T23:46:11
Swift
UTF-8
Swift
false
false
5,315
swift
// // SignUpViewController.swift // SportsRoom // // Created by Daniel Grosman on 2017-12-25. // Copyright © 2017 Javier Xing. All rights reserved. // import UIKit import FirebaseAuth import FirebaseDatabase class SignUpViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var emailTxtField: UITextField! @IBOutlet weak var passwordTxtField: UITextField! @IBOutlet weak var ageTxtField: UITextField! @IBOutlet weak var nameTxtField: UITextField! override func viewDidLoad() { super.viewDidLoad() emailTxtField.delegate = self passwordTxtField.delegate = self ageTxtField.delegate = self nameTxtField.delegate = self nameTxtField.backgroundColor = UIColor.clear nameTxtField.layer.borderColor = UIColor.white.cgColor nameTxtField.layer.borderWidth = 1 nameTxtField.layer.cornerRadius = 7 nameTxtField.textColor = UIColor.white let namePaddingView = UIView(frame: CGRect(x:0,y:0,width:40,height:nameTxtField.frame.height)) nameTxtField.leftViewMode = UITextFieldViewMode.always nameTxtField.leftView = namePaddingView ageTxtField.backgroundColor = UIColor.clear ageTxtField.layer.borderColor = UIColor.white.cgColor ageTxtField.layer.borderWidth = 1 ageTxtField.layer.cornerRadius = 7 ageTxtField.textColor = UIColor.white let agePaddingView = UIView(frame: CGRect(x:0,y:0,width:40,height:ageTxtField.frame.height)) ageTxtField.leftViewMode = UITextFieldViewMode.always ageTxtField.leftView = agePaddingView emailTxtField.backgroundColor = UIColor.clear emailTxtField.layer.borderColor = UIColor.white.cgColor emailTxtField.layer.borderWidth = 1 emailTxtField.layer.cornerRadius = 7 emailTxtField.textColor = UIColor.white let emailPaddingView = UIView(frame: CGRect(x:0,y:0,width:40,height:emailTxtField.frame.height)) emailTxtField.leftViewMode = UITextFieldViewMode.always emailTxtField.leftView = emailPaddingView passwordTxtField.backgroundColor = UIColor.clear passwordTxtField.layer.borderColor = UIColor.white.cgColor passwordTxtField.layer.borderWidth = 1 passwordTxtField.layer.cornerRadius = 7 passwordTxtField.textColor = UIColor.white let passPaddingView = UIView(frame: CGRect(x:0,y:0,width:40,height:passwordTxtField.frame.height)) passwordTxtField.leftViewMode = UITextFieldViewMode.always passwordTxtField.leftView = passPaddingView } func textFieldShouldReturn(_ textField: UITextField) -> Bool { emailTxtField.resignFirstResponder() passwordTxtField.resignFirstResponder() ageTxtField.resignFirstResponder() nameTxtField.resignFirstResponder() return true } @IBAction func backButtonTapped(_ sender: Any) { self.dismiss(animated: true, completion: nil) } @IBAction func screenTapped(_ sender: Any) { emailTxtField.resignFirstResponder() passwordTxtField.resignFirstResponder() ageTxtField.resignFirstResponder() nameTxtField.resignFirstResponder() } @IBAction func signUpPressed(_ sender: UIButton) { if emailTxtField.text == "" || passwordTxtField.text == "" || nameTxtField.text == "" || ageTxtField.text == "" { StaticFunctions.displayAlert(title: "Missing information.", message: "Some information is missing. Please check that all fields have been filled out", uiviewcontroller: self) } else { Auth.auth().createUser(withEmail: emailTxtField.text!, password: passwordTxtField.text!) { (user, error) in if error != nil { StaticFunctions.displayAlert(title: "Error", message: error!.localizedDescription, uiviewcontroller: self) } else { let ref = Database.database().reference().child("users").child(user!.uid) let emailkey = "email" let emailtext = self.emailTxtField.text?.lowercased() let namekey = "name" let nametext = self.nameTxtField.text let agekey = "age" let agetext = self.ageTxtField.text let settingskey = "settings" let defaultSettings: [String: Any] = ["radius": 30000, "filter": "date"] ref.updateChildValues([emailkey:emailtext!,namekey:nametext!,agekey:agetext!, settingskey: defaultSettings]) let changeRequest = Auth.auth().currentUser?.createProfileChangeRequest() changeRequest?.displayName = self.nameTxtField.text changeRequest?.commitChanges { (error) in if error != nil { print(error!.localizedDescription) } } print("Register Success!") self.performSegue(withIdentifier: "signUpToMain", sender: self) } } } } }
[ -1 ]
5f319a61d771f2d706bc11f326b54c4057b8b261
8726c9d85ee2380e488e31e12de381b0a83bd92d
/api-client/AppDelegate.swift
67b46df723b56b6a50d40a2c5e9c411bceba6f94
[]
no_license
kenchiu100/FoodTruck-api-client
16888f58b3302ddaeb076819af6d1ecbef930269
adfa6e63e3a06a845ef1096216f567bea32d1fb8
refs/heads/master
2021-06-10T13:17:47.576883
2017-01-23T02:58:42
2017-01-23T02:58:42
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,171
swift
// // AppDelegate.swift // api-client // // Created by KaKin Chiu on 1/12/17. // Copyright © 2017 KaKinChiu. 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 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, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 229432, 286776, 286778, 319544, 204856, 352318, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 131209, 303241, 417930, 311436, 303244, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 319694, 286926, 131278, 131281, 286928, 278743, 278747, 295133, 155872, 131299, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 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, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 287238, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 189039, 295538, 189040, 172660, 189044, 287349, 352880, 287355, 287360, 295553, 172675, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 164509, 303773, 230045, 172702, 287390, 287394, 172705, 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, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 295685, 328453, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 213895, 320391, 304007, 304009, 304011, 230284, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 189331, 58262, 304023, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 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, 296213, 230677, 296215, 230679, 320792, 230681, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 230718, 296259, 378181, 296262, 230727, 238919, 320840, 296264, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 410987, 230763, 148843, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 181631, 148865, 312711, 312712, 296331, 288140, 230800, 288144, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 173488, 279985, 312755, 296373, 279991, 312759, 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, 320998, 288234, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 402942, 321022, 206336, 296450, 148990, 230916, 230919, 214535, 304651, 370187, 304653, 230923, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 419555, 321252, 313066, 280302, 288494, 280304, 313073, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313176, 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, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 321560, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 149599, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 149618, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 305464, 280888, 280891, 289087, 108865, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 354656, 313700, 280937, 313705, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 283805, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 240132, 330244, 281095, 338440, 150025, 223752, 223749, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 289317, 281127, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 281210, 297594, 158347, 264845, 182926, 133776, 182929, 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, 240519, 322440, 314249, 338823, 183184, 142226, 289687, 224151, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 314773, 306581, 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, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 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, 307009, 413506, 241475, 307012, 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, 44948, 298901, 241556, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 290739, 282547, 241588, 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, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 241821, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 299191, 176311, 307385, 307386, 258235, 176316, 307388, 307390, 184503, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 184586, 282893, 291089, 282906, 291104, 233766, 299304, 295583, 176435, 307508, 315701, 307510, 332086, 307512, 168245, 307515, 282942, 307518, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 315801, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 283069, 127424, 299457, 127429, 127431, 127440, 176592, 315856, 315860, 176597, 127447, 283095, 127449, 299481, 176605, 127455, 242143, 127457, 291299, 127460, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 291314, 127474, 291317, 127480, 135672, 291323, 233979, 127485, 127490, 291330, 127494, 283142, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 152087, 127511, 283161, 242202, 135707, 234010, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 299706, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 234264, 201496, 234266, 234269, 283421, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 226185, 324490, 308105, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 234396, 324508, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 291754, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 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, 234496, 316416, 234501, 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, 160835, 234563, 316483, 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, 226453, 275606, 234647, 234648, 275608, 308373, 234650, 324757, 234653, 324766, 119967, 308379, 300189, 324768, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 226500, 300229, 308420, 283844, 308422, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 300289, 292097, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 283917, 300301, 349451, 177424, 242957, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 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, 300507, 103899, 333280, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 226802, 292338, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 194103, 284215, 316983, 284218, 226877, 292414, 284223, 284226, 243268, 292421, 226886, 284231, 128584, 284228, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 276053, 284247, 317015, 284249, 243290, 284251, 235097, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 292470, 276086, 284278, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 284358, 276166, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 317158, 358119, 284392, 325353, 284394, 358122, 284397, 358126, 276206, 358128, 284399, 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, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 399252, 284566, 317332, 350106, 284572, 276386, 284579, 276388, 292776, 358312, 284585, 317353, 276395, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 350186, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 350200, 325624, 276472, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 276496, 317456, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 284739, 292934, 243785, 276553, 350293, 350295, 194649, 227418, 309337, 350299, 350302, 227423, 194654, 178273, 194657, 227426, 194660, 276579, 227430, 276583, 309346, 309348, 309350, 309352, 309354, 350308, 276590, 350313, 350316, 350321, 284786, 276595, 301167, 350325, 227440, 350328, 292985, 301178, 350332, 292989, 292993, 301185, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 309455, 276689, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 293370, 301562, 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, 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, 318094, 334476, 277136, 277139, 227992, 334488, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 277173, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 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, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 302075, 244731, 285690, 293882, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 392326, 285831, 253064, 302218, 285835, 294026, 162964, 384148, 187542, 302231, 302233, 285849, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 146765, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 310727, 302534, 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, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 187936, 146977, 286240, 294435, 40484, 187939, 286246, 294439, 294440, 278057, 40486, 294443, 245288, 294445, 40488, 310831, 40491, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 228944, 400976, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286313, 40554, 286312, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 278227, 286420, 319187, 229076, 286425, 319194, 278235, 301163, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 294803, 40851, 188312, 294811, 319390, 294817, 319394, 40865, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
1afe77564c05ba022cce8c6986854d8d6a4662d8
05c82842268b58e2d1f128e2b086060460e49eeb
/MemeMe/Views/MemeCollectionViewCell.swift
c87051ddcf27bd4ba4051d9e1abdd3a3a5e895d1
[]
no_license
zhangguol/Udacity-iOS-MemeMe
c204b6eb3a01af6da003ec75e5ff2ac889c03782
30ed24b7394cfcea55f16689ff7b3c9bba9e3a2c
refs/heads/master
2021-01-18T07:55:39.544415
2017-05-09T06:21:55
2017-05-09T06:23:55
84,295,882
0
0
null
null
null
null
UTF-8
Swift
false
false
457
swift
// // MemeCollectionViewCell.swift // MemeMe // // Created by Boxuan Zhang on 4/3/17. // Copyright © 2017 Boxuan Zhang. All rights reserved. // import UIKit class MemeCollectionViewCell: UICollectionViewCell { @IBOutlet weak var imageView: UIImageView! func configure(with meme: Meme) { imageView.image = meme.memedImage } } extension MemeCollectionViewCell { static let cellIdentifier = "MemeCollectionViewCell" }
[ -1 ]
406c5f35f32565e2f0653040fdc0bc949b33521a
85e420eae04f666ebe5b9b9dbf5f64e772aabc47
/Flashcards/SceneDelegate.swift
6046e9aab20d44e2eba12daa9f2f0c8963dc4abe
[]
no_license
EmmandraW/Flashcards
9897bfa6a3b05055726c487f76a9f53b9f074127
f4f446cda4fee136d0e3c5d7671d51ada3e79406
refs/heads/master
2021-01-08T22:29:53.029730
2020-02-22T03:22:00
2020-02-22T03:22:00
242,161,161
0
0
null
null
null
null
UTF-8
Swift
false
false
2,355
swift
// // SceneDelegate.swift // Flashcards // // Created by Emmandra Wright on 2/21/20. // Copyright © 2020 EmmandraWright. All rights reserved. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let _ = (scene as? UIWindowScene) else { return } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 393221, 163849, 393228, 393231, 393251, 344103, 393260, 393269, 213049, 376890, 385082, 16444, 393277, 376906, 327757, 254032, 286804, 368728, 254045, 368736, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 286889, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 180432, 377047, 418008, 385243, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 336124, 385281, 336129, 262405, 164107, 180491, 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, 336326, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 98819, 164362, 328207, 410129, 393748, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 385610, 270922, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 336517, 344710, 385671, 148106, 377485, 352919, 98969, 336549, 344745, 361130, 336556, 434868, 164535, 336568, 164539, 328379, 328387, 352969, 385743, 385749, 189154, 369382, 361196, 418555, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 369439, 418591, 262943, 418594, 336676, 418600, 418606, 271154, 328498, 369464, 361274, 328516, 336709, 328520, 336712, 361289, 328523, 336715, 361300, 213848, 426842, 361307, 197469, 361310, 254813, 361318, 344936, 361323, 361335, 328574, 369544, 361361, 222129, 345036, 386004, 345046, 386012, 386019, 328690, 435188, 328703, 328710, 418822, 328715, 377867, 386070, 336922, 345119, 377888, 328747, 345134, 345139, 361525, 361537, 377931, 197708, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 386168, 410746, 361594, 214150, 345224, 386187, 337048, 345247, 361645, 337072, 345268, 337076, 402615, 361657, 402636, 328925, 165086, 165092, 222438, 386286, 328942, 386292, 206084, 115973, 328967, 345377, 353572, 345380, 345383, 263464, 337207, 345400, 378170, 369979, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 345449, 99692, 271731, 378232, 337278, 271746, 181639, 353674, 181644, 361869, 181650, 181655, 230810, 181671, 181674, 181679, 181682, 337330, 181687, 370105, 181691, 181697, 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, 206397, 214594, 419401, 419404, 353868, 419408, 214611, 419412, 403040, 345702, 222831, 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, 181982, 419551, 345829, 419560, 337643, 419564, 337647, 370416, 141052, 337661, 337671, 362249, 362252, 395022, 362256, 321300, 345888, 116512, 362274, 378664, 354107, 354112, 247618, 370504, 329545, 345932, 354124, 370510, 337751, 247639, 370520, 313181, 182110, 354143, 345965, 354157, 345968, 345971, 345975, 182136, 403321, 1914, 354173, 395148, 247692, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 346064, 247760, 346069, 329699, 354275, 190440, 247790, 354314, 346140, 337980, 436290, 378956, 395340, 436307, 338005, 329816, 100454, 329833, 329853, 329857, 329868, 329886, 411806, 346273, 362661, 100525, 379067, 387261, 256193, 395467, 411862, 411865, 411869, 411874, 379108, 411877, 387303, 346344, 395496, 338154, 387307, 346350, 338161, 436474, 321787, 379135, 411905, 411917, 43279, 379154, 395539, 387350, 387353, 338201, 182559, 338212, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 182642, 321911, 420237, 379279, 354728, 338353, 338363, 338382, 272849, 248279, 256474, 182755, 338404, 338411, 330225, 248309, 199165, 248332, 330254, 199182, 199189, 420377, 330268, 191012, 330320, 199250, 191069, 346722, 248427, 191085, 338544, 191093, 346743, 330384, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 355029, 273109, 264919, 338661, 338665, 264942, 330479, 363252, 338680, 207620, 264965, 191240, 338701, 256787, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 330612, 330643, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 347106, 437219, 257009, 265208, 330750, 199681, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 248905, 330827, 330830, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 330869, 248952, 420985, 330886, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 339199, 396552, 175376, 175397, 208167, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 437576, 437584, 331089, 396634, 175451, 437596, 429408, 175458, 208228, 175461, 175464, 265581, 331124, 175478, 249210, 175484, 249215, 175487, 249219, 175491, 249225, 249228, 249235, 175514, 175517, 396703, 175523, 355749, 396723, 388543, 380353, 216518, 339401, 380364, 339406, 372177, 339414, 413143, 249303, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 339464, 249355, 208399, 175637, 134689, 339504, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 339572, 224885, 224888, 224891, 224895, 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, 339696, 225013, 257788, 225021, 339711, 257791, 225027, 257796, 339722, 257802, 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, 323404, 257869, 257872, 225105, 339795, 397140, 225109, 225113, 257881, 257884, 257887, 225120, 257891, 413539, 225128, 257897, 225138, 339827, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 184245, 372698, 372704, 372707, 356336, 380919, 372739, 405534, 266295, 266298, 217158, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 250012, 225439, 135328, 225442, 192674, 438434, 225445, 225448, 438441, 225451, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 389322, 225485, 225488, 225491, 225494, 266454, 225497, 225500, 225503, 225506, 356580, 225511, 217319, 225515, 225519, 381177, 356631, 356638, 356641, 356644, 356647, 266537, 356650, 389417, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 332098, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 332130, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 250239, 332162, 348548, 356741, 332175, 160152, 373146, 373149, 70048, 356783, 324032, 201158, 127473, 217590, 340473, 324095, 324100, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324150, 324156, 168509, 348734, 324161, 324165, 356935, 381513, 348745, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 119432, 340628, 184983, 373399, 340639, 258723, 332460, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 155647, 348926, 389927, 348979, 152371, 398141, 127815, 357202, 389971, 357208, 136024, 389979, 430940, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 201589, 430967, 324473, 398202, 119675, 324476, 430973, 340859, 324479, 340863, 324482, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 373672, 324525, 5040, 111539, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 340942, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 381947, 201724, 431100, 349181, 431107, 349203, 209944, 209948, 250915, 250917, 169002, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 209996, 431180, 349268, 177238, 250968, 210011, 373853, 341094, 210026, 210028, 210032, 349296, 210037, 210042, 210045, 349309, 152704, 160896, 349313, 210053, 210056, 349320, 259217, 373905, 210068, 210072, 210078, 210081, 210085, 210089, 210096, 210100, 324792, 210108, 357571, 210116, 210128, 333010, 210132, 333016, 210139, 210144, 218355, 251123, 218361, 275709, 128254, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 251211, 210261, 365912, 259423, 374113, 251236, 374118, 234867, 390518, 357756, 374161, 112021, 349591, 333222, 210357, 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, 333387, 333396, 333400, 366173, 333415, 423529, 423533, 333423, 210547, 415354, 333440, 267910, 267929, 333472, 333512, 259789, 358100, 366301, 333535, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333593, 333595, 366384, 358192, 210740, 366388, 358201, 399166, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 358256, 268144, 358260, 325494, 399222, 186233, 333690, 243584, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 333767, 358348, 333777, 219094, 399318, 358372, 350190, 350194, 333819, 350204, 350207, 325633, 325637, 350214, 333838, 350225, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350257, 350260, 350272, 243782, 350281, 350286, 374865, 252021, 342134, 374904, 333989, 333998, 334012, 260299, 350411, 350417, 350423, 350426, 334047, 350449, 358645, 350454, 350459, 350462, 350465, 350469, 325895, 268553, 194829, 350477, 268560, 350481, 432406, 350487, 350491, 350494, 325920, 350500, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 391564, 366991, 334224, 342431, 375209, 326059, 375220, 342453, 334263, 326087, 358857, 195041, 334306, 334312, 104940, 375279, 162289, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 252483, 219719, 399957, 244309, 334425, 326240, 334466, 334469, 391813, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 342769, 203508, 375541, 342777, 391938, 391949, 375569, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 375616, 326468, 244552, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 326503, 433001, 326508, 400238, 326511, 211826, 211832, 392061, 351102, 260993, 400260, 211846, 342931, 400279, 252823, 392092, 400286, 359335, 211885, 400307, 351169, 359362, 351172, 170950, 359367, 326599, 187335, 359383, 359389, 383968, 359411, 261109, 244728, 261112, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 261166, 359471, 375868, 384099, 384102, 367724, 384108, 326764, 343155, 384115, 212095, 384136, 384140, 384144, 384152, 384158, 384161, 351399, 384169, 367795, 384182, 384189, 351424, 384192, 343232, 244934, 367817, 244938, 384202, 253132, 326858, 343246, 384209, 146644, 351450, 384225, 359650, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 261391, 359695, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 343399, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 343453, 245152, 245155, 155045, 245158, 40358, 245163, 114093, 327090, 343478, 359867, 384444, 146878, 327108, 327112, 384457, 327118, 359887, 359891, 343509, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 359948, 359951, 245295, 359984, 400977, 400982, 179803, 138865, 155255, 155274, 368289, 245410, 245415, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 245495, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 376672, 155488, 155492, 327532, 261997, 376686, 262000, 262003, 262006, 147319, 425846, 262009, 327542, 262012, 155517, 155523, 155526, 360327, 376715, 155532, 262028, 262031, 262034, 262037, 262040, 262043, 155550, 253854, 262046, 262049, 262052, 327590, 155560, 155563, 155566, 327613, 393152, 311244, 212945, 393170, 155604, 155620, 253924, 155622, 327655, 253927, 360432, 393204, 360439, 253944, 393209, 393215 ]
52e464fa21ad38c9c4380cedf93e54024d1daba4
75e2b41fb4d1ba33ae35a0ac3788caa3ca9548cf
/iOS/iOS Books (Swift & OC)/iOS Programming Pushing The Limits/ch07-Drawing/Paths/Paths/AppDelegate.swift
b6fb619568dc2f6b17d79fd7ed6c154b037bb821
[]
no_license
feiyunhao/DailyPractice
9c9b57732e30781e1b4625392fbe3a0363857d3c
a3a1be611ed015b9dd4392479de131e047876ae8
refs/heads/master
2020-04-06T07:02:22.741361
2016-08-19T14:41:49
2016-08-19T14:41:49
56,163,726
3
0
null
null
null
null
UTF-8
Swift
false
false
2,133
swift
// // AppDelegate.swift // Paths // // Created by feiyun on 16/6/25. // Copyright © 2016年 feiyun. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 204856, 229432, 286776, 319544, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 327814, 131209, 417930, 303241, 311436, 303244, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 287238, 320007, 172550, 172552, 303623, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 352880, 295538, 172655, 189044, 287349, 172656, 172660, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 303773, 164509, 287390, 295583, 172702, 230045, 172705, 303780, 287394, 172707, 287398, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 107208, 279241, 107212, 172748, 287436, 172751, 287440, 295633, 303827, 172755, 279255, 172760, 279258, 287450, 213724, 303835, 189149, 303838, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 295825, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 304311, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 296255, 312639, 230718, 296259, 378181, 238919, 296264, 320840, 230727, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 181626, 304505, 304506, 181631, 312711, 296331, 288140, 230800, 288144, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 288220, 329177, 239070, 288224, 288226, 370146, 280036, 288229, 280038, 288230, 288232, 280034, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 148990, 296446, 402942, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 321316, 304932, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 313340, 288764, 239612, 239617, 313347, 288773, 313358, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 223327, 149599, 149601, 149603, 321634, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 182517, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 240132, 223749, 305668, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 207661, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 240535, 289687, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 306555, 314747, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 298651, 323229, 282269, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 282481, 110450, 315251, 315249, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 44948, 298901, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 178273, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 184503, 307385, 307386, 258235, 176316, 307388, 307390, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 282931, 307508, 315701, 307510, 332086, 151864, 307512, 176435, 307515, 168245, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 194660, 127417, 291260, 283069, 127421, 127424, 127429, 127431, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 127466, 176620, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 135689, 233994, 291341, 233998, 234003, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 242436, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 234264, 201496, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 324504, 234396, 324508, 234398, 291742, 308123, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 291754, 226220, 324522, 234414, 324527, 291760, 234417, 201650, 324531, 291756, 226230, 234422, 275384, 324536, 234428, 291773, 226239, 234431, 242623, 234434, 324544, 324546, 226245, 234437, 234439, 324548, 234443, 291788, 193486, 275406, 193488, 234446, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 234563, 316483, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 275545, 234585, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 234618, 275579, 144506, 234620, 234623, 226433, 234627, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 308373, 275608, 234647, 234648, 234650, 308379, 283805, 324757, 234653, 300189, 234657, 324766, 324768, 119967, 283813, 234661, 300197, 234664, 242852, 275626, 234667, 316596, 308414, 234687, 316610, 300226, 234692, 283844, 300229, 308420, 308418, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 283904, 292097, 300289, 300292, 300294, 275719, 300299, 177419, 283917, 242957, 275725, 177424, 300301, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 218464, 316768, 292192, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 284084, 144820, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 259567, 300527, 308720, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 284228, 226886, 284231, 128584, 292421, 284234, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 300628, 235097, 243290, 284251, 284249, 284253, 317015, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 292470, 284278, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 276098, 325250, 284290, 292485, 284292, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 317138, 358098, 284370, 284372, 284377, 276187, 284379, 284381, 284384, 284386, 358116, 276197, 317158, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358128, 358126, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 300832, 284449, 300834, 325408, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 276466, 227314, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 292934, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 194654, 227423, 350302, 194657, 227426, 276579, 309346, 309348, 227430, 276583, 350308, 309350, 276586, 309352, 350313, 350316, 276590, 301167, 227440, 350321, 284786, 276595, 301163, 350325, 350328, 292985, 301178, 292989, 301185, 317570, 350339, 292993, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 276689, 227540, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 276713, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 277011, 309779, 317971, 309781, 55837, 227877, 227879, 293417, 227882, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 334476, 326285, 318094, 318092, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 285428, 56059, 310015, 285441, 310020, 285448, 310029, 285453, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 236408, 15224, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 244731, 121850, 302075, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 7232, 310336, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 277807, 285999, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 310659, 294276, 351619, 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, 292968, 302541, 277963, 302543, 277966, 310737, 277971, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 286203, 40443, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 40486, 294439, 286248, 294440, 40488, 294443, 286246, 294445, 40491, 310831, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 400976, 212560, 40533, 147032, 40537, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40552, 40554, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 310925, 286354, 278163, 302740, 122517, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 40865, 319394, 294821, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 309354, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
f1eacc0f7206b31d434433db1cbe1820c73cd2ac
fd88363e6ef67517b5b7b628506b26af6fae4fd3
/Shared/Models/Task/Task+CoreDataClass.swift
357fb6d14a77cf66046c807ec9722d8ebafe5762
[]
no_license
misaellandero/taskDemo
4b0db6e89b9a33d2fd52c7b5c9ae04465944b9f6
a3ca23dde07c2eb6425d866337319df203b078b8
refs/heads/main
2023-08-03T05:03:50.350053
2021-09-27T04:52:59
2021-09-27T04:52:59
410,699,536
0
0
null
null
null
null
UTF-8
Swift
false
false
185
swift
// // Task+CoreDataClass.swift // taskDemo // // Created by Misael Landero on 26/09/21. // // import Foundation import CoreData @objc(Task) public class Task: NSManagedObject { }
[ 376651 ]
a170e763d8da1d81f27042bf2258daf027f4b5e9
c3ea5e2a53aefa9a777a874494850dd205b52fbc
/EmojiFuntime/ContentView.swift
ac880914a0df727f50d099b33b1fc43da49dd867
[]
no_license
M0gM0g/SuperEmojiFuntime
e39fc692a049c1a76f7a40535df372ca3363c04a
3c192e816bb080bfe3b2f61693c620e82bf7d652
refs/heads/master
2022-12-13T19:48:20.856554
2020-09-12T23:20:40
2020-09-12T23:20:40
294,525,523
0
0
null
2020-09-12T23:20:41
2020-09-10T21:23:44
Swift
UTF-8
Swift
false
false
6,080
swift
// // ContentView.swift // EmojiFuntime // // Created by Mark O'Leary on 9/1/20. // Copyright © 2020 Mark O'Leary. All rights reserved. // import SwiftUI import AVFoundation struct ContentView: View { func playSpeech(word: String) { let utterance = AVSpeechUtterance(string: word) utterance.voice = AVSpeechSynthesisVoice(language: "en-US") utterance.rate = 0.3 utterance.pitchMultiplier = 0.9 let synth = AVSpeechSynthesizer() synth.speak(utterance) func speechSynth(_ synthesizer: AVSpeechSynthesizer, didStart utterance: AVSpeechUtterance) { } } @State var isPlayingGame = false @State var show = false @State var cardBackground = Color.white @State var targetEmojiKey = "?" @State var targetEmojiValue = "?" @State var randomEmojiValue1 = "?" @State var randomEmojiValue2 = "?" @State var randomEmojiKey1 = "" @State var randomEmojiKey2 = "" @State var lettersSpaced = "" @State var wordToBeSaid = "" @State var progressValue: Float = 0.0 let sourceEmojiDict = ["Dog": "🐶", "Cat": "😺", "Car": "🚗", "Guitar": "🎸", "Bowling" : "🎳", "Truck" : "🚚", "House" : "🏠", "Hammer" : "🔨", "Bed" : "🛏"] @State var emojiDict = ["Dog": "🐶", "Cat": "😺", "Car": "🚗", "Guitar": "🎸", "Bowling" : "🎳", "Truck" : "🚚", "House" : "🏠", "Hammer" : "🔨", "Bed" : "🛏"] func wordsToLetters(word: String) { lettersSpaced = word.map { "\($0)" }.joined(separator: "...") wordToBeSaid = word + "\n" + "\n" + lettersSpaced + "\n" + "\n" + word } func resetProgressBar() { if progressValue > 0.98 { progressValue = 0.0 } } func setGameCards() { self.cardBackground = Color.white let randomEmoji1 = emojiDict.randomElement() let removalKey1 = randomEmoji1!.key emojiDict[removalKey1] = nil let randomEmoji2 = self.emojiDict.randomElement() let removalKey2 = randomEmoji2!.key emojiDict[removalKey2] = nil let targetEmoji = self.emojiDict.randomElement() let removalKey = targetEmoji!.key emojiDict[removalKey] = nil self.randomEmojiValue1 = randomEmoji1!.value self.randomEmojiValue2 = randomEmoji2!.value self.targetEmojiValue = targetEmoji!.value self.targetEmojiKey = targetEmoji!.key self.randomEmojiKey1 = randomEmoji1!.key self.randomEmojiKey2 = randomEmoji2!.key } func resetGameState() { resetProgressBar() if emojiDict.count < 6 { emojiDict = sourceEmojiDict setGameCards() } else { setGameCards() } } var body: some View { ZStack { LinearGradient(gradient: Gradient(colors: [ColorManager.yellow, .white, ColorManager.yellow]), startPoint: .topLeading, endPoint: .bottomTrailing) .edgesIgnoringSafeArea(.all) VStack { // HStack { // Image(decorative: "emoji") // Image(decorative: "emojiBanner") // } // .padding() // .overlay(RoundedRectangle(cornerRadius: 16) // .stroke(Color.black, lineWidth: 3) // ) HStack { TopBanner() } if isPlayingGame { HStack { Spacer() CardView(targetEmoji: $targetEmojiKey, emojiKey: $targetEmojiKey, emojiValue: $targetEmojiValue, background: $cardBackground, progressAmount: $progressValue) CardView(targetEmoji: $targetEmojiKey, emojiKey: $randomEmojiKey1, emojiValue: $randomEmojiValue1, background: $cardBackground, progressAmount: $progressValue) CardView(targetEmoji: $targetEmojiKey, emojiKey: $randomEmojiKey2, emojiValue: $randomEmojiValue2, background: $cardBackground, progressAmount: $progressValue) Spacer() } } Spacer() Spacer() if isPlayingGame { ProgressBar(progress: self.$progressValue, progressBarText: self.$targetEmojiKey) .padding() } Spacer() if isPlayingGame { Button(action: { self.resetGameState() self.wordsToLetters(word: self.targetEmojiKey) self.playSpeech(word: self.wordToBeSaid) }) { Text("Play!") .fontWeight(.bold) .font(.title) .padding() .background(LinearGradient(gradient: Gradient(colors: [ColorManager.red, ColorManager.orange]), startPoint: .topLeading, endPoint: .bottomTrailing)) .cornerRadius(40) .foregroundColor(.white) .padding(10) } } Button(action: { self.isPlayingGame.toggle() }) { Text("Start/Pause") .fontWeight(.bold) .font(.title) .padding() .background(LinearGradient(gradient: Gradient(colors: [ColorManager.red, ColorManager.orange]), startPoint: .topLeading, endPoint: .bottomTrailing)) .cornerRadius(40) .foregroundColor(.white) .padding(10) // ) } }.frame(maxWidth: .infinity, maxHeight: .infinity) .padding() }.animation(.easeInOut(duration: 0.5)) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
f28879678ab6bc8d9d6167a159e19327da925426
e6ca8f8366ede252fe08269227f786c0e636e0d7
/test/IRGen/prespecialized-metadata/struct-inmodule-2argument-1distinct_use.swift
6410830c3b1734a37a554954acc68350cb0737b9
[ "Apache-2.0", "Swift-exception" ]
permissive
YOCKOW/swift
eee4dbc3648bf1437923ff5edf2914f927a43e02
edc003ac9278d7c45ca385a694cfba79db62fd2d
refs/heads/following-apple
2023-07-09T10:36:12.155367
2023-06-23T07:20:46
2023-06-23T07:20:46
146,248,754
0
0
Apache-2.0
2021-08-03T06:37:57
2018-08-27T04:58:49
C++
UTF-8
Swift
false
false
2,987
swift
// RUN: %swift %use_no_opaque_pointers -prespecialize-generic-metadata -target %module-target-future -emit-ir %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment // RUN: %swift -prespecialize-generic-metadata -target %module-target-future -emit-ir %s // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios // UNSUPPORTED: CPU=armv7 && OS=ios // UNSUPPORTED: CPU=armv7s && OS=ios // CHECK: @"$s4main5ValueVyS2iGWV" = linkonce_odr hidden constant %swift.vwtable { // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwCP{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwxx{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwcp{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwca{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwtk{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwta{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwet{{[^)]*}} to i8*) // CHECK-SAME: i8* bitcast ({{[^@]+}}@"$s4main5ValueVwst{{[^)]*}} to i8*) // CHECK-SAME: [[INT]] {{[0-9]+}}, // CHECK-SAME: [[INT]] {{[0-9]+}}, // CHECK-SAME: i32 {{[0-9]+}}, // CHECK-SAME: i32 {{[0-9]+}} // CHECK-SAME: }, // NOTE: ignore COMDAT on PE/COFF targets // CHECK-SAME: align [[ALIGNMENT]] // CHECK: @"$s4main5ValueVyS2iGMf" = linkonce_odr hidden constant {{.+}}$s4main5ValueVMn{{.+}} to %swift.type_descriptor*), %swift.type* @"$sSiN", %swift.type* @"$sSiN", i32 0, i32 [[ALIGNMENT]], i64 3 }>, align [[ALIGNMENT]] struct Value<First, Second> { let first: First let second: Second } @inline(never) func consume<T>(_ t: T) { withExtendedLifetime(t) { t in } } // CHECK: define hidden swiftcc void @"$s4main4doityyF"() #{{[0-9]+}} { // CHECK: call swiftcc void @"$s4main7consumeyyxlF"(%swift.opaque* noalias nocapture %{{[0-9]+}}, %swift.type* getelementptr inbounds (%swift.full_type, %swift.full_type* bitcast (<{ i8*, i8**, [[INT]], %swift.type_descriptor*, %swift.type*, %swift.type*, i32, i32, i64 }>* @"$s4main5ValueVyS2iGMf" to %swift.full_type*), i32 0, i32 2)) // CHECK: } func doit() { consume( Value(first: 13, second: 13) ) } doit() // CHECK: ; Function Attrs: noinline nounwind readnone // CHECK: define hidden swiftcc %swift.metadata_response @"$s4main5ValueVMa"([[INT]] %0, %swift.type* %1, %swift.type* %2) #{{[0-9]+}} {{(section)?.*}}{ // CHECK: entry: // CHECK: [[ERASED_TYPE_1:%[0-9]+]] = bitcast %swift.type* %1 to i8* // CHECK: [[ERASED_TYPE_2:%[0-9]+]] = bitcast %swift.type* %2 to i8* // CHECK: {{%[0-9]+}} = call swiftcc %swift.metadata_response @__swift_instantiateCanonicalPrespecializedGenericMetadata([[INT]] %0, i8* [[ERASED_TYPE_1]], i8* [[ERASED_TYPE_2]], i8* undef, %swift.type_descriptor* bitcast ({{.+}}$s4main5ValueVMn{{.+}} to %swift.type_descriptor*), [[INT]]* @"$s4main5ValueVMz") #{{[0-9]+}} // CHECK: ret %swift.metadata_response {{%[0-9]+}} // CHECK: }
[ 83840, 83873, 83787, 83819, 83836 ]
f3739d329dada1940c801ce90d70aec6ea7657e5
b52f3354bf5f1f497533915240480a368a8576df
/Swift/100 Days of SwiftUI/Project 6/Animations/Animations/ContentView.swift
9e8e70fad968296f4e66652399cefefc2a6f0721
[]
no_license
karnavr/swift
3f11a171f578752ee527cd4f8ed5f26cac4deb6a
bcd3e18cd32b2676fcb60693fc892e200782cc26
refs/heads/master
2023-05-08T05:32:49.420877
2021-06-03T18:36:52
2021-06-03T18:36:52
293,938,832
0
0
null
null
null
null
UTF-8
Swift
false
false
335
swift
// // ContentView.swift // Animations // // Created by Karnav Raval on 2021-06-03. // import SwiftUI struct ContentView: View { var body: some View { Text("Hello, world!") .padding() } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ 33292, 343054, 370198, 386582, 267800, 398870, 357409, 264739, 252964, 153638, 153644, 372271, 375348, 343100, 377406, 214591, 349760, 147012, 368710, 345165, 207441, 356437, 411736, 260702, 377438, 345188, 168045, 377982, 381568, 369287, 126601, 192656, 419473, 347284, 374935, 356504, 157851, 274083, 176806, 337594, 325307, 384701, 374977, 333510, 204999, 356551, 333514, 379094, 327382, 352984, 370394, 359645, 379103, 355043, 264933, 66799, 369905, 391944, 108814, 108815, 108816, 326415, 108818, 263442, 260372, 345880, 369946, 66845, 378669, 353585, 307506, 180531, 348981, 418108, 372030, 420678, 323401, 272204, 353614, 391504, 409936, 378198, 397150, 397151, 385889, 243042, 357220, 359786, 207725, 213357, 361325, 276339, 24462, 256912, 337812, 341916, 254374, 412588, 372654, 223152, 342451, 375227, 208320, 362436, 393669, 373194, 208332, 357838, 420816, 208339, 212948, 425429, 208343, 398298, 194525, 98787, 219117, 359928, 162298, 360956 ]
1b1c5eb7e793533d21fc7979fbae6d8a89893621
4d99b9022e8a8b2d276a2b3bbdd1500d070caf46
/BlurApp/BlurApp/SceneDelegate.swift
bede1b1893cf4240227fe0fee12482bd4089f2fc
[]
no_license
KuTab/IOS_NIS
abb3ccdf9ae3b2533249780025df6bcda0b9ca9b
2a5d25b43cd6892b0bc4b9ed9198a589fe18e135
refs/heads/main
2023-04-01T15:20:29.307386
2021-03-30T15:34:11
2021-03-30T15:34:11
317,342,246
0
0
null
null
null
null
UTF-8
Swift
false
false
2,292
swift
// // SceneDelegate.swift // BlurApp // // Created by Egor Dadugin on 01.02.2021. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let _ = (scene as? UIWindowScene) else { return } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 393221, 163849, 393228, 393231, 393251, 352294, 344103, 393260, 393269, 213049, 376890, 385082, 393277, 376906, 327757, 254032, 368728, 180314, 254045, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 377047, 418008, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 385281, 336129, 262405, 180491, 164107, 336140, 262417, 368913, 262423, 377118, 377121, 262437, 254253, 336181, 262455, 393539, 262473, 344404, 213333, 418135, 262497, 418145, 262501, 213354, 246124, 262508, 262512, 213374, 385420, 393613, 262551, 262553, 385441, 385444, 262567, 385452, 262574, 393649, 385460, 262587, 344512, 262593, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 164362, 328207, 410129, 393748, 262679, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 385610, 270922, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 385671, 148106, 213642, 377485, 352919, 98969, 344745, 361130, 336556, 385714, 434868, 164535, 336568, 328379, 164539, 328387, 352969, 344777, 385743, 385749, 139998, 189154, 369382, 361196, 418555, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 369439, 418591, 262943, 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, 386102, 361537, 377931, 345172, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 386168, 410746, 361594, 214150, 345224, 386187, 345247, 361645, 345268, 402615, 361657, 337093, 402636, 328925, 165086, 66783, 222438, 386286, 328942, 386292, 206084, 345377, 353572, 345380, 345383, 263464, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 271731, 378232, 337278, 271746, 181639, 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, 206397, 214594, 419401, 419404, 353868, 419408, 214611, 419412, 403040, 345702, 222831, 370298, 353920, 403073, 403076, 345737, 198282, 403085, 403092, 345750, 419484, 345758, 345763, 419492, 419498, 419502, 370351, 419507, 337588, 419510, 419513, 419518, 337601, 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, 354132, 337751, 247639, 370520, 313181, 354143, 354157, 345965, 345968, 345971, 345975, 403321, 1914, 354173, 247692, 395148, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 346059, 346064, 247760, 346069, 419810, 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, 387314, 436474, 321787, 379135, 411905, 411917, 379154, 395539, 387350, 387353, 338201, 182559, 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, 191085, 338544, 346736, 191093, 346743, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 355029, 273109, 264919, 256735, 338661, 264942, 363252, 338680, 264965, 338701, 256787, 363294, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 355151, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 355185, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 347106, 437219, 257009, 265208, 265215, 199681, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 248952, 420985, 330886, 330890, 347288, 248986, 44199, 380071, 339118, 339133, 126148, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 388348, 339199, 396552, 175376, 175397, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 126279, 437576, 437584, 331089, 437588, 331094, 396634, 175451, 437596, 429408, 175458, 175461, 175464, 265581, 175478, 249210, 175484, 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, 339504, 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, 339664, 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, 413539, 225128, 257897, 339818, 225138, 339827, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 372698, 372704, 372707, 356336, 380919, 372739, 405534, 266295, 266298, 217158, 421961, 200786, 356440, 217180, 430181, 266351, 356467, 266365, 192640, 266375, 381069, 225425, 250003, 225430, 250008, 356507, 225439, 135328, 225442, 438434, 225445, 438438, 225448, 438441, 356521, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 430275, 389322, 225485, 225488, 225491, 266454, 225494, 225497, 225500, 225503, 225506, 356580, 225511, 217319, 225515, 225519, 381177, 397572, 389381, 381212, 356638, 356641, 356644, 356647, 266537, 356650, 389417, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 250201, 250203, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 332162, 389507, 348548, 356741, 250239, 332175, 160152, 373146, 340380, 373149, 70048, 356783, 373169, 266688, 324032, 201158, 340452, 127473, 217590, 340473, 324095, 324100, 324103, 324112, 340501, 324118, 324122, 340512, 332325, 324134, 381483, 356908, 324141, 324143, 356917, 324150, 324156, 168509, 348734, 324161, 324165, 356935, 381513, 348745, 324171, 324174, 324177, 389724, 332381, 373344, 340580, 348777, 381546, 119432, 340628, 184983, 373399, 258723, 332460, 389806, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 155647, 373499, 348926, 389927, 348979, 152371, 348983, 340792, 398141, 357202, 389971, 357208, 389979, 430940, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 381815, 430967, 324473, 398202, 119675, 324476, 430973, 340859, 340863, 324479, 324482, 373635, 324485, 324488, 185226, 381834, 324493, 324496, 324499, 430996, 324502, 324511, 422817, 324514, 201638, 398246, 373672, 324525, 5040, 111539, 324534, 5047, 324539, 324542, 398280, 349129, 340940, 340942, 209874, 340958, 431073, 398307, 340964, 209896, 201712, 209904, 349173, 381947, 201724, 431100, 349181, 431107, 349203, 209944, 209948, 357411, 250915, 250917, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 209996, 431180, 341072, 349268, 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, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 210261, 365912, 259423, 374113, 251236, 374118, 333164, 234867, 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, 349762, 333396, 374359, 333400, 366173, 423529, 423533, 210547, 415354, 333440, 267910, 333512, 259789, 366301, 333535, 153311, 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, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 358256, 268144, 358260, 341877, 399222, 325494, 333690, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 382898, 350153, 358348, 333777, 219094, 399318, 358372, 350190, 350194, 333819, 350204, 350207, 325633, 325637, 350214, 219144, 268299, 333838, 350225, 186388, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350257, 350260, 350272, 243782, 350281, 350286, 374865, 342113, 252021, 342134, 374904, 268435, 333998, 334012, 260299, 350411, 350417, 350423, 211161, 350426, 350449, 358645, 350459, 350462, 350465, 350469, 268553, 350477, 268560, 350481, 432406, 350487, 325915, 350491, 325918, 350494, 325920, 350500, 194854, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 366991, 334224, 268702, 342431, 375209, 375220, 334263, 326087, 358857, 195041, 334312, 104940, 375279, 416255, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 358973, 252483, 219719, 399957, 334425, 326240, 375401, 334466, 334469, 391813, 162446, 326291, 342680, 342685, 260767, 342711, 244410, 260798, 260802, 350918, 154318, 342737, 391895, 154329, 416476, 64231, 113389, 342769, 203508, 375541, 342777, 391938, 391949, 375569, 326417, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 260925, 375616, 326463, 326468, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 433001, 400238, 326511, 211826, 211832, 392061, 351102, 359296, 252801, 260993, 351105, 400260, 211846, 342921, 342931, 400279, 252823, 392092, 400286, 252838, 359335, 211885, 252846, 400307, 351169, 359362, 351172, 170950, 359367, 326599, 187335, 359383, 359389, 383968, 343018, 359411, 261109, 244728, 261112, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 359471, 375868, 343132, 384099, 384102, 384108, 367724, 187503, 343155, 384115, 212095, 351366, 384136, 384140, 384144, 351382, 384152, 384158, 384161, 351399, 384169, 367795, 244917, 384182, 367801, 384189, 351424, 384192, 343232, 367817, 244938, 384202, 253132, 326858, 384209, 146644, 351450, 384225, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 261391, 359695, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 376111, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 367981, 343410, 155000, 327035, 245121, 245128, 253321, 155021, 384398, 245137, 245143, 245146, 245149, 343453, 245152, 245155, 155045, 245158, 40358, 245163, 114093, 327090, 343478, 359867, 384444, 146878, 327108, 327112, 384457, 359887, 359891, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 253445, 359948, 359951, 245295, 359984, 343610, 400977, 400982, 179803, 155241, 245358, 155255, 155274, 368289, 245410, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 384831, 360262, 155463, 155477, 376665, 155484, 261982, 425823, 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, 311244, 393170, 155604, 155620, 253924, 155622, 327655, 253927, 360432, 393204, 360439, 253944, 393209, 393215 ]
4f7cb7702ad288eb565d5306b1ad66d5ecaaf417
213c98d3a9a138c54dca8a6ae34238e056223b9f
/Tetris/engine/events/GameStatusListener.swift
2bc1edca073ce41edb33b238893a039a080cd9e6
[]
no_license
pavelmaca/jcu-swift-tetris
b3ad6916730720883caba399eee90b74dd0d3848
c1d33d0a5532371b6fa9aedd7e6f58b357aba27c
refs/heads/master
2021-01-12T07:49:55.265349
2017-01-17T14:15:05
2017-01-17T14:15:05
77,036,758
0
0
null
null
null
null
UTF-8
Swift
false
false
494
swift
/** * Rozhraní popisujíco dostupné herní události * * @author Pavel Máca <[email protected]> */ public protocol GameStatusListener { /** * Událost reprezentující změnu skóre * * @param score aktuální skóre */ func scoreChange(score:Int); /** * Událost reprezentující konec hry */ func gameEnd(); /** * Událost reprezentující změnu aktuálního tvaru */ func shapeChange(); }
[ -1 ]
7e2afb909ee9a088cde38301987187448feae983
4c969599cf6acd020f432fb0595f636beb53ffd9
/DemoProjects/CoreDataDemos/Core_Data_by_Tutorials_Source_Code_v3.0/07-unit-testing/starter/CampgroundManager/Camper.swift
19a36d6aec89230c6cb5aef44e2a4c11525d7a7b
[]
no_license
Alex1989Wang/Demos
bfb285c6203978dd9c01f44b275c4d1ea6e83ea2
b953e69aeaf6fc97d4bab9e5222faaab76cbf8da
refs/heads/master
2021-06-25T13:22:35.342167
2021-01-22T01:42:12
2021-01-22T01:42:12
64,460,209
1
0
null
null
null
null
UTF-8
Swift
false
false
1,284
swift
/** * Copyright (c) 2016 Razeware LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * 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 import CoreData @objc(Camper) public class Camper: NSManagedObject { // Insert code here to add functionality to your managed object subclass }
[ -1 ]
3cd29bad481f00d9b801e6b22427286e0c292079
353e5124989d1370259777b671c171dbc9abbdb5
/AlZehraIslamicCenter/Menu/View/AZMenuItemCollectionViewCell.swift
508d1e8b43227cf57d01c9a2675b973a89301fa9
[]
no_license
shabi/AlZehraIslamicCenter
57833ab188c22fae83f0e5a74922e99da1628a71
4d4f157398eedcb97a193446455738c1e41a3a4c
refs/heads/master
2020-03-11T14:30:00.004371
2018-04-18T12:16:23
2018-04-18T12:16:23
130,056,440
0
0
null
null
null
null
UTF-8
Swift
false
false
401
swift
// // AZMenuItemCollectionViewCell.swift // AlZehraIslamicCenter // // Created by Shabi on 23/09/17. // Copyright © 2017 Shabi. All rights reserved. // import UIKit class AZMenuItemCollectionViewCell: UICollectionViewCell { @IBOutlet weak var menuIconImageView: UIImageView! @IBOutlet weak var menuLabel: UILabel! override func awakeFromNib() { super.awakeFromNib() } }
[ -1 ]
a41d2364773aa274ff7faa6c909823a9f3d33bf4
b0292c0005a2ae88dfa79a8752a509a7f47ba021
/demo1/View/ReleaseSettingCell.swift
4ff0a5c5624a3d65374fc3b0edf561a5e8faf970
[]
no_license
Currie-NGUYEN/DemoProject
5105d94d87caf938a92a65dedd900c76f7e1ba22
72d78e5445f8816dff037b1c9761345bef849e51
refs/heads/master
2022-07-02T07:06:22.279010
2020-05-15T02:05:52
2020-05-15T02:05:52
256,142,852
0
0
null
null
null
null
UTF-8
Swift
false
false
573
swift
// // ReleaseSettingCell.swift // demo1 // // Created by Currie on 4/15/20. // Copyright © 2020 Currie. All rights reserved. // import UIKit class ReleaseSettingCell: UITableViewCell { @IBOutlet weak var label: UILabel! @IBOutlet weak var yearButton: UIButton! override func awakeFromNib() { super.awakeFromNib() // Initialization code } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }
[ 320001, 337412, 227845, 333831, 227849, 227852, 333837, 372750, 372753, 196114, 372754, 327190, 328214, 287258, 370207, 243746, 287266, 281636, 327224, 327225, 307277, 327248, 235604, 235611, 213095, 213097, 310894, 213109, 148600, 403068, 410751, 300672, 373913, 148637, 148638, 276639, 148648, 300206, 361651, 327360, 223437, 291544, 306907, 337627, 176358, 271087, 325874, 338682, 276746, 276756, 203542, 261406, 349470, 396065, 111912, 369458, 369461, 282934, 342850, 342851, 151881, 430412, 283471, 283472, 270679, 287067, 350050, 270691, 257898, 330602, 179568, 317296, 317302, 244600, 179578, 179580, 211843, 213891, 36743, 209803, 211370, 288690, 281014, 317380, 430546, 430547, 180695, 180696, 284131, 344039, 196076, 310778, 305661 ]
c1cc1d0e89da9a7bc8261a5efa93acfaa0332bdc
9b7d9ee6ac81bef493fec29cc0fb7691fecd0f99
/VersionDashboardUITests/SummaryViewControllerUITests.swift
5769b38d366432ca3f7abc67695f986188b9591e
[]
no_license
chrisschnei/VersionDashboard
aa960033a111b43a274415fe5294c0845d0205dd
b31446a10178defde1eb68cdf074516cc78f89a9
refs/heads/master
2022-01-02T06:29:39.616209
2021-12-28T19:42:46
2021-12-28T19:42:46
173,984,397
0
0
null
null
null
null
UTF-8
Swift
false
false
1,132
swift
// // SummaryViewControllerUITests.swift // VersionDashboardUITests // // Created by Christian Schneider on 10.02.16. // Copyright © 2016 NonameCompany. All rights reserved. // import XCTest class SummaryViewControllerUITests: XCTestCase { override func setUp() { super.setUp() continueAfterFailure = false XCUIApplication().launch() } override func tearDown() { super.tearDown() } func testViewDidLoad() { let app = XCUIApplication() let versionDashboardWindow = app.windows["Version Dashboard"] versionDashboardWindow.toolbars.buttons["Summary"].click() XCTAssert(versionDashboardWindow/*@START_MENU_TOKEN@*/.buttons["CheckAllInstancesButton"]/*[[".buttons[\"Check all instances\"]",".buttons[\"CheckAllInstancesButton\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.isEnabled) XCTAssert(versionDashboardWindow/*@START_MENU_TOKEN@*/.buttons["CheckAllInstancesButton"]/*[[".buttons[\"Check all instances\"]",".buttons[\"CheckAllInstancesButton\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.isHittable) } }
[ -1 ]
bb2430713f3309abff493e71b6d310db78872e85
cbff40d15ac668ee5e5d8f6b26afa23ccd6d2a1c
/Sources/Models/MessageData.swift
2f25b49c28bad13992722891fafa4f5370986871
[ "MIT" ]
permissive
TobiasRe/MessageKit
bc1d8af32234744ee8c75c7f581bf7d13dea3a6a
e785740fc05f2d60db83199f20be48482450a87c
refs/heads/master
2021-09-04T14:07:18.845061
2018-01-19T09:54:51
2018-01-19T09:54:51
115,507,143
0
0
null
2017-12-27T09:54:18
2017-12-27T09:54:17
null
UTF-8
Swift
false
false
2,155
swift
/* MIT License Copyright (c) 2017-2018 MessageKit 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 import class CoreLocation.CLLocation /// An enum representing the kind of message and its underlying data. public enum MessageData { /// A standard text message. /// /// NOTE: The font used for this message will be the value of the /// `messageLabelFont` property in the `MessagesCollectionViewFlowLayout` object. /// /// Tip: Using `MessageData.attributedText(NSAttributedString)` doesn't require you /// to set this property and results in higher performance. case text(String) /// A message with attributed text. case attributedText(NSAttributedString) /// A photo message. case photo(UIImage) /// A video message. case video(file: URL, thumbnail: UIImage) /// A location message. case location(CLLocation) /// An emoji message. case emoji(String) /// A custom message. case custom(Any) // MARK: - Not supported yet // case audio(Data) // // case system(String) // // case custom(Any) // // case placeholder }
[ 303567 ]
928fb8b42c1e47bdb5e8be318a90404ef47fd904
466fe4e6b9c5a982ffd6bdc5388621b17a03bc4a
/GoraTest/AppDelegate.swift
00b52eac79b5b08bf1a14b698d55ffd656f90023
[]
no_license
zagizik/GoraTest
49918ccf47b9c022eea62e4f2749822da3079864
091b063a3c780afc4c78abb120b8490019f7b8dc
refs/heads/main
2023-05-27T02:15:35.474362
2021-06-11T17:17:12
2021-06-11T17:17:12
376,097,004
0
0
null
null
null
null
UTF-8
Swift
false
false
1,373
swift
// // AppDelegate.swift // GoraTest // // Created by Александр Банников on 10.06.2021. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 327756, 254030, 286800, 368727, 180313, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 327871, 180416, 377036, 180431, 377046, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 336128, 385280, 262404, 180490, 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, 410128, 393747, 254490, 188958, 385570, 33316, 197159, 377383, 352821, 188987, 418363, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 164538, 328378, 328386, 352968, 344776, 418507, 352971, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 344831, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 361288, 336711, 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, 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, 345701, 394853, 222830, 370297, 403070, 353919, 403075, 345736, 198280, 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, 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, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 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, 330189, 338381, 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, 330642, 355218, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 158761, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 339036, 412764, 257120, 265320, 248951, 420984, 330889, 347287, 339097, 248985, 44197, 380070, 339112, 249014, 126144, 330958, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 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, 249308, 339420, 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, 224897, 372353, 216707, 126596, 421508, 224904, 224909, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 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, 257896, 274280, 257901, 225137, 339826, 257908, 225141, 257912, 257916, 225148, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 266294, 266297, 421960, 356439, 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, 332106, 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, 324139, 356907, 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, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 152370, 348978, 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, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 349172, 381946, 349180, 439294, 431106, 250914, 357410, 185380, 357418, 209965, 209968, 209975, 209979, 209987, 341071, 349267, 250967, 210010, 341091, 210025, 210027, 210030, 210036, 210039, 349308, 349311, 160895, 152703, 210052, 349319, 210055, 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, 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, 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, 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, 325891, 350467, 350475, 268559, 350480, 432405, 350486, 325914, 350490, 325917, 350493, 350498, 350504, 358700, 350509, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 334304, 334311, 375277, 334321, 350723, 186897, 342545, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 383536, 358961, 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, 326460, 244540, 375612, 260924, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 384107, 367723, 187502, 384114, 343154, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 384191, 351423, 384198, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 384249, 343306, 261389, 359694, 253200, 261393, 384275, 245020, 245029, 171302, 351534, 376110, 245040, 384314, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 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, 327275, 245357, 138864, 155254, 155273, 368288, 245409, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 245475, 245483, 155371, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 417595, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 262005, 147317, 425845, 262008, 262011, 155516, 155521, 155525, 360326, 376714, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 393169, 384977, 155611, 155619, 253923, 155621, 253926, 327654, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
7704453c18697886b7f914f10342de420c9808f1
c76b21ce187255f41efeeb63e5fd6b697873d093
/Hello World/Hello World/ViewController.swift
d033e4c71a51e4f409a15deb65ca435c0c62fc4c
[]
no_license
hanernlee/iOSFiddle
fef4625a0c22e27e1d424e66ff4fa5255013b135
d1081bd4d504c574a11f10567e9e0823a692008c
refs/heads/master
2018-10-22T18:14:27.388715
2018-07-31T14:45:16
2018-07-31T14:45:16
104,531,598
0
1
null
null
null
null
UTF-8
Swift
false
false
516
swift
// // ViewController.swift // Hello World // // Created by Christopher Lee on 23/9/17. // Copyright © 2017 Christopher Lee. 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. } }
[ 293888, 296451, 277508, 279046, 287243, 278543, 234511, 290322, 290323, 281107, 236057, 286234, 282145, 294433, 295460, 289318, 296487, 286249, 293418, 300086, 234551, 237624, 286775, 300089, 288827, 226878, 277057, 286786, 129604, 284740, 159812, 226887, 293961, 243786, 300107, 158285, 226896, 212561, 228945, 300116, 237655, 307288, 212573, 200802, 284261, 309353, 311913, 356460, 164974, 307311, 281202, 300149, 287350, 189557, 281205, 292990, 284287, 292478, 278657, 280710, 303242, 285837, 311437, 234641, 278675, 282262, 280219, 284315, 284317, 299165, 285855, 302235, 225955, 282275, 278693, 287399, 326311, 100521, 234665, 284328, 284336, 302256, 307379, 276150, 280760, 282301, 299709, 283839, 277696, 285377, 280770, 199365, 228551, 284361, 287437, 313550, 298189, 229585, 307410, 280790, 189655, 282329, 363743, 278752, 298211, 290020, 291556, 284391, 277224, 228585, 304368, 312049, 289524, 288501, 234232, 280824, 282365, 286462, 276736, 230147, 358147, 177417, 299786, 312586, 295696, 300817, 282389, 296216, 369434, 329499, 281373, 228127, 287007, 315170, 152356, 282917, 304933, 234279, 283433, 289578, 282411, 293682, 176436, 285495, 289596, 279360, 289600, 288579, 293700, 238920, 234829, 287055, 295766, 233817, 298842, 241499, 298843, 188253, 311645, 308064, 296811, 296813, 293742, 299374, 199024, 276849, 315250, 162672, 216433, 278897, 207738, 292730, 291709, 275842, 224643, 313733, 183173, 324491, 234380, 304015, 310673, 306577, 279442, 306578, 227740, 275358, 285087, 289697, 234402, 283556, 288165, 284586, 144811, 291755, 289196, 370093, 277935, 324528, 282548, 292277, 296374, 130487, 234423, 289204, 281530, 298936, 230328, 293308, 291774, 295874, 299973, 296901, 165832, 289224, 306633, 288205, 280015, 301012, 301016, 280028, 280029, 280030, 168936, 294889, 286189, 183278, 277487, 282095, 298989, 308721, 227315, 237556, 296436, 293874, 287231 ]
ddb2635c985d249c27ba84f758c866c4bd1b96b9
4d2202100f944c7bb8eda8cbaecce71fcfbd0aea
/Culinary/API/InfoUser/Models/Chats/ChatReplie.swift
67d63a4590e8ab2a145e3df46ce77f669f0ca7ff
[]
no_license
snazarovone/Culinarium
db8193711ad8bc2f4fd48a881ed6ff6a75323a44
43be43eef64351c38e00fd974671baa8c31fdc4a
refs/heads/master
2022-11-19T01:02:08.120538
2020-07-24T18:42:51
2020-07-24T18:42:51
282,286,827
2
0
null
null
null
null
UTF-8
Swift
false
false
1,013
swift
// // ChatReplie.swift // Culinary // // Created by Sergey Nazarov on 29.02.2020. // Copyright © 2020 Sergey Nazarov. All rights reserved. // import Foundation import ObjectMapper class ChatReplie: Mappable{ var id: Int? var conversation_id: Int? var reply: String? var user_id: Int? private var statusValue: Int? var status: MessageStatus = .unread var date: String? var time: String? var user: UserInfo? var images: [ChatImage]? required init?(map: Map) { } func mapping(map: Map) { id <- map["id"] conversation_id <- map["conversation_id"] reply <- map["reply"] user_id <- map["user_id"] statusValue <- map["status"] date <- map["date"] time <- map["time"] user <- map["user"] images <- map["images"] if let statusValue = statusValue, statusValue == 1{ status = .read }else{ status = .unread } } }
[ -1 ]
5a69a8549c16e7e48124942ab4e8efcd255abe2c
e1fbca350d8b03c44f1713e23f4ee4f01e494485
/Peter's Project/Master View/Tab Bar Views/Tab View D/TabViewDViewController.swift
12bbc63d9233dc702a813147bfb6fb4958f6dfd6
[]
no_license
PeterSirany/Peter-s-Project
165ea6d4a692f071ea806edd78b81aeaa64274dc
ee95923214cf3bf9abfcc9cc0223852d4bc84790
refs/heads/master
2020-06-19T01:05:46.573267
2019-07-12T05:35:46
2019-07-12T05:35:46
194,847,648
0
0
null
null
null
null
UTF-8
Swift
false
false
792
swift
// // TabViewDViewController.swift // Peter's Project // // Created by Peter Sirany on 6/28/19. // Copyright © 2019 Peter Sirany. All rights reserved. // import UIKit class TabViewDViewController: UIViewController { // MARK: - Outlets // MARK: - Properties // MARK: - Init override func viewDidLoad() { super.viewDidLoad() } // MARK: - Handlers /* // 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 ]
cb4614060367c9e960a85140ba32709446c4cdf6
bf769fcd96d12b5a9c6f39d2b16b58ff21b3f15f
/Rocket launch .playground/Contents.swift
027243b2499f9db83ea137dc66aa93ec2abd3279
[]
no_license
AlexMelnichenko/Rocket-launch-
0b95c29559139312a3ed6efc20a5f8607e3d7af5
21d36f3633bbd2bbd9036933a4cf4e141cff0bcf
refs/heads/master
2021-05-06T21:35:43.486042
2017-11-30T14:52:50
2017-11-30T14:52:50
112,621,781
0
0
null
null
null
null
UTF-8
Swift
false
false
4,510
swift
struct RocketConfiguration { let name: String = "Athena 9 Heavy" let numberOfFirstStageCores: Int = 3 let numberOfSecondStageCores: Int = 1 let numberOfStageReuseLandingLegs: Int? = nil } let athena9Heavy = RocketConfiguration() struct RocketStageConfiguration{ let propellantMass: Double let liquidOxygenMass: Double let nominalBurnTime: Int } extension RocketStageConfiguration{ init(propellantMass: Double, liquidOxygenMass: Double) { self.propellantMass = propellantMass self.liquidOxygenMass = liquidOxygenMass self.nominalBurnTime = 180 } } let stageOneConfiguration = RocketStageConfiguration(propellantMass: 119.1, liquidOxygenMass: 276.0, nominalBurnTime: 180) let stageTwoConfiguration = RocketStageConfiguration(propellantMass: 119.1, liquidOxygenMass: 276.0) struct Wather { let temperatureCelsius: Double let windSpeedKilometersPerHour: Double init(temperatureFahrenheit: Double = 72, windSpeedMilesPerHour: Double = 5 ) { self.temperatureCelsius = (temperatureFahrenheit - 32) / 1.8 self.windSpeedKilometersPerHour = windSpeedMilesPerHour * 1.609344 } } Wather() Wather(temperatureFahrenheit: 60, windSpeedMilesPerHour: 62) let currentWther = Wather() currentWther.temperatureCelsius currentWther.windSpeedKilometersPerHour struct GuidenceSensorStatus{ var currentZAngularVelocityRadiansPerMinute: Double let initialZAngularVelocityRadiansPerMinute: Double var needsCorrection: Bool init(zAngularVelocityDegreesPerMinute: Double, needsCorrection: Bool = false) { let radiansPerMinute = zAngularVelocityDegreesPerMinute * 0.01745329251994 self.currentZAngularVelocityRadiansPerMinute = radiansPerMinute self.initialZAngularVelocityRadiansPerMinute = radiansPerMinute self.needsCorrection = needsCorrection } // delegating initializer init(zAngularVelocityDegreesPerMinute: Double, needsCorrection: Int) { self.init(zAngularVelocityDegreesPerMinute: zAngularVelocityDegreesPerMinute, needsCorrection: (needsCorrection > 0)) } } let guidanceStatus = GuidenceSensorStatus(zAngularVelocityDegreesPerMinute: 2.2) guidanceStatus.currentZAngularVelocityRadiansPerMinute guidanceStatus.initialZAngularVelocityRadiansPerMinute guidanceStatus.needsCorrection // Two-phase initialization in action struct CombustionChamberStatus{ var temperatureKelvin: Double var pressureKiloPascals: Double init(temperatureKelvin: Double, pressureKiloPascals: Double) { print("Phase 1 init") self.temperatureKelvin = temperatureKelvin self.pressureKiloPascals = pressureKiloPascals print("CombustionChamberStatus fully initialized") print("Phase 2 init") } init(temperatureCelsius: Double, pressureAtmospheric: Double) { print("Phase 1 delegating init") let temperatureKelvin = temperatureCelsius + 273.15 let pressureKiloPascals = pressureAtmospheric * 101.325 self.init(temperatureKelvin: temperatureKelvin, pressureKiloPascals: pressureKiloPascals) print("Phase 2 delegating init") } } CombustionChamberStatus(temperatureCelsius: 32, pressureAtmospheric: 0.96) // Using Failed Initializers struct TankStatus { var currentVolume: Double var currentLiquidType: String? init?(currentVolume: Double, currentLiquidType: String?) { if currentVolume < 0 { return nil } if currentVolume > 0 && currentLiquidType == nil { return nil } self.currentVolume = currentVolume self.currentLiquidType = currentLiquidType } } if let tankStatus = TankStatus(currentVolume: 0.0, currentLiquidType: nil) { print("Nice, tank status created.") // Printed! } else { print("Oh no, an initialization failure occurred.") } // Dropping from the initializer (generating an error) enum InvalidAstronautDataError: Error { case EmptyName case InvalidAge } struct Astronaut { let name: String let age: Int init(name: String, age: Int) throws { if name.isEmpty { throw InvalidAstronautDataError.EmptyName } if age < 18 || age > 70 { throw InvalidAstronautDataError.InvalidAge } self.name = name self.age = age } } let johnny = try? Astronaut(name: "Johnny Cosmoseed", age: 44)
[ -1 ]
d67ac54120e8ae9b0c772a896c9615a247ddcc0a
e3f64def8cd238362ca42e58fc9b6835af61e20d
/CoDeli/CoDeli/Views/SignInView.swift
ef100d8f1e6a22b72cb26208dd40a817c54aceab
[]
no_license
Capstone-2-2021-1/CoDeli-iOS-app
11a8c0322987eec242e0287c508a85bf2836ff09
910c0dccd758753b42ab7047d2ac15e5d83db53a
refs/heads/main
2023-06-30T08:09:52.173478
2021-08-04T13:10:20
2021-08-04T13:10:20
356,554,051
0
0
null
null
null
null
UTF-8
Swift
false
false
1,324
swift
// // SignInView.swift // CoDeli // // Created by Changsung Lim on 4/10/21. // import SwiftUI import Firebase import GoogleSignIn struct SignInView: View { @State private var username: String = "" @State private var password: String = "" @State private var isEditing = false var body: some View { VStack(alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/, spacing: 50, content: { Image("logo_title") .resizable() .aspectRatio(contentMode: .fill) .frame(width: 400, height: 300, alignment: .center) // Google Login Button Button(action: { GIDSignIn.sharedInstance()?.presentingViewController = UIApplication.shared.windows.first?.rootViewController GIDSignIn.sharedInstance()?.signIn() }) { Text(" 구글 계정으로 로그인 ") .foregroundColor(.white) .fontWeight(.bold) .padding(.vertical, 10) .padding(.horizontal, 45) .background(Color.blue) .clipShape(Capsule()) } }) } } struct SignInView_Previews: PreviewProvider { static var previews: some View { SignInView() } }
[ -1 ]
745c329d6187ee8661a162bcdb2298a588074a55
c934328dc099af199f836d645d93298d5a2ce59c
/VideoPlayer/Controller/LoadingViewController.swift
0402d1d44ac3cc0ab241a96634abec7af1efb65c
[]
no_license
ruslan-khalitov/nplayer
fec89a12e2cac68ff2e94e312a512403ae37ea66
0e50176e686ecb7f7b0703a32364598b826f9965
refs/heads/master
2022-04-10T14:17:07.989590
2020-02-07T00:56:02
2020-02-07T00:56:02
null
0
0
null
null
null
null
UTF-8
Swift
false
false
795
swift
// // LoadingViewController.swift // VideoPlayer // // Created by kiwan on 2019/11/29. // Copyright © 2019 kiwan. All rights reserved. // import UIKit import NVActivityIndicatorView class LoadingViewController: UIViewController { @IBOutlet weak var indicatorView: NVActivityIndicatorView! override func viewDidLoad() { super.viewDidLoad() self.indicatorView.startAnimating() } /* // 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 ]
000b9bdee941ab0ff9325405b4043c4c6f5c3159
12e7f2e8b7753e03de5de1f3da00dbeaf28a9630
/NestingCollection/ProductModel.swift
1d0efde77dd5eeb9a32816d12883e72b371edcfa
[]
no_license
billibala/NestingCollectionView
4cacc09fbc7e2addcd8cdb550663ab6db653cee8
2f258b168eb2909fa1293e79f9a6971bd354a7d2
refs/heads/master
2020-05-29T14:39:39.821004
2016-08-05T19:42:07
2016-08-05T19:42:07
65,044,075
0
0
null
null
null
null
UTF-8
Swift
false
false
480
swift
// // ProductModel.swift // NestingCollection // // Created by Bill So on 8/5/16. // Copyright © 2016 Headnix. All rights reserved. // import Foundation struct Product { let name: String let ID: Int } class ProductUtility { static func randomGenerate(numberOf count: Int) -> [Product] { var products: [Product] = [] for _ in 0..<count { let randID = Int(arc4random()) products.append(Product(name: "Product \(randID)", ID: randID)) } return products } }
[ -1 ]
aba123eb25975f04df7398df4cf2c596e2aea1d8
04006f0b590411bb985e82ab2c87d1050ecf5cb2
/Rise of Resistance/Game Over/GameOver.swift
9e277f7665cacbfb855fd1f47c863b120ba0d3c8
[]
no_license
SarahTamayao/Rise-of-Resistance
3f4b0361c930be1c10a33547c8954c9ce9208b8e
f99463789b90a3acc47474d2de1f54c0c404b0eb
refs/heads/master
2023-08-16T05:45:26.149244
2021-10-15T15:15:11
2021-10-15T15:15:11
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,054
swift
// // GameOver.swift // Rise of Resistance // // Created by Hung Phan on 3/9/20. // Copyright © 2020 Hung Phan. All rights reserved. // import SpriteKit class GameOver: SKScene { var gameOverScore : Int = 0 var scoreLabel : SKLabelNode! var gameSceneZot : Bool = false override func didMove(to view: SKView) { self.backgroundColor = SKColor.black let spaceBackground = SKEmitterNode(fileNamed: "SpaceBackground.sks") spaceBackground?.position = CGPoint(x: 0, y: self.frame.size.height) spaceBackground?.zPosition = -20 spaceBackground?.advanceSimulationTime(Double(spaceBackground!.particleLifetime)) self.addChild(spaceBackground!) scoreLabel = self.childNode(withName: "scoreLabel") as! SKLabelNode scoreLabel.text = "\(gameOverScore)" } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { let touch = touches.first if let location = touch?.location(in: self) { let nodesArray = self.nodes(at: location) if nodesArray.first?.name == "newGameBtn" { if gameSceneZot { let transition = SKTransition.flipVertical(withDuration: 0.5) let gameScene = GameSceneZot(size: self.size) self.view?.presentScene(gameScene, transition: transition) } else { let transition = SKTransition.flipVertical(withDuration: 0.5) let gameScene = GameScene(size: self.size) self.view?.presentScene(gameScene, transition: transition) } } else if nodesArray.first?.name == "mainMenuBtn" { let transition = SKTransition.flipVertical(withDuration: 0.5) let menuScene = MenuScene(fileNamed: "MenuScene") self.view?.presentScene(menuScene!, transition: transition) } } } }
[ -1 ]
97b2368dd81c64edd8ee789fba6ad48b0cb8f004
4b9898246eb20bfa990058d69b5b48d7f0b027a2
/WeatherAppSwiftUI/Views/Detail/DetailView.swift
f88dc2f819f1e82c8cff87ba635300aa4786680e
[]
no_license
UrbanErrorist/Weather_Report
c53c6984298a03d44701be3eb92733efbf8e4955
3eb93a227d1a1591eced65415dea06180a05c99f
refs/heads/master
2022-11-28T22:14:30.032371
2020-08-09T06:41:22
2020-08-09T06:41:22
286,178,590
1
0
null
null
null
null
UTF-8
Swift
false
false
3,679
swift
// // DetailView.swift // WeatherAppSwiftUI // // Created by Rishabh Goswami on 29.12.2019. // Copyright © 2019 Rishabh Goswami. All rights reserved. // import SwiftUI struct DetailRowModel: Identifiable { var id = UUID() var degree: Int var time: String var weather: WeatherType } struct DetailView: View { private var data: [DetailRowModel] { return [.init(degree: 12, time: "09:00", weather: .clouds), .init(degree: 13, time: "12:00", weather: .rain), .init(degree: 11, time: "15:00", weather: .clouds), .init(degree: 12, time: "17:00", weather: .rain)] } private let title: String init(title: String) { self.title = title } var body: some View { ZStack { LinearGradient(gradient: Gradient(colors: [.topColor,.centerColor,.bottomColor]), startPoint: .topLeading, endPoint: .bottom) .edgesIgnoringSafeArea(.all) VStack { HStack { Text("12") .font(.system(size: 100)) .foregroundColor(.white) .fontWeight(.medium) Text("°") .font(.system(size: 50)) .foregroundColor(.white) .fontWeight(.medium) .padding(.top, -40) .padding(.leading, -10) }.padding(.top, 100) Text("Ankara") .font(.system(size: 36)) .foregroundColor(.white) .fontWeight(.medium) .padding(.top, 40) Text("Today 9:00 pm") .font(.system(size: 15)) .foregroundColor(.gray) .padding(.top, 20) Spacer() HStack(spacing: 34) { TimeWeatherRow(model: data[0]) TimeWeatherRow(model: data[1]) TimeWeatherRow(model: data[2]) TimeWeatherRow(model: data[3]) } Spacer() } .navigationBarTitle(Text("Detail View"), displayMode: .inline) } } } struct DetailView_Previews: PreviewProvider { static var previews: some View { DetailView(title: "Sunday") } } struct TimeWeatherRow: View { let data: DetailRowModel init(model: DetailRowModel) { self.data = model } var body: some View { VStack { HStack { Text("\(data.degree)") .font(.system(size: 40)) .foregroundColor(.white) Text("°") .font(.system(size: 30)) .foregroundColor(.white) .fontWeight(.medium) .padding(.leading, -10).padding(.top, -24) }.padding(.bottom, -24) ZStack { Circle() .stroke(Color.gray, lineWidth: 1) .frame(width: 54, height: 64, alignment: .center) Image(systemName:data.weather.icon) .resizable() .aspectRatio(contentMode: .fit) .frame(width: 30, height: 50, alignment: .center) .foregroundColor(.white) } Text(data.time) .font(.system(size: 16)) .foregroundColor(.white) } } }
[ -1 ]
cdfcc7e5604afe8aaebece3057673e1ffec37d68
1598877ce77a53cd9ca7168ff260fe4ba5aaad1e
/MVVMPractice/ViewsViewModels/LayoutModels/CommonLayoutModel.swift
e1bf170b192f811cb8a5179a5d55f21718b22850
[]
no_license
tranthuanuit/MVVM-Practice
21a574897a3ae8fbe584a26a93211a287ca24d7e
6b76af0c94854604909ea0aed68186fce718e6fc
refs/heads/master
2020-07-17T08:49:09.130319
2019-08-27T04:26:27
2019-08-27T04:26:27
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,982
swift
// // CommonLayoutModel.swift // NVGTest // // Created by iOS Dev on 8/1/19. // Copyright © 2019 iOS Dev. All rights reserved. // import UIKit enum InputType { case firstName case lastName case email case universityName case password case newPassword var placeholder: String { switch self { case .firstName: return "First Name" case .lastName: return "Last Name" case .email: return "Email" case .universityName: return "University Name" case .password: return "Password" case .newPassword: return "New Password" } } var isSecureTextEntry: Bool { switch self { case .password, .newPassword: return true default: return false } } var keyboardType: UIKeyboardType { switch self { case .firstName: return .namePhonePad case .lastName: return .namePhonePad case .email: return .emailAddress default: return .default } } var isMadatory: Bool { switch self { case .firstName, .email, .password, .newPassword: return true default: return false } } } enum TextFieldError { case none case empty case notValidEmail case notValidPassword(passwordCheckResult: PasswordRequirement) case customError(localized: String) var localized: String { switch self { case .none: return "" case .empty: return "this field is required" case .notValidEmail: return "Not a valid email" case .notValidPassword(let passwordCheckResult): return passwordCheckResult.errorMessage case .customError(let localized): return localized } } }
[ -1 ]
70e1df148709dfc7d5f8a91eca387180d83bd7fd
70c747b584ce5d8eee0eadc1edb3ebfffeaaadd3
/AliyunPlayerDemo/AliyunPlayerMediaDemo-Swift/下载功能/AddDownloadView.swift
cb50cb0605550a780ab40846386140320a9ee9c9
[]
no_license
wugemu/iOSPlayer
beb40b525b9428a578155c549188b910d3df0063
6e9cf3834c97ebaa80b2495c643b196422f0aa05
refs/heads/master
2020-03-20T12:21:14.171201
2018-09-18T02:11:55
2018-09-18T02:11:55
137,427,396
3
1
null
null
null
null
UTF-8
Swift
false
false
7,973
swift
// // AddDownloadView.swift // AliyunPlayerMediaDemo-Swift // // Created by baby on 2017/10/17. // Copyright © 2017年 com.alibaba.ALPlayerVodSDK. All rights reserved. // import UIKit protocol DownloadViewDelegate { func onStartDownload(_ dataSource:AliyunDataSource, medianInfo info:AliyunDownloadMediaInfo) } class AddDownloadView: UIView { var textVid:UITextField! var textView:UITextView! var okBtn:UIButton! var backBtn:UIButton! var qualityBtn:UIButton! var qualityControl:UISegmentedControl! var mArray:[AliyunDownloadMediaInfo] = [AliyunDownloadMediaInfo]() var delegate:DownloadViewDelegate? override init(frame: CGRect) { super.init(frame: frame) let control = UIControl(frame: self.bounds) control.addTarget(self, action: #selector(hidekeybroad(_:)), for: .touchDown) addSubview(control) let appKeyLabel = UILabel(frame: CGRect(x: 10, y: 40, width: 120, height: 30)) appKeyLabel.text = "vid:" appKeyLabel.textColor = UIColor.black addSubview(appKeyLabel) textVid = UITextField(frame: CGRect(x: 100, y: 35, width: 180, height: 30)) textVid.text = VID textVid.font = UIFont.systemFont(ofSize: 12) textVid.textColor = UIColor.black textVid.borderStyle = .roundedRect addSubview(textVid) let appSecretLabel = UILabel(frame: CGRect(x: 10, y: 77, width: 120, height: 30)) appSecretLabel.text = "playAuth: " appSecretLabel.textColor = UIColor.black addSubview(appSecretLabel) textView = UITextView(frame: CGRect(x: 10, y: 110, width: self.frame.size.width-20, height: 90)) textView.textColor = UIColor.black textView.backgroundColor = UIColor.white textView.font = UIFont.systemFont(ofSize: 12) textView.textAlignment = .left textView.textContainerInset = UIEdgeInsetsMake(20, 20, 20, 20) textView.layer.cornerRadius = 5 textView.layer.masksToBounds = true textView.text = PLAYAUTH addSubview(textView) backBtn = UIButton(type: .roundedRect) backBtn.frame = CGRect(x: 40, y: 325, width: 100, height: 40) backBtn.addTarget(self, action: #selector(cancelBtnAction(_:)), for: .touchUpInside) backBtn.setTitleColor(UIColor(red: 123/255.0, green: 134/255.0, blue: 252/255.0, alpha: 1), for: .normal) backBtn.setTitleColor(UIColor.gray, for: .selected) backBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17) backBtn.backgroundColor = UIColor(red: 0x87/255.0, green: 0x4b/255.0, blue: 0xe0/255.0, alpha: 1) backBtn.setTitle("取消", for: .normal) backBtn.clipsToBounds = true backBtn.layer.cornerRadius = 20 backBtn.setTitleColor(UIColor.white, for: .normal) addSubview(backBtn) okBtn = UIButton(type: .roundedRect) okBtn.frame = CGRect(x: 60, y: 325, width: 100, height: 40) okBtn.addTarget(self, action: #selector(okBtnAction(_:)), for: .touchUpInside) okBtn.setTitleColor(UIColor(red: 123/255.0, green: 134/255.0, blue: 252/255.0, alpha: 1), for: .normal) okBtn.setTitleColor(UIColor.gray, for: .selected) okBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17) okBtn.backgroundColor = UIColor(red: 0x87/255.0, green: 0x4b/255.0, blue: 0xe0/255.0, alpha: 1) okBtn.setTitle(NSLocalizedString("cancel_button", comment: ""), for: .normal) okBtn.clipsToBounds = true okBtn.layer.cornerRadius = 20 okBtn.setTitleColor(UIColor.white, for: .normal) addSubview(okBtn) backgroundColor = UIColor.lightGray layer.cornerRadius = 8 layer.masksToBounds = true layer.borderWidth = 1 qualityBtn = UIButton(type: .roundedRect) qualityBtn.frame = CGRect(x: 10, y: 220, width: 100, height: 30) qualityBtn.addTarget(self, action: #selector(qualityRequest(_:)), for: .touchUpInside) qualityBtn.setTitleColor(UIColor(red: 123/255.0, green: 134/255.0, blue: 252/255.0, alpha: 1), for: .normal) qualityBtn.setTitleColor(UIColor.gray, for: .selected) qualityBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12) qualityBtn.backgroundColor = UIColor(red: 0x87/255.0, green: 0x4b/255.0, blue: 0xe0/255.0, alpha: 1) qualityBtn.setTitle(NSLocalizedString("get_all_definition", comment: ""), for: .normal) qualityBtn.clipsToBounds = true qualityBtn.layer.cornerRadius = 10 qualityBtn.setTitleColor(UIColor.white, for: .normal) addSubview(qualityBtn) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } @objc private func hidekeybroad(_ sender:UIControl){ textVid.resignFirstResponder() textView.resignFirstResponder() } @objc private func cancelBtnAction(_ sender:UIButton){ isHidden = true } @objc private func okBtnAction(_ sender:UIButton){ if qualityControl.isEnabled == false { let alert = UIAlertView(title: NSLocalizedString("Tips", comment: ""), message: NSLocalizedString("Please request definition list first", comment: ""), delegate: nil, cancelButtonTitle: NSLocalizedString("ok_button1", comment: "")) alert.show() return } let info = mArray[qualityControl.selectedSegmentIndex] let source = AliyunDataSource() source.vid = textVid.text ?? "" source.playAuth = textView.text ?? "" source.quality = info.quality source.format = info.format if let delegate = delegate { delegate.onStartDownload(source, medianInfo: info) } isHidden = true } @objc private func qualityRequest(_ sender:UIButton){ textVid.resignFirstResponder() textView.resignFirstResponder() let source = AliyunDataSource() source.vid = textVid.text ?? "" source.playAuth = textView.text ?? "" AliyunVodDownLoadManager.share().prepareDownloadMedia(source) } func initShow(){ if qualityControl != nil { qualityControl.removeFromSuperview() } mArray.removeAll() } func updateQualityInfo(_ mediaInfos:[AliyunDownloadMediaInfo]){ DispatchQueue.main.async() { if mediaInfos.count == 0 { return } } if qualityControl != nil { qualityControl.removeFromSuperview() } mArray.removeAll() var array = [String]() let segmentedArray = [NSLocalizedString("fd_definition", comment: ""), NSLocalizedString("ld_definition", comment: ""), NSLocalizedString("sd_definition", comment: ""), NSLocalizedString("hd_definition", comment: ""), NSLocalizedString("2k_definition", comment: ""), NSLocalizedString("4k_definition", comment: ""), NSLocalizedString("od_definition", comment: "")] for info in mediaInfos{ let text = segmentedArray[Int(info.quality.rawValue)] let sizeStr = text + "(" + "\(info.size/(1024*1024))" + "M)" array.append(sizeStr) mArray.append(info) } if array.count > 0 { qualityControl = UISegmentedControl(items: array) qualityControl.frame = CGRect(x: 20, y: 260, width: 250, height: 35) qualityControl.selectedSegmentIndex = 0 qualityControl.tintColor = UIColor.white addSubview(qualityControl) } } }
[ -1 ]
6d033c7cb23311c201c7408943f5f5e5f8a95176
c134ecf12240ceddac50dc24d7fb937a364380dd
/MichaelStuart/MichaelStuart/musicViewController.swift
309c53a875e4270bf18564faf08c4dcac0229a78
[]
no_license
christstuart/Chris-T-Stuart
169de3c633f46fd31dcc1d26aca23d490e22a786
120b4adadc28b3b2de88f631f4763824c1388769
refs/heads/master
2021-01-19T22:21:20.640163
2017-05-01T18:58:51
2017-05-01T18:58:51
56,814,906
0
0
null
null
null
null
UTF-8
Swift
false
false
2,699
swift
// // musicViewController.swift // MichaelStuart // // Created by Chris T Stuart on 3/9/16. // Copyright © 2016 Chris T Stuart. All rights reserved. // import UIKit import CloudKit class musicViewController: UIViewController { @IBOutlet var topImage: UIImageView! @IBOutlet var tableView: UITableView! @IBOutlet var albumLabel: UILabel! var topI: UIImage! var string = "" var index: NSIndexPath! var albumName = "" var albumSongs = [String]() var albumTime = [String]() var albumNumber = [String]() var songs = [String]() var albumLink = "" override func viewDidLoad() { super.viewDidLoad() // tableView.tableFooterView = UIView(frame: CGRectZero) albumLabel.text = albumName topImage.image = topI // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func buyAlbum(sender: UIButton) { UIApplication.sharedApplication().openURL(NSURL(string: albumLink)!) } override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { let songView = segue.destinationViewController as! songViewController // print(albumTime[index.row]) songView.time = albumTime[index.row] songView.song = albumSongs[index.row] songView.image = topI songView.stream = songs[index.row] } } extension musicViewController: UITableViewDataSource, UITableViewDelegate { func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("cell") as! musicTableViewCell cell.songName.text = albumSongs[indexPath.row] cell.songTime.text = albumTime[indexPath.row] cell.songNumber.text = albumNumber[indexPath.row] return cell } func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return albumSongs.count } func tableView(tableView: UITableView, sectionForSectionIndexTitle title: String, atIndex index: Int) -> Int { return 1 } func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { index = indexPath performSegueWithIdentifier("song", sender: indexPath.row) } }
[ -1 ]
c8d66bd54373dfc0d75af7bde8649372188e773d
05d42e8abcd5cf6c18fc4c6db6254e17a2c1faa6
/Codable/Codable_DataFlat.playground/Contents.swift
1986fe19f435a63ea51f014e118803e1f650995d
[]
no_license
ck2shine/TrainingProgram
c1b439988ab02abc024602fdccc2ab8df7e9582d
7d856280a409911a40f277c626292ec02e66dd33
refs/heads/master
2020-08-24T16:24:47.261375
2020-07-23T09:31:47
2020-07-23T09:31:47
216,863,398
0
0
null
null
null
null
UTF-8
Swift
false
false
2,035
swift
import UIKit struct Person_Model : Codable{ var name : String? var number : String? } class APIResponse<T : Codable> : Codable{ var rtnMsg : String = "error" var rtnCode : Int = -999 var rtnTitleString : String? var data : T? var datas : [T]? class func request(jsonString : String){ let decoder = JSONDecoder() let data = try! decoder.decode(APIResponse.self, from: jsonString.data(using: .utf8)!) print(data.description) } required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: APIDecodeKey.self) let resultContainer = try container.nestedContainer(keyedBy: ResultData.self, forKey: .result) rtnMsg = try resultContainer.decode(String.self, forKey: .rtnMsg) rtnCode = try resultContainer.decode(Int.self, forKey: .rtnCode) rtnTitleString = try resultContainer.decode(String.self, forKey: .rtnTitleString) data = try resultContainer.decode(T.self, forKey: .data) datas = try resultContainer.decode([T].self, forKey: .datas) } var description : String{ return "rtnMsg : \(rtnMsg) , rtnCode : \(rtnCode) , rtnTitleString : \(rtnTitleString ?? "") , data : \(String(describing: data)) , datas : \(String(describing: datas)) " } } extension APIResponse{ enum APIDecodeKey :String, CodingKey{ case result } enum ResultData :String, CodingKey{ case rtnMsg , rtnCode , rtnTitleString , data , datas } } let jsonObject: [String : Any] = [ "result": [ "data" : [ "name": "Tom", "number": "50"], "datas" : [], "rtnCode" : 0, "rtnMsg" : "Success" , "rtnTitleString" : "TestString" ] ] //Convert to Data let jsonData = try JSONSerialization.data(withJSONObject: jsonObject, options: .prettyPrinted) if let JSONString = String(data: jsonData, encoding: String.Encoding.utf8) { APIResponse<Person_Model>.request(jsonString: JSONString) }
[ -1 ]
4feb827b7d968c2785ef5c0b68a7705871764776
4f115de649c1d343277d2b8d3e25218f3b181d3f
/learn-swift/16. ARC.playground/section-1.swift
025301c4ce5dde8451939a645f3dc1ff84343502
[ "MIT" ]
permissive
mustafarabie/E65g_materials
8dbb7c4ca9ace668abb9604533dce6d5a0be4537
4242141cae1cd84addf5245dece80ae36203da8f
refs/heads/master
2021-01-20T16:04:40.187022
2017-05-09T13:12:29
2017-05-09T13:12:29
null
0
0
null
null
null
null
UTF-8
Swift
false
false
14,323
swift
// ------------------------------------------------------------------------------------------------ // Things to know: // // * Automatic Reference Counting allows Swift to track and manage your app's memory usage. It // automatically frees up memory from unused instances that are no longer in use. // // * Reference counting only applies to classes as structures and enumerations are value types. // // * Whenever a class instance is stored (to a property, constant or variable) a // "strong reference" is made. A strong reference ensures that the reference is not deallocated // for as long as the strong reference remains. // ------------------------------------------------------------------------------------------------ // We can't really see ARC in actino within a Playground, but we can still follow along what // would normally happen. // // We'll start by creating a class to work with class Person { let name: String init (name: String) { self.name = name } } // We'll want to create a person and then remove our reference to it, which means we'll need to // use an optional Person type stored in a variable: var person: Person? = Person(name: "Bill") // We now have a single strong reference to a single Person object. // // If we assign 'person' to another variable or constant, we'll increse the reference conunt by 1 // for a total of 2: var copyOfPerson = person // With a reference count of 2, we can set our original reference to nil. This will drop our // reference count down to 1. person = nil // The copyOfPerson still exists and holds a strong reference to our instance: copyOfPerson // If we clear out this reference, we will drop the reference count once more to 0, causing the // object to be cleaned up by ARC: copyOfPerson = nil // ------------------------------------------------------------------------------------------------ // Strong Reference Cycles between class instances // // If two classes hold a reference to each other, then they create a "Strong Reference Cycle". // // Here's an example of two classes that are capable of holding references to one another, but // do not do so initially (their references are optional and defaulted to nil): class Tenant { let name: String var apartment: Apartment? init(name: String) { self.name = name } } class Apartment { let number: Int var tenant: Tenant? init (number: Int) { self.number = number } } // We can create a tenant and an apartment which are not associated to each other. After these // two lines of code, each instance will have a reference count of 1. var bill: Tenant? = Tenant(name: "Bill") var number73: Apartment? = Apartment(number: 73) // Let's link them up. // // This will create a strong reference cycle because each instance will have a reference to the // other. The end result is that each instance will now have a reference count of 2. For example, // the two strong references for the Tenant instances are held by 'bill' and the 'tenant' // property inside the 'number73' apartment. // // Note the "!" symbols for forced unwrapping (covered in an earlier section): bill!.apartment = number73 number73!.tenant = bill // If we try to clean up, the memory will not be deallocated by ARC. Let's follow along what // actually happens a step at a time. // // First, we set 'bill' to be nil, which drops the strong reference count for this instance of // Tenant down to 1. Since there is still a strong reference held to this instance, it is never // deallocated (and the deinit() is also never called on that instance of Person.) bill = nil // Next we do the same for 'number73' dropping the strong reference count for this instance of // Apartment down to 1. Similarly, it is not deallocated or deinitialized. number73 = nil // At this point, we have two instances that still exist in memory, but cannot be cleaned up // because we don't have any references to them in order to solve the problem. // ------------------------------------------------------------------------------------------------ // Resolving Strong Reference Cycles between Class Instances // // Swift provides two methods to resolve strong reference cycles: weak and unowned references. // ------------------------------------------------------------------------------------------------ // Weak references allow an instance to be held without actually having a strong hold on it (and // hence, not incrementing the reference count for the target object.) // // Use weak references when it's OK for a reference to become nil sometime during its lifetime. // Since the Apartment can have no tenant at some point during its lifetime, a weak reference // is the right way to go. // // Weak references must always be optional types (because they may be required to be nil.) When // an object holds a weak reference to an object, if that object is ever deallocated, Swift will // locate all the weak references to it and set those references to nil. // // Weak references are declared using the 'weak' keyword. // // Let's fix our Apartment class. Note that we only have to break the cycle. It's perfectly // fine to let the Tenant continue to hold a strong reference to our apartment. We will also // create a new Tenant class (we'll just give it a new name, "NamedTenant"), but only so that we // can change the apartment type to reference our fixed Apartment class. class NamedTenant { let name: String var apartment: FixedApartment? init(name: String) { self.name = name } } class FixedApartment { let number: Int weak var tenant: NamedTenant? init (number: Int) { self.number = number } } // Here is our new tenant and his new apartment. // // This will create a single strong reference to each: var jerry: NamedTenant? = NamedTenant(name: "Jerry") var number74: FixedApartment? = FixedApartment(number: 74) // Let's link them up like we did before. Note that this time we're not creating a new strong // reference to the NamedTenant so the reference count will remain 1. The FixedApartment // however, will have a reference count of 2 (because the NamedTenant will hold a strong reference // to it.) jerry!.apartment = number74 number74!.tenant = jerry // At this point, we have one strong reference to the NamedTenant and two strong references to // FixedApartment. // // Let's set jerry to nil, which will drop his reference count to 0 causing it to get // deallocated. Once this happens, it is also deinitialized. jerry = nil // With 'jerry' deallocated, the strong reference it once held to FixedApartment is also cleaned // up leaving only one strong reference remaining to the FixedApartment class. // // If we clear 'number74' then we'll remove the last remaining strong reference: number74 = nil // ------------------------------------------------------------------------------------------------ // Unowned References // // Unowned refernces are similar to weak references in that they do not hold a strong reference // to an instance. However, the key difference is that if the object the reference is deallocated // they will not be set to nil like weak references to. Therefore, it's important to ensure that // any unowned references will always have a value. If this were to happen, accessing the unowned // reference will trigger a runtime error. In fact, Swift guraantees that your app will crash in // this scenario. // // Unowned references are created using the 'unowned' keyword and they must not be optional. // // We'll showcase this with a Customer and Credit Card. This is a good example case because a // customer may have the credit card, or they may close the account, but once a Credit Card // has been created, it will always have a customer. class Customer { let name: String var card: CreditCard? init (name: String) { self.name = name } } class CreditCard { let number: Int unowned let customer: Customer // Since 'customer' is not optional, it must be set in the initializer init (number: Int, customer: Customer) { self.number = number self.customer = customer } } // ------------------------------------------------------------------------------------------------ // Unowned References and Implicitly Unwrapped Optional Properties // // We've covered two common scenarios of cyclic references, but there is a third case. Consider // the case of a country and its capital city. Unlike the case where a customer may have a credit // card, or the case where an apartment may have a tenant, a country will always have a capital // city and a capital city will always have a tenant. // // The solution is to use an unowned property in one class and an implicitly unwrapped optional // property in the other class. This allows both properties to be accessed directly (without // optional unwrapping) once initialization is complete, while avoiding the reference cycle. // // Let's see how this is done: class Country { let name: String var capitalCity: City! init(name: String, capitalName: String) { self.name = name self.capitalCity = City(name: capitalName, country: self) } } class City { let name: String unowned let country: Country init(name: String, country: Country) { self.name = name self.country = country } } // We can define a Country with a capital city var america = Country(name: "USA", capitalName: "Washington DC") // Here's how and why this works. // // The relationship between Customer:CreditCard is very similar to the relationship between // Country:City. The two key differences are that (1) the country initializes its own city and the // country does not need to reference the city through the optional binding or forced unwrapping // because the Country defines the city with the implicitly unwrapped optional property (using the // exclamation mark on the type annotation (City!). // // The City uses an unowned Country property in the same way (and for the same reasons) as the // CreditCard uses an unowned property of a Customer. // // The Country still uses an optional (though implicitly unwrapped) for the same reason that the // Customer uses an optional to store a CreditCard. If we look at Country's initializer, we see // that it initializes a capitalCity by passing 'self' to the City initializer. Normally, an // initializer cannot reference its own 'self' until it has fully initialized the object. In this // case, the Country can access its own 'self' because once 'name' has been initialized, the object // is considered fully initialized. This is the case because 'capitalCity' is an optional. // // We take this just a step further by declaring 'capitalCity' to be an implicitly unwrapped // optinoal property so that we can avoid having to deal with unwrapping 'capitalCity' whenever we // want to access it. // ------------------------------------------------------------------------------------------------ // Strong Reference Cycles for Closures // // We've seen how classes can reference each other creating a cyclic reference because classes are // reference types. However, classes aren't the only way to create a cyclic reference. These // problematic references can also happen with closures because they, too, are reference types. // // This happens when a closure captures an instance of a class (simply because it uses the class // reference within the closure) and a class maintains a reference to the closure. Note that the // references that a closure captures are automatically strong references. // // Let's see how this problem can manifest. We'll create a class that represents an HTML element // which includes a variable (asHTML) which stores a reference to a closure. // // Quick note: The asHTML variable is defined as lazy so that it can reference 'self' within the // closure. Try removing the 'lazy' and you'll see that you get an error trying to access 'self'. // This is an error because we're not allowed to access 'self' during Phase 1 initialization. By // making 'asHTML' lazy, we solve this problem by deferring its initialization until later. class HTMLElement { let name: String let text: String? lazy var asHTML: () -> String = { if let text = self.text { return "<\(self.name)>\(text)</\(self.name)>" } else { return "<\(self.name) />" } } init(name: String, text: String? = nil) { self.name = name self.text = text } } // Let's use the HTMLElement. We'll make sure we declare it as optional so we can set it to 'nil' // later. var paragraph: HTMLElement? = HTMLElement(name: "p", text: "Hello, world") paragraph!.asHTML() // At this point, we've created a strong reference cycle between the HTMLElement instance and the // asHTML closure because the closure references the object which owns [a reference to] it. // // We can set paragraph to nil, but the HTMLElement will not get deallocated: paragraph = nil // The solution here is to use a "Closure Capture List" as part of the closure's definition. This // essentially allows us to modify the default behavior of closures using strong references for // captured instances. // // Here's how we define a capture list: // // lazy var someClosure: (Int, String) -> String = // { // [unowned self] (index: Int, stringToProcess: String) -> String in // // // ... code here ... // } // // Some closures can used simplified syntax if their parameters are inferred while other closures // may not have any parameters. In both cases the method for declaring the capture list doesn't // change much. Simply include the capture list followed by the 'in' keyword: // // lazy var someClosure: () -> String = // { // [unowned self] in // // // ... code here ... // } // // Let's see how we can use this to resolve the HTMLElement problem. We'll create a new class, // FixedHTMLElement which is identical to the previous with the exception of the addition of the // line: "[unowned self] in" class FixedHTMLElement { let name: String let text: String? lazy var asHTML: () -> String = { [unowned self] in if let text = self.text { return "<\(self.name)>\(text)</\(self.name)>" } else { return "<\(self.name) />" } } init(name: String, text: String? = nil) { self.name = name self.text = text } } // Playgrounds do not allow us to test/prove this, so feel free to plug this into a compiled // application to see it in action.
[ -1 ]
f132fe900e13e580a8303c41cea3c45fcd21dd1e
68ac15de5a040e7317e1f64031f14ad658843960
/DanTang-swift/Classes/Product/View/DetailChoiceButtonView.swift
dda3d65df9d16b56ee34238f4fd95631a7440c60
[ "Apache-2.0" ]
permissive
guofeifeifei/swift-DanTang
475162da0155ce13c81683aec21500ac82b54d37
657d8e7ffdf04228a086e27df62ae44051106a91
refs/heads/master
2021-01-25T13:19:19.773481
2018-04-17T01:59:26
2018-04-17T01:59:26
123,559,725
0
0
null
null
null
null
UTF-8
Swift
false
false
1,174
swift
// // DetailChoiceButtonView.swift // DanTang-swift // // Created by ZZCN77 on 2018/3/7. // Copyright © 2018年 ZZCN77. All rights reserved. // import UIKit class DetailChoiceButtonView: UIView { override init(frame: CGRect) { super.init(frame: frame) setupUI() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } func setupUI(){ addSubview(detailBtn) addSubview(evaluationBtn) } private lazy var detailBtn : UIButton = { let detailBtn = UIButton.init(frame: CGRect.init(x: 0, y: 0, width: KMainWidth/2, height: 44)) detailBtn.setTitle("商品详情", for: .normal) return detailBtn }() private lazy var evaluationBtn : UIButton = { let evaluationBtn = UIButton.init(frame: CGRect.init(x: KMainWidth/2, y: 0, width: KMainWidth/2, height: 44)) evaluationBtn.setTitle("评论", for: .normal) // evaluationBtn.addTarget(self, action: #selector(evaluation:), for: 0 ) return evaluationBtn }() func evaluation(sender : UIButton) { } }
[ -1 ]
ea6aa4fe43f4471df3d5103773cd2c2023f9a93f
0d45a114bd316859a9e6efacc9b32eadfc92f1ca
/Currency/ViewController.swift
f5bbc6d480f2be59065c854b9526e8561dc56416
[]
no_license
bOsowski/Currency
1434d86367584734ab5065f15d419cc3b557182f
8a8e0059f94e1520d3607d49e112e54e202d991a
refs/heads/master
2021-08-08T07:03:47.265974
2017-11-09T20:54:57
2017-11-09T20:54:57
109,452,170
0
0
null
2017-11-03T23:40:13
2017-11-03T23:40:12
null
UTF-8
Swift
false
false
13,429
swift
// // ViewController.swift // Currency // // Created by Robert O'Connor on 18/10/2017. // Copyright © 2017 WIT. All rights reserved. // import UIKit class ViewController: UIViewController, UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource { //MARK Model holders var currencyDict:Dictionary = [String:Currency]() let currencyArray = ["EUR","USD", "GBP", "PLN", "RUB", "CNY", "JPY"] var baseCurrency:Currency = Currency.init(name:"EUR", rate:1, flag:"🇪🇺", symbol:"€")! var lastUpdatedDate:Date = Date() var convertValue:Double = 0 var activeField: UITextField? var finishedFetching = false; //MARK Outlets //@IBOutlet weak var convertedLabel: UILabel! @IBOutlet weak var loadingScreen: UIView! @IBOutlet weak var pickerView: UIPickerView! @IBOutlet weak var baseTextField: UITextField! @IBOutlet weak var lastUpdatedDateLabel: UILabel! @IBOutlet weak var gbpSymbolLabel: UILabel! @IBOutlet weak var gbpValueLabel: UILabel! @IBOutlet weak var gbpFlagLabel: UILabel! @IBOutlet weak var usdSymbolLabel: UILabel! @IBOutlet weak var usdValueLabel: UILabel! @IBOutlet weak var usdFlagLabel: UILabel! @IBOutlet weak var plnSymbolLabel: UILabel! @IBOutlet weak var plnValueLabel: UILabel! @IBOutlet weak var plnFlagLabel: UILabel! @IBOutlet weak var rubSymbolLabel: UILabel! @IBOutlet weak var rubValueLabel: UILabel! @IBOutlet weak var rubFlagLabel: UILabel! @IBOutlet weak var cnySymbolLabel: UILabel! @IBOutlet weak var cnyValueLabel: UILabel! @IBOutlet weak var cnyFlagLabel: UILabel! @IBOutlet weak var jpySymbolLabel: UILabel! @IBOutlet weak var jpyValueLabel: UILabel! @IBOutlet weak var jpyFlagLabel: UILabel! @IBOutlet weak var eurSymbolLabel: UILabel! @IBOutlet weak var eurValueLabel: UILabel! @IBOutlet weak var eurFlagLabel: UILabel! @IBOutlet weak var baseTextBottomConstraint: NSLayoutConstraint! var defaultBottomConstraint:CGFloat? func numberOfComponents(in pickerView: UIPickerView) -> Int { return 1; } func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { return currencyArray[row] } func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { return currencyArray.count } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { let touch: UITouch? = touches.first if touch != baseTextField { dismissKeyboard(); } } func dismissKeyboard() { view.endEditing(true) UIView.animate(withDuration: 0.5, animations: { self.view.layoutIfNeeded() self.baseTextBottomConstraint.constant = self.defaultBottomConstraint! }) } func textFieldDidBeginEditing(_ textField: UITextField){ activeField = textField } func textFieldDidEndEditing(_ textField: UITextField){ activeField = nil } override func viewDidLoad() { super.viewDidLoad() loadingScreen.isHidden = true; // Do any additional setup after loading the view, typically from a nib. // print("currencyDict has \(self.currencyDict.count) entries") NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(notification:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil) defaultBottomConstraint = baseTextBottomConstraint.constant // create currency dictionary self.createCurrencyDictionary() // get latest currency values getConversionTable() convertValue = 1 // set up last updated date let dateformatter = DateFormatter() dateformatter.dateFormat = "dd/MM/yyyy hh:mm a" lastUpdatedDateLabel.text = dateformatter.string(from: lastUpdatedDate) // display currency info self.displayCurrencyInfo() // set up base currency screen items //baseTextField.text = String(format: "%.02f", baseCurrency!.rate) // setup view mover baseTextField.delegate = self } @objc func keyboardWillShow(notification:NSNotification){ if let info = notification.userInfo{ let rect:CGRect = info["UIKeyboardFrameEndUserInfoKey"] as! CGRect self.view.layoutIfNeeded() UIView.animate(withDuration: 0.25, animations: { self.view.layoutIfNeeded() self.baseTextBottomConstraint.constant = rect.height - 50 }) } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } func createCurrencyDictionary(){ //let c:Currency = Currency(name: name, rate: rate!, flag: flag, symbol: symbol)! //self.currencyDict[name] = c currencyDict["GBP"] = Currency(name:"GBP", rate:1, flag:"🇬🇧", symbol: "£") currencyDict["USD"] = Currency(name:"USD", rate:1, flag:"🇺🇸", symbol: "$") currencyDict["PLN"] = Currency(name:"PLN", rate:1, flag:"🇵🇱", symbol: "zł") currencyDict["RUB"] = Currency(name:"RUB", rate:1, flag:"🇷🇺", symbol: "₽") currencyDict["CNY"] = Currency(name:"CNY", rate:1, flag:"🇨🇳", symbol: "元") currencyDict["JPY"] = Currency(name:"JPY", rate:1, flag:"🇯🇵", symbol: "¥") currencyDict["EUR"] = Currency(name:"EUR", rate:1, flag:"🇪🇺", symbol: "€") } func displayCurrencyInfo() { // GBP if let c = currencyDict["GBP"]{ gbpSymbolLabel.text = c.symbol gbpValueLabel.text = String(format: "%.02f", c.rate) gbpFlagLabel.text = c.flag } //USD if let c = currencyDict["USD"]{ usdSymbolLabel.text = c.symbol usdValueLabel.text = String(format: "%.02f", c.rate) usdFlagLabel.text = c.flag } //PLN if let c = currencyDict["PLN"]{ plnSymbolLabel.text = c.symbol plnValueLabel.text = String(format: "%.02f", c.rate) plnFlagLabel.text = c.flag } //RUB if let c = currencyDict["RUB"]{ rubSymbolLabel.text = c.symbol rubValueLabel.text = String(format: "%.02f", c.rate) rubFlagLabel.text = c.flag } //CNY if let c = currencyDict["CNY"]{ cnySymbolLabel.text = c.symbol cnyValueLabel.text = String(format: "%.02f", c.rate) cnyFlagLabel.text = c.flag } //JPY if let c = currencyDict["JPY"]{ jpySymbolLabel.text = c.symbol jpyValueLabel.text = String(format: "%.02f", c.rate) jpyFlagLabel.text = c.flag } if let c = currencyDict["EUR"]{ eurSymbolLabel.text = c.symbol eurValueLabel.text = String(format: "%.02f", c.rate) eurFlagLabel.text = c.flag } } func getConversionTable() { let urlStr:String = "https://api.fixer.io/latest" var request = URLRequest(url: URL(string: urlStr)!) request.httpMethod = "GET" /*let indicator = UIActivityIndicatorView(activityIndicatorStyle: .gray) indicator.center = view.center view.addSubview(indicator) indicator.startAnimating()*/ self.loadingScreen.isHidden = false; let session = URLSession.shared.dataTask(with: request) { data, response, error in if error == nil{ //print(response!) do { let jsonDict = try JSONSerialization.jsonObject(with: data!, options: .mutableContainers) as! [String:Any] //print(jsonDict) if let ratesData = jsonDict["rates"] as? NSDictionary { for rate in ratesData{ let name = String(describing: rate.key) let rate = (rate.value as? NSNumber)?.doubleValue switch(name){ case "USD": let c:Currency = self.currencyDict["USD"]! c.rate = rate! self.currencyDict["USD"] = c case "GBP": let c:Currency = self.currencyDict["GBP"]! c.rate = rate! self.currencyDict["GBP"] = c case "PLN": let c:Currency = self.currencyDict["PLN"]! c.rate = rate! self.currencyDict["PLN"] = c case "RUB": let c:Currency = self.currencyDict["RUB"]! c.rate = rate! self.currencyDict["RUB"] = c case "CNY": let c:Currency = self.currencyDict["CNY"]! c.rate = rate! self.currencyDict["CNY"] = c case "JPY": let c:Currency = self.currencyDict["JPY"]! c.rate = rate! self.currencyDict["JPY"] = c case "EUR": let c:Currency = self.currencyDict["EUR"]! c.rate = rate! self.currencyDict["EUR"] = c default: print("Ignoring currency: \(String(describing: rate))") } /* let c:Currency = Currency(name: name, rate: rate!, flag: flag, symbol: symbol)! self.currencyDict[name] = c */ } DispatchQueue.main.async { self.lastUpdatedDate = Date() self.convert(self) } } } catch let error as NSError{ print(error) } } else{ print("Error") } } session.resume() } @IBAction func convert(_ sender: Any) { loadingScreen.isHidden = true; var resultGBP = 0.0 var resultUSD = 0.0 var resultPLN = 0.0 var resultRUB = 0.0 var resultCNY = 0.0 var resultJPY = 0.0 var resultEUR = 0.0 baseCurrency.rate = (currencyDict[currencyArray[pickerView.selectedRow(inComponent: 0)]]?.rate)! if let currencyToConvert = Double(baseTextField.text!) { convertValue = currencyToConvert if let gbp = self.currencyDict["GBP"] { resultGBP = convertValue * (gbp.rate/baseCurrency.rate) } if let usd = self.currencyDict["USD"] { resultUSD = convertValue * (usd.rate/baseCurrency.rate) } if let pln = self.currencyDict["PLN"] { resultPLN = convertValue * (pln.rate/baseCurrency.rate) } if let rub = self.currencyDict["RUB"] { resultRUB = convertValue * (rub.rate/baseCurrency.rate) } if let cny = self.currencyDict["CNY"] { resultCNY = convertValue * (cny.rate/baseCurrency.rate) } if let jpy = self.currencyDict["JPY"] { resultJPY = convertValue * (jpy.rate/baseCurrency.rate) } if let eur = self.currencyDict["EUR"] { resultEUR = convertValue * (eur.rate/baseCurrency.rate) } } //GBP //convertedLabel.text = String(describing: resultGBP) gbpValueLabel.text = String(format: "%.02f", resultGBP) usdValueLabel.text = String(format: "%.02f", resultUSD) plnValueLabel.text = String(format: "%.02f", resultPLN) rubValueLabel.text = String(format: "%.02f", resultRUB) cnyValueLabel.text = String(format: "%.02f", resultCNY) jpyValueLabel.text = String(format: "%.02f", resultJPY) eurValueLabel.text = String(format: "%.02f", resultEUR) } @IBAction func refresh(_ sender: Any) { getConversionTable() } /* override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ -1 ]
a31dba4a7504ff111bace9131a58d38220c094b3
c2d0a2f056ac4903fa0cd79a75a8facfb5958618
/Sidebar/SidebarApp.swift
2b438ceb1b180dae2c466bcc4f06967644ea73ff
[]
no_license
itopaloglu83/Sidebar
58bd409813e9cb4dc7e1b59673a2bb89b1915b40
12b0437cdad5d5ad854af3346c067fd8eb5499c8
refs/heads/main
2023-07-02T02:41:24.633506
2021-08-09T20:02:56
2021-08-09T20:02:56
394,423,383
0
0
null
null
null
null
UTF-8
Swift
false
false
227
swift
// // SidebarApp.swift // Sidebar // // Created by İhsan TOPALOĞLU on 8/6/21. // import SwiftUI @main struct SidebarApp: App { var body: some Scene { WindowGroup { ContentView() } } }
[ -1 ]
50f10768aff4477bebe7f0616335c2809353ad3b
699daca1f005617b6b8733f0196ffe1e7e0c13a9
/Demo/Snippet.swift
7bbe614adce201e5cbcdeb642085e529cbb14b57
[ "MIT" ]
permissive
ChaosTong/Atributika
6d4e2125929601dac34e8ffa47316478837c9a74
671dca4b5b7571f4dfa93b8f71ef773f8ee4cfd5
refs/heads/master
2020-12-03T07:02:53.079313
2020-01-01T16:09:17
2020-01-01T16:09:17
231,236,049
0
0
MIT
2020-01-01T16:03:28
2020-01-01T16:03:28
null
UTF-8
Swift
false
false
12,152
swift
// // Created by Pavel Sharanda on 02.03.17. // Copyright © 2017 Pavel Sharanda. All rights reserved. // import Foundation import UIKit import Atributika func stringWithAtributikaLogo() -> NSAttributedString { let redColor = UIColor(red:(0xD0 / 255.0), green: (0x02 / 255.0), blue:(0x1B / 255.0), alpha:1.0) let a = Style("a").foregroundColor(redColor) let font = UIFont(name: "AvenirNext-Regular", size: 24)! let grayColor = UIColor(white: 0x66 / 255.0, alpha: 1) let all = Style.font(font).foregroundColor(grayColor) let str = "<a>&lt;a&gt;</a>tributik<a>&lt;/a&gt;</a>".style(tags: a) .styleAll(all) .attributedString return str } func stringWithTagsAndEmoji() -> NSAttributedString { let b = Style("b").font(.boldSystemFont(ofSize: 20)).foregroundColor(.red) let all = Style.font(.systemFont(ofSize: 20)) let str = "Hello <b>W🌎rld</b>!!!".style(tags: b) .styleAll(all) .attributedString return str } func stringWithHashTagAndMention() -> NSAttributedString { let str = "#Hello @World!!!" .styleHashtags(Style.font(.boldSystemFont(ofSize: 45))) .styleMentions(Style.foregroundColor(.red)) .attributedString return str } func stringWithPhone() -> NSAttributedString { let str = "Call me (888)555-5512" .stylePhoneNumbers(Style.foregroundColor(.red)) .attributedString return str } func stringWithLink() -> NSAttributedString { let str = "Check this http://google.com" .styleLinks(Style.foregroundColor(.blue)) .attributedString return str } func stringWithBoldItalic() -> NSAttributedString { let baseFont = UIFont.systemFont(ofSize: 12) let descriptor = baseFont.fontDescriptor.withSymbolicTraits([.traitItalic, .traitBold]) let font = descriptor.map { UIFont(descriptor: $0, size: baseFont.pointSize) } ?? baseFont let a = Style("a").font(font).foregroundColor(.blue) let str = "<a href=\"https://en.wikipedia.org/wiki/World_of_Dance_(TV_series)\" target=\"_blank\">World of Dance</a>".style(tags: a) .attributedString return str } func stringWithManyDetectables() -> NSAttributedString { let links = Style.foregroundColor(.blue) let phoneNumbers = Style.backgroundColor(.yellow) let mentions = Style.font(.italicSystemFont(ofSize: 12)).foregroundColor(.black) let b = Style("b").font(.boldSystemFont(ofSize: 12)) #if swift(>=4.2) let u = Style("u").underlineStyle(.single) #else let u = Style("u").underlineStyle(.styleSingle) #endif let all = Style.font(.systemFont(ofSize: 12)).foregroundColor(.gray) let str = "@all I found <u>really</u> nice framework to manage attributed strings. It is called <b>Atributika</b>. Call me if you want to know more (123)456-7890 #swift #nsattributedstring https://github.com/psharanda/Atributika" .style(tags: u, b) .styleMentions(mentions) .styleHashtags(links) .styleLinks(links) .stylePhoneNumbers(phoneNumbers) .styleAll(all) .attributedString return str } func stringWith3Tags() -> NSAttributedString { let str = "<r>first</r><g>sec⚽️nd</g><b>third</b>".style(tags: Style("r").foregroundColor(.red), Style("g").foregroundColor(.green), Style("b").foregroundColor(.blue)).attributedString return str } func stringWithGrams() -> NSAttributedString { let calculatedCoffee: Int = 768 let g = Style("g").font(.boldSystemFont(ofSize: 12)).foregroundColor(.red) let all = Style.font(.systemFont(ofSize: 12)) let str = "\(calculatedCoffee)<g>g</g>".style(tags: g) .styleAll(all) .attributedString return str } func stringWithStrong() -> NSAttributedString { let str = "<strong>Nice</strong> try, Phil".style(tags: Style("strong").font(.boldSystemFont(ofSize: 15))) .attributedString return str } func stringWithTagAndHashtag() -> NSAttributedString { let str = "<b>Hello</b> #World" let data = str.data(using: .utf8) let options: [NSAttributedString.DocumentReadingOptionKey: Any] = [NSAttributedString.DocumentReadingOptionKey.documentType: NSAttributedString.DocumentType.html,NSAttributedString.DocumentReadingOptionKey.characterEncoding: String.Encoding.utf8.rawValue] let htmlAttrString = try! NSAttributedString(data: data!, options: options, documentAttributes: nil) let result = htmlAttrString.styleHashtags(Style.foregroundColor(.blue)).attributedString return result } func stringWithUnorderedList() -> NSAttributedString { let transformers: [TagTransformer] = [ TagTransformer.brTransformer, TagTransformer(tagName: "li", tagType: .start, replaceValue: "- "), TagTransformer(tagName: "li", tagType: .end, replaceValue: "\n") ] let li = Style("li").font(.systemFont(ofSize: 12)).foregroundColor(.red) return "TODO:<br><li>veni</li><li>vidi</li><li>vici</li>" .style(tags: li, transformers: transformers) .styleAll(Style.font(.boldSystemFont(ofSize: 14))) .attributedString } func stringWithOrderedList() -> NSAttributedString { var counter = 0 let transformers: [TagTransformer] = [ TagTransformer.brTransformer, TagTransformer(tagName: "ol", tagType: .start) { _ in counter = 0 return "" }, TagTransformer(tagName: "li", tagType: .start) { _ in counter += 1 return "\(counter > 1 ? "\n" : "")\(counter). " } ] return "<ol><li>Coffee</li><li>Tea</li><li>Milk</li></ol>".style(tags: [], transformers: transformers).attributedString } func stringWithHref() -> NSAttributedString { return "Hey\r\n<a style=\"text-decoration:none\" href=\"http://www.google.com\">Hello\r\nWorld</a>s".style(tags: Style("a").font(.boldSystemFont(ofSize: 45)).foregroundColor(.red) ).attributedString } func stringWithBoldItalicUnderline() -> NSAttributedString { let font = UIFont(name: "HelveticaNeue-BoldItalic", size: 12)! #if swift(>=4.2) let uib = Style("uib").font(font).underlineStyle(.single) #else let uib = Style("uib").font(font).underlineStyle(.styleSingle) #endif let str = "<br><uib>Italicunderline</uib>".style(tags: uib) .attributedString return str } func stringWithImage() -> NSAttributedString { let font = UIFont(name: "HelveticaNeue-BoldItalic", size: 12)! #if swift(>=4.2) let uib = Style("b").font(font).underlineStyle(.single) #else let uib = Style("b").font(font).underlineStyle(.styleSingle) #endif let str = "<b>Running</b> with <img id=\"scissors\"></img>!".style(tags: uib) let mutableAttrStr = NSMutableAttributedString(attributedString: str.attributedString) var locationShift = 0 for detection in str.detections { switch detection.type { case .tag(let tag): if let imageId = tag.attributes["id"] { let textAttachment = NSTextAttachment() textAttachment.image = UIImage(named: imageId) let imageAttrStr = NSAttributedString(attachment: textAttachment) let nsrange = NSRange.init(detection.range, in: mutableAttrStr.string) mutableAttrStr.insert(imageAttrStr, at: nsrange.location + locationShift) locationShift += 1 } default: break } } return mutableAttrStr } func stringWithStrikethrough() -> NSAttributedString { let all = Style.font(.systemFont(ofSize: 20)) #if swift(>=4.2) let strike = Style("strike").strikethroughStyle(.single).strikethroughColor(.black) #else let strike = Style("strike").strikethroughStyle(.styleSingle).strikethroughColor(.black) #endif let code = Style("code").foregroundColor(.red) let str = "<code>my code</code> <strike>test</strike> testing" .style(tags: [strike,code]) .styleAll(all) .attributedString return str } func stringWithColors() -> NSAttributedString { let r = Style("r").foregroundColor(.red) let g = Style("g").foregroundColor(.green) let b = Style("b").foregroundColor(.blue) let c = Style("c").foregroundColor(.cyan) let m = Style("m").foregroundColor(.magenta) let y = Style("y").foregroundColor(.yellow) let str = "<r>Hello <g>w<c>orld<m></g>; he<y>l</y></c>lo atributika</r></m>".style(tags: r, g, b, c, m, y) .attributedString return str } func stringWithParagraph() -> NSAttributedString { let p = Style("p").font(UIFont(name: "HelveticaNeue", size: 20)!) let strong = Style("strong").font(UIFont(name: "Copperplate", size: 20)!) let str = "<p>some string... <strong> string</strong></p>".style(tags: [p,strong]).attributedString return str } func stringWithFonts() -> NSAttributedString { let string = """ <p><strong>iOS</strong>, <em>Apple</em>, Swift, <u>Objective</u>-C, Mobile, <strong><em>Mobile</em></strong> <em><u>Development</u></em>, <strong><u>Cocoa</u></strong>, Cocoa Touch, Cocoapods, Carthage</p> <p><br></p> <ul> <li>Formatted</li> <li>List</li> </ul> <p><br></p> <p><br></p> <p>Links:</p> <p><a href="https://www.yooture.com" target="_blank">https://www.yooture.com</a></p> <p><a href="http://www.yooture.com" target="_blank">www.yooture.com</a></p> <p><a href="https://yooture.com" target="_blank">https://yooture.com</a></p> <p><br></p> <p>Email:</p> <p><a href="mailto:[email protected]">[email protected]</a></p> <p><a href="mailto:[email protected]">[email protected]</a></p><p><br></p> <p>Phone:</p><p>+41 79 317 95 51</p><p>044 937 19 40</p><p>079 317 95 51</p> """ let transformers: [TagTransformer] = [ TagTransformer.brTransformer, TagTransformer(tagName: "ul", tagType: .start, transform: { _ in "" }), TagTransformer(tagName: "ul", tagType: .end, transform: { _ in "" }), TagTransformer(tagName: "li", tagType: .start, replaceValue: "\t- "), TagTransformer(tagName: "li", tagType: .end, replaceValue: "\n"), TagTransformer(tagName: "p", tagType: .start, replaceValue: "\n") ] let baseFont = Font.systemFont(ofSize: 0) let fallbackFont = UIFont(name: "HelveticaNeue-Light", size: 15)! let italicDescriptor = baseFont.fontDescriptor.withSymbolicTraits([.traitItalic]) let boldDescriptor = baseFont.fontDescriptor.withSymbolicTraits([.traitBold]) let boldFont = boldDescriptor.map {UIFont(descriptor: $0, size: baseFont.pointSize) } ?? fallbackFont let italicFont = italicDescriptor.map {UIFont(descriptor: $0, size: baseFont.pointSize) } ?? fallbackFont let strong = Style("strong").font(boldFont) let italic = Style("em").font(italicFont) let underline = Style("u").underlineStyle(.styleSingle) let link = Style.foregroundColor(.blue).underlineStyle(.styleSingle) return string .style(tags: [strong, italic, underline], transformers: transformers) .styleLinks(link) .stylePhoneNumbers(link) //.styleAll(Style.font(fallbackFont).foregroundColor(.white)) .attributedString } func allSnippets() -> [NSAttributedString] { return [ stringWithAtributikaLogo(), stringWithTagsAndEmoji(), stringWithHashTagAndMention(), stringWithPhone(), stringWithLink(), stringWithBoldItalic(), stringWithManyDetectables(), stringWith3Tags(), stringWithGrams(), stringWithStrong(), stringWithTagAndHashtag(), stringWithUnorderedList(), stringWithOrderedList(), stringWithHref(), stringWithBoldItalicUnderline(), stringWithImage(), stringWithStrikethrough(), stringWithColors(), stringWithParagraph(), stringWithFonts() ] }
[ 169869 ]
f32338c5d7e2068f33fce3616ad4836bfda8b694
a3c9ba06b824cdda3918f9106440530d6fc20934
/PoolPal/PoolPal/SpecialControllers/CKController.swift
824c9afb8c9e276d07eaf372544c1e8dac28ed08
[ "MIT" ]
permissive
brockjb41/PoolPal
1c9e13675d239430e68ce0003cf71412b09ee8cb
3c136ab5bdf90798f90a5d5500a8ce32f290242d
refs/heads/master
2020-03-19T06:39:43.194642
2018-06-18T23:08:02
2018-06-18T23:08:02
136,043,822
0
0
MIT
2018-06-18T23:08:03
2018-06-04T15:14:50
Swift
UTF-8
Swift
false
false
2,659
swift
// // CKController.swift // PoolPal // // Created by Brock Boyington on 6/4/18. // Copyright © 2018 Brock Boyington. All rights reserved. // import Foundation import CloudKit class CKController { static let shared = CKController() let publicDB = CKContainer.default().publicCloudDatabase func fetch(type: String, predicate: NSPredicate,completion: @escaping([CKRecord]?, Error?) -> Void) { let query = CKQuery(recordType: type, predicate: predicate) publicDB.perform(query, inZoneWith: nil, completionHandler: completion) } // func save(recordsToSave: [CKRecord], completion: @escaping(Error?) -> Void) { // modifyRecords(recordsToSave: recordsToSave, recordIDsToDelete: nil, completion: completion) // } // // func delete(recordIDsToDelete: [CKRecordID], completion: @escaping(Error?) -> Void) { // modifyRecords(recordsToSave: nil, recordIDsToDelete: recordIDsToDelete, completion: completion) // } // func modifyRecords(records: [CKRecord], // perRecordCompletionBlock: ((CKRecord?, Error?) -> Void)?, // completion: (([CKRecord]?, Error?) -> Void)?) { // // let modifyOperation = CKModifyRecordsOperation(recordsToSave: records, recordIDsToDelete: nil) // // modifyOperation.savePolicy = .changedKeys // modifyOperation.queuePriority = .high // modifyOperation.qualityOfService = .userInteractive // // modifyOperation.perRecordCompletionBlock = perRecordCompletionBlock // modifyOperation.modifyRecordsCompletionBlock = { (records, _, error) in // completion?(records, error) // } // publicDB.add(modifyOperation) // } func subscribeToPushNotifications (type: String, completion: @escaping(Error?) -> Void = { _ in }) { // create subscription object let subsrictionToPN = CKQuerySubscription(recordType: type, predicate: NSPredicate(value: true), options: .firesOnRecordCreation) // create a notification info object let notificationInfo = CKNotificationInfo() notificationInfo.alertBody = "A new message has been posted to the bulletin baord." // set our subscription notification info to the notification object we just created subsrictionToPN.notificationInfo = notificationInfo publicDB.save(subsrictionToPN) { (_, error) in if let error = error { print("There was an error saving the subscription to CK: \(error)") } completion(error) } } }
[ -1 ]
13352a82e6d9bac11cd64d294d096b6b3ab65251
c8466fccfa0c557a7053b69d0ed1cf6af706fde0
/NewAny/NAPreferenceController.swift
ead2471033aa3ded19bff74340c3d896189caa36
[ "MIT" ]
permissive
xiaguoxin/NewAny
c14c841bdd6b2135206ec78793fed9d8fc8d8037
937e1950798d2ec2a94ab445926b24d794229ff8
refs/heads/master
2020-05-31T06:18:56.207875
2019-05-16T06:59:00
2019-05-16T06:59:00
190,139,929
1
0
null
2019-06-04T06:09:06
2019-06-04T06:09:06
null
UTF-8
Swift
false
false
5,254
swift
// // NAPreferenceController.swift // NewAny // // Created by 杨钺 on 2019/4/26. // Copyright © 2019 ilime. All rights reserved. // import os.log import Cocoa class NAPreferenceController: NSViewController, NSTableViewDataSource { static let log = OSLog(subsystem: "org.ilime.NewAny", category: "NAPreferenceController") private let NewAnyFolderURL = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent("Library/Containers/org.ilime.NewAny.NewAnyFinder/Data/NewAnyFolder") @IBOutlet weak var addFileTextField: NSTextField! @IBOutlet weak var filesTable: NSTableView! func initFileList() { if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { let files = d.array(forKey: "NAFileList") if files == nil { d.set([], forKey: "NAFileList") } } } override func viewDidLoad() { super.viewDidLoad() filesTable.delegate = self filesTable.dataSource = self initFileList() } func numberOfRows(in tableView: NSTableView) -> Int { if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { return d.array(forKey: "NAFileList")?.count ?? 0 } return 0 } @IBAction func addFile(_ sender: NSButton) { let filename = addFileTextField.stringValue if (filename.isEmpty) { return } if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { var files = d.array(forKey: "NAFileList")! files.append(["name": filename, "exist": "N"]) d.set(files, forKey: "NAFileList") reloadFileList() addFileTextField.stringValue = "" } } @IBAction func importFile(_ sender: NSButton) { let panel = NSOpenPanel() panel.canChooseFiles = true panel.canChooseDirectories = false panel.allowsMultipleSelection = false panel.canCreateDirectories = false if panel.runModal() == .OK { if let url = panel.url { do { try FileManager.default.copyItem(at: url, to: NewAnyFolderURL.appendingPathComponent(url.lastPathComponent)) if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { var files = d.array(forKey: "NAFileList")! files.append(["name": url.lastPathComponent, "exist": "Y"]) d.set(files, forKey: "NAFileList") reloadFileList() } } catch let error { let message = "Error occuring in importFile(): \(error)" os_log("%@", log: NAPreferenceController.log, type: .error, message) } } } } func reloadFileList() { filesTable.reloadData() } } extension NAPreferenceController: NSTableViewDelegate { func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { let files = d.array(forKey: "NAFileList") guard let file = files?[row] as? [String: String] else { return nil } if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "NameCellID"), owner: nil) as? NSTableCellView { cell.textField?.stringValue = file["name"]! return cell } } return nil } override func rightMouseDown(with event: NSEvent) { let menu = NSMenu() menu.addItem(NSMenuItem(title: "Delete", action: #selector(deleteFile(_:)), keyEquivalent: "")) filesTable.menu = menu } @objc private func deleteFile(_ sender: AnyObject) { guard !filesTable.selectedRowIndexes.isEmpty else { return } if let d = UserDefaults(suiteName: "group.org.ilime.NewAny.SharedData") { var files = d.array(forKey: "NAFileList") as! [[String: String]] filesTable .selectedRowIndexes .sorted(by: >) .forEach { index in if files[index]["exist"] == "Y" { let filename = files[index]["name"]! do { try FileManager.default.removeItem(at: NewAnyFolderURL.appendingPathComponent(filename)) } catch let error { let message = "Error occuring in deleteFile(): \(error)" os_log("%@", log: NAPreferenceController.log, type: .error, message) } } files.remove(at: index) } d.set(files, forKey: "NAFileList") reloadFileList() } } }
[ -1 ]
3c4a4f4544454665f5f27df838a79e8dafd06db8
bbd35b4de8aa77bd905321f2aaf495bbabbb484b
/Instagrid/Model/Grid.swift
56e81ef8c64492beaf0ead16de6d3cddc0b82234
[]
no_license
thBoudge/Instagrid
3ad949de7ad3c149022c07bdc7414af9012d0ba0
f3ea60ac949e2870b9e2c3cd850929591cd1ff91
refs/heads/master
2020-04-02T08:05:10.943156
2019-07-25T03:10:37
2019-07-25T03:10:37
154,228,624
0
0
null
null
null
null
UTF-8
Swift
false
false
595
swift
// // Grid.swift // Instagrid // // Created by Thomas Bouges on 18-10-22. // Copyright © 2018 Thomas Bouges. All rights reserved. // import Foundation // enum for each three possible grid enum Grid { case oneTwo, twoOne, four var display: [Bool] { switch self { case .oneTwo: return [false, true, false, false] case .twoOne: return [false, false, false, true] case .four: return [false, false, false, false] // perso: break default is not an obligation if we are doing an enum } } }
[ -1 ]
b96069c33fc118194a5a79c3b2a2037de121e7e8
229a691059c14f2fa9ce9464392a941658494173
/GitHubUserAPI/View Model/GitHubUserListViewModel.swift
c38c33b2f82b3f15c8b14ff3a370271b5c7031c6
[]
no_license
chunykuo/GitHubUserAPI
15117eab7b019d07637cb46c702666b71c17ea76
df0ca58e929042d12cf5bc88dfa69d877592a7db
refs/heads/main
2023-07-07T22:56:29.699533
2021-08-10T14:57:38
2021-08-10T14:57:38
394,301,220
0
0
null
null
null
null
UTF-8
Swift
false
false
897
swift
// // GitHubUserListViewModel.swift // GitHubUserAPI // // Created by David Kuo on 2021/8/9. // import Foundation class GitHubUserListViewModel { var userList: Box<[GitHubUserListCellViewModel]> = Box([]) var lastedID: Box<Int> = Box(0) func fetchUserListFor(page: Int, completion: @escaping () -> ()) { let gitHubService = GitHubService() gitHubService.getUserList(since: page) { users in for user in users { let newUser = GitHubUserListCellViewModel() newUser.title.value = user.login newUser.type.value = user.type newUser.imageUrl.value = user.avatar_url self.userList.value.append(newUser) } self.lastedID.value = users[users.count - 1].id completion() } failure: { error in print(error) } } }
[ -1 ]
85042a86d3f7f603530f632067a737c8a0740930
388991ac3d433d9e521924e03a1d74566f4b65b2
/SimpleDrawApp/GalleryVC/GalleryCell/ItemCollectionViewCell.swift
78f9b881f0e9aee6bc1b499cff949a12d203e30b
[]
no_license
takometonidze01/DrawingApp
48a8368b2dd9a97fff6fce4364765614748d20af
cde89360517b7491934d232b43967d442cba088b
refs/heads/master
2023-06-10T01:55:00.409453
2021-07-01T15:56:37
2021-07-01T15:56:37
382,080,730
0
0
null
null
null
null
UTF-8
Swift
false
false
383
swift
// // ItemCollectionViewCell.swift // SimpleDrawApp // // Created by CodergirlTM on 01.07.21. // import UIKit class ItemCollectionViewCell: UICollectionViewCell { @IBOutlet weak var paintedImg: UIImageView! var image:UIImage! { didSet { self.paintedImg.image = image } } override func awakeFromNib() { super.awakeFromNib() } }
[ -1 ]
3072a446c97487d1fc86551d5f21e4d094c1241a
d482870252a1605bf3627582545b82478eecd69a
/MVVMTemplate/Features/Users/UserCellViewModel.swift
b4511fc26be6eec4779f93ffa748ed5b456531ca
[]
no_license
lytieunuong1/mvvm_template
15130f3fb7f274e8cc1c7f763abd72f6f3149754
5fe33c556214567f77f4a115cf6a460977159422
refs/heads/master
2020-05-05T09:48:35.898213
2019-04-07T04:45:40
2019-04-07T04:45:40
179,918,055
0
0
null
null
null
null
UTF-8
Swift
false
false
462
swift
// // UserCellViewModel.swift // MVVMTemplate // // Created by Thuỳ Nguyễn on 2/8/18. // Copyright © 2018 NUS Technology. All rights reserved. // import Foundation import RxSwift struct UserCellViewModel { //MARK: Output let nameString = BehaviorSubject<String>(value: "") let jobString = BehaviorSubject<String>(value: "") init(user: User) { nameString.onNext(user.name) jobString.onNext(user.job) } }
[ -1 ]
969e5f6874d52c7a9121f4f4590ca7ab0752079c
81603c988fd7f8e49e1a644a63e6f335beb1cb8c
/Statistics/Model/NegativeExponentialDistribution.swift
bcf929cecf4f77c20d0480045fec52789df46eb1
[]
no_license
psp300xxx/Statistics
49209f528ae9b86b678fd78224065329e59cc46d
b3e87db162ccb7a18caae46964e5c59e54afb6fd
refs/heads/master
2020-04-08T11:48:03.763720
2018-11-28T15:56:25
2018-11-28T15:56:25
159,320,564
0
0
null
null
null
null
UTF-8
Swift
false
false
793
swift
// // NegativeExponentialDistribution.swift // Statistics // // Created by Luigi De Marco on 26/11/2018. // Copyright © 2018 Luigi De Marco. All rights reserved. // import Foundation public class NegativeExponentialDistribution : ProbabilityDistribution { private let lambda : Double public var LAMBDA : Double { return lambda } public var name: String? public init(lambda : Double){ self.lambda = lambda } public init(){ self.lambda = 1 } public func average() -> Double { return 1/lambda } public func variance() -> Double { return 1/(lambda*lambda) } public func probabiltyAtTime(time: Double) -> Double { return 1 - exp(-lambda*time) } }
[ -1 ]
a9483f042bc75b0826299c22ea6013956b918a7a
565461f7737ddb3fc03048780949ea42395adba6
/BBMobilePointLogin/BBMobilePoint.swift
f1ab6c9de1f2f4480c7d83ebbe1ca3c13acda946
[ "MIT" ]
permissive
starhoshi/BBMobilePointLogin
0c3729199014a9f0b427d9d6ee7248980e4101ed
2a0cab5a49782d98be25d4ba15bc80b777db3b53
refs/heads/master
2016-09-10T21:16:13.613972
2015-04-29T08:12:30
2015-04-29T08:12:30
34,606,438
0
0
null
null
null
null
UTF-8
Swift
false
false
1,688
swift
// // BBMobilePoint.swift // BBMobilePointLogin // // Created by Kensuke Hoshikawa on 2015/04/26. // Copyright (c) 2015年 star__hoshi. All rights reserved. // import Foundation import UIKit class BBMobilePoint{ let bbLoginWebView:UIWebView! let html:String! /** :param: BBMobilePointHtml <#BBMobilePointHtml description#> :returns: <#return value description#> */ init(BBMobilePointWebView:UIWebView){ bbLoginWebView = BBMobilePointWebView let js = "document.body.innerHTML" html = bbLoginWebView.stringByEvaluatingJavaScriptFromString(js) } /** :param: html <#html description#> */ func setParametor(){ } func login() -> Bool{ var err : NSError? let option = CInt(HTML_PARSE_NOERROR.value | HTML_PARSE_RECOVER.value) let parser = HTMLParser(html: html, encoding: NSUTF8StringEncoding, option: option, error: &err) if err != nil { println(err) exit(1) } let bodyNode = parser.body var applicationDetail = [String:Any]() var application:[[String:Any]] = [] if let path = bodyNode?.xpath("//div[@class='stream-item oauth-application ']") { for node in path { // iOSアプリの許可を取り消す方法はこちら if (node.findChildTagAttr("a", attrName: "class", attrValue: "revoke ios-revoke-access") != nil){ continue } applicationDetail = getApplicationData(node) application.append(applicationDetail) } } return true } }
[ -1 ]
614522c2d7bfa11d36070e41ad241dbc31037445
279658610f44f3b4730b8e7956822a81da2e814a
/MTPopMenu/ViewController.swift
1e7cd538c2e20b1e047d780c0276a0326847a614
[ "MIT" ]
permissive
carabina/MTPopMenu
e172f278c3ea44c25d0442b34bc0025b80d0f002
101dc7ca0e5fb7a62a12c55e1a2ac614f5ad9ae1
refs/heads/master
2020-03-27T08:59:09.351687
2018-08-24T02:03:12
2018-08-24T02:03:12
146,304,467
1
0
null
2018-08-27T13:52:52
2018-08-27T13:52:51
null
UTF-8
Swift
false
false
1,602
swift
// // ViewController.swift // MTPopMenu // // Created by Mac on 2018/8/21. // Copyright © 2018年 Mac. All rights reserved. // import UIKit class ViewController: UIViewController { let menu = MTPopMenu.sharedPopMenu() // 这里用元祖记录(选中index, 标题) // 当然也可以用别的方式去记录你自己选中的index,再传给MTPopMenu var titleArray = [(0, ["第一个按钮", "啦啦啦"]), (0, ["第二个按钮", "呵呵呵呵", "汪汪汪汪"]), (0, ["第三个按钮", "大大大"])] override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. for (index, _) in self.titleArray.enumerated() { let btn = UIButton(frame: CGRect.init(x: 50 + 100 * index, y: 100, width: 50, height: 30)) btn.backgroundColor = .red btn.addTarget(self, action: #selector(showMenu(btn:)), for: .touchUpInside) btn.tag = index self.view.addSubview(btn) } } @objc func showMenu(btn: UIButton) { var tump = titleArray[btn.tag] menu.popMenu(anchorView: btn, titleArray: tump.1) menu.selectTextColor = .green // 选中字体颜色 menu.normalTextColor = .yellow // 默认颜色 menu.menuBgColor = .lightGray // table背景色 menu.selectIndex = tump.0 menu.didSelectItem = { (index, model) in tump.0 = index self.titleArray[btn.tag] = tump // TODO 选中处理 } } }
[ -1 ]
009a45288450e1eab60d4ae070f620830b917095
56fa093995a47995b5a3f9a82c5b6e372b4443e4
/Carthage/Checkouts/swift-sdk/Tests/VisualRecognitionV3Tests/VisualRecognition+UIImageTests.swift
a75d104a16a8f4049d956a3ce0a5aabb08b8323a
[ "Apache-2.0", "MIT" ]
permissive
gain620/food-watch
99c877571d4487ef60dcb0a7940dff32a80c48a5
c57bbec6574a5618bc7547d9e4a24d072bca933e
refs/heads/master
2020-04-29T05:03:40.275482
2019-03-19T16:49:09
2019-03-19T16:49:09
175,868,798
1
0
null
null
null
null
UTF-8
Swift
false
false
7,711
swift
/** * Copyright IBM Corporation 2016-2017 * * 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. **/ // swiftlint:disable function_body_length force_try force_unwrapping file_length #if os(iOS) || os(tvOS) || os(watchOS) import XCTest import Foundation import UIKit import VisualRecognitionV3 class VisualRecognitionUIImageTests: XCTestCase { private var visualRecognition: VisualRecognition! private let classifierID = WatsonCredentials.VisualRecognitionClassifierID private var car: UIImage { let bundle = Bundle(for: type(of: self)) let file = bundle.url(forResource: "car", withExtension: "png")! return UIImage(contentsOfFile: file.path)! } private var obama: UIImage { let bundle = Bundle(for: type(of: self)) let file = bundle.url(forResource: "obama", withExtension: "jpg")! return UIImage(contentsOfFile: file.path)! } override func setUp() { super.setUp() continueAfterFailure = false instantiateVisualRecognition() } func instantiateVisualRecognition() { guard let apiKey = WatsonCredentials.VisualRecognitionAPIKey else { XCTFail("Missing credentials for Visual Recognition service") return } visualRecognition = VisualRecognition(version: versionDate, apiKey: apiKey) if let url = WatsonCredentials.VisualRecognitionURL { visualRecognition.serviceURL = url } visualRecognition.defaultHeaders["X-Watson-Learning-Opt-Out"] = "true" visualRecognition.defaultHeaders["X-Watson-Test"] = "true" } func waitForExpectations(timeout: TimeInterval = 15.0) { waitForExpectations(timeout: timeout) { error in XCTAssertNil(error, "Timeout") } } func testClassifyUIImage() { let expectation = self.expectation(description: "Classify a UIImage using the default classifier.") visualRecognition.classify(image: car, acceptLanguage: "en") { response, error in if let error = error { XCTFail(unexpectedErrorMessage(error)) return } guard let classifiedImages = response?.result else { XCTFail(missingResultMessage) return } var containsPersonClass = false var classifierScore: Double? // verify classified images object XCTAssertNil(classifiedImages.warnings) XCTAssertEqual(classifiedImages.images.count, 1) // verify the image's metadata let image = classifiedImages.images.first XCTAssertNil(image?.sourceURL) XCTAssertNil(image?.resolvedURL) XCTAssertNil(image?.error) XCTAssertEqual(image?.classifiers.count, 1) // verify the image's classifier let classifier = image?.classifiers.first XCTAssertEqual(classifier?.classifierID, "default") XCTAssertEqual(classifier?.name, "default") guard let classes = classifier?.classes else { XCTFail("Did not return any classes") return } XCTAssertGreaterThan(classes.count, 0) for cls in classes where cls.className == "car" { containsPersonClass = true classifierScore = cls.score break } XCTAssertEqual(true, containsPersonClass) if let score = classifierScore { XCTAssertGreaterThan(score, 0.5) } expectation.fulfill() } waitForExpectations() } func testDetectFacesByUIImage() { let expectation = self.expectation(description: "Detect faces in a UIImage.") visualRecognition.detectFaces(image: obama) { response, error in if let error = error { XCTFail(unexpectedErrorMessage(error)) return } guard let faceImages = response?.result else { XCTFail(missingResultMessage) return } // verify face images object XCTAssertEqual(faceImages.imagesProcessed, 1) XCTAssertNil(faceImages.warnings) XCTAssertEqual(faceImages.images.count, 1) // verify the face image object let face = faceImages.images.first XCTAssertNil(face?.sourceURL) XCTAssertNil(face?.resolvedURL) XCTAssertNotNil(face?.image) XCTAssertNil(face?.error) XCTAssertEqual(face?.faces.count, 1) // verify the age let age = face?.faces.first?.age XCTAssertGreaterThanOrEqual(age!.min!, 40) XCTAssertLessThanOrEqual(age!.max!, 54) XCTAssertGreaterThanOrEqual(age!.score, 0.25) // verify the face location let location = face?.faces.first?.faceLocation XCTAssertEqual(location?.height, 174) XCTAssertEqual(location?.left, 219) XCTAssertEqual(location?.top, 78) XCTAssertEqual(location?.width, 143) // verify the gender let gender = face?.faces.first?.gender XCTAssertEqual(gender!.gender, "MALE") XCTAssertGreaterThanOrEqual(gender!.score, 0.75) expectation.fulfill() } waitForExpectations() } func testClassifyWithLocalModel() { if #available(iOS 11.0, tvOS 11.0, watchOS 4.0, *) { // update the local model let expectation1 = self.expectation(description: "updateLocalModel") visualRecognition.updateLocalModel(classifierID: classifierID) { _, error in if let error = error { XCTFail(unexpectedErrorMessage(error)) return } expectation1.fulfill() } waitForExpectations() // classify using the local model let expectation2 = self.expectation(description: "classifyWithLocalModel") let image = UIImage(named: "car", in: Bundle(for: type(of: self)), compatibleWith: nil)! visualRecognition.classifyWithLocalModel(image: image, classifierIDs: [classifierID], threshold: 0.1) { classifiedImages, error in if let error = error { XCTFail(unexpectedErrorMessage(error)) return } guard let classifiedImages = classifiedImages else { XCTFail(missingResultMessage) return } print(classifiedImages) expectation2.fulfill() } waitForExpectations() // delete the local model do { try visualRecognition.deleteLocalModel(classifierID: classifierID) } catch { XCTFail("Failed to delete the local model: \(error)") } } else { XCTFail("Core ML required iOS 11+") } } } #endif
[ -1 ]