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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a9f8c1346548be84de3d0d8c506fe6e308269c0 | d0280f41da8d9f0dba676fadd277e6bdf741149d | /validation-test/compiler_crashers_fixed/27683-swift-tuplepattern-create.swift | 94cd9ae156883025a546c9805622f62bab2c780a | [
"Apache-2.0",
"Swift-exception"
] | permissive | zhongaiyemaozi/swift | 310a5867a3f797986ddaa3769589c5cc484ee47a | ca165e5c4afae294ae386c2ca4593e5f22c416f0 | refs/heads/master | 2021-01-12T10:05:08.416860 | 2016-12-13T09:00:12 | 2016-12-13T09:00:12 | 76,355,607 | 4 | 0 | null | 2016-12-13T12:11:21 | 2016-12-13T12:11:21 | null | UTF-8 | Swift | false | false | 480 | swift | // This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// RUN: not %target-swift-frontend %s -typecheck
import n d
class a{{}func g{
struct S<T where g:a{
class a{{
}
struct A{func a{A{
| [
74170,
74206,
74942,
74943,
74947,
74949,
74951,
74952,
74953,
74954,
74956,
74958,
74959,
74962,
74964,
74966,
74970,
74974,
74975,
74976,
74977,
74978,
74979,
74981,
74982,
74983,
74984,
74985,
74987,
74988,
74990,
74991,
74992,
74993,
74995,
74997,
75000,
75003,
75004,
75007,
75008,
75010,
75011,
75012,
75014,
75016,
75017,
75020,
75021,
75022,
75023,
75025,
75026,
75029,
75030,
75033,
75034,
75035,
75037,
75038,
75039,
75040,
75042,
75043,
75044,
75045,
75046,
75047,
75049,
75050,
75051,
75052,
75054,
75055,
75056,
75058,
75062,
75063,
75064,
75066,
75067,
75068,
75069,
75070,
75071,
75072,
75075,
75076,
75077,
75079,
75080,
75081,
75082,
75083,
75084,
75085,
75087,
75088,
75090,
75092,
75093,
75095,
75096,
75097,
75098,
75099,
75102,
75103,
75104,
75105,
75107,
75108,
75109,
75110,
75111,
75112,
75116,
75117,
75118,
75119,
75120,
75122,
75123,
75125,
75128,
75129,
75131,
75132,
75133,
75134,
75135,
75139,
75140,
75142,
75144,
75145,
75147,
75148,
75149,
75152,
75153,
75154,
75155,
75158,
75160,
75162,
75163,
75164,
75166,
75167,
75168,
75170,
75172,
75173,
75174,
75176,
75178,
75179,
75180,
75182,
75184,
75185,
75186,
75187,
75189,
75190,
75191,
75192,
75193,
75194,
75195,
75196,
75200,
75201,
75203,
75204,
75205,
75206,
75207,
75208,
75209,
75212,
75214,
75215,
75217,
75218,
75219,
75220,
75221,
75222,
75223,
75224,
75225,
75226,
75227,
75228,
75229,
75230,
75236,
75237,
75238,
75239,
75240,
75241,
75242,
75243,
75245,
75250,
75251,
75253,
75254,
75256,
75257,
75258,
75260,
75261,
75265,
75266,
75268,
75270,
75271,
75272,
75273,
75274,
75275,
75276,
75277,
75278,
75279,
75282,
75285,
75286,
75289,
75291,
75293,
75295,
75296,
75297,
75299,
75301,
75303,
75304,
75305,
75306,
75307,
75308,
75310,
75312,
75313,
75314,
75315,
75316,
75317,
75320,
75321,
75322,
75324,
75325,
75326,
75327,
75329,
75330,
75333,
75334,
75335,
75337,
75338,
75340,
75341,
75342,
75343,
75346,
75347,
75348,
75349,
75350,
75351,
75352,
75353,
75356,
75357,
75358,
75359,
75360,
75361,
75362,
75364,
75365,
75366,
75367,
75368,
75369,
75370,
75371,
75372,
75373,
75375,
75376,
75377,
75378,
75380,
75381,
75384,
75385,
75386,
75387,
75388,
75389,
75391,
75392,
75394,
75395,
75396,
75397,
75400,
75401,
75402,
75403,
75404,
75405,
75406,
75407,
75410,
75411,
75413,
75414,
75415,
75416,
75417,
75418,
75420,
75422,
75424,
75425,
75426,
75427,
75428,
75430,
75431,
75432,
75435,
75439,
75440,
75441,
75444,
75445,
75446,
75447,
75448,
75449,
75450,
75453,
75454,
75455,
75456,
75457,
75458,
75459,
75461,
75462,
75463,
75464,
75465,
75468,
75469,
75470,
75471,
75472,
75473,
75474,
75476,
75477,
75478,
75481,
75486,
75487,
75491,
75494,
75495,
75497,
75498,
75499,
75500,
75502,
75503,
75504,
75505,
75506,
75507,
75508,
75509,
75513,
75514,
75515,
75516,
75518,
75519,
75520,
75521,
75523,
75524,
75525,
75527,
75528,
75529,
75530,
75531,
75532,
75533,
75534,
75535,
75536,
75537,
75538,
75540,
75543,
75544,
75545,
75546,
75547,
75550,
75551,
75553,
75554,
75555,
75556,
75558,
75559,
75560,
75561,
75562,
75564,
75565,
75566,
75568,
75569,
75570,
75571,
75572,
75575,
75578,
75579,
75580,
75581,
75584,
75585,
75586,
75587,
75589,
75590,
75594,
75595,
75596,
75598,
75599,
75600,
75601,
75602,
75603,
75604,
75605,
75606,
75607,
75608,
75610,
75612,
75613,
75614,
75616,
75619,
75620,
75623,
75625,
75628,
75633,
75635,
75636,
75638,
75640,
75641,
75642,
75643,
75645,
75646,
75647,
75648,
75649,
75650,
75652,
75653,
75655,
75656,
75657,
75658,
75659,
75660,
75661,
75662,
75664,
75666,
75669,
75670,
75671,
75672,
75674,
75677,
75678,
75679,
75681,
75683,
75684,
75686,
75688,
75689,
75690,
75691,
75692,
75694,
75697,
75699,
75700,
75704,
75705,
75707,
75708,
75712,
75714,
75715,
75716,
75717,
75718,
75719,
75720,
75721,
75722,
75726,
75729,
75730,
75731,
75732,
75733,
75734,
75735,
75736,
75737,
75738,
75739,
75740,
75741,
75744,
75745,
75746,
75747,
75748,
75749,
75750,
75753,
75754,
75755,
75756,
75758,
75759,
75760,
75762,
75763,
75764,
75766,
75768,
75772,
75773,
75775,
75776,
75778,
75779,
75781,
75785,
75786,
75787,
75789,
75792,
75793,
75794,
75795,
75797,
75800,
75801,
75802,
75803,
75806,
75810,
75811,
75812,
75813,
75814,
75815,
75816,
75817,
75819,
75820,
75821,
75822,
75823,
75824,
75825,
75826,
75827,
75829,
75830,
75831,
75832,
75835,
75836,
75838,
75839,
75840,
75842,
75843,
75845,
75846,
75848,
75849,
75851,
75852,
75853,
75854,
75855,
75856,
75857,
75858,
75859,
75860,
75863,
75865,
75867,
75868,
75869,
75872,
75873,
75874,
75878,
75879,
75880,
75882,
75883,
75884,
75885,
75886,
75887,
75888,
75890,
75891,
75892,
75893,
75894,
75896,
75897,
75898,
75899,
75901,
75903,
75905,
75906,
75907,
75908,
75909,
75910,
75911,
75912,
75913,
75914,
75915,
75916,
75917,
75918,
75919,
75922,
75924,
75925,
75926,
75927,
75928,
75929,
75930,
75931,
75932,
75933,
75934,
75937,
75938,
75939,
75941,
75943,
75944,
75945,
75946,
75947,
75948,
75949,
75950,
75951,
75952,
75953,
75954,
75955,
75956,
75957,
75958,
75960,
75961,
75962,
75963,
75964,
75965,
75967,
75968,
75969,
75970,
75971,
75972,
75974,
75975,
75976,
75978,
75979,
75980,
75981,
75982,
75983,
75985,
75987,
75989,
75991,
75994,
75995,
75997,
75999,
76001,
76002,
76003,
76004,
76007,
76008,
76010,
76012,
76013,
76015,
76017,
76018,
76019,
76021,
76022,
76024,
76025,
76026,
76027,
76028,
76029,
76030,
76031,
76033,
76035,
76036,
76038,
76039,
76040,
76041,
76042,
76043,
76044,
76045,
76046,
76047,
76048,
76049,
76051,
76052,
76053,
76054,
76056,
76058,
76059,
76060,
76061,
76062,
76064,
76065,
76066,
76067,
76069,
76071,
76073,
76075,
76076,
76077,
76078,
76079,
76080,
76082,
76083,
76086,
76087,
76089,
76091,
76092,
76093,
76094,
76095,
76096,
76097,
76098,
76099,
76101,
76102,
76104,
76109,
76110,
76111,
76112,
76113,
76115,
76117,
76120,
76121,
76122,
76123,
76124,
76126,
76127,
76129,
76130,
76131,
76133,
76134,
76135,
76136,
76137,
76138,
76139,
76140,
76141,
76142,
76144,
76145,
76146,
76147,
76149,
76150,
76151,
76156,
76158,
76159,
76161,
76162,
76163,
76164,
76165,
76169,
76170,
76171,
76172,
76174,
76175,
76176,
76179,
76180,
76181,
76182,
76184,
76185,
76186,
76187,
76191,
76192,
76193,
76194,
76195,
76196,
76197,
76198,
76199,
76201,
76202,
76203,
76205,
76208,
76210,
76213,
76215,
76216,
76219,
76220,
76221,
76222,
76223,
76226,
76227,
76228,
76229,
76233,
76234,
76235,
76236,
76237,
76238,
76239,
76240,
76241,
76242,
76243,
76244,
76247,
76250,
76252,
76254,
76255,
76256,
76257,
76259,
76261,
76262,
76263,
76264,
76266,
76267,
76268,
76270,
76272,
76275,
76276,
76277,
76278,
76279,
76281,
76284,
76285,
76286,
76287,
76288,
76290,
76293,
76295,
76296,
76297,
76298,
76299,
76301,
76303,
76304,
76305,
76306,
76307,
76308,
76309,
76310,
76311,
76313,
76314,
76315,
76316,
76318,
76319,
76320,
76323,
76326,
76328,
76329,
76330,
76331,
76332,
76334,
76335,
76337,
76339,
76341,
76342,
76344,
76347,
76348,
76350,
76351,
76352,
76354,
76356,
76358,
76359,
76362,
76365,
76368,
76369,
76371,
76373,
76375,
76376,
76381,
76382,
76383,
76385,
76386,
76388,
76389,
76392,
76393,
76395,
76396,
76398,
76399,
76401,
76402,
76403,
76404,
76405,
76408,
76409,
76411,
76412,
76413,
76414,
76415,
76418,
76422,
76423,
76424,
76425,
76426,
76427,
76428,
76429,
76431,
76434,
76435,
76436,
76437,
76438,
76439,
76441,
76442,
76445,
76446,
76447,
76448,
76449,
76451,
76452,
76453,
76454,
76456,
76457,
76459,
76460,
76462,
76463,
76464,
76466,
76468,
76469,
76470,
76471,
76472,
76473,
76475,
76476,
76477,
76479,
76480,
76481,
76482,
76483,
76485,
76489,
76490,
76491,
76492,
76493,
76494,
76497,
76498,
76500,
76503,
76504,
76505,
76506,
76507,
76508,
76509,
76510,
76512,
76513,
76514,
76515,
76516,
76519,
76522,
76523,
76524,
76525,
76526,
76527,
76528,
76529,
76530,
76531,
76532,
76534,
76535,
76536,
76537,
76538,
76539,
76540,
76544,
76545,
76546,
76547,
76548,
76549,
76552,
76554,
76555,
76557,
76558,
76559,
76560,
76561,
76563,
76564,
76566,
76567,
76568,
76569,
76572,
76573,
76575,
76576,
76577,
76578,
76579,
76582,
76584,
76585,
76587,
76588,
76590,
76591,
76592,
76595,
76596,
76597,
76598,
76599,
76600,
76601,
76604,
76605,
76607,
76611,
76612,
76613,
76614,
76615,
76616,
76617,
76618,
76621,
76623,
76624,
76625,
76628,
76630,
76631,
76633,
76634,
76635,
76636,
76637,
76638,
76640,
76641,
76642,
76643,
76644,
76645,
76647,
76648,
76649,
76651,
76657,
76659,
76660,
76663,
76665,
76667,
76668,
76669,
76670,
76672,
76673,
76674,
76675,
76681,
76683,
76684,
76685,
76687,
76688,
76689,
76690,
76691,
76692,
76694,
76695,
76696,
76697,
76698,
76699,
76700,
76702,
76703,
76704,
76705,
76706,
76707,
76708,
76710,
76711,
76712,
76713,
76714,
76715,
76716,
76718,
76719,
76723,
76725,
76726,
76727,
76728,
76729,
76731,
76733,
76734,
76735,
76736,
76737,
76738,
76739,
76740,
76742,
76743,
76744,
76745,
76746,
76748,
76749,
76751,
76752,
76753,
76755,
76758,
76759,
76761,
76764,
76765,
76766,
76768,
76770,
76772,
76773,
76774,
76775,
76776,
76777,
76778,
76780,
76783,
76785,
76786,
76788,
76789,
76790,
76791,
76794,
76795,
76797,
76801,
76802,
76804,
76805,
76806,
76809,
76811,
76812,
76813,
76814,
76815,
76816,
76817,
76819,
76820,
76821,
76822,
76823,
76824,
76825,
76827,
76828,
76829,
76831,
76832,
76833,
76835,
76836,
76838,
76841,
76842,
76844,
76847,
76849,
76851,
76853,
76856,
76858,
76859,
76860,
76862,
76863,
76864,
76865,
76866,
76872,
76873,
76874,
76875,
76876,
76877,
76878,
76882,
76884,
76885,
76888,
76889,
76891,
76893,
76895,
76896,
76897,
76898,
76900,
76903,
76904,
76905,
76906,
76907,
76909,
76910,
76911,
76913,
76914,
76915,
76916,
76917,
76918,
76919,
76921,
76922,
76923,
76925,
76926,
76927,
76928,
76929,
76930,
76931,
76934,
76937,
76938,
76940,
76941,
76943,
76944,
76945,
76947,
76948,
76949,
76950,
76952,
76953,
76954,
76955,
76956,
76957,
76959,
76960,
76962,
76964,
76965,
76966,
76967,
76968,
76969,
76970,
76971,
76972,
76973,
76975,
76976,
76978,
76980,
76981,
76983,
76984,
76987,
76989,
76990,
76991,
76992,
76993,
76994,
76995,
76996,
76997,
76999,
77000,
77001,
77002,
77003,
77006,
77008,
77009,
77010,
77011,
77012,
77013,
77014,
77017,
77018,
77020,
77021,
77022,
77023,
77025,
77026,
77028,
77029,
77030,
77032,
77033,
77034,
77035,
77036,
77037,
77038,
77039,
77041,
77042,
77043,
77044,
77047,
77048,
77049,
77050,
77051,
77052,
77054,
77055,
77056,
77057,
77059,
77060,
77061,
77062,
77063,
77064,
77065,
77066,
77067,
77068,
77071,
77073,
77074,
77075,
77076,
77077,
77078,
77083,
77084,
77087,
77088,
77090,
77092,
77093,
77094,
77095,
77096,
77097,
77098,
77100,
77101,
77103,
77106,
77107,
77110,
77111,
77112,
77114,
77115,
77116,
77118,
77120,
77121,
77124,
77131,
77132,
77135,
77136,
77138,
77141,
77143,
77144,
77145,
77147,
77148,
77150,
77151,
77154,
77155,
77158,
77159,
77160,
77161,
77162,
77163,
77164,
77165,
77169,
77170,
77172,
77173,
77174,
77175,
77176,
77177,
77179,
77180,
77182,
77183,
77184,
77186,
77187,
77188,
77189,
77190,
77191,
77192,
77194,
77196,
77198,
77200,
77201,
77202,
77203,
77208,
77209,
77210,
77211,
77212,
77213,
77214,
77216,
77220,
77221,
77223,
77224,
77225,
77226,
77227,
77228,
77229,
77231,
77232,
77233,
77235,
77238,
77239,
77240,
77241,
77242,
77244,
77245,
77248,
77249,
77255,
77256,
77257,
77258,
77259,
77260,
77263,
77266,
77267,
77268,
77269,
77270,
77272,
77273,
77275,
77276,
77277,
77278,
77280,
77281,
77282,
77284,
77285,
77286,
77287,
77290,
77293,
77294,
77295,
77297,
77298,
77299,
77300,
77302,
77303,
77305,
77306,
77307,
77311,
77315,
77316,
77317,
77318,
77320,
77321,
77322,
77323,
77325,
77327,
77328,
77329,
77330,
77331,
77332,
77333,
77334,
77335,
77336,
77337,
77338,
77339,
77340,
77341,
77342,
77344,
77345,
77347,
77351,
77352,
77355,
77358,
77359,
77360,
77361,
77362,
77363,
77364,
77366,
77368,
77369,
77370,
77374,
77375,
77380,
77381,
77382,
77383,
77384,
77385,
77386,
77387,
77389,
77390,
77391,
77392,
77393,
77395,
77396,
77398,
77400,
77402,
77405,
77406,
77408,
77409,
77411,
77413,
77414,
77415,
77416,
77417,
77419,
77420,
77421,
77422,
77424,
77425,
77427,
77428,
77429,
77430,
77432,
77433,
77434,
77435,
77436,
77439,
77440,
77441,
77442,
77443,
77444,
77445,
77446,
77447,
77449,
77450,
77451,
77453,
77455,
77457,
77460,
77461,
77462,
77464,
77465,
77466,
77467,
77469,
77471,
77472,
77476,
77478,
77479,
77480,
77483,
77484,
77486,
77487,
77488,
77489,
77490,
77491,
77492,
77493,
77494,
77495,
77496,
77498,
77499,
77501,
77502,
77503,
77504,
77505,
77506,
77508,
77509,
77511,
77512,
77514,
77515,
77517,
77518,
77520,
77521,
77522,
77523,
77524,
77527,
77530,
77533,
77534,
77535,
77536,
77538,
77540,
77543,
77544,
77546,
77547,
77549,
77550,
77551,
77553,
77554,
77556,
77557,
77558,
77559,
77560,
77561,
77562,
77563,
77564,
77566,
77567,
77568,
77569,
77571,
77572,
77575,
77577,
77578,
77579,
77580,
77581,
77582,
77583,
77584,
77585,
77586,
77588,
77590,
77591,
77592,
77593,
77595,
77597,
77599,
77601,
77603,
77604,
77606,
77608,
77609,
77610,
77611,
77612,
77613,
77615,
77616,
77617,
77619,
77621,
77622,
77623,
77624,
77626,
77627,
77632,
77633,
77634,
77636,
77638,
77639,
77640,
77642,
77643,
77645,
77646,
77648,
77649,
77650,
77651,
77653,
77655,
77659,
77662,
77663,
77664,
77666,
77667,
77670,
77672,
77673,
77675,
77676,
77678,
77679,
77680,
77681,
77682,
77684,
77688,
77689,
77690,
77691,
77692,
77693,
77694,
77695,
77696,
77698,
77700,
77701,
77702,
77704,
77706,
77708,
77709,
77710,
77712,
77713,
77714,
77716,
77717,
77719,
77720,
77721,
77722,
77725,
77727,
77728,
77730,
77731,
77732,
77733,
77734,
77735,
77737,
77738,
77741,
77743,
77744,
77747,
77749,
77750,
77751,
77752,
77753,
77755,
77757,
77758,
77759,
77761,
77763,
77764,
77765,
77766,
77767,
77768,
77769,
77770,
77771,
77772,
77773,
77774,
77775,
77777,
77778,
77779,
77781,
77782,
77783,
77785,
77786,
77787,
77788,
77789,
77790,
77791,
77792,
77793,
77794,
77795,
77796,
77797,
77799,
77801,
77802,
77805,
77806,
77807,
77808,
77809,
77810,
77812,
77814,
77815,
77817,
77818,
77819,
77826,
77827,
77828,
77829,
77830,
77831,
77832,
77833,
77835,
77836,
77837,
77838,
77839,
77840,
77842,
77843,
77847,
77848,
77849,
77850,
77852,
77854,
77857,
77858,
77859,
77860,
77861,
77862,
77863,
77864,
77868,
77869,
77870,
77871,
77872,
77874,
77875,
77876,
77877,
77878,
77880,
77882,
77883,
77884,
77885,
77886,
77887,
77888,
77890,
77891,
77892,
77894,
77895,
77896,
77897,
77899,
77900,
77903,
77904,
77906,
77909,
77910,
77912,
77913,
77915,
77916,
77917,
77918,
77920,
77921,
77922,
77923,
77925,
77926,
77929,
77931,
77932,
77934,
77936,
77937,
77938,
77939,
77941,
77942,
77943,
77944,
77945,
77948,
77949,
77950,
77951,
77952,
77954,
77955,
77956,
77957,
77958,
77959,
77960,
77961,
77962,
77964,
77965,
77966,
77969,
77970,
77971,
77973,
77974,
77975,
77976,
77977,
77978,
77979,
77980,
77981,
77982,
77983,
77984,
77986,
77987,
77988,
77989,
77990,
77991,
77993,
77995,
77996,
77997,
77999,
78001,
78002,
78003,
78005,
78007,
78008,
78011,
78014,
78015,
78016,
78019,
78021,
78022,
78023,
78024,
78026,
78027,
78028,
78031,
78032,
78033,
78034,
78035,
78037,
78038,
78040,
78041,
78042,
78045,
78048,
78053,
78054,
78055,
78056,
78058,
78059,
78061,
78062,
78065,
78066,
78067,
78068,
78070,
78071,
78072,
78074,
78076,
78077,
78078,
78079,
78080,
78081,
78082,
78083,
78084,
78085,
78086,
78087,
78088,
78089,
78090,
78091,
78092,
78093,
78095,
78096,
78098,
78099,
78102,
78104,
78106,
78109,
78111,
78112,
78113,
78114,
78115,
78116,
78117,
78118,
78119,
78122,
78123,
78124,
78126,
78127,
78129,
78130,
78131,
78132,
78133,
78134,
78136,
78137,
78138,
78139,
78140,
78141,
78143,
78144,
78145,
78146,
78147,
78148,
78149,
78150,
78152,
78154,
78155,
78156,
78157,
78158,
78160,
78161,
78162,
78163,
78164,
78168,
78169,
78170,
78171,
78172,
78173,
78174,
78176,
78177,
78179,
78181,
78183,
78184,
78185,
78186,
78187,
78188,
78189,
78190,
78191,
78192,
78193,
78194,
78195,
78196,
78198,
78199,
78200,
78202,
78203,
78204,
78205,
78206,
78208,
78210,
78212,
78213,
78214,
78215,
78218,
78219,
78220,
78221,
78222,
78223,
78224,
78225,
78226,
78227,
78228,
78229,
78230,
78231,
78232,
78234,
78236,
78237,
78239,
78240,
78241,
78242,
78243,
78244,
78246,
78247,
78249,
78250,
78251,
78252,
78253,
78254,
78255,
78256,
78257,
78258,
78259,
78262,
78263,
78264,
78265,
78266,
78267,
78268,
78271,
78275,
78276,
78277,
78278,
78279,
78280,
78281,
78282,
78285,
78286,
78287,
78288,
78289,
78291,
78292,
78294,
78295,
78296,
78297,
78298,
78299,
78300,
78304,
78305,
78307,
78308,
78310,
78311,
78312,
78315,
78316,
78318,
78319,
78320,
78321,
78322,
78323,
78324,
78326,
78327,
78330,
78331,
78333,
78334,
78335,
78337,
78338,
78339,
78340,
78341,
78342,
78343,
78346,
78347,
78349,
78352,
78355,
78356,
78357,
78358,
78359,
78360,
78361,
78362,
78364,
78365,
78366,
78367,
78369,
78370,
78372,
78375,
78376,
78377,
78378,
78380,
78381,
78383,
78384,
78385,
78387,
78389,
78390,
78394,
78397,
78398,
78400,
78402,
78404,
78405,
78407,
78409,
78410,
78412,
78413,
78414,
78415,
78416,
78418,
78419,
78420,
78422,
78423,
78424,
78425,
78426,
78428,
78429,
78432,
78435,
78436,
78437,
78438,
78440,
78441,
78443,
78445,
78446,
78447,
78448,
78450,
78451,
78453,
78456,
78457,
78458,
78459,
78460,
78461,
78462,
78463,
78465,
78466,
78467,
78468,
78469,
78471,
78472,
78473,
78474,
78476,
78478,
78480,
78482,
78483,
78484,
78485,
78486,
78487,
78490,
78491,
78493,
78494,
78497,
78498,
78499,
78501,
78503,
78504,
78508,
78510,
78511,
78512,
78513,
78514,
78515,
78516,
78517,
78519,
78520,
78521,
78522,
78523,
78524,
78526,
78527,
78528,
78529,
78530,
78531,
78533,
78534,
78536,
78539,
78541,
78545,
78547,
78548,
78549,
78550,
78551,
78553,
78554,
78555,
78556,
78557,
78558,
78561,
78562,
78563,
78564,
78565,
78566,
78567,
78568,
78569,
78570,
78573,
78574,
78575,
78579,
78580,
78581,
78584,
78587,
78589,
78591,
78592,
78593,
78594,
78598,
78600,
78602,
78603,
78606,
78607,
78608,
78609,
78610,
78611,
78612,
78613,
78615,
78616,
78617,
78618,
78619,
78620,
78623,
78624,
78625,
78627,
78628,
78629,
78630,
78634,
78637,
78638,
78639,
78640,
78641,
78642,
78643,
78645,
78646,
78647,
78648,
78650,
78652,
78654,
78655,
78656,
78657,
78658,
78661,
78662,
78663,
78665,
78667,
78668,
78670,
78671,
78673,
78675,
78678,
78679,
78681,
78682,
78683,
78684,
78686,
78688,
78691,
78694,
78696,
78697,
78698,
78699,
78700,
78701,
78702,
78703,
78704,
78706,
78709,
78710,
78711,
78713,
78714,
78715,
78716,
78717,
78719,
78720,
78721,
78723,
78724,
78725,
78727,
78728,
78729,
78730,
78733,
78734,
78735,
78736,
78738,
78740,
78741,
78742,
78743,
78744,
78745,
78746,
78748,
78749,
78750,
78752,
78753,
78755,
78756,
78757,
78758,
78759,
78760,
78761,
78762,
78763,
78764,
78767,
78768,
78769,
78770,
78772,
78774,
78776,
78777,
78778,
78780,
78781,
78783,
78786,
78787,
78788,
78789,
78792,
78793,
78794,
78795,
78796,
78797,
78798,
78799,
78800,
78801,
78803,
78806,
78807,
78810,
78811,
78812,
78813,
78815,
78817,
78818,
78819,
78820,
78821,
78823,
78824,
78828,
78829,
78832,
78833,
78834,
78836,
78837,
78838,
78840,
78841,
78842,
78844,
78846,
78847,
78848,
78849,
78851,
78852,
78856,
78857,
78858,
78859,
78860,
78861,
78862,
78863,
78864,
78866,
78868,
78870,
78872,
78873,
78875,
78877,
78878,
78879,
78880,
78881,
78883,
78884,
78886,
78887,
78888,
78890,
78892,
78893,
78895,
78897,
78900,
78901,
78904,
78905,
78906,
78907,
78908,
78909,
78910,
78912,
78913,
78918,
78920,
78922,
78924,
78926,
78927,
78928,
78930,
78931,
78932,
78933,
78935,
78936,
78937,
78939,
78941,
78942,
78944,
78945,
78946,
78947,
78948,
78953,
78954,
78955,
78956,
78959,
78961,
78962,
78963,
78964,
78965,
78966,
78968,
78971,
78972,
78974,
78975,
78976,
78977,
78978,
78979,
78981,
78982,
78983,
78985,
78987,
78988,
78989,
78990,
78991,
78992,
78994,
78995,
78996,
78997,
78999,
79001,
79004,
79005,
79007,
79009,
79010,
79011,
79013,
79014,
79015,
79016,
79017,
79018,
79019,
79021,
79022,
79023,
79025,
79026,
79027,
79028,
79030,
79031,
79033,
79034,
79035,
79036,
79037,
79038,
79040,
79041,
79042,
79043,
79044,
79045,
79046,
79047,
79048,
79049,
79050,
79051,
79054,
79055,
79057,
79059,
79060,
79061,
79063,
79064,
79065,
79067,
79069,
79070,
79071,
79075,
79077,
79078,
79080,
79081,
79082,
79083,
79084,
79085,
79086,
79089,
79090,
79091,
79092,
79093,
79094,
79096,
79097,
79100,
79102,
79103,
79105,
79106,
79107,
79110,
79112,
79114,
79115,
79117,
79119,
79120,
79121,
79122,
79123,
79125,
79126,
79127,
79128,
79130,
79131,
79133,
79134,
79135,
79137,
79138,
79139,
79142,
79145,
79146,
79147,
79152,
79153,
79154,
79155,
79156,
79157,
79158,
79159,
79160,
79161,
79162,
79163,
79164,
79170,
79171,
79172,
79173,
79175,
79177,
79178,
79179,
79180,
79181,
79182,
79183,
79184,
79185,
79187,
79188,
79189,
79191,
79192,
79193,
79196,
79197,
79198,
79201,
79202,
79203,
79207,
79208,
79210,
79212,
79214,
79215,
79216,
79217,
79218,
79219,
79220,
79222,
79223,
79224,
79225,
79227,
79228,
79229,
79231,
79232,
79233,
79234,
79235,
79237,
79238,
79239,
79240,
79241,
79244,
79245,
79246,
79247,
79248,
79249,
79250,
79251,
79252,
79253,
79255,
79256,
79258,
79259,
79260,
79262,
79263,
79264,
79265,
79266,
79267,
79268,
79269,
79270,
79271,
79272,
79275,
79276,
79277,
79278,
79279,
79281,
79283,
79284,
79286,
79287,
79288,
79289,
79290,
79291,
79292,
79293,
79294,
79295,
79296,
79299,
79300,
79301,
79304,
79305,
79306,
79308,
79310,
79311,
79312,
79313,
79314,
79315,
79316,
79318,
79319,
79322,
79324,
79325,
79327,
79328,
79329,
79330,
79331,
79332,
79334,
79338,
79339,
79340,
79342,
79344,
79346,
79347,
79348,
79349,
79353,
79354,
79356,
79357,
79358,
79359,
79360,
79361,
79362,
79365,
79369,
79370,
79371,
79372,
79373,
79374,
79375,
79376,
79377,
79383,
79384,
79385,
79387,
79388,
79389,
79390,
79391,
79394,
79395,
79398,
79399,
79401,
79402,
79403,
79404,
79406,
79407,
79408,
79409,
79410,
79413,
79416,
79417,
79418,
79419,
79420,
79421,
79422,
79423,
79425,
79426,
79428,
79429,
79430,
79431,
79432,
79433,
79436,
79438,
79439,
79440,
79442,
79444,
79447,
79450,
79451,
79454,
79455,
79457,
79459,
79460,
79461,
79462,
79463,
79464,
79465,
79466,
79467,
79468,
79469,
79471,
79472,
79473,
79474,
79477,
79478,
79479,
79480,
79481,
79482,
79483,
79484,
79485,
79492,
79493,
79494,
79496,
79497,
79498,
79499,
79500,
79502,
79505,
79506,
79508,
79509,
79510,
79513,
79514,
79515,
79517,
79518,
79519,
79520,
79521,
79522,
79523,
79524,
79525,
79526,
79527,
79529,
79532,
79533,
79534,
79535,
79536,
79537,
79538,
79539,
79540,
79541,
79542,
79543,
79544,
79547,
79548,
79549,
79550,
79551,
79552,
79553,
79555,
79556,
79557,
79558,
79561,
79562,
79563,
79564,
79566,
79567,
79569,
79570,
79572,
79573,
79574,
79577,
79578,
79580,
79582,
79583,
79585,
79588,
79591,
79592,
79594,
79595,
79596,
79598,
79599,
79600,
79601,
79602,
79605,
79606,
79608,
79609,
79610,
79613,
79615,
79616,
79617,
79618,
79619,
79620,
79621,
79622,
79623,
79624,
79626,
79628,
79629,
79631,
79632,
79633,
79634,
79636,
79637,
79638,
79639,
79640,
79641,
79642,
79644,
79645,
79649,
79650,
79651,
79655,
79656,
79657,
79660,
79661,
79662,
79663,
79664,
79665,
79666,
79668,
79669,
79670,
79672,
79673,
79674,
79675,
79676,
79677,
79678,
79680,
79681,
79683,
79685,
79686,
79687,
79688,
79689,
79690,
79692,
79693,
79694,
79695,
79698,
79699,
79700,
79701,
79702,
79704,
79705,
79706,
79707,
79708,
79709,
79710,
79712,
79713,
79716,
79717,
79718,
79719,
79720,
79722,
79723,
79724,
79725,
79726,
79727,
79728,
79729,
79732,
79733,
79734,
79736,
79739,
79740,
79741,
79742,
79743,
79749,
79750,
79751,
79752,
79753,
79757,
79759,
79760,
79761,
79762,
79763,
79764,
79765,
79766,
79767,
79768,
79769,
79770,
79772,
79774,
79775,
79777,
79778,
79779,
79780,
79781,
79782,
79783,
79784,
79785,
79786,
79787,
79788,
79790,
79793,
79795,
79797,
79798,
79799,
79800,
79801,
79803,
79804,
79807,
79808,
79810,
79811,
79812,
79814,
79815,
79816,
79818,
79819,
79820,
79821,
79822,
79824,
79825,
79826,
79827,
79828,
79829,
79831,
79833,
79835,
79836,
79838,
79839,
79840,
79842,
79843,
79844,
79845,
79846,
79847,
79849,
79851,
79855,
79856,
79857,
79861,
79863,
79864,
79865,
79866,
79867,
79868,
79870,
79871,
79872,
79873,
79874,
79875,
79877,
79878,
79879,
79880,
79882,
79883,
79884,
79885,
79888,
79889,
79891,
79892,
79893,
79894,
79895,
79896,
79897,
79898,
79900,
79901,
79903,
79904,
79905,
79907,
79909,
79910,
79911,
79912,
79913,
79914,
79919,
79920,
79922,
79923,
79924,
79926,
79928,
79929,
79930,
79931,
79932,
79934,
79935,
79936,
79937,
79938,
79939,
79941,
79943,
79944,
79947,
79949,
79950,
79951,
79952,
79955,
79957,
79958,
79960,
79962,
79963,
79965,
79966,
79967,
79968,
79969,
79971,
79972,
79973,
79974,
79975,
79976,
79981,
79982,
79983,
79984,
79985,
79986,
79987,
79988,
79989,
79990,
79991,
79994,
79995,
79997,
79998,
79999,
80000,
80002,
80003,
80004,
80005,
80006,
80007,
80008,
80009,
80010,
80011,
80013,
80015,
80016,
80017,
80019,
80020,
80021,
80022,
80024,
80026,
80028,
80029,
80030,
80031,
80033,
80034,
80037,
80039,
80042,
80043,
80044,
80045,
80047,
80048,
80050,
80051,
80052,
80054,
80055,
80056,
80057,
80058,
80060,
80061,
80062,
80063,
80065,
80066,
80067,
80070,
80072,
80073,
80074,
80077,
80078,
80080,
80081,
80082,
80083,
80085,
80086,
80087,
80090,
80092,
80093,
80095,
80096,
80099,
80100,
80103,
80106,
80108,
80109,
80110,
80111,
80114,
80115,
80116,
80118,
80119,
80120,
80121,
80122,
80123,
80124,
80125,
80126,
80127,
80128,
80129,
80130,
80131,
80134,
80137,
80138,
80139,
80140,
80141,
80142,
80144,
80145,
80146,
80147,
80148,
80149,
80150,
80151,
80152,
80153,
80154,
80155,
80156,
80157,
80158,
80159,
80160,
80162,
80164,
80165,
80166,
80167,
80168,
80169,
80170,
80173,
80174,
80175,
80176,
80178,
80179,
80180,
80181,
80182,
80183,
80184,
80186,
80189,
80190,
80191,
80192,
80193,
80194,
80195,
80197,
80199,
80200,
80203,
80205,
80206,
80208,
80210,
80211,
80212,
80213,
80214,
80215,
80216,
80218,
80219,
80220,
80221,
80222,
80223,
80225,
80226,
80227,
80228,
80229,
80230,
80231,
80233,
80234,
80235,
80237,
80238,
80239,
80242,
80243,
80244,
80245,
80246,
80248,
80249,
80253,
80255,
80258,
80259,
80263,
80264,
80266,
80267,
80268,
80270,
80272,
80273,
80274,
80275,
80276,
80280,
80282,
80283,
80284,
80285,
80286,
80290,
80291,
80292,
80294,
80295,
80296,
80297,
80299,
80300,
80301,
80303,
80305,
80308,
80309,
80311,
80312,
80313,
80314,
80315,
80317,
80318,
80319,
80320,
80321,
80324,
80325,
80326,
80329,
80330,
80332,
80333,
80335,
80337,
80338,
80339,
80340,
80341,
80342,
80343,
80344,
145878,
80346,
80347,
80348,
80349,
80350,
80351,
80353,
80354,
80355,
80356,
80358,
80362,
80363,
80364,
80365,
80366,
80367,
80368,
80369,
80370,
80372,
80373,
80374,
80375,
80376,
80377,
80380,
80382,
80383,
80384,
80388,
80389,
80390,
80393,
80394,
80395,
80397,
80398,
80399,
80401,
80404,
80407,
80408,
80409,
80412,
80414,
80415,
80417,
80418,
80420,
80421,
80422,
80423,
80425,
80426,
80427,
80429,
80430,
80431,
80432,
80433,
80434,
80437,
80438,
80439,
80441,
80444,
80445,
80446,
80450,
80451,
80452,
80455,
80456,
80457,
80458,
80460,
80462,
80464,
80466,
80467,
80469,
80471,
80472,
80474,
80477,
80478,
80479,
80480,
80481,
80483,
80484,
80485,
80487,
80488,
80490,
80491,
80492,
80493,
80495,
80497,
80498,
80499,
80500,
80501,
80502,
80503,
80504,
80505,
80506,
80507,
80508,
80509,
80510,
80511,
80512,
80516,
80519,
80520,
80521,
80522,
80523,
80524,
80525,
80526,
80527,
80528,
80529,
80530,
80531,
80532,
80533,
80535,
80536,
80537,
80539,
80540,
80541,
80545,
80548,
80549,
80550,
80551,
80552,
80554,
80555,
80556,
80557,
80558,
80559,
80560,
80561,
80563,
80564,
80565,
80566,
80568,
80570,
80571,
80572,
80573,
80574,
80575,
80576,
80577,
80579,
80581,
80582,
80583,
80584,
80585,
80586,
80588,
80589,
80590,
80591,
80592,
80593,
80594,
80597,
80598,
80599,
80600,
80602,
80603,
80605,
80606,
80607,
87746,
88094,
88115,
88256,
88631,
88664,
88776,
88778,
88856,
88857,
88858,
88859,
88860,
88862,
88864,
88867,
88868,
88869,
88870,
88871,
88873,
88874,
88875,
88876,
88877,
88878,
88880,
88881,
88882,
88883,
88884,
88886,
88887,
88888,
88889,
88890,
88891,
88892,
88893,
88894,
88895,
88897,
88898,
88901,
88902,
88904,
88905,
88906,
88907,
88908,
88909,
88911,
88912,
88913,
88914,
88915,
88917,
88918,
88919,
88921,
88922,
88923,
88924,
88925,
91280,
91314,
91316,
91317,
91351,
91362,
91645,
91647,
91648,
91650,
91651,
91656,
91658,
91659,
91660,
91662,
91665,
91673,
91674,
91675,
91679,
91680,
91681,
91682,
91683,
91684,
91686,
91688,
91689,
91691,
91694,
91695,
91698,
91699,
91701,
91702,
91703,
91704,
91705,
91707,
91708,
91711,
91712,
91713,
91714,
91715,
91716,
91717,
91720,
91721,
91724,
91726,
91728,
91729,
91730,
91731,
91732,
91733,
91734,
91735,
91736,
91737,
91738,
91739,
91740,
91741,
91742,
91743,
91745,
91746,
91747,
91749,
91752,
91753,
91754,
91755,
91757,
91758,
91759,
91760,
91761,
91762,
91763,
91764,
91765,
91766,
91767,
91769,
91770,
91771,
91772,
91773,
91774,
91775,
91777,
91778,
91780,
91782,
91783,
91784,
91785,
91786,
91789,
91790,
91792,
91794,
91795,
91796,
91799,
91800,
91801,
91802,
91803,
91805,
91806,
91808,
91811,
91812,
91814,
91815,
91816,
91817,
91818,
91819,
91821,
91822,
91825,
91827,
91828,
91829,
91831,
91832,
91833,
91834,
91835,
91838,
91840,
91842,
91843,
91844,
91845,
91846,
91847,
91848,
91850,
91852,
91853,
91854,
91856,
91858,
91859,
91860,
91862,
91864,
91865,
91866,
91867,
91869,
91870,
91871,
91872,
91873,
91874,
91875,
91876,
91880,
91881,
91883,
91884,
91885,
91886,
91887,
91888,
91889,
91891,
91893,
91894,
91896,
91897,
91898,
91899,
91900,
91901,
91902,
91903,
91904,
91905,
91906,
91907,
91908,
91909,
91914,
91915,
91916,
91917,
91918,
91919,
91920,
91922,
91925,
91927,
91928,
91930,
91931,
91932,
91933,
91934,
91935,
91936,
91937,
91940,
91941,
91943,
91944,
91946,
91947,
91948,
91949,
91950,
91953,
91956,
91957,
91960,
91962,
91965,
91966,
91967,
91970,
91973,
91974,
91975,
91976,
91978,
91980,
91981,
91982,
91983,
91984,
91987,
91988,
91989,
91990,
91992,
91995,
91996,
91997,
91999,
92000,
92001,
92002,
92003,
92004,
92005,
92008,
92009,
92010,
92011,
92012,
92013,
92014,
92016,
92017,
92018,
92019,
92020,
92021,
92022,
92023,
92025,
92026,
92028,
92029,
92030,
92031,
92032,
92033,
92035,
92036,
92037,
92038,
92039,
92040,
92043,
92044,
92045,
92046,
92047,
92048,
92050,
92051,
92053,
92054,
92055,
92056,
92059,
92060,
92061,
92062,
92063,
92064,
92065,
92066,
92067,
92069,
92070,
92071,
92072,
92073,
92074,
92075,
92077,
92079,
92081,
92082,
92083,
92084,
92085,
92087,
92088,
92089,
92091,
92095,
92096,
92099,
92100,
92101,
92102,
92103,
92104,
92107,
92108,
92109,
92111,
92112,
92114,
92115,
92116,
92119,
92120,
92121,
92122,
92123,
92124,
92125,
92126,
92127,
92128,
92129,
92131,
92135,
92136,
92140,
92141,
92142,
92144,
92145,
92146,
92147,
92149,
92150,
92151,
92152,
92153,
92154,
92158,
92159,
92160,
92161,
92164,
92165,
92167,
92168,
92169,
92170,
92171,
92172,
92173,
92174,
92175,
92176,
92177,
92178,
92179,
92180,
92181,
92182,
92183,
92184,
92186,
92187,
92188,
92189,
92190,
92192,
92193,
92194,
92196,
92197,
92198,
92199,
92200,
92201,
92202,
92203,
92204,
92205,
92207,
92208,
92209,
92210,
92212,
92213,
92214,
92216,
92217,
92220,
92221,
92222,
92223,
92226,
92227,
92228,
92229,
92231,
92232,
92234,
92235,
92236,
92238,
92240,
92241,
92242,
92243,
92244,
92245,
92246,
92247,
92248,
92250,
92252,
92253,
92254,
92256,
92259,
92260,
92262,
92264,
92265,
92267,
92268,
92272,
92274,
92275,
92276,
92277,
92278,
92279,
92280,
92281,
92283,
92284,
92285,
92286,
92287,
92289,
92290,
92292,
92293,
92294,
92295,
92296,
92297,
92298,
92299,
92300,
92301,
92303,
92306,
92307,
92308,
92309,
92311,
92314,
92315,
92316,
92318,
92319,
92320,
92321,
92323,
92325,
92326,
92327,
92328,
92330,
92333,
92335,
92339,
92340,
92341,
92342,
92346,
92347,
92348,
92349,
92350,
92351,
92352,
92353,
92354,
92355,
92356,
92359,
92361,
92362,
92363,
92364,
92365,
92366,
92367,
92368,
92369,
92370,
92371,
92372,
92373,
92376,
92377,
92378,
92379,
92380,
92381,
92382,
92383,
92384,
92385,
92386,
92387,
92388,
92389,
92390,
92391,
92392,
92393,
92394,
92395,
92397,
92401,
92402,
92403,
92404,
92406,
92407,
92408,
92409,
92413,
92414,
92415,
92417,
92419,
92420,
92421,
92422,
92423,
92425,
92428,
92429,
92430,
92433,
92434,
92437,
92438,
92439,
92440,
92441,
92442,
92443,
92444,
92446,
92447,
92448,
92449,
92450,
92451,
92452,
92454,
92455,
92456,
92457,
92460,
92461,
92463,
92464,
92465,
92467,
92468,
92470,
92471,
92473,
92474,
92475,
92476,
92477,
92478,
92479,
92480,
92481,
92482,
92483,
92484,
92485,
92487,
92488,
92490,
92492,
92493,
92494,
92496,
92497,
92498,
92499,
92503,
92504,
92505,
92508,
92509,
92510,
92511,
92513,
92514,
92515,
92516,
92517,
92518,
92519,
92520,
92522,
92524,
92526,
92527,
92528,
92529,
92530,
92531,
92532,
92533,
92534,
92535,
92536,
92537,
92539,
92540,
92542,
92543,
92545,
92546,
92547,
92548,
92549,
92550,
92551,
92552,
92553,
92554,
92555,
92557,
92558,
92560,
92562,
92563,
92565,
92566,
92567,
92568,
92569,
92570,
92571,
92572,
92573,
92574,
92575,
92576,
92577,
92578,
92580,
92581,
92582,
92583,
92584,
92586,
92587,
92588,
92589,
92590,
92591,
92592,
92593,
92594,
92596,
92598,
92599,
92600,
92603,
92604,
92605,
92606,
92608,
92610,
92611,
92612,
92615,
92616,
92618,
92619,
92620,
92621,
92622,
92623,
92625,
92626,
92627,
92628,
92629,
92630,
92633,
92634,
92635,
92636,
92637,
92639,
92641,
92642,
92644,
92645,
92646,
92647,
92648,
92649,
92650,
92651,
92652,
92653,
92654,
92655,
92656,
92657,
92658,
92659,
92660,
92661,
92662,
92663,
92664,
92667,
92668,
92669,
92670,
92671,
92673,
92675,
92676,
92677,
92678,
92679,
92680,
92681,
92682,
92683,
92685,
92686,
92688,
92689,
92690,
92691,
92692,
92693,
92694,
92695,
92696,
92698,
92699,
92700,
92701,
92703,
92706,
92707,
92708,
92709,
92710,
92711,
92712,
92713,
92715,
92716,
92717,
92718,
92720,
92721,
92723,
92724,
92726,
92727,
92728,
92729,
92730,
92731,
92732,
92733,
92734,
92735,
92736,
92737,
92739,
92740,
92741,
92742,
92745,
92746,
92748,
92749,
92751,
92752,
92753,
92754,
92755,
92759,
92760,
92761,
92762,
92763,
92764,
92765,
92766,
92767,
92769,
92770,
92771,
92773,
92774,
92775,
92776,
92778,
92780,
92781,
92782,
92783,
92784,
92785,
92786,
92787,
92788,
92789,
92790,
92792,
92795,
92797,
92800,
92803,
92805,
92806,
92807,
92808,
92809,
92811,
92812,
92813,
92814,
92815,
92819,
92820,
92821,
92822,
92823,
92824,
92825,
92827,
92828,
92830,
92831,
92835,
92836,
92837,
92838,
92839,
92841,
92842,
92843,
92844,
92846,
92847,
92848,
92850,
92851,
92852,
92853,
92854,
92855,
92856,
92857,
92858,
92860,
92863,
92864,
92865,
92866,
92868,
92869,
92871,
92872,
92873,
92874,
92875,
92876,
92877,
92879,
92880,
92881,
92882,
92883,
92884,
92885,
92886,
92888,
92889,
92890,
92892,
92893,
92894,
92896,
92897,
92900,
92902,
92903,
92904,
92905,
92906,
92907,
92908,
92911,
92913,
92915,
92916,
92918,
92919,
92921,
92922,
92923,
92925,
92927,
92929,
92930,
92932,
92933,
92935,
92938,
92939,
92941,
92943,
92945,
92946,
92949,
92950,
92951,
92952,
92953,
92954,
92955,
92956,
92958,
92959,
92962,
92963,
92965,
92966,
92967,
92968,
92969,
92971,
92972,
92973,
92974,
92975,
92978,
92979,
92981,
92982,
92983,
92984,
92987,
92989,
92991,
92992,
92993,
92994,
92995,
92996,
92997,
92998,
93000,
93002,
93003,
93004,
93006,
93007,
93009,
93010,
93013,
93014,
93015,
93016,
93017,
93019,
93020,
93021,
93022,
93023,
93024,
93025,
93027,
93028,
93030,
93031,
93032,
93033,
93034,
93036,
93037,
93038,
93039,
93040,
93041,
93043,
93044,
93045,
93047,
93048,
93049,
93050,
93052,
93056,
93057,
93058,
93059,
93060,
93061,
93064,
93065,
93067,
93068,
93069,
93070,
93071,
93072,
93073,
93074,
93075,
93076,
93077,
93078,
93079,
93080,
93082,
93085,
93086,
93087,
93088,
93089,
93090,
93091,
93092,
93093,
93094,
93096,
93097,
93098,
93099,
93100,
93101,
93105,
93106,
93107,
93108,
93109,
93110,
93111,
93112,
93114,
93115,
93116,
93117,
93118,
93119,
93120,
93121,
93122,
93124,
93125,
93126,
93129,
93130,
93132,
93133,
93134,
93136,
93137,
93139,
93140,
93142,
93143,
93145,
93146,
93147,
93148,
93150,
93151,
93152,
93153,
93154,
93155,
93156,
93158,
93160,
93161,
93162,
93164,
93165,
93166,
93167,
93168,
93169,
93170,
93173,
93175,
93176,
93177,
93180,
93182,
93183,
93185,
93186,
93187,
93188,
93189,
93190,
93192,
93193,
93194,
93195,
93197,
93198,
93199,
93200,
93205,
93207,
93208,
93211,
93213,
93214,
93215,
93216,
93217,
93219,
93220,
93221,
93222,
93223,
93225,
93227,
93228,
93229,
93230,
93232,
93233,
93234,
93235,
93237,
93238,
93239,
93240,
93241,
93243,
93244,
93245,
93246,
93247,
93248,
93249,
93251,
93252,
93253,
93254,
93255,
93256,
93258,
93259,
93261,
93263,
93265,
93266,
93267,
93268,
93269,
93270,
93271,
93273,
93274,
93275,
93276,
93277,
93278,
93280,
93281,
93282,
93283,
93284,
93286,
93287,
93289,
93290,
93291,
93292,
93293,
93294,
93296,
93297,
93298,
93299,
93301,
93302,
93303,
93305,
93307,
93308,
93309,
93310,
93311,
93312,
93313,
93314,
93317,
93318,
93319,
93320,
93321,
93322,
93325,
93326,
93328,
93329,
93332,
93333,
93335,
93336,
93337,
93339,
93340,
93341,
93342,
93343,
93344,
93345,
93346,
93347,
93348,
93350,
93351,
93352,
93353,
93354,
93355,
93356,
93357,
93358,
93359,
93360,
93362,
93363,
93365,
93366,
93368,
93371,
93373,
93376,
93378,
93381,
93382,
93385,
93387,
93388,
93389,
93391,
93392,
93393,
93394,
93399,
93400,
93401,
93402,
93403,
93404,
93407,
93409,
93411,
93412,
93413,
93415,
93417,
93419,
93420,
93421,
93422,
93423,
93424,
93427,
93428,
93429,
93430,
93432,
93433,
93434,
93436,
93437,
93438,
93439,
93440,
93441,
93442,
93444,
93445,
93446,
93447,
93448,
93449,
93450,
93451,
93452,
93453,
93454,
93456,
93459,
93460,
93462,
93463,
93464,
93465,
93466,
93468,
93469,
93470,
93471,
93472,
93473,
93474,
93475,
93476,
93478,
93479,
93481,
93483,
93484,
93485,
93486,
93487,
93488,
93489,
93490,
93491,
93492,
93493,
93494,
93495,
93497,
93499,
93500,
93502,
93503,
93504,
93505,
93506,
93508,
93509,
93510,
93511,
93512,
93513,
93514,
93515,
93516,
93518,
93519,
93520,
93521,
93522,
93524,
93525,
93526,
93527,
93528,
93529,
93530,
93533,
93534,
93536,
93537,
93538,
93539,
93541,
93542,
93544,
93545,
93546,
93548,
93549,
93550,
93551,
93552,
93553,
93554,
93555,
93556,
93557,
93558,
93559,
93560,
93563,
93564,
93565,
93566,
93567,
93569,
93570,
93571,
93572,
93574,
93575,
93576,
93577,
93578,
93579,
93580,
93581,
93582,
93583,
93585,
93587,
93588,
93589,
93590,
93591,
93592,
93595,
93596,
93599,
93600,
93602,
93604,
93605,
93606,
93607,
93608,
93609,
93610,
93612,
93613,
93615,
93618,
93619,
93620,
93622,
93623,
93624,
93626,
93627,
93628,
93629,
93630,
93632,
93633,
93635,
93642,
93643,
93645,
93646,
93647,
93649,
93652,
93654,
93655,
93656,
93658,
93660,
93661,
93664,
93665,
93667,
93668,
93669,
93670,
93671,
93672,
93673,
93674,
93675,
93678,
93679,
93681,
93682,
93683,
93684,
93685,
93686,
93688,
93689,
93691,
93692,
93693,
93696,
93697,
93698,
93699,
93700,
93702,
93705,
93707,
93708,
93709,
93714,
93715,
93716,
93717,
93718,
93720,
93721,
93724,
93725,
93727,
93728,
93729,
93730,
93731,
93732,
93733,
93735,
93736,
93737,
93739,
93741,
93742,
93743,
93744,
93745,
93747,
93748,
93750,
93751,
93757,
93758,
93759,
93762,
93765,
93766,
93767,
93768,
93770,
93771,
93772,
93773,
93774,
93775,
93777,
93778,
93779,
93781,
93782,
93783,
93785,
93787,
93788,
93789,
93791,
93792,
93793,
93794,
93796,
93797,
93799,
93800,
93801,
93802,
93805,
93806,
93809,
93810,
93811,
93813,
93814,
93815,
93816,
93818,
93820,
93821,
93822,
93823,
93824,
93825,
93826,
93827,
93828,
93830,
93831,
93832,
93833,
93835,
93836,
93838,
93839,
93841,
93844,
93846,
93847,
93848,
93849,
93852,
93854,
93855,
93856,
93859,
93860,
93861,
93865,
93866,
93867,
93868,
93869,
93870,
93871,
93872,
93873,
93875,
93876,
93877,
93878,
93879,
93880,
93881,
93883,
93885,
93887,
93890,
93891,
93892,
93894,
93896,
93897,
93898,
93899,
93900,
93902,
93903,
93905,
93906,
93907,
93908,
93909,
93910,
93911,
93913,
93914,
93915,
93916,
93917,
93919,
93920,
93921,
93922,
93923,
93924,
93925,
93926,
93928,
93929,
93930,
93931,
93932,
93933,
93935,
93936,
93937,
93938,
93940,
93941,
93942,
93945,
93947,
93951,
93952,
93953,
93954,
93957,
93959,
93960,
93961,
93962,
93963,
93964,
93965,
93966,
93967,
93968,
93969,
93970,
93971,
93973,
93974,
93975,
93976,
93977,
93978,
93979,
93980,
93982,
93984,
93985,
93986,
93987,
93988,
93989,
93991,
93992,
93993,
93994,
93995,
93996,
93998,
94001,
94004,
94005,
94006,
94007,
94010,
94013,
94014,
94015,
94016,
94017,
94018,
94019,
94021,
94022,
94024,
94025,
94026,
94027,
94028,
94029,
94030,
94031,
94033,
94034,
94035,
94036,
94037,
94038,
94039,
94040,
94042,
94044,
94045,
94046,
94047,
94048,
94049,
94050,
94051,
94052,
94053,
94054,
94055,
94056,
94059,
94060,
94061,
94062,
94063,
94065,
94066,
94068,
94070,
94071,
94072,
94073,
94074,
94075,
94076,
94077,
94078,
94079,
94081,
94082,
94083,
94084,
94085,
94086,
94087,
94088,
94089,
94090,
94093,
94094,
94095,
94097,
94099,
94100,
94101,
94103,
94104,
94106,
94107,
94109,
94111,
94112,
94114,
94116,
94122,
94123,
94124,
94126,
94127,
94130,
94131,
94132,
94133,
94135,
94136,
94138,
94139,
94140,
94142,
94146,
94147,
94148,
94149,
94150,
94151,
94152,
94154,
94156,
94157,
94158,
94160,
94162,
94163,
94164,
94166,
94167,
94168,
94170,
94171,
94172,
94173,
94174,
94178,
94179,
94181,
94182,
94183,
94184,
94185,
94187,
94189,
94190,
94192,
94193,
94195,
94197,
94198,
94199,
94200,
94201,
94203,
94205,
94206,
94207,
94209,
94211,
94212,
94213,
94214,
94215,
94216,
94217,
94218,
94220,
94221,
94222,
94224,
94225,
94226,
94227,
94228,
94229,
94231,
94232,
94233,
94234,
94235,
94236,
94237,
94238,
94239,
94240,
94241,
94242,
94244,
94246,
94247,
94250,
94251,
94252,
94253,
94254,
94255,
94257,
94259,
94260,
94262,
94263,
94264,
94265,
94271,
94272,
94273,
94274,
94275,
94276,
94278,
94279,
94280,
94281,
94282,
94283,
94284,
94285,
94286,
94290,
94291,
94292,
94293,
94295,
94298,
94299,
94300,
94301,
94302,
94303,
94304,
94306,
94308,
94309,
94310,
94311,
94312,
94313,
94314,
94315,
94316,
94317,
94318,
94320,
94322,
94323,
94324,
94325,
94326,
94327,
94328,
94330,
94331,
94332,
94334,
94335,
94336,
94337,
94338,
94339,
94340,
94343,
94344,
94346,
94349,
94352,
94354,
94355,
94356,
94357,
94359,
94360,
94362,
94363,
94366,
94368,
94369,
94371,
94372,
94373,
94374,
94375,
94377,
94378,
94379,
94380,
94383,
94384,
94385,
94386,
94387,
94389,
94390,
94391,
94392,
94393,
94394,
94395,
94396,
94397,
94399,
94400,
94401,
94404,
94405,
94406,
94408,
94409,
94410,
94411,
94412,
94413,
94414,
94415,
94416,
94417,
94419,
94420,
94421,
94422,
94424,
94426,
94428,
94429,
94430,
94432,
94433,
94434,
94435,
94437,
94438,
94440,
94441,
94443,
94444,
94445,
94448,
94450,
94451,
94452,
94453,
94454,
94455,
94458,
94459,
94460,
94461,
94462,
94464,
94466,
94467,
94468,
94471,
94472,
94473,
94474,
94475,
94479,
94480,
94481,
94482,
94484,
94485,
94486,
94490,
94491,
94493,
94496,
94498,
94499,
94500,
94501,
94502,
94503,
94504,
94505,
94506,
94507,
94508,
94509,
94510,
94511,
94512,
94513,
94515,
94516,
94517,
94518,
94519,
94522,
94524,
94526,
94529,
94530,
94531,
94532,
94533,
94534,
94535,
94536,
94537,
94539,
94540,
94541,
94543,
94546,
94547,
94548,
94549,
94551,
94552,
94553,
94554,
94555,
94556,
94558,
94559,
94560,
94561,
94562,
94563,
94565,
94567,
94568,
94569,
94570,
94572,
94573,
94574,
94575,
94576,
94580,
94581,
94582,
94583,
94584,
94585,
94586,
94588,
94589,
94591,
94592,
94593,
94595,
94596,
94597,
94598,
94599,
94600,
94601,
94602,
94603,
94604,
94605,
94606,
94607,
94609,
94610,
94611,
94612,
94613,
94614,
94615,
94616,
94618,
94620,
94622,
94623,
94624,
94625,
94626,
94628,
94629,
94630,
94631,
94632,
94633,
94635,
94636,
94637,
94638,
94639,
94640,
94641,
94642,
94644,
94645,
94646,
94647,
94649,
94650,
94651,
94653,
94655,
94656,
94657,
94658,
94659,
94660,
94661,
94662,
94663,
94664,
94665,
94666,
94669,
94670,
94671,
94672,
94673,
94674,
94676,
94678,
94680,
94682,
94683,
94684,
94685,
94686,
94687,
94688,
94691,
94692,
94693,
94694,
94695,
94696,
94697,
94698,
94699,
94700,
94701,
94702,
94703,
94704,
94705,
94708,
94709,
94711,
94712,
94714,
94715,
94716,
94719,
94720,
94722,
94723,
94724,
94725,
94726,
94727,
94729,
94730,
94731,
94733,
94734,
94735,
94736,
94738,
94739,
94740,
94741,
94742,
94743,
94744,
94745,
94748,
94749,
94751,
94754,
94756,
94757,
94758,
94759,
94760,
94761,
94762,
94763,
94764,
94766,
94767,
94768,
94769,
94770,
94771,
94772,
94774,
94775,
94777,
94778,
94779,
94780,
94781,
94783,
94785,
94787,
94788,
94789,
94792,
94793,
94795,
94798,
94800,
94802,
94803,
94805,
94806,
94807,
94808,
94809,
94810,
94811,
94812,
94813,
94814,
94815,
94816,
94818,
94819,
94820,
94821,
94822,
94824,
94825,
94826,
94828,
94831,
94832,
94833,
94834,
94835,
94836,
94838,
94839,
94840,
94841,
94842,
94843,
94844,
94845,
94846,
94848,
94851,
94852,
94853,
94854,
94855,
94856,
94857,
94858,
94860,
94861,
94862,
94863,
94864,
94865,
94866,
94867,
94868,
94870,
94872,
94873,
94875,
94876,
94877,
94878,
94879,
94880,
94883,
94884,
94886,
94887,
94890,
94891,
94892,
94894,
94898,
94900,
94901,
94902,
94903,
94904,
94905,
94906,
94907,
94909,
94910,
94911,
94912,
94913,
94914,
94916,
94917,
94918,
94919,
94920,
94921,
94923,
94925,
94926,
94927,
94929,
94933,
94935,
94936,
94937,
94938,
94939,
94941,
94942,
94944,
94945,
94946,
94949,
94950,
94951,
94952,
94953,
94954,
94955,
94956,
94957,
94960,
94961,
94962,
94964,
94966,
94967,
94968,
94970,
94971,
94974,
94975,
94976,
94978,
94979,
94980,
94984,
94985,
94986,
94989,
94990,
94991,
94992,
94993,
94994,
94995,
94997,
94998,
94999,
95000,
95001,
95002,
95005,
95006,
95007,
95009,
95010,
95011,
95015,
95018,
95019,
95020,
95021,
95022,
95023,
95024,
95025,
95026,
95028,
95030,
95031,
95032,
95033,
95034,
95035,
95036,
95039,
95040,
95042,
95044,
95045,
95046,
95047,
95048,
95050,
95052,
95055,
95056,
95058,
95059,
95060,
95062,
95064,
95069,
95071,
95072,
95073,
95074,
95075,
95076,
95077,
95079,
95082,
95083,
95084,
95086,
95087,
95088,
95089,
95091,
95092,
95093,
95095,
95096,
95097,
95098,
95099,
95100,
95101,
95102,
95105,
95106,
95107,
95108,
95110,
95112,
95113,
95114,
95115,
95116,
95117,
95118,
95120,
95121,
95123,
95124,
95126,
95127,
95128,
95129,
95130,
95131,
95132,
95133,
95134,
95135,
95136,
95137,
95138,
95139,
95141,
95142,
95143,
95145,
95146,
95147,
95149,
95151,
95152,
95153,
95154,
95155,
95156,
95157,
95159,
95160,
95161,
95162,
95163,
95164,
95165,
95166,
95167,
95168,
95170,
95171,
95172,
95173,
95174,
95175,
95176,
95177,
95178,
95179,
95180,
95181,
95182,
95183,
95184,
95185,
95187,
95188,
95189,
95191,
95192,
95193,
95195,
95196,
95197,
95198,
95199,
95200,
95201,
95203,
95204,
95205,
95207,
95208,
95209,
95210,
95211,
95212,
95214,
95215,
95219,
95220,
95221,
95222,
95223,
95224,
95225,
95226,
95227,
95229,
95231,
95232,
95233,
95235,
95236,
95238,
95240,
95241,
95242,
95245,
95246,
95248,
95249,
95250,
95252,
95254,
95255,
95256,
95257,
95258,
95260,
95261,
95262,
95264,
95265,
95266,
95267,
95268,
95269,
95270,
95271,
95272,
95273,
95278,
95280,
95282,
95284,
95285,
95286,
95287,
95289,
95290,
95291,
95292,
95294,
95295,
95296,
95297,
95299,
95301,
95302,
95303,
95304,
95308,
95309,
95310,
95311,
95312,
95315,
95317,
95318,
95319,
95320,
95321,
95323,
95326,
95327,
95329,
95330,
95331,
95332,
95333,
95334,
95336,
95337,
95338,
95339,
95341,
95342,
95343,
95344,
95345,
95347,
95348,
95349,
95350,
95353,
95354,
95357,
95358,
95360,
95361,
95362,
95363,
95364,
95365,
95366,
95367,
95368,
95369,
95370,
95371,
95372,
95374,
95375,
95376,
95377,
95378,
95379,
95380,
95381,
95383,
95384,
95385,
95386,
95388,
95389,
95390,
95392,
95393,
95394,
95395,
95396,
95397,
95398,
95399,
95400,
95401,
95402,
95405,
95406,
95408,
95409,
95410,
95411,
95412,
95414,
95415,
95417,
95419,
95420,
95421,
95425,
95426,
95427,
95428,
95430,
95432,
95433,
95434,
95435,
95436,
95438,
95440,
95441,
95442,
95443,
95444,
95445,
95446,
95447,
95448,
95449,
95451,
95452,
95454,
95455,
95456,
95459,
95462,
95463,
95465,
95467,
95468,
95469,
95470,
95471,
95473,
95474,
95475,
95476,
95477,
95478,
95479,
95481,
95482,
95483,
95485,
95486,
95487,
95490,
95494,
95495,
95499,
95500,
95501,
95502,
95503,
95504,
95505,
95506,
95507,
95508,
95509,
95510,
95511,
95512,
95514,
95516,
95517,
95518,
95519,
95520,
95523,
95524,
95525,
95526,
95527,
95528,
95529,
95531,
95532,
95533,
95535,
95536,
95539,
95540,
95543,
95544,
95547,
95548,
95550,
95552,
95553,
95554,
95555,
95556,
95558,
95559,
95560,
95561,
95562,
95563,
95565,
95566,
95567,
95569,
95570,
95571,
95572,
95573,
95575,
95576,
95577,
95578,
95579,
95581,
95582,
95583,
95584,
95585,
95586,
95587,
95588,
95589,
95590,
95592,
95593,
95594,
95595,
95596,
95597,
95598,
95599,
95600,
95601,
95602,
95603,
95604,
95605,
95608,
95609,
95610,
95611,
95612,
95614,
95616,
95617,
95618,
95619,
95620,
95621,
95622,
95623,
95624,
95625,
95626,
95627,
95629,
95630,
95631,
95632,
95635,
95636,
95637,
95638,
95639,
95641,
95642,
95643,
95644,
95645,
95646,
95647,
95649,
95651,
95653,
95654,
95656,
95657,
95658,
95659,
95660,
95662,
95666,
95667,
95669,
95671,
95672,
95673,
95674,
95675,
95676,
95678,
95679,
95681,
95682,
95683,
95684,
95685,
95686,
95689,
95690,
95693,
95694,
95695,
95696,
95697,
95698,
95699,
95700,
95706,
95707,
95708,
95709,
95710,
95711,
95712,
95713,
95714,
95715,
95716,
95717,
95718,
95719,
95720,
95722,
95723,
95724,
95725,
95726,
95727,
95728,
95729,
95732,
95733,
95734,
95735,
95736,
95737,
95738,
95739,
95741,
95742,
95743,
95744,
95745,
95746,
95747,
95749,
95750,
95752,
95753,
95755,
95757,
95760,
95762,
95763,
95764,
95767,
95768,
95770,
95772,
95773,
95774,
95775,
95776,
95777,
95778,
95779,
95780,
95781,
95782,
95784,
95785,
95786,
95789,
95790,
95791,
95792,
95793,
95794,
95795,
95796,
95797,
95800,
95801,
95803,
95804,
95805,
95806,
95808,
95809,
95810,
95811,
95813,
95816,
95817,
95819,
95820,
95823,
95824,
95825,
95827,
95828,
95829,
95830,
95831,
95832,
95833,
95834,
95835,
95836,
95837,
95839,
95842,
95843,
95844,
95845,
95846,
95847,
95848,
95849,
95850,
95851,
95852,
95853,
95854,
95857,
95858,
95859,
95860,
95861,
95862,
95864,
95865,
95866,
95867,
95869,
95870,
95871,
95872,
95873,
95874,
95875,
95877,
95878,
95879,
95880,
95881,
95882,
95884,
95885,
95888,
95889,
95892,
95893,
95896,
95897,
95899,
95900,
95902,
95903,
95904,
95905,
95906,
95909,
95910,
95912,
95913,
95914,
95915,
95917,
95919,
95920,
95921,
95922,
95923,
95924,
95925,
95926,
95927,
95929,
95931,
95932,
95934,
95935,
95936,
95938,
95939,
95940,
95941,
95942,
95944,
95945,
95947,
95948,
95949,
95950,
95951,
95954,
95955,
95956,
95957,
95959,
95960,
95961,
95962,
95963,
95965,
95968,
95969,
95970,
95971,
95972,
95973,
95975,
95976,
95977,
95979,
95980,
95981,
95983,
95984,
95985,
95986,
95987,
95988,
95990,
95991,
95992,
95993,
95996,
95997,
95998,
95999,
96001,
96002,
96003,
96004,
96005,
96006,
96008,
96009,
96012,
96013,
96014,
96015,
96017,
96018,
96019,
96020,
96021,
96022,
96023,
96024,
96027,
96028,
96029,
96030,
96031,
96033,
96034,
96035,
96036,
96037,
96038,
96044,
96045,
96046,
96047,
96048,
96050,
96052,
96054,
96055,
96056,
96057,
96058,
96059,
96060,
96061,
96062,
96064,
96066,
96067,
96069,
96070,
96071,
96072,
96073,
96074,
96075,
96076,
96077,
96078,
96079,
96081,
96084,
96085,
96088,
96089,
96090,
96092,
96093,
96096,
96097,
96099,
96100,
96101,
96103,
96104,
96106,
96107,
96108,
96109,
96111,
96112,
96113,
96114,
96115,
96116,
96118,
96119,
96121,
96122,
96124,
96125,
96126,
96128,
96129,
96131,
96132,
96133,
96135,
96137,
96141,
96142,
96143,
96144,
96145,
96147,
96149,
96150,
96151,
96152,
96154,
96155,
96156,
96157,
96158,
96159,
96161,
96162,
96163,
96165,
96166,
96167,
96168,
96169,
96171,
96173,
96174,
96175,
96176,
96177,
96178,
96179,
96180,
96181,
96183,
96184,
96185,
96187,
96189,
96190,
96191,
96192,
96193,
96194,
96195,
96197,
96198,
96201,
96202,
96203,
96205,
96207,
96208,
96209,
96210,
96212,
96213,
96214,
96215,
96216,
96217,
96218,
96220,
96221,
96224,
96225,
96226,
96227,
96228,
96229,
96231,
96233,
96234,
96235,
96236,
96238,
96239,
96241,
96242,
96243,
96244,
96246,
96247,
96248,
96249,
96250,
96251,
96254,
96255,
96256,
96257,
96258,
96259,
96260,
96261,
96262,
96263,
96264,
96265,
96266,
96267,
96268,
96269,
96270,
96271,
96273,
96274,
96275,
96276,
96277,
96278,
96279,
96280,
96282,
96284,
96285,
96286,
96287,
96288,
96289,
96290,
96292,
96294,
96296,
96297,
96298,
96299,
96300,
96301,
96305,
96308,
96309,
96310,
96312,
96313,
96314,
96315,
96317,
96318,
96319,
96321,
96322,
96323,
96324,
96325,
96326,
96327,
96330,
96332,
96333,
96334,
96337,
96338,
96340,
96341,
96342,
96344,
96345,
96346,
96349,
96351,
96352,
96353,
96354,
96355,
96357,
96358,
96359,
96362,
96365,
96367,
96368,
96369,
96370,
96371,
96372,
96373,
96374,
96376,
96377,
96378,
96379,
96380,
96381,
96382,
96383,
96384,
96385,
96386,
96387,
96390,
96393,
96394,
96395,
96396,
96397,
96398,
96400,
96401,
96402,
96403,
96405,
96406,
96407,
96408,
96409,
96410,
96411,
96412,
96413,
96414,
96416,
96417,
96418,
96419,
96420,
96421,
96422,
96423,
96424,
96425,
96427,
96428,
96429,
96430,
96432,
96433,
96434,
96435,
96436,
96437,
96438,
96440,
96443,
96444,
96445,
96446,
96447,
96448,
96449,
96450,
96451,
96452,
96453,
96454,
96456,
96457,
96458,
96459,
96461,
96462,
96463,
96464,
96465,
96466,
96467,
96468,
96469,
96470,
96471,
96472,
96473,
96474,
96475,
96476,
96477,
96479,
96480,
96481,
96483,
96484,
96485,
96488,
96489,
96490,
96491,
96492,
96494,
96495,
96499,
96501,
96504,
96506,
96508,
96510,
96511,
96512,
96514,
96516,
96517,
96518,
96519,
96520,
96522,
96524,
96526,
96527,
96528,
96529,
96533,
96534,
96535,
96536,
96537,
96538,
96539,
96540,
96542,
96543,
96544,
96546,
96548,
96551,
96552,
96554,
96555,
96556,
96557,
96559,
96560,
96561,
96562,
96563,
96566,
96567,
96570,
96571,
96573,
96574,
96576,
96578,
96579,
96580,
96581,
96582,
96583,
96584,
96585,
96587,
96588,
96590,
96591,
96592,
96594,
96596,
96597,
96601,
96602,
96603,
96604,
96605,
96606,
96607,
96608,
96609,
96611,
96612,
96613,
96614,
96615,
96618,
96620,
96621,
96622,
96625,
96626,
96627,
96628,
96629,
96631,
96632,
96633,
96635,
96636,
96637,
96639,
96642,
96644,
96645,
96646,
96648,
96650,
96651,
96653,
96654,
96656,
96657,
96658,
96660,
96661,
96662,
96664,
96665,
96666,
96667,
96668,
96669,
96672,
96673,
96674,
96676,
96678,
96679,
96680,
96681,
96682,
96684,
96685,
96686,
96687,
96690,
96691,
96692,
96693,
96694,
96695,
96699,
96700,
96701,
96702,
96704,
96705,
96707,
96710,
96711,
96712,
96713,
96714,
96716,
96717,
96718,
96720,
96721,
96723,
96724,
96725,
96726,
96728,
96729,
96730,
96731,
96732,
96733,
96734,
96735,
96736,
96737,
96738,
96739,
96740,
96741,
96742,
96743,
96744,
96746,
96747,
96749,
96750,
96751,
96752,
96753,
96754,
96755,
96756,
96757,
96758,
96759,
96761,
96762,
96764,
96765,
96766,
96767,
96768,
96769,
96770,
96774,
96777,
96778,
96779,
96780,
96781,
96783,
96784,
96785,
96786,
96787,
96788,
96789,
96791,
96792,
96793,
96794,
96795,
96796,
96797,
96798,
96799,
96800,
96801,
96802,
96803,
96804,
96805,
96806,
96807,
96809,
96810,
96811,
96812,
96813,
96815,
96816,
96817,
96818,
96819,
96820,
96821,
96824,
96825,
96826,
96828,
96830,
96831
] |
69026ef3898b91db574ba94407df76162ff02740 | 56310c1213de37bc0ac745d991e7d4542064b666 | /WWDC_Scolarship_Stefano_Formicola/Animations.playgroundbook/Contents/Chapters/Chapter2.playgroundchapter/Pages/Page1.playgroundpage/Sources/AnimationsViewController.swift | 1970d223cb522bada5ae11143edafd87121d775d | [] | no_license | ste7en/Animations_PlaygroundBook | 9aab66b0506741a4095835edd394eb3022fce638 | 1909cbf144f9936807b6f781a388b8abfefa23a6 | refs/heads/master | 2020-03-21T10:45:31.190649 | 2018-06-24T10:22:34 | 2018-06-24T10:22:34 | 138,469,538 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 5,084 | swift | import UIKit
public class AnimationsViewController: ViewController {
public var walkingLord: UIImageView = UIImageView.imageViewForConstraints(image: UIImage(named: "Walking/bulldog1.png"), contentMode: .scaleAspectFit)
let grassView = UIImageView.imageViewForConstraints(image: UIImage(named: "Background/Grass.png"), contentMode: .scaleAspectFill)
let clouds = UIImageView.imageViewForConstraints(image: UIImage(named: "Background/Clouds.png"), contentMode: .scaleAspectFit)
let bush = UIImageView.imageViewForConstraints(image: UIImage(named: "Background/Bush.png"), contentMode : .scaleAspectFit)
let leftTrees = UIImageView.imageViewForConstraints(image: UIImage(named: "Background/Trees.png"), contentMode: .scaleAspectFit)
override public func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = UIColor(fromHex: 0xBBE1E5)
// Grass settings
self.view.addSubview(grassView)
// Autolayout and aspect ratio
grassView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
grassView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
grassView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor).isActive = true
grassView.heightAnchor.constraint(equalTo: self.view.heightAnchor, multiplier: 1/3).isActive = true
// Clouds setting
self.view.addSubview(clouds)
// Autolayout and aspect ratio
clouds.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
clouds.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
clouds.topAnchor.constraint(equalTo: self.view.topAnchor).isActive = true
clouds.heightAnchor.constraint(equalTo: clouds.widthAnchor, multiplier: clouds.imageAspectRatio).isActive = true
// Bush setting
self.view.addSubview(bush)
// Autolayout and aspect ratio
bush.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
bush.bottomAnchor.constraint(equalTo: grassView.topAnchor).isActive = true
bush.widthAnchor.constraint(equalTo: self.view.widthAnchor, multiplier: 0.25).isActive = true
bush.heightAnchor.constraint(equalTo: bush.widthAnchor, multiplier: bush.imageAspectRatio).isActive = true
// Trees on the left setting
self.view.addSubview(leftTrees)
// Autolayout and aspect ratio
leftTrees.leadingAnchor.constraint(equalTo: self.view.leadingAnchor, constant: self.view.frame.width * 0.11).isActive = true
leftTrees.widthAnchor.constraint(equalTo: self.view.widthAnchor, multiplier: 0.3).isActive = true
leftTrees.heightAnchor.constraint(equalTo: leftTrees.widthAnchor, multiplier: leftTrees.imageAspectRatio).isActive = true
leftTrees.bottomAnchor.constraint(equalTo: grassView.topAnchor).isActive = true
// Tree on the right setting
let rightTree = UIImageView.imageViewForConstraints(image: UIImage(named: "Background/RightTree.png"), contentMode: .scaleAspectFit)
self.view.addSubview(rightTree)
// Autolayout and aspect ratio
rightTree.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
rightTree.widthAnchor.constraint(equalTo: self.view.widthAnchor, multiplier: 0.28).isActive = true
rightTree.heightAnchor.constraint(equalTo: rightTree.widthAnchor, multiplier: rightTree.imageAspectRatio).isActive = true
rightTree.bottomAnchor.constraint(equalTo: grassView.topAnchor).isActive = true
}
override public func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.view.layoutIfNeeded()
}
public func move(steps: CGFloat, duration: Double) {
UIView.animate(withDuration: duration, delay: 0.5, options: [.curveLinear], animations: {
// Starts the animation frames
self.walkingLord.startAnimating()
let translationTransform = CGAffineTransform(translationX: steps, y: 0)
self.walkingLord.transform = translationTransform
}, completion: { _ in
// Stops the animation
self.walkingLord.stopAnimating()
})
}
public func walk(duration: TimeInterval) {
move(steps: self.view.bounds.width/3, duration: duration)
}
public func addLordToView() {
// Lord image setting
self.view.addSubview(walkingLord)
// Autolayout and aspect ratio
walkingLord.centerYAnchor.constraint(equalTo: grassView.centerYAnchor).isActive = true
walkingLord.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
walkingLord.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.2).isActive = true
walkingLord.heightAnchor.constraint(equalTo: walkingLord.widthAnchor, multiplier: walkingLord.imageAspectRatio).isActive = true
}
}
| [
-1
] |
d422c4bd51e0e8d2bd4ea7129a253759297e0f45 | 86aa14210df96df5e4c2b7ab30b745759ba82e51 | /AmplifyPlugins/Auth/AWSCognitoAuthPluginTests/AuthDeviceBehaviorTests/BaseAuthDeviceTest.swift | 89a3f3af09711c9a2b27c2ea1cecad97a71535a4 | [
"Apache-2.0",
"MIT"
] | permissive | AnilPeker/amplify-ios | 3b2717d903f8d21d84a184b8d3a05fcf80ae8c9e | 71782aa297702d1d85f6c779a1a91e2f23824584 | refs/heads/main | 2023-01-28T11:39:27.523811 | 2022-05-27T17:04:13 | 2022-05-27T17:04:13 | 498,708,414 | 0 | 1 | Apache-2.0 | 2022-06-01T11:28:48 | 2022-06-01T11:28:48 | null | UTF-8 | Swift | false | false | 1,158 | swift | //
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
import Foundation
import XCTest
@testable import Amplify
@testable import AWSCognitoAuthPlugin
@testable import AWSMobileClient
class BaseAuthDeviceTest: XCTestCase {
let apiTimeout = 2.0
var deviceService: AuthDeviceServiceAdapter!
var mockAWSMobileClient: MockAWSMobileClient!
var plugin: AWSCognitoAuthPlugin!
override func setUp() {
mockAWSMobileClient = MockAWSMobileClient()
deviceService = AuthDeviceServiceAdapter(awsMobileClient: mockAWSMobileClient)
plugin = AWSCognitoAuthPlugin()
plugin?.configure(authenticationProvider: MockAuthenticationProviderBehavior(),
authorizationProvider: MockAuthorizationProviderBehavior(),
userService: MockAuthUserServiceBehavior(),
deviceService: deviceService,
hubEventHandler: MockAuthHubEventBehavior())
}
override func tearDown() {
plugin = nil
mockAWSMobileClient = nil
deviceService = nil
}
}
| [
-1
] |
7ae7c902cef3f48f9d90d338984565e9b0e9ec9a | 74d494476e620446a70503e0de393427bed25b2c | /Sources/Models/CategoryMask.swift | 163937ff3868780ded4927baad23b2427f897fb6 | [
"MIT"
] | permissive | cocoatoucher/Glide | 2a576460585939ec316d18badf3cb09702014c9c | 4724f8d66e7d34ab5d197a621e8f98ff2af36847 | refs/heads/master | 2023-07-21T18:35:30.666059 | 2023-07-15T14:35:03 | 2023-07-15T14:35:03 | 185,016,938 | 502 | 47 | MIT | 2023-07-15T14:35:04 | 2019-05-05T10:34:20 | Swift | UTF-8 | Swift | false | false | 1,470 | swift | //
// CategoryMask.swift
// glide
//
// Copyright (c) 2019 cocoatoucher user on github.com (https://github.com/cocoatoucher/)
//
// 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
/// Mask that defines which category an entity belongs to.
public protocol CategoryMask {
var rawValue: UInt32 { get }
}
public func == (lhs: CategoryMask, rhs: CategoryMask) -> Bool {
return lhs.rawValue == rhs.rawValue
}
| [
194560,
395267,
196612,
196615,
395271,
395274,
395277,
395278,
395279,
395280,
395281,
395282,
395283,
395286,
395287,
395289,
395290,
196638,
395295,
395296,
196641,
98341,
61478,
98344,
98345,
98349,
329778,
124987,
174139,
354364,
229438,
229440,
229441,
395328,
174148,
229444,
395332,
327751,
174152,
395333,
395334,
229449,
174159,
229456,
112721,
174161,
106580,
106582,
106585,
106586,
106587,
112730,
174171,
284783,
125057,
125062,
235658,
319626,
229524,
229526,
303255,
303256,
229532,
125087,
215205,
129190,
215211,
215212,
241846,
241852,
241859,
241862,
241864,
317640,
241866,
241870,
241877,
262359,
97329,
241881,
224,
241894,
241897,
241901,
241903,
241904,
176370,
241907,
241908,
176373,
241910,
260342,
176378,
241916,
141565,
141569,
241923,
141572,
241928,
141577,
141578,
241930,
241934,
241936,
241937,
141586,
141588,
12565,
227604,
227607,
227608,
141593,
141594,
227610,
141595,
141597,
241944,
12569,
241952,
141596,
141602,
241954,
141598,
141599,
289062,
141600,
141603,
241957,
141606,
141608,
141612,
241962,
289067,
289068,
12592,
289074,
289078,
141622,
141627,
215356,
141629,
141632,
141634,
241989,
213319,
141640,
141641,
141642,
141643,
213320,
241992,
241996,
241998,
241999,
141646,
242002,
141651,
242006,
282967,
215384,
141655,
141654,
141660,
168285,
141663,
141664,
141670,
141674,
141677,
141681,
287090,
190836,
334196,
190840,
190841,
430456,
190843,
190844,
430458,
190842,
375168,
141696,
141700,
141701,
141702,
141707,
430476,
430475,
141708,
141711,
430483,
217492,
217494,
197018,
197019,
197021,
295330,
295331,
197029,
430502,
168359,
303550,
160205,
381398,
319972,
305638,
223741,
192234,
61971,
191006,
191007,
272931,
57893,
57896,
328232,
57899,
57900,
295467,
57903,
57904,
57905,
57906,
272944,
336445,
336446,
336450,
336451,
336454,
336455,
336457,
336460,
336464,
336465,
336466,
336467,
336469,
336470,
336471,
336472,
336473,
336474,
437297,
336478,
336479,
336480,
111202,
336482,
336483,
111206,
336489,
297620,
297636,
135861,
242361,
244419,
66247,
244427,
248524,
127693,
244430,
66261,
127702,
127703,
334562,
334563,
127716,
334564,
62183,
127727,
127729,
244469,
318199,
318200,
142073,
164601,
334590,
318207,
244480,
334591,
142078,
318211,
334596,
334600,
318218,
334603,
334604,
334602,
334606,
318220,
318223,
334607,
318231,
318233,
318234,
318236,
318237,
318241,
318246,
187174,
187176,
187175,
187177,
187179,
187180,
141601,
314167,
316216,
396088,
396089,
396091,
396092,
396094,
396095,
148287,
316224,
396098,
314179,
396101,
279366,
279367,
396104,
279369,
396110,
396112,
396114,
396115,
396117,
396118,
396119,
396120,
396121,
396122,
396123,
396125,
396126,
396127,
396128,
396129,
396133,
299880,
396137,
162668,
299884,
187248,
396147,
396151,
248696,
396153,
187258,
187259,
187260,
322430,
437356,
60304,
201619,
60308,
60319,
60321,
60324,
60327,
60328,
312481,
185258,
185259,
23469,
23470,
185262,
23472,
23473,
60337,
23475,
23474,
23476,
185267,
23479,
287674,
23483,
23487,
23490,
281539,
23492,
23494,
23502,
228306,
23508,
23515,
259036,
23517,
23523,
23531,
23533,
341058,
152560,
242675,
23552,
171008,
23559,
23560,
23561,
437258,
437262,
23572,
23574,
23575,
437273,
23580,
23581,
437277,
23585,
23590,
23591,
23594,
23596,
23599,
189488,
97327,
187442,
144435,
187444,
189490,
189492,
189493,
144440,
144441,
187447,
189491,
341052,
23607,
341054,
341055,
97339,
23612,
437314,
144442,
341060,
144444,
222278,
23616,
341057,
341062,
341063,
341066,
341068,
189508,
203862,
285782,
189502,
285785,
437340,
115805,
115806,
115807,
293982,
115809,
115810,
437345,
185446,
293990,
312423,
115817,
242794,
115819,
185452,
115820,
185454,
115823,
185455,
115825,
312427,
115827,
242803,
115829,
185457,
242807,
142450,
437364,
437369,
437371,
142463,
294016,
205959,
437384,
437392,
437394,
437396,
189590,
40088,
312473,
312474,
189594,
208026,
40092,
312478,
40095,
312479,
208027,
189598,
208029,
208033,
27810,
228512,
228513,
437416,
189607,
189609,
189610,
189612,
312493,
312489,
189608,
208041,
189617,
437426,
312497,
437428,
312501,
189619,
437431,
312498,
437433,
189621,
189623,
189626,
322751,
437440,
437443,
437446,
292041,
292042,
437453,
181455,
437456,
437457,
292049,
437458,
437455,
152789,
203990,
204003,
152821,
152825,
294137,
294138,
279818,
206094,
279823,
206097,
206098,
294162,
206102,
206104,
206108,
181533,
206109,
294181,
27943,
181544,
294183,
27944,
27948,
312476,
181553,
173368,
206138,
245058,
173379,
312480,
152906,
152907,
152908,
152909,
152910,
290123,
312482,
290125,
290126,
290127,
290130,
312483,
216825,
290135,
290136,
245081,
290137,
290139,
378208,
64865,
222562,
222563,
222566,
228717,
222573,
228721,
171377,
222577,
222579,
222587,
222590,
222591,
173441,
222596,
177543,
222599,
222601,
222600,
222603,
222604,
54669,
222605,
222606,
222607,
54673,
363913,
54678,
279961,
54692,
152998,
54698,
54700,
54701,
155377,
54703,
298431,
370118,
279944,
189496,
157151,
222689,
222692,
157157,
222693,
157159,
157158,
112111,
112115,
112120,
65016,
280068,
40453,
40454,
40458,
40460,
40466,
40469,
40477,
40480,
40481,
40482,
362020,
362022,
116267,
282156,
189595,
34359,
34362,
173634,
173635,
316995,
316997,
263751,
173646,
106085,
319081,
314987,
319085,
319088,
300660,
300661,
300662,
300663,
52882,
394900,
52887,
394905,
394908,
394910,
394912,
52897,
52900,
339622,
52902,
144437,
147115,
394925,
144438,
292536,
292544,
108230,
144443,
108240,
144445,
296660,
108245,
212694,
296685,
144447,
34531,
192230,
192231,
192232,
296681,
34538,
296679,
34540,
34541,
216812,
216814,
216815,
216816,
216818,
216819,
296684,
296687,
216822,
296688,
296691,
296692,
216826,
296698,
216828,
216829,
296699,
296700,
216832,
216833,
216834,
296703,
216836,
216837,
216838,
296707,
296708,
296710,
296712,
296713,
313099,
141607,
313101,
313104,
313108,
313111,
313112,
149274,
149275,
149280,
159523,
227116,
227119,
321342,
210755,
210756,
210757,
210758,
296706,
321353,
218959,
218960,
120655,
120656,
218963,
218964,
120657,
223064,
223065,
180058,
180059,
229209,
223069,
223070,
229213,
169824,
229217,
169826,
223076,
237413,
169830,
292709,
128873,
169835,
227180,
128876,
169837,
128878,
223086,
223087,
128881,
128882,
227188,
128883,
128884,
169843,
141181,
327550,
169856,
108419,
141198,
108431,
108432,
116622,
108436,
219033,
108448,
219040,
141219,
219043,
219044,
219045,
141223,
141225,
141228,
141229,
108460,
108462,
229294,
229295,
437402,
141235,
141246,
141264,
59348,
59349,
23601,
141272,
437404,
40931,
40932,
141284,
40934,
141290,
40940,
40941,
141293,
395247,
141295,
174063,
231406,
174067,
174066,
141292,
141297,
237559,
174074,
194558,
194559
] |
2651f8419c40961917863cc8dad552c30bd7a53f | 1b89daa34b17abd619145ed01a404fd501f5d03e | /ProcoreTech/AppDelegate.swift | 612c315342e302ef11ec6e7ab5e316e1bcec2eaa | [] | no_license | vbharam/iOS-PR_Viewer | 6aab766329464a9a0bd0e4cb42b617ef3e330429 | aac26e6e6864b66a498e5452248edb1a3176a1ce | refs/heads/master | 2020-04-05T19:33:46.946593 | 2018-11-12T18:17:58 | 2018-11-12T18:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,180 | swift | //
// AppDelegate.swift
// ProcoreTech
//
// Created by Vishal Bharam on 11/11/18.
// Copyright © 2018 Vishal Bharam. 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,
278545,
229394,
278548,
229397,
229399,
229402,
278556,
229405,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
286774,
286776,
319544,
286778,
229432,
204856,
286791,
237640,
286797,
278605,
311375,
163920,
196692,
319573,
311383,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
286916,
286922,
286924,
286926,
319694,
286928,
131281,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
303347,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
278983,
319945,
278986,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
287238,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
213575,
172618,
303690,
33357,
303696,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
287365,
311942,
303751,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
164509,
303773,
172705,
287394,
172707,
303780,
287390,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
172751,
287440,
295633,
172755,
303827,
279255,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303981,
303985,
328563,
303987,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
213895,
304007,
304009,
304011,
304013,
295822,
279438,
189329,
295825,
304019,
189331,
58262,
304023,
304027,
279452,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
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,
181631,
312711,
312712,
296331,
288140,
288144,
230800,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
279991,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
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,
321022,
402942,
206336,
296450,
230916,
230919,
230923,
304651,
304653,
370187,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
157236,
288320,
288325,
124489,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
239202,
312938,
280183,
280185,
280188,
280191,
116354,
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,
321266,
288499,
419570,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
304968,
280393,
280402,
173907,
313171,
313176,
280419,
321381,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
288895,
321670,
215175,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
280919,
354653,
354656,
313700,
280937,
313705,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289221,
289227,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
281095,
223752,
150025,
338440,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
133776,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
314045,
314047,
314051,
199364,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
158596,
183172,
240519,
322440,
314249,
338823,
183184,
289687,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
322642,
314456,
281691,
314461,
281702,
281704,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
216376,
380226,
298306,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
306549,
298358,
314743,
306552,
290171,
314747,
306555,
290174,
298365,
224641,
281987,
298372,
314756,
281990,
224647,
298377,
314763,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
290305,
306694,
192008,
323084,
257550,
290321,
282130,
290325,
282133,
241175,
290328,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
324757,
282261,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
298822,
315211,
307027,
315221,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
44948,
298901,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
241581,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
307374,
307376,
323763,
184503,
176311,
299191,
307385,
307386,
307388,
258235,
307390,
176316,
299200,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
299225,
233701,
307432,
282881,
282893,
323854,
291089,
282906,
291104,
233766,
295583,
307508,
315701,
332086,
307510,
307512,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
315739,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
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,
291269,
127431,
127434,
315856,
176592,
127440,
315860,
176597,
127447,
283095,
299481,
127449,
176605,
242143,
127455,
291299,
127463,
242152,
291305,
127466,
176620,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
283142,
127494,
135689,
233994,
127497,
127500,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
201444,
299750,
283368,
234219,
283372,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
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,
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,
234364,
291711,
234368,
291714,
234370,
291716,
234373,
201603,
226182,
234375,
308105,
226185,
234379,
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,
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,
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,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
308379,
234648,
300189,
324766,
119967,
234653,
324768,
234657,
283805,
242852,
300197,
234661,
283813,
234664,
275626,
234667,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
226500,
283844,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
275725,
349464,
283939,
259367,
292143,
283951,
300344,
243003,
283963,
300357,
283973,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
316811,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
227440,
316917,
308727,
292343,
300537,
316933,
316947,
308757,
308762,
284191,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
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,
284258,
292452,
292454,
284263,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
276206,
358128,
284399,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
317221,
227109,
358183,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
292681,
153417,
358224,
276308,
284502,
317271,
178006,
276315,
292700,
317279,
284511,
227175,
292715,
300912,
292721,
284529,
300915,
292729,
317306,
284540,
292734,
325512,
276365,
317332,
358292,
284564,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
284585,
276395,
292784,
358326,
161718,
358330,
276410,
276411,
276418,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
292843,
276460,
276464,
178161,
227314,
276466,
325624,
276472,
317435,
276476,
276479,
276482,
276485,
317446,
276490,
292876,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
284739,
325700,
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,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
309491,
227571,
309494,
243960,
276735,
227583,
227587,
276739,
276742,
227593,
227596,
325910,
309530,
342298,
276766,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
317833,
178572,
285070,
285077,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
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,
293387,
236043,
342541,
113167,
309779,
317971,
309781,
277011,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
23094,
277054,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170619,
309885,
309888,
277122,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
342707,
154292,
318132,
277173,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
137946,
113378,
228069,
277223,
342760,
285417,
56043,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
301884,
310080,
293696,
277317,
277322,
293706,
310100,
301911,
277337,
301913,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
276586,
293849,
293861,
228327,
318442,
228330,
228332,
326638,
277486,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
285690,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
293917,
293939,
318516,
277561,
310336,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
285792,
277601,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
285835,
302218,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
64768,
310531,
285958,
138505,
228617,
318742,
277798,
130345,
113964,
285997,
285999,
113969,
318773,
318776,
286010,
417086,
286016,
302403,
294211,
384328,
294221,
294223,
326991,
179547,
146784,
302436,
294246,
327015,
310632,
327017,
351594,
351607,
310648,
310651,
310657,
351619,
294276,
310659,
327046,
253320,
310665,
318858,
310672,
351633,
310689,
130468,
228776,
277932,
310703,
310710,
130486,
310712,
310715,
302526,
228799,
302534,
310727,
64966,
245191,
163272,
302541,
302543,
310737,
228825,
163290,
310749,
310755,
187880,
310764,
286188,
310772,
40440,
212472,
40443,
286203,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286313,
40554,
286312,
310892,
40557,
40560,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
294601,
302793,
343757,
212690,
319187,
278227,
286420,
229076,
286425,
319194,
278235,
301163,
278238,
229086,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
294776,
360317,
294785,
327554,
40851,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
294844,
294847,
393177,
294876,
294879,
294883,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
2932e4fa2e223c5c3b8fa2a1a5610723491dc9e7 | b991fd18658b77797bb92028bb0034d314890ad0 | /cricketApp-CMT/Views/Account/AccountViewController.swift | 5333002db81f0de45d5951f1518dce7a338e421c | [] | no_license | seenashafai/cricketApp-CMT | a4031a6cce5f424aeb7a3d448b1a3c18a56bb90f | 78bd37ef5c39f762ccb818276d5cb86982c209a0 | refs/heads/master | 2021-08-22T22:57:49.968863 | 2017-12-01T14:54:52 | 2017-12-01T14:54:52 | 107,104,423 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 716 | swift | //
// secondViewController.swift
// cricketApp-CMT
//
// Created by Seena Shafai on 17/10/2017.
// Copyright © 2017 Seena Shafai. All rights reserved.
//
import UIKit
import Firebase
import FirebaseAuth
class secondViewController: UIViewController {
//MARK: - IBActions
//Logout Function
@IBAction func logOut(_ sender: UIButton)
{
try! Auth.auth().signOut()
//Perform Segue back to Sign-in view
performSegue(withIdentifier: "segue2", sender: self)
}
//MARK: - View cycle
override func viewDidLoad()
{
super.viewDidLoad()
//Print current user to console
print(Auth.auth().currentUser?.email as Any)
}
}
| [
-1
] |
708b8979e35d702362baad87c1c8fea7ba36b29f | bd04463061c9c1ab45d44ce1856a3e82f4a73f18 | /test/decl/var/static_var.swift | bf151f7a18bc347734af3b698069148e02e22b3d | [
"Apache-2.0",
"Swift-exception"
] | permissive | swift-embedded/swift | 633dc5302a3bb88c500d84dbc50ed31ec6e52092 | 385ee9dafe6431ebec9b871b81ef389c2ead5668 | refs/heads/embedded-5.1 | 2022-05-07T11:57:23.429204 | 2020-01-12T23:14:25 | 2020-01-12T23:14:25 | 212,096,608 | 11 | 6 | Apache-2.0 | 2022-11-26T23:19:49 | 2019-10-01T12:58:43 | C++ | UTF-8 | Swift | false | false | 15,094 | swift | // RUN: %target-typecheck-verify-swift -parse-as-library
// See also rdar://15626843.
static var gvu1: Int // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
class var gvu2: Int // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
override static var gvu3: Int // expected-error {{static properties may only be declared on a type}}{{10-17=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
// expected-error@-2 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
override class var gvu4: Int // expected-error {{class properties may only be declared on a type}}{{10-16=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
// expected-error@-2 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
static override var gvu5: Int // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{8-17=}}
// expected-error@-2 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
class override var gvu6: Int // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{7-16=}}
// expected-error@-2 {{global 'var' declaration requires an initializer expression or getter/setter specifier}}
static var gvu7: Int { // expected-error {{static properties may only be declared on a type}}{{1-8=}}
return 42
}
class var gvu8: Int { // expected-error {{class properties may only be declared on a type}}{{1-7=}}
return 42
}
static let glu1: Int // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{global 'let' declaration requires an initializer expression}}
class let glu2: Int // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{global 'let' declaration requires an initializer expression}}
override static let glu3: Int // expected-error {{static properties may only be declared on a type}}{{10-17=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
// expected-error@-2 {{global 'let' declaration requires an initializer expression}}
override class let glu4: Int // expected-error {{class properties may only be declared on a type}}{{10-16=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
// expected-error@-2 {{global 'let' declaration requires an initializer expression}}
static override let glu5: Int // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{8-17=}}
// expected-error@-2 {{global 'let' declaration requires an initializer expression}}
class override let glu6: Int // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{7-16=}}
// expected-error@-2 {{global 'let' declaration requires an initializer expression}}
static var gvi1: Int = 0 // expected-error {{static properties may only be declared on a type}}{{1-8=}}
class var gvi2: Int = 0 // expected-error {{class properties may only be declared on a type}}{{1-7=}}
override static var gvi3: Int = 0 // expected-error {{static properties may only be declared on a type}}{{10-17=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
override class var gvi4: Int = 0 // expected-error {{class properties may only be declared on a type}}{{10-16=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
static override var gvi5: Int = 0 // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{8-17=}}
class override var gvi6: Int = 0 // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{7-16=}}
static let gli1: Int = 0 // expected-error {{static properties may only be declared on a type}}{{1-8=}}
class let gli2: Int = 0 // expected-error {{class properties may only be declared on a type}}{{1-7=}}
override static let gli3: Int = 0 // expected-error {{static properties may only be declared on a type}}{{10-17=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
override class let gli4: Int = 0 // expected-error {{class properties may only be declared on a type}}{{10-16=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{1-10=}}
static override let gli5: Int = 0 // expected-error {{static properties may only be declared on a type}}{{1-8=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{8-17=}}
class override let gli6: Int = 0 // expected-error {{class properties may only be declared on a type}}{{1-7=}}
// expected-error@-1 {{'override' can only be specified on class members}}{{7-16=}}
func inGlobalFunc() {
static var v1: Int // expected-error {{static properties may only be declared on a type}}{{3-10=}}
class var v2: Int // expected-error {{class properties may only be declared on a type}}{{3-9=}}
static let l1: Int = 0 // expected-error {{static properties may only be declared on a type}}{{3-10=}}
class let l2: Int = 0 // expected-error {{class properties may only be declared on a type}}{{3-9=}}
v1 = 1; v2 = 1
_ = v1+v2+l1+l2
}
struct InMemberFunc {
func member() {
static var v1: Int // expected-error {{static properties may only be declared on a type}}{{5-12=}}
class var v2: Int // expected-error {{class properties may only be declared on a type}}{{5-11=}}
static let l1: Int = 0 // expected-error {{static properties may only be declared on a type}}{{5-12=}}
class let l2: Int = 0 // expected-error {{class properties may only be declared on a type}}{{5-11=}}
v1 = 1; v2 = 1
_ = v1+v2+l1+l2
}
}
struct S { // expected-note 3{{extended type declared here}} expected-note{{did you mean 'S'?}}
static var v1: Int = 0
class var v2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static var v3: Int { return 0 }
class var v4: Int { return 0 } // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static final var v5 = 1 // expected-error {{only classes and class members may be marked with 'final'}}
static let l1: Int = 0
class let l2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static final let l3 = 1 // expected-error {{only classes and class members may be marked with 'final'}}
}
extension S {
static var ev1: Int = 0
class var ev2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static var ev3: Int { return 0 }
class var ev4: Int { return 0 } // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static let el1: Int = 0
class let el2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
}
enum E { // expected-note 3{{extended type declared here}} expected-note{{did you mean 'E'?}}
static var v1: Int = 0
class var v2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static var v3: Int { return 0 }
class var v4: Int { return 0 } // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static final var v5 = 1 // expected-error {{only classes and class members may be marked with 'final'}}
static let l1: Int = 0
class let l2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static final let l3 = 1 // expected-error {{only classes and class members may be marked with 'final'}}
}
extension E {
static var ev1: Int = 0
class var ev2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static var ev3: Int { return 0 }
class var ev4: Int { return 0 } // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
static let el1: Int = 0
class let el2: Int = 0 // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
}
class C { // expected-note{{did you mean 'C'?}}
static var v1: Int = 0
class final var v3: Int = 0 // expected-error {{class stored properties not supported}}
class var v4: Int = 0 // expected-error {{class stored properties not supported}}
static var v5: Int { return 0 }
class var v6: Int { return 0 }
static final var v7: Int = 0 // expected-error {{static declarations are already final}} {{10-16=}}
static let l1: Int = 0
class let l2: Int = 0 // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
class final let l3: Int = 0 // expected-error {{class stored properties not supported}}
static final let l4 = 2 // expected-error {{static declarations are already final}} {{10-16=}}
}
extension C {
static var ev1: Int = 0
class final var ev2: Int = 0 // expected-error {{class stored properties not supported}}
class var ev3: Int = 0 // expected-error {{class stored properties not supported}}
static var ev4: Int { return 0 }
class var ev5: Int { return 0 }
static final var ev6: Int = 0 // expected-error {{static declarations are already final}} {{10-16=}}
static let el1: Int = 0
class let el2: Int = 0 // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
class final let el3: Int = 0 // expected-error {{class stored properties not supported in classes; did you mean 'static'?}}
static final let el4: Int = 0 // expected-error {{static declarations are already final}} {{10-16=}}
}
protocol P { // expected-note{{did you mean 'P'?}} expected-note{{extended type declared here}}
// Both `static` and `class` property requirements are equivalent in protocols rdar://problem/17198298
static var v1: Int { get }
class var v2: Int { get } // expected-error {{class properties are only allowed within classes; use 'static' to declare a requirement fulfilled by either a static or class property}} {{3-8=static}}
static final var v3: Int { get } // expected-error {{only classes and class members may be marked with 'final'}}
static let l1: Int // expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}}
class let l2: Int // expected-error {{class properties are only allowed within classes; use 'static' to declare a requirement fulfilled by either a static or class property}} {{3-8=static}} expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}}
}
extension P {
class var v4: Int { return 0 } // expected-error {{class properties are only allowed within classes; use 'static' to declare a static property}} {{3-8=static}}
}
struct S1 {
// rdar://15626843
static var x: Int // expected-error {{'static var' declaration requires an initializer expression or getter/setter specifier}}
var y = 1
static var z = 5
}
extension S1 {
static var zz = 42
static var xy: Int { return 5 }
}
enum E1 {
static var y: Int {
get {}
}
}
class C1 {
class var x: Int // expected-error {{class stored properties not supported}} expected-error {{'class var' declaration requires an initializer expression or getter/setter specifier}}
}
class C2 {
var x: Int = 19
class var x: Int = 17 // expected-error{{class stored properties not supported}}
func xx() -> Int { return self.x + C2.x }
}
class ClassHasVars {
static var computedStatic: Int { return 0 } // expected-note 3{{overridden declaration is here}}
final class var computedFinalClass: Int { return 0 } // expected-note 3{{overridden declaration is here}}
class var computedClass: Int { return 0 }
var computedInstance: Int { return 0 }
}
class ClassOverridesVars : ClassHasVars {
override static var computedStatic: Int { return 1 } // expected-error {{cannot override static property}}
override static var computedFinalClass: Int { return 1 } // expected-error {{static property overrides a 'final' class property}}
override class var computedClass: Int { return 1 }
override var computedInstance: Int { return 1 }
}
class ClassOverridesVars2 : ClassHasVars {
override final class var computedStatic: Int { return 1 } // expected-error {{cannot override static property}}
override final class var computedFinalClass: Int { return 1 } // expected-error {{class property overrides a 'final' class property}}
}
class ClassOverridesVars3 : ClassHasVars {
override class var computedStatic: Int { return 1 } // expected-error {{cannot override static property}}
override class var computedFinalClass: Int { return 1 } // expected-error {{class property overrides a 'final' class property}}
}
struct S2 {
var x: Int = 19
static var x: Int = 17
func xx() -> Int { return self.x + C2.x }
}
// Mutating vs non-mutating conflict with static stored property witness - rdar://problem/19887250
protocol Proto {
static var name: String {get set}
}
struct ProtoAdopter : Proto {
static var name: String = "name" // no error, even though static setters aren't mutating
}
// Make sure the logic remains correct if we synthesized accessors for our stored property
protocol ProtosEvilTwin {
static var name: String {get set}
}
extension ProtoAdopter : ProtosEvilTwin {}
// rdar://18990358
public struct Foo { // expected-note {{to match this opening '{'}}}
public static let S { _ = 0; a // expected-error{{computed property must have an explicit type}} {{22-22=: <# Type #>}}
// expected-error@-1{{type annotation missing in pattern}}
// expected-error@-2{{'let' declarations cannot be computed properties}} {{17-20=var}}
// expected-error@-3{{use of unresolved identifier 'a'}}
}
// expected-error@+1 {{expected '}' in struct}}
| [
90762,
73540,
86895
] |
07a08241c786cab3b566f3f46f6165d24b4fc36d | 05c0d4b86f18014e993aed2abb30d06b10b2f77f | /ImgView03/AppDelegate.swift | 628adcf32c559c164c4d30ba6bb36888a67f5ea4 | [] | no_license | ByeongCheol97/ImgView03 | 6c8c5756a89acdf346bc613c3e1b6cd274680362 | b23842983bb2adcad1dc07f3fdf860728894562a | refs/heads/master | 2020-05-02T18:12:54.282893 | 2019-03-28T03:50:20 | 2019-03-28T03:50:20 | 178,122,120 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,181 | swift | //
// AppDelegate.swift
// ImgView03
//
// Created by D7703_13 on 2019. 3. 28..
// Copyright © 2019년 personel team. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
| [
229380,
229383,
229385,
278539,
229388,
294924,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
286774,
319544,
204856,
229432,
286776,
286778,
286791,
237640,
278605,
286797,
311375,
163920,
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,
286916,
295110,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
278983,
319945,
278986,
278990,
278994,
311767,
279003,
279006,
188895,
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,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
172618,
303690,
33357,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
189039,
295538,
172660,
189040,
189044,
287349,
287355,
287360,
295553,
295557,
311942,
303751,
287365,
352905,
311946,
279178,
287371,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
287390,
303773,
164509,
172705,
287394,
172702,
303780,
172707,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
328381,
287423,
328384,
279231,
287427,
312005,
312006,
107208,
107212,
172748,
287436,
172751,
287440,
295633,
172755,
303827,
279255,
287450,
303835,
279258,
189149,
303838,
213724,
279267,
312035,
295654,
279272,
312048,
230128,
312050,
230131,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
279353,
230202,
312124,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
303987,
328563,
303991,
303997,
295806,
295808,
304005,
295813,
304007,
320391,
213895,
304009,
304011,
304013,
279438,
295822,
213902,
189329,
295825,
189331,
304019,
58262,
304023,
279452,
279461,
279462,
304042,
213931,
304055,
230327,
287675,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
295945,
295949,
230413,
197645,
320528,
140312,
295961,
238620,
304164,
304170,
238641,
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,
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,
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,
296450,
296446,
230916,
230919,
304651,
370187,
304653,
230923,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
239202,
312938,
280183,
280185,
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,
280276,
321239,
280283,
18140,
313052,
288478,
313055,
321252,
313066,
280302,
288494,
313073,
419570,
288499,
321266,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
124817,
280468,
239510,
280473,
124827,
247709,
214944,
313258,
321458,
296883,
124853,
10170,
296890,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
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,
313451,
223341,
280687,
215154,
313458,
280691,
149618,
313464,
329850,
321659,
288895,
321670,
215175,
288909,
141455,
141459,
313498,
100520,
288936,
288940,
280755,
288947,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
321740,
313548,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
239944,
305480,
280906,
239947,
305485,
305489,
280919,
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,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
281095,
223752,
338440,
150025,
330244,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
338528,
338532,
281190,
199273,
281196,
158317,
19053,
313973,
297594,
281210,
158347,
182926,
133776,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
314029,
314033,
240309,
133817,
314047,
314051,
199364,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
183172,
338823,
322440,
314249,
240519,
183184,
142226,
240535,
289687,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281711,
289912,
248995,
306341,
306344,
306347,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
216376,
298306,
380226,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
306555,
314747,
298365,
290171,
290174,
224641,
281987,
314756,
298372,
281990,
224647,
298377,
314763,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
282101,
241142,
191992,
290298,
151036,
290302,
290305,
306694,
192008,
323084,
257550,
282127,
290321,
282130,
282133,
290325,
241175,
290328,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
28219,
282186,
224849,
282195,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
257658,
315016,
282249,
290445,
324757,
282261,
175770,
298651,
323229,
282269,
298655,
323231,
61092,
282277,
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,
307012,
298822,
315211,
307027,
315221,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
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,
241581,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
282639,
282645,
241693,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
307287,
315482,
217179,
315483,
192605,
233567,
200801,
299105,
217188,
299109,
307303,
315495,
356457,
307307,
45163,
315502,
192624,
307314,
323700,
299126,
233591,
307329,
307338,
233613,
241813,
307352,
299164,
184479,
299167,
184481,
184486,
307370,
307372,
307374,
307376,
299185,
323763,
176311,
299191,
307385,
307386,
258235,
307388,
176316,
307390,
184503,
299200,
307394,
307396,
299204,
184518,
307399,
323784,
233679,
307409,
307411,
299225,
233701,
307432,
282881,
282893,
291089,
282906,
291104,
233766,
295583,
307508,
315701,
332086,
307510,
307512,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
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,
291269,
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,
135689,
233994,
127497,
127500,
233998,
127506,
234003,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234038,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
135808,
291456,
373383,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
135839,
299680,
225954,
135844,
299684,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
201444,
299750,
283368,
234219,
283372,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
242450,
234258,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
234278,
299814,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
316233,
234313,
316235,
234316,
283468,
242511,
234319,
234321,
234324,
201557,
185173,
234329,
234333,
308063,
234336,
234338,
349027,
242530,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
234370,
201603,
291714,
234373,
316294,
226182,
234375,
308105,
291716,
226185,
234379,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
234410,
291754,
291756,
324522,
226220,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
324536,
275384,
234428,
291773,
234431,
242623,
324544,
324546,
234434,
324548,
234437,
226245,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
324599,
234487,
234490,
234493,
234496,
316416,
308226,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
234519,
316439,
234520,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
234549,
300085,
300088,
234553,
234556,
234558,
316479,
234561,
308291,
316483,
160835,
234563,
234568,
234570,
316491,
300108,
234572,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
300133,
234597,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
300148,
234614,
398455,
144506,
234618,
275579,
234620,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
308379,
234648,
234653,
300189,
119967,
324766,
324768,
283805,
234657,
242852,
234661,
283813,
300197,
234664,
275626,
234667,
316596,
308414,
300223,
234687,
300226,
308418,
283844,
300229,
308420,
308422,
226500,
234692,
283850,
300234,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
316663,
275703,
300284,
275710,
300287,
300289,
292097,
161027,
300292,
300294,
275719,
234760,
300299,
177419,
242957,
283917,
300301,
177424,
275725,
349464,
283939,
259367,
292143,
283951,
300344,
243003,
283963,
226628,
283973,
300357,
283983,
316758,
357722,
316766,
316768,
292192,
218464,
292197,
316774,
284010,
324978,
136562,
275834,
333178,
275836,
275840,
316803,
316806,
316811,
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,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
284213,
308790,
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,
284258,
292452,
292454,
284263,
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,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
153417,
292681,
276308,
284502,
317271,
276315,
292700,
284511,
227175,
292715,
300912,
284529,
292721,
300915,
292729,
317306,
284540,
292734,
325512,
276365,
358292,
284564,
317332,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
284585,
317353,
276395,
292784,
358326,
161718,
276410,
276411,
358330,
276418,
301009,
301011,
301013,
292823,
301015,
301017,
358360,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
292843,
276460,
292845,
276464,
178161,
227314,
276466,
325624,
276472,
317435,
276476,
276479,
276482,
276485,
317446,
276490,
292876,
317456,
276496,
317458,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
284739,
243779,
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,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
309450,
301258,
276685,
309455,
276689,
309462,
301272,
309468,
194780,
309471,
301283,
317672,
317674,
325867,
243948,
227571,
309491,
309494,
243960,
276735,
227583,
227587,
276739,
276742,
227593,
227596,
325910,
309530,
342298,
276766,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
235858,
276829,
276833,
391523,
276836,
276843,
293227,
276848,
293232,
186744,
211324,
227709,
285061,
317833,
178572,
285070,
285077,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
317951,
309764,
301575,
121352,
236043,
342541,
113167,
309779,
317971,
309781,
277011,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
23094,
277054,
129603,
318020,
301636,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170619,
309885,
309888,
277122,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
334488,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
342707,
318132,
154292,
293555,
277173,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
137946,
113378,
228069,
277223,
342760,
285417,
56043,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
293666,
285474,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
301884,
310080,
293696,
277317,
277322,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
310134,
15224,
236408,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
276579,
293811,
293820,
203715,
326603,
276586,
293849,
293861,
228327,
228328,
228330,
318442,
228332,
326638,
277486,
318450,
293876,
293877,
285686,
302073,
285690,
293882,
302075,
244731,
121850,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
293917,
293939,
277561,
277564,
310336,
293956,
277573,
228422,
310344,
277577,
293960,
277583,
203857,
310355,
293971,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
285817,
367737,
302205,
285821,
392326,
285831,
253064,
302218,
294026,
285835,
384148,
162964,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
64768,
310531,
285958,
138505,
228617,
318742,
277798,
130345,
113964,
285997,
285999,
113969,
318773,
318776,
286010,
417086,
286016,
302403,
294211,
384328,
294221,
326991,
294223,
179547,
146784,
302436,
294246,
327015,
310632,
327017,
351594,
351607,
310648,
310651,
310657,
310659,
351619,
294276,
327046,
253320,
310665,
318858,
310672,
351633,
310689,
130468,
228776,
277932,
310703,
310710,
130486,
310712,
310715,
302526,
228799,
302534,
245191,
310727,
64966,
163272,
292968,
302541,
302543,
310737,
228825,
163290,
310749,
310755,
187880,
310764,
286188,
310772,
40440,
212472,
40443,
286203,
310780,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
302617,
286233,
302621,
146977,
187939,
40484,
294435,
40486,
286246,
40488,
278057,
294439,
40491,
294440,
294443,
294445,
310831,
245288,
40499,
40502,
212538,
40507,
40511,
228933,
40521,
286283,
40525,
40527,
400976,
212560,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40550,
40552,
286312,
40554,
286313,
310892,
40557,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
302793,
294601,
343757,
212690,
278227,
286420,
319187,
229076,
286425,
319194,
278235,
278238,
229086,
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,
294785,
327554,
40851,
294811,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
294831,
188340,
40886,
319419,
294844,
294847,
237508,
393177,
294876,
294879,
294883,
294890,
311279,
278513,
237555,
311283,
278516,
278519,
237562
] |
f93a1bb6cdb1556175ecabe2af65e8a0c5a7e684 | a1a0431530c2d59de2712dfa035acb8d27b8d1a0 | /YourAmazingWallPaperss.swift | a3d66eb4004931fbc2124f3f64c244d3109bf949 | [] | no_license | Zhcyn/Amazing-WallPapers | 35625668c6292224ffa069c5a848bd9a44898f11 | c523bf2c0d5a9ab039258e6a44d60189f425dfdb | refs/heads/master | 2020-05-31T08:17:32.792735 | 2019-06-04T10:47:23 | 2019-06-04T10:47:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 8,624 | swift | import UIKit
import Photos
import PhotosUI
import MobileCoreServices
class YourWallpapers: UIViewController,UIImagePickerControllerDelegate, UINavigationControllerDelegate{
var imageLibrary:UIImage?
@IBOutlet weak var FadedView: UIView!
@IBOutlet weak var View_My: UIView!
@IBOutlet weak var btn_CreateWall: UIButton!
@IBOutlet weak var btn_CreateLive: UIButton!
var imagePicker: UIImagePickerController!
var btn_expand_state = 0
lazy var WallpapersControlller:UIViewController? = {
let wallpapersController = self.storyboard?.instantiateViewController(withIdentifier: "Wallpapers_My")
return wallpapersController
}()
lazy var LiveWallpapersController:UIViewController? = {
let livewallpapersController = self.storyboard?.instantiateViewController(withIdentifier: "LiveWallpapers_My")
return livewallpapersController
}()
var currentViewCOntroller:UIViewController?
@IBOutlet weak var btn_expand: UIButton!
@IBAction func abtn_Expand(_ sender: Any) {
if btn_expand_state == 0{
btn_expand.transform = CGAffineTransform.identity
UIView.animate(withDuration: 0.5, delay: 0.1, usingSpringWithDamping: 0.5, initialSpringVelocity: 1, options: .curveEaseInOut, animations: { () -> Void in
let rotation = CGAffineTransform.init(rotationAngle: CGFloat(Double.pi/4))
self.btn_expand.transform = rotation
}, completion: nil)
btn_expand_state = 1
UIView.animate(withDuration: 0.5) {
self.btn_CreateLive.alpha = 1
self.btn_CreateWall.alpha = 1
self.FadedView.alpha = 1
}
let animation = CAKeyframeAnimation(keyPath: "transform.translation.y")
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
animation.duration = 0.5
animation.values = [32, 0 ]
btn_CreateWall.layer.add(animation, forKey: "move")
let animation1 = CAKeyframeAnimation(keyPath: "transform.translation.y")
animation1.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
animation1.duration = 0.5
animation1.values = [32, 0 ]
btn_CreateLive.layer.add(animation, forKey: "move")
}else{
UIView.animate(withDuration: 0.5, delay: 0.1, usingSpringWithDamping: 0.5, initialSpringVelocity: 1, options: .curveEaseInOut, animations: { () -> Void in
self.btn_expand.transform = CGAffineTransform.identity
}, completion: nil)
UIView.animate(withDuration: 0.3) {
self.btn_expand_state = 0
self.btn_CreateLive.alpha = 0
self.btn_CreateWall.alpha = 0
self.FadedView.alpha = 0
}
let animation = CAKeyframeAnimation(keyPath: "transform.translation.y")
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
animation.duration = 0.3
animation.values = [0, 32 ]
btn_CreateWall.layer.add(animation, forKey: "move")
let animation1 = CAKeyframeAnimation(keyPath: "transform.translation.y")
animation1.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
animation1.duration = 0.3
animation1.values = [0, 32 ]
btn_CreateLive.layer.add(animation, forKey: "move")
}
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override func viewDidLoad() {
super.viewDidLoad()
btn_expand.isHidden = true
NotificationCenter.default.addObserver(self, selector: #selector(ChangeDisplay), name: Notification.Name("ChangeDislay") , object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(chup(_:)), name: .Wallpapers_Screen , object: nil)
ChangeDisplayViewLoad(index: 0)
btn_CreateLive.set(image: #imageLiteral(resourceName: "iconCreateLiveWallpapers") , title: "Create Live Wallpapers ", titlePosition: .left, additionalSpacing: 8, state: .normal)
btn_CreateWall.set(image: #imageLiteral(resourceName: "iconCreateWallpapers"), title: "Create Wallpapers ", titlePosition: .left, additionalSpacing: 8, state: .normal)
btn_CreateLive.alpha = 0
btn_CreateWall.alpha = 0
FadedView.alpha = 0
FadedView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(TapFadedView(_:))))
}
@objc func TapFadedView(_ sender: UITapGestureRecognizer){
UIView.animate(withDuration: 0.5, delay: 0.2, usingSpringWithDamping: 0.5, initialSpringVelocity: 1, options: .curveEaseInOut, animations: { () -> Void in
self.btn_expand.transform = CGAffineTransform.identity
}, completion: nil)
UIView.animate(withDuration: 0.5) {
self.btn_expand_state = 0
self.btn_CreateLive.alpha = 0
self.btn_CreateWall.alpha = 0
self.FadedView.alpha = 0
}
}
func ChangeDisplayViewLoad(index:Int){
let vc = CheckCollection(index: index)
vc.didMove(toParentViewController: self)
self.addChildViewController(vc)
vc.view.frame = self.View_My.bounds
View_My.addSubview(vc.view)
currentViewCOntroller = vc
}
@objc func ChangeDisplay(noti:Notification){
print("Change:\(noti.object as! Int)")
currentViewCOntroller?.view.removeFromSuperview()
currentViewCOntroller?.removeFromParentViewController()
ChangeDisplayViewLoad(index: noti.object as! Int)
}
func CheckCollection(index:Int) ->UIViewController {
if(index == 0){
return WallpapersControlller!
}else{
return LiveWallpapersController!
}
}
@objc func image(_ image: UIImage, didFinishSavingWithError error: Error?, contextInfo: UnsafeRawPointer) {
if let error = error {
let ac = UIAlertController(title: "Save error", message: error.localizedDescription, preferredStyle: .alert)
ac.addAction(UIAlertAction(title: "OK", style: .default))
present(ac, animated: true)
} else {
let ac = UIAlertController(title: "Saved!", message: "Your altered image has been saved to your photos.", preferredStyle: .alert)
ac.addAction(UIAlertAction(title: "OK", style: .default))
present(ac, animated: true)
}
}
@IBAction func abtn_CreateLive(_ sender: Any) {
let picker = UIImagePickerController()
picker.delegate = self
picker.sourceType = .camera
picker.mediaTypes = [kUTTypeMovie as String]
present(picker, animated: true, completion: nil)
}
@IBAction func abtn_TakePhotoWallpaper(_ sender: Any) {
}
@objc func chup(_ notification: Notification){
guard let data = notification.userInfo as? [String: Any] else{
return
}
guard let index = data["index"] as? Int else{
return
}
if #available(iOS 10.0, *) {
let vc:CameraViewController = self.storyboard?.instantiateViewController(withIdentifier: "showCamera") as! CameraViewController
vc.kindOf = index
navigationController?.pushViewController(vc, animated: true)
} else {
}
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if let currentViewCOntroller = currentViewCOntroller {
currentViewCOntroller.viewWillDisappear(animated)
}
}
override func viewWillAppear(_ animated: Bool) {
navigationController?.tabBarController?.tabBar.isHidden = false
self.btn_expand.transform = CGAffineTransform.identity
self.btn_expand_state = 0
FadedView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(TapFadedView(_:))))
NotificationCenter.default.post(name: .LibaryWallpaper, object: nil)
btn_CreateLive.set(image: #imageLiteral(resourceName: "iconCreateLiveWallpapers") , title: "Create Live Wallpapers ", titlePosition: .left, additionalSpacing: 8, state: .normal)
btn_CreateWall.set(image: #imageLiteral(resourceName: "iconCreateWallpapers"), title: "Create Wallpapers ", titlePosition: .left, additionalSpacing: 8, state: .normal)
btn_CreateLive.alpha = 0
btn_CreateWall.alpha = 0
FadedView.alpha = 0
}
}
| [
-1
] |
753ac0161bf9e18db97420e396fae2063e366dfb | 4e64f9b32254734d5257cdd38df38cc1e8529217 | /Source/SwiftLintFramework/Extensions/SwiftLintFile+Regex.swift | 0743f2e91cfde3169b5a565fb5c9d106c2553343 | [
"MIT"
] | permissive | nexzanavod/SwiftLint | 7a36ce091171364343dc6b8c70d4dfbb5f9848df | 187f1f24688bb87ff83a689a99dbde7166dab56f | refs/heads/master | 2020-12-04T05:54:15.310109 | 2020-01-03T18:29:05 | 2020-01-03T18:29:05 | 231,643,075 | 0 | 0 | MIT | 2020-01-03T18:29:06 | 2020-01-03T18:28:02 | null | UTF-8 | Swift | false | false | 13,984 | swift | import Foundation
import SourceKittenFramework
internal func regex(_ pattern: String,
options: NSRegularExpression.Options? = nil) -> NSRegularExpression {
// all patterns used for regular expressions in SwiftLint are string literals which have been
// confirmed to work, so it's ok to force-try here.
let options = options ?? [.anchorsMatchLines, .dotMatchesLineSeparators]
// swiftlint:disable:next force_try
return try! .cached(pattern: pattern, options: options)
}
extension SwiftLintFile {
internal func regions(restrictingRuleIdentifiers: Set<RuleIdentifier>? = nil) -> [Region] {
var regions = [Region]()
var disabledRules = Set<RuleIdentifier>()
let commands: [Command]
if let restrictingRuleIdentifiers = restrictingRuleIdentifiers {
commands = self.commands().filter { command in
return command.ruleIdentifiers.contains(where: restrictingRuleIdentifiers.contains)
}
} else {
commands = self.commands()
}
let commandPairs = zip(commands, Array(commands.dropFirst().map(Optional.init)) + [nil])
for (command, nextCommand) in commandPairs {
switch command.action {
case .disable:
disabledRules.formUnion(command.ruleIdentifiers)
case .enable:
disabledRules.subtract(command.ruleIdentifiers)
}
let start = Location(file: path, line: command.line, character: command.character)
let end = endOf(next: nextCommand)
guard start < end else { continue }
var didSetRegion = false
for (index, region) in zip(regions.indices, regions) where region.start == start && region.end == end {
regions[index] = Region(
start: start,
end: end,
disabledRuleIdentifiers: disabledRules.union(region.disabledRuleIdentifiers)
)
didSetRegion = true
}
if !didSetRegion {
regions.append(
Region(start: start, end: end, disabledRuleIdentifiers: disabledRules)
)
}
}
return regions
}
internal func commands(in range: NSRange? = nil) -> [Command] {
if sourcekitdFailed {
return []
}
let contents = self.contents.bridge()
let range = range ?? NSRange(location: 0, length: contents.length)
let pattern = "swiftlint:(enable|disable)(:previous|:this|:next)?\\ [^\\n]+"
return match(pattern: pattern, range: range).filter { match in
return Set(match.1).isSubset(of: [.comment, .commentURL])
}.compactMap { match in
return Command(string: contents, range: match.0)
}.flatMap { command in
return command.expand()
}
}
fileprivate func endOf(next command: Command?) -> Location {
guard let nextCommand = command else {
return Location(file: path, line: .max, character: .max)
}
let nextLine: Int
let nextCharacter: Int?
if let nextCommandCharacter = nextCommand.character {
nextLine = nextCommand.line
if nextCommandCharacter > 0 {
nextCharacter = nextCommandCharacter - 1
} else {
nextCharacter = nil
}
} else {
nextLine = max(nextCommand.line - 1, 0)
nextCharacter = .max
}
return Location(file: path, line: nextLine, character: nextCharacter)
}
internal func match(pattern: String, with syntaxKinds: [SyntaxKind], range: NSRange? = nil) -> [NSRange] {
return match(pattern: pattern, range: range)
.filter { $0.1 == syntaxKinds }
.map { $0.0 }
}
internal func matchesAndTokens(matching pattern: String,
range: NSRange? = nil) -> [(NSTextCheckingResult, [SwiftLintSyntaxToken])] {
let contents = self.contents.bridge()
let range = range ?? NSRange(location: 0, length: contents.length)
let syntax = syntaxMap
return regex(pattern).matches(in: self.contents, options: [], range: range).map { match in
let matchByteRange = contents.NSRangeToByteRange(start: match.range.location,
length: match.range.length) ?? match.range
let tokensInRange = syntax.tokens(inByteRange: matchByteRange)
return (match, tokensInRange)
}
}
internal func matchesAndSyntaxKinds(matching pattern: String,
range: NSRange? = nil) -> [(NSTextCheckingResult, [SyntaxKind])] {
return matchesAndTokens(matching: pattern, range: range).map { textCheckingResult, tokens in
(textCheckingResult, tokens.kinds)
}
}
internal func rangesAndTokens(matching pattern: String,
range: NSRange? = nil) -> [(NSRange, [SwiftLintSyntaxToken])] {
return matchesAndTokens(matching: pattern, range: range).map { ($0.0.range, $0.1) }
}
internal func match(pattern: String, range: NSRange? = nil) -> [(NSRange, [SyntaxKind])] {
return matchesAndSyntaxKinds(matching: pattern, range: range).map { textCheckingResult, syntaxKinds in
(textCheckingResult.range, syntaxKinds)
}
}
internal func swiftDeclarationKindsByLine() -> [[SwiftDeclarationKind]]? {
if sourcekitdFailed {
return nil
}
var results = [[SwiftDeclarationKind]](repeating: [], count: lines.count + 1)
var lineIterator = lines.makeIterator()
var structureIterator = structureDictionary.kinds().makeIterator()
var maybeLine = lineIterator.next()
var maybeStructure = structureIterator.next()
while let line = maybeLine, let structure = maybeStructure {
if NSLocationInRange(structure.byteRange.location, line.byteRange),
let swiftDeclarationKind = SwiftDeclarationKind(rawValue: structure.kind) {
results[line.index].append(swiftDeclarationKind)
}
let lineEnd = NSMaxRange(line.byteRange)
if structure.byteRange.location >= lineEnd {
maybeLine = lineIterator.next()
} else {
maybeStructure = structureIterator.next()
}
}
return results
}
internal func syntaxTokensByLine() -> [[SwiftLintSyntaxToken]]? {
if sourcekitdFailed {
return nil
}
var results = [[SwiftLintSyntaxToken]](repeating: [], count: lines.count + 1)
var tokenGenerator = syntaxMap.tokens.makeIterator()
var lineGenerator = lines.makeIterator()
var maybeLine = lineGenerator.next()
var maybeToken = tokenGenerator.next()
while let line = maybeLine, let token = maybeToken {
let tokenRange = token.range
if NSLocationInRange(token.offset, line.byteRange) ||
NSLocationInRange(line.byteRange.location, tokenRange) {
results[line.index].append(token)
}
let tokenEnd = NSMaxRange(tokenRange)
let lineEnd = NSMaxRange(line.byteRange)
if tokenEnd < lineEnd {
maybeToken = tokenGenerator.next()
} else if tokenEnd > lineEnd {
maybeLine = lineGenerator.next()
} else {
maybeLine = lineGenerator.next()
maybeToken = tokenGenerator.next()
}
}
return results
}
internal func syntaxKindsByLine() -> [[SyntaxKind]]? {
guard !sourcekitdFailed, let tokens = syntaxTokensByLine() else {
return nil
}
return tokens.map { $0.kinds }
}
//Added by S2dent
/**
This function returns only matches that are not contained in a syntax kind
specified.
- parameter pattern: regex pattern to be matched inside file.
- parameter excludingSyntaxKinds: syntax kinds the matches to be filtered
when inside them.
- returns: An array of [NSRange] objects consisting of regex matches inside
file contents.
*/
internal func match(pattern: String,
excludingSyntaxKinds syntaxKinds: Set<SyntaxKind>,
range: NSRange? = nil) -> [NSRange] {
return match(pattern: pattern, range: range)
.filter { syntaxKinds.isDisjoint(with: $0.1) }
.map { $0.0 }
}
internal typealias MatchMapping = (NSTextCheckingResult) -> NSRange
internal func match(pattern: String,
range: NSRange? = nil,
excludingSyntaxKinds: Set<SyntaxKind>,
excludingPattern: String,
exclusionMapping: MatchMapping = { $0.range }) -> [NSRange] {
let matches = match(pattern: pattern, excludingSyntaxKinds: excludingSyntaxKinds)
if matches.isEmpty {
return []
}
let range = range ?? NSRange(location: 0, length: contents.bridge().length)
let exclusionRanges = regex(excludingPattern).matches(in: contents, options: [],
range: range).map(exclusionMapping)
return matches.filter { !$0.intersects(exclusionRanges) }
}
internal func append(_ string: String) {
guard let stringData = string.data(using: .utf8) else {
queuedFatalError("can't encode '\(string)' with UTF8")
}
guard let path = path, let fileHandle = FileHandle(forWritingAtPath: path) else {
queuedFatalError("can't write to path '\(String(describing: self.path))'")
}
_ = fileHandle.seekToEndOfFile()
fileHandle.write(stringData)
fileHandle.closeFile()
file.contents += string
}
internal func write<S: StringProtocol>(_ string: S) {
guard string != contents else {
return
}
guard let path = path else {
queuedFatalError("file needs a path to call write(_:)")
}
guard let stringData = String(string).data(using: .utf8) else {
queuedFatalError("can't encode '\(string)' with UTF8")
}
do {
try stringData.write(to: URL(fileURLWithPath: path), options: .atomic)
} catch {
queuedFatalError("can't write file to \(path)")
}
file.contents = String(string)
invalidateCache()
}
internal func ruleEnabled(violatingRanges: [NSRange], for rule: Rule) -> [NSRange] {
let fileRegions = regions()
if fileRegions.isEmpty { return violatingRanges }
let violatingRanges = violatingRanges.filter { range in
let region = fileRegions.first {
$0.contains(Location(file: self, characterOffset: range.location))
}
return region?.isRuleEnabled(rule) ?? true
}
return violatingRanges
}
internal func ruleEnabled(violatingRange: NSRange, for rule: Rule) -> NSRange? {
return ruleEnabled(violatingRanges: [violatingRange], for: rule).first
}
fileprivate func numberOfCommentAndWhitespaceOnlyLines(startLine: Int, endLine: Int) -> Int {
let commentKinds = SyntaxKind.commentKinds
return syntaxKindsByLines[startLine...endLine].filter { kinds in
commentKinds.isSuperset(of: kinds)
}.count
}
internal func exceedsLineCountExcludingCommentsAndWhitespace(_ start: Int, _ end: Int,
_ limit: Int) -> (Bool, Int) {
guard end - start > limit else {
return (false, end - start)
}
let count = end - start - numberOfCommentAndWhitespaceOnlyLines(startLine: start, endLine: end)
return (count > limit, count)
}
private typealias RangePatternTemplate = (NSRange, String, String)
internal func correct<R: Rule>(legacyRule: R, patterns: [String: String]) -> [Correction] {
let matches: [RangePatternTemplate]
matches = patterns.flatMap({ pattern, template -> [RangePatternTemplate] in
return match(pattern: pattern).filter { range, kinds in
return kinds.first == .identifier &&
!ruleEnabled(violatingRanges: [range], for: legacyRule).isEmpty
}.map { ($0.0, pattern, template) }
}).sorted { $0.0.location > $1.0.location } // reversed
guard !matches.isEmpty else { return [] }
let description = type(of: legacyRule).description
var corrections = [Correction]()
var contents = self.contents
for (range, pattern, template) in matches {
contents = regex(pattern).stringByReplacingMatches(in: contents, options: [],
range: range,
withTemplate: template)
let location = Location(file: self, characterOffset: range.location)
corrections.append(Correction(ruleDescription: description, location: location))
}
write(contents)
return corrections
}
internal func isACL(token: SwiftLintSyntaxToken) -> Bool {
guard token.kind == .attributeBuiltin else {
return false
}
let aclString = contents(for: token)
return aclString.flatMap(AccessControlLevel.init(description:)) != nil
}
internal func contents(for token: SwiftLintSyntaxToken) -> String? {
return contents.bridge().substringWithByteRange(start: token.offset,
length: token.length)
}
}
| [
170039
] |
f5981e349d2c7ab8631757f693be3bf18d06984a | 388208b621b7e4dd45afcf67474734638915049f | /1000lookz_3d_ipad-master/Tryon/Controllers/MainTabBarController.swift | 1f32e7db99e44d1c1abbb2bc6c080b21c469080b | [] | no_license | 8secz-johndpope/OiC-App-Store | e8ff3c7d32fe49093ed3cb822d9eb243aff1ccd8 | 1beb284e99997325e32e0dd0ce3d8cc648b4f416 | refs/heads/master | 2020-06-20T01:30:05.914140 | 2018-08-21T09:01:52 | 2018-08-21T09:01:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 7,438 | swift | //
// MainTabBarController.swift
// Tryon
//
// Created by Udayakumar N on 13/03/17.
// Copyright © 2017 1000Lookz. All rights reserved.
//
import UIKit
import AlamofireImage
enum TabBarList: Int {
case shop = 0
case searchAndFilter
case shoot
case tray
case profile
}
class MainTabBarController: UITabBarController, UITabBarControllerDelegate {
// MARK: - Class variables
let window = UIApplication.shared.keyWindow!
var menuTabBarView: MenuTabBarView?
// MARK: - Init functions
override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
self.selectedIndex = TabBarList.shop.rawValue
//Configure UI
addLogoAtTheTop()
self.tabBar.isHidden = true
self.menuTabBarView = MenuTabBarView(frame: CGRect(x: window.frame.size.width - 420, y: window.frame.origin.y + 50, width: 485, height: 60))//555
self.menuTabBarView?.tag = 2
self.window.addSubview(menuTabBarView!)
self.menuTabBarView?.menuTabBarDelegate = self
}
// MARK: - Tabbar functions
func disableTabBarItem(item: Int) {
let tabBarControllerItems = self.tabBar.items
if let tab = tabBarControllerItems?[item] {
tab.isEnabled = false
}
}
func enableTabBarItem(item: Int) {
let tabBarControllerItems = self.tabBar.items
if let tab = tabBarControllerItems?[item] {
tab.isEnabled = true
}
}
func updateTrayBadgeCount(withCount count: Int) {
if let navController = self.viewControllers?[TabBarList.tray.rawValue] as! UINavigationController? {
if count > 0 {
navController.tabBarItem.badgeValue = String(count)
} else {
navController.tabBarItem.badgeValue = nil
}
}
}
// MARK: - Window view functions
func addLogoAtTheTop() {
let window = UIApplication.shared.keyWindow!
let backgroundView = UIView(frame: CGRect(x: window.frame.origin.x + 20, y: window.frame.origin.y + 20, width: 80, height: 40))
backgroundView.backgroundColor = UIColor.clear
backgroundView.layer.shadowColor = UIColor.darkGray.cgColor
backgroundView.layer.shadowOffset = CGSize(width: 4, height: 4)
backgroundView.layer.shadowOpacity = 0.5
backgroundView.layer.shadowRadius = 6.0
backgroundView.tag = 1
let logoButton = UIButton(frame: CGRect(x:0, y:0, width: 80, height: 40))
logoButton.backgroundColor = UIColor.primaryLightColor
logoButton.setImage(UIImage(named: "OICLogo"), for: .normal)
logoButton.imageEdgeInsets = UIEdgeInsetsMake(5, 5, 5, 5)
logoButton.addTarget(self, action: #selector(MainTabBarController.logoButtonPressed), for: .touchUpInside)
logoButton.adjustsImageWhenHighlighted = false
logoButton.addCornerRadius(15.0, inCorners: [.bottomLeft, .bottomRight])
logoButton.clipsToBounds = true
logoButton.masksToBounds = true
logoButton.tag = 1
let logoBgView1 = UIView(frame: CGRect(x: window.frame.origin.x + 120, y: window.frame.origin.y + 20, width: 149, height: 40))//143,59
logoBgView1.backgroundColor = UIColor.clear
logoBgView1.layer.shadowColor = UIColor.darkGray.cgColor
logoBgView1.layer.shadowOffset = CGSize(width: 4, height: 4)
logoBgView1.layer.shadowOpacity = 0.5
logoBgView1.layer.shadowRadius = 6.0
logoBgView1.tag = 1
let logoBgView2 = UIView(frame: CGRect(x: 0, y:0, width: 143, height: 40))// height 59
logoBgView2.backgroundColor = UIColor(red: 239/255.0, green: 239/255.0, blue:239/255.0, alpha: 1.0)
logoBgView2.addCornerRadius(15.0, inCorners: [.bottomLeft, .bottomRight])
logoBgView2.clipsToBounds = true
logoBgView2.masksToBounds = true
logoBgView2.tag = 1
let logoImg = UIImageView.init(frame:CGRect(x:15, y:5, width:119, height:25))//))//15,5,119,25 last change for arcadio // x:4, y:0, width: 128, height: 54 // x:34, y:5, width:81, height:30
let sales = UITapGestureRecognizer(target: self, action: #selector(MainTabBarController.customButtonPressed))
logoImg.addGestureRecognizer(sales)
logoImg.isUserInteractionEnabled = true
if UserDefaults.standard.value(forKey: "logoUrl") != nil {
let image = String(describing: UserDefaults.standard.value(forKey: "logoUrl")!)
let data = try? Data(contentsOf: URL(string:image)!)
if data != nil {
let img = UIImage(data: data!)
if img != nil {
logoImg.image = img
window.addSubview(logoBgView1)
logoBgView1.addSubview(logoBgView2)
logoBgView1.addSubview(logoImg)
}
else{
print("no image")
}
}
}
logoImg.backgroundColor = UIColor(red: 239/255.0, green: 239/255.0, blue:239/255.0, alpha: 1.0)
logoImg.tag = 1
let welcomeLabel = UILabel.init(frame: CGRect(x: window.frame.width - 310, y: 22, width: 300, height: 25))
welcomeLabel.font = UIFont(name: "SFUIText-Regular", size: 14)
welcomeLabel.textAlignment = .right
let userName = String(describing: UserDefaults.standard.value(forKey: "UserName")!)//DBUser().username//
welcomeLabel.text = "Welcome, " + userName + "!"
welcomeLabel.tag = 1
window.addSubview(welcomeLabel)
window.addSubview(backgroundView)
backgroundView.addSubview(logoButton)
}
func removeLogoFromWindow() {
for view in self.window.subviews {
if view.tag == 1 {
//Remove Logo SubViews, if already added
view.removeFromSuperview()
}
}
}
func removeMenuFromWindow() {
for view in self.window.subviews {
if view.tag == 2 {
//Remove Menu SubViews, if already added
view.removeFromSuperview()
}
}
}
func logoButtonPressed(sender: UIButton!) {
self.menuTabBarView?.closeTray()
self.menuTabBarView?.selectIndex(newIndex: TabBarList.shop.rawValue)
}
func customButtonPressed(sender: UIButton!) {
self.menuTabBarView?.closeTray()
self.menuTabBarView?.selectIndex(newIndex: TabBarList.shop.rawValue)
}
}
// MARK: - Data delegate functions
extension MainTabBarController: MenuTabBarViewDelegate {
func menuTabBarView(_ menuTabBarView: MenuTabBarView, didSelect id: Int) {
selectIndex(newIndex: id)
}
func selectIndex(newIndex: Int) {
if self.selectedIndex == newIndex {
//Same tab is selected again
if let vc = self.viewControllers?[self.selectedIndex] as? UINavigationController {
vc.popToRootViewController(animated: true)
}
} else {
//Some other tab is selected
self.selectedIndex = newIndex
if let vc = self.viewControllers?[self.selectedIndex] as? UINavigationController {
vc.popToRootViewController(animated: false)
}
}
}
}
| [
-1
] |
b433df591bd05b583c344fcbb70d7e0e4099d617 | 33046c989c0f0edbb75aec46315e0a68edb19026 | /SourceCode/Core Data by Tutorials v5/06-versioning-and-migration/v4/UnCloudNotes/AttachPhotoViewController.swift | 7734a72e330c3bc3fe71df5f46dcb9dba37c4619 | [
"MIT"
] | permissive | CoderDream/Core-Data-by-Tutorials | f4364c5728e410f435e401dde9e156ae75d74d92 | 20c12a45ce06867f0d9a64819cd1836aa7221c9a | refs/heads/master | 2020-06-12T23:52:23.143913 | 2020-01-17T09:42:02 | 2020-01-17T09:42:02 | 194,465,733 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,172 | swift | /// Copyright (c) 2018 Razeware LLC
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
/// distribute, sublicense, create a derivative work, and/or sell copies of the
/// Software in any work that is designed, intended, or marketed for pedagogical or
/// instructional purposes related to programming, coding, application development,
/// or information technology. Permission for such use, copying, modification,
/// merger, publication, distribution, sublicensing, creation of derivative works,
/// or sale is expressly withheld.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
import UIKit
class AttachPhotoViewController: UIViewController {
// MARK: - Properties
var note : Note?
lazy var imagePicker : UIImagePickerController = {
let picker = UIImagePickerController()
picker.sourceType = .photoLibrary
picker.delegate = self
self.addChild(picker)
return picker
}()
// MARK: - View Life Cycle
override func viewDidLoad() {
super.viewDidLoad()
addChild(imagePicker)
view.addSubview(imagePicker.view)
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
imagePicker.view.frame = view.bounds
}
}
// MARK: - UIImagePickerControllerDelegate
extension AttachPhotoViewController: UIImagePickerControllerDelegate {
func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey: Any]) {
guard let note = note,
let context = note.managedObjectContext else {
return
}
let attachment = ImageAttachment(context: context)
attachment.dateCreated = Date()
attachment.image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage
attachment.note = note
attachment.caption = "New Photo"
_ = navigationController?.popViewController(animated: true)
}
}
// MARK: - UINavigationControllerDelegate
extension AttachPhotoViewController: UINavigationControllerDelegate {
}
// MARK: - NoteDisplayable
extension AttachPhotoViewController: NoteDisplayable {
}
| [
379649,
367874,
379651,
379653,
367878,
319369,
367884,
415245,
415248,
415249,
415250,
415253,
379298,
379302,
379305,
379309,
379695,
379312,
379314,
379315,
379316,
379698,
333622,
379703,
225977,
333631,
379714,
411715,
379719,
411719,
307407,
307408,
379735,
319320,
379737,
226011,
379485,
329566,
309983,
309984,
379486,
309986,
379617,
309604,
379618,
309990,
309607,
319334,
309994,
319339,
309612,
309613,
379628,
309615,
379376,
379631,
379638,
379644,
379645,
379647
] |
c10c44a05e28f4e506dbd950246d91a022c23e7a | df930677dc98f9d621c887ce42471c0c2391124f | /Tests/ExampleLibTests/ExampleLib/BusinessLayer/Services/IService.swift | ad58a5bd0490e8558c3930d7a0738bbc2edad833 | [] | no_license | drrost/rddi | a65e37207952f890743188e5172439a6ee2fa24f | 14694362ee378a9a69734b3f278d05b1f704a942 | refs/heads/master | 2023-06-20T21:18:38.720034 | 2021-08-01T20:14:18 | 2021-08-01T20:14:18 | 381,668,514 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 156 | swift | //
// IService.swift
//
//
// Created by Rostyslav Druzhchenko on 28.06.2021.
//
import Foundation
import RDDI
public protocol IService: IDependency {}
| [
-1
] |
c2d0555a2c2e0ec2e5f6a1ec61899ffbbc04c512 | ec59f447a7ea27f3370a1eea8277cecaa1f1fb46 | /opengles/SimpleVideoRecordermy/SimpleVideoRecorder/GPUImageMy/Timestamp.swift | 55b16c4cf37fe6b65c3cef31d481f8f782171bf2 | [] | no_license | lianhuaren/cocoa | 1f1da889b0f6ac3352c15fcbd4b2b42df58fe0cd | 04e46392d51018ed589e46d5114079d6ed3e3946 | refs/heads/master | 2021-06-04T04:33:41.733428 | 2021-01-21T08:20:26 | 2021-01-21T08:20:26 | 4,923,423 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,145 | swift | import Foundation
import AVFoundation
// This reimplements CMTime such that it can reach across to Linux
public struct TimestampFlags: OptionSet {
public let rawValue:UInt32
public init(rawValue:UInt32) { self.rawValue = rawValue }
public static let valid = TimestampFlags(rawValue: 1 << 0)
public static let hasBeenRounded = TimestampFlags(rawValue: 1 << 1)
public static let positiveInfinity = TimestampFlags(rawValue: 1 << 2)
public static let negativeInfinity = TimestampFlags(rawValue: 1 << 3)
public static let indefinite = TimestampFlags(rawValue: 1 << 4)
}
public struct Timestamp: Comparable {
let value:Int64
let timescale:Int32
let flags:TimestampFlags
let epoch:Int64
public init(value:Int64, timescale:Int32, flags:TimestampFlags, epoch:Int64) {
self.value = value
self.timescale = timescale
self.flags = flags
self.epoch = epoch
}
func seconds() -> Double {
return Double(value) / Double(timescale)
}
}
public func ==(x:Timestamp, y:Timestamp) -> Bool {
// TODO: Fix this
// if (x.flags.contains(TimestampFlags.PositiveInfinity) && y.flags.contains(TimestampFlags.PositiveInfinity)) {
// return true
// } else if (x.flags.contains(TimestampFlags.NegativeInfinity) && y.flags.contains(TimestampFlags.NegativeInfinity)) {
// return true
// } else if (x.flags.contains(TimestampFlags.Indefinite) || y.flags.contains(TimestampFlags.Indefinite) || x.flags.contains(TimestampFlags.NegativeInfinity) || y.flags.contains(TimestampFlags.NegativeInfinity) || x.flags.contains(TimestampFlags.PositiveInfinity) && y.flags.contains(TimestampFlags.PositiveInfinity)) {
// return false
// }
let correctedYValue:Int64
if (x.timescale != y.timescale) {
correctedYValue = Int64(round(Double(y.value) * Double(x.timescale) / Double(y.timescale)))
} else {
correctedYValue = y.value
}
return ((x.value == correctedYValue) && (x.epoch == y.epoch))
}
public func <(x:Timestamp, y:Timestamp) -> Bool {
// TODO: Fix this
// if (x.flags.contains(TimestampFlags.PositiveInfinity) || y.flags.contains(TimestampFlags.NegativeInfinity)) {
// return false
// } else if (x.flags.contains(TimestampFlags.NegativeInfinity) || y.flags.contains(TimestampFlags.PositiveInfinity)) {
// return true
// }
if (x.epoch < y.epoch) {
return true
} else if (x.epoch > y.epoch) {
return false
}
let correctedYValue:Int64
if (x.timescale != y.timescale) {
correctedYValue = Int64(round(Double(y.value) * Double(x.timescale) / Double(y.timescale)))
} else {
correctedYValue = y.value
}
return (x.value < correctedYValue)
}
public extension Timestamp {
init(_ time:CMTime) {
self.value = time.value
self.timescale = time.timescale
self.flags = TimestampFlags(rawValue:time.flags.rawValue)
self.epoch = time.epoch
}
var asCMTime:CMTime {
get {
return CMTimeMakeWithEpoch(value, timescale, epoch)
}
}
}
| [
-1
] |
ba6e8e123b46609f78e1cc5443bb10fa50ee396a | e5fdc78c51cbb7aa74777787cd14b04d47e938e3 | /BluetoothConnector/AppDelegate.swift | 35f9359a502ba802dfff78122dcb438a46de3f0f | [] | no_license | akmalh/BluetoothConnector | db19653fbfd70220055f9a05b21d7a7a42bf5a2f | 474ced7481cb0849662ea8649cf5b741355d1ffe | refs/heads/master | 2021-01-10T20:33:29.652692 | 2015-08-26T07:15:37 | 2015-08-26T07:15:37 | 41,346,694 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,162 | swift | //
// AppDelegate.swift
// BluetoothConnector
//
// Created by Akmal Hossain on 25/08/2015.
// Copyright (c) 2015 Akmal Hossain. 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,
294924,
229388,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
278556,
352284,
229405,
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,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
278760,
237807,
303345,
286962,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
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,
172550,
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,
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,
311946,
287371,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
303773,
164509,
295583,
172702,
230045,
287390,
172705,
287394,
172707,
303780,
287398,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
279231,
287423,
328384,
287427,
312006,
107208,
172748,
287436,
107212,
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,
279383,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
328563,
303987,
279413,
303991,
303997,
295806,
295808,
304005,
295813,
213895,
320391,
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,
295949,
197645,
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,
279661,
164973,
205934,
312432,
279669,
337018,
189562,
279679,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
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,
304505,
304506,
181626,
181631,
312711,
296331,
288140,
288144,
230800,
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,
280014,
312783,
288208,
230865,
370130,
288210,
288212,
280021,
288214,
222676,
239064,
288217,
288218,
280027,
288220,
329177,
239070,
288224,
280034,
370146,
280036,
288226,
280038,
288230,
288229,
288232,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
296439,
288250,
148990,
296446,
402942,
206336,
296450,
321022,
230916,
230919,
214535,
370187,
304651,
304653,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
312938,
280183,
280185,
280188,
280191,
280194,
116354,
280208,
280211,
288408,
280218,
280222,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
280260,
280264,
206536,
206539,
206541,
206543,
280276,
313044,
321239,
280283,
288478,
313055,
321252,
313066,
280302,
288494,
280304,
313073,
419570,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
321316,
304932,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
304968,
280393,
280402,
313176,
42842,
280419,
321381,
280426,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280458,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
280515,
190403,
296900,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
231404,
124913,
165876,
321528,
313340,
288764,
239612,
239617,
313347,
288773,
313358,
305176,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
223303,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
223327,
149599,
149601,
280671,
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,
199367,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
281401,
289593,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
183172,
158596,
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,
281923,
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,
298365,
290174,
314747,
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,
324757,
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,
315249,
315251,
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,
176435,
168245,
307515,
282942,
307518,
151874,
282947,
282957,
323917,
110926,
233808,
323921,
315733,
323926,
233815,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
283033,
291226,
242075,
291231,
61855,
283042,
291238,
291241,
127403,
127405,
291247,
127407,
299440,
299444,
127413,
283062,
291254,
194660,
127417,
291260,
283069,
127421,
127424,
127429,
127431,
283080,
315856,
176592,
315860,
176597,
127447,
283095,
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,
119509,
226005,
226008,
242396,
299740,
201444,
299750,
283368,
234219,
283372,
381677,
226037,
283382,
234231,
316151,
234236,
226045,
234239,
242431,
209665,
234242,
242436,
234246,
234248,
226056,
291593,
242443,
234252,
242445,
234254,
291601,
242450,
234258,
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,
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,
234422,
226230,
275384,
324536,
234428,
291773,
226239,
234431,
242623,
234434,
324544,
324546,
234437,
226245,
234439,
324548,
234443,
291788,
234446,
275406,
193486,
234449,
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,
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,
234585,
275545,
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,
275594,
234636,
177293,
234640,
275602,
234643,
226453,
275606,
308373,
275608,
234647,
234648,
234650,
308379,
234653,
283805,
300189,
324766,
234657,
324768,
119967,
242852,
283813,
234661,
300197,
234664,
275626,
234667,
316596,
308414,
234687,
300226,
308418,
226500,
234692,
283844,
300229,
308420,
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,
242957,
275725,
283917,
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,
144835,
284099,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
226802,
316917,
292343,
308727,
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,
276043,
317004,
366155,
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,
300828,
300830,
276255,
300832,
284449,
325408,
300834,
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,
227314,
276466,
276472,
325624,
317435,
276476,
276479,
276482,
276485,
276490,
292876,
276496,
317456,
317458,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
276539,
235579,
235581,
325692,
178238,
276544,
284739,
292934,
276553,
243785,
350293,
350295,
194649,
227418,
309337,
194654,
227423,
350302,
194657,
227426,
276579,
309346,
309348,
227430,
276583,
350308,
309350,
276586,
309352,
350313,
350316,
276590,
301167,
227440,
350321,
284786,
276595,
301163,
350325,
350328,
292985,
301178,
292989,
301185,
317570,
350339,
292993,
317573,
350342,
227463,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
276689,
309462,
301272,
276699,
309468,
194780,
309471,
301283,
317672,
276713,
317674,
325867,
243948,
194801,
227571,
309491,
276725,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
276766,
211232,
317729,
276775,
211241,
325937,
276789,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
276843,
293227,
276848,
293232,
186744,
285051,
211324,
227709,
285061,
317833,
178572,
285070,
178575,
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,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
277106,
121458,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
334476,
326285,
318094,
318092,
277136,
277139,
227992,
285340,
318108,
227998,
318110,
137889,
383658,
285357,
318128,
277170,
342707,
154292,
277173,
293555,
318132,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
137946,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
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,
277337,
301913,
301921,
400236,
236397,
162671,
326514,
310134,
277368,
236408,
15224,
416639,
416640,
113538,
310147,
416648,
277385,
39817,
187274,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
293849,
293861,
228327,
228328,
228330,
318442,
228332,
277486,
326638,
318450,
293876,
293877,
285686,
302073,
285690,
121850,
302075,
244731,
293882,
293887,
277504,
277507,
277511,
277519,
293908,
277526,
293917,
293939,
318516,
277561,
277564,
7232,
310336,
293956,
277573,
228422,
293960,
277577,
310344,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
285792,
277601,
203872,
310374,
203879,
277608,
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,
294063,
228526,
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,
277816,
318776,
286010,
277819,
294204,
417086,
277822,
286016,
294211,
302403,
384328,
277832,
277836,
294221,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
310659,
294276,
351619,
277892,
327046,
253320,
310665,
318858,
277898,
277894,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
277923,
130468,
228776,
277928,
277932,
310703,
277937,
130486,
310710,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
64966,
302534,
163272,
245191,
310727,
277959,
292968,
302541,
277966,
302543,
277963,
310737,
277971,
277975,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
286188,
310764,
278000,
278003,
310772,
228851,
278006,
40440,
278009,
212472,
286203,
40443,
228864,
40448,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187939,
294435,
40484,
40486,
294439,
286248,
278057,
294440,
294443,
40488,
294445,
286246,
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,
278150,
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,
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,
40865,
294817,
319394,
294821,
180142,
294831,
188340,
40886,
319419,
294844,
294847,
309354,
393177,
294876,
294879,
294883,
294890,
278508,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
9634d0d6132528f3061d22b6a36f671427a95820 | e77e18093f90ab7fa2f7c9ab72fe60767855e476 | /MyProfile/MyProfile/Base/AppDelegate.swift | eb756026920efb0fa1c83c35c14d6e90ee3a0bc3 | [] | no_license | suryaharahap/iOS-Fundamental-Labs | 899f4e3d4ea73bc2ff119068be1ef05b8691fe61 | 545c20a9033cc42561ef83a4e86efdd0d30ea258 | refs/heads/master | 2023-05-26T07:53:05.345646 | 2021-06-13T16:13:51 | 2021-06-13T16:13:51 | 376,335,218 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,342 | swift | //
// AppDelegate.swift
// MyProfile
//
// Created by Surya on 12/06/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,
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,
180490,
164106,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
393538,
262472,
344403,
213332,
65880,
262496,
418144,
262499,
213352,
246123,
262507,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
262566,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
410128,
393747,
254490,
188958,
385570,
33316,
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,
352968,
344776,
352971,
418507,
352973,
385742,
385748,
361179,
189153,
369381,
361195,
418553,
344831,
336643,
344835,
344841,
361230,
336659,
418580,
418585,
434970,
369435,
418589,
262942,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
361288,
336711,
328522,
336714,
426841,
254812,
361309,
197468,
361315,
361322,
328573,
377729,
369542,
361360,
222128,
345035,
386003,
345043,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
386073,
336921,
336925,
345118,
377887,
345133,
345138,
386101,
361536,
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,
181649,
181654,
230809,
181670,
181673,
181678,
181681,
337329,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
116210,
337398,
337415,
329226,
419339,
419343,
419349,
345625,
419355,
370205,
419359,
394786,
419362,
370213,
419368,
419376,
206395,
214593,
419400,
419402,
353867,
419406,
419410,
394853,
345701,
222830,
370297,
403070,
353919,
403075,
345736,
198280,
403091,
345749,
419483,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
419512,
337592,
419517,
337599,
419527,
419530,
419535,
272081,
419542,
394966,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
370415,
337659,
337668,
362247,
395021,
362255,
395029,
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,
247759,
346063,
329697,
354277,
190439,
247789,
354313,
346139,
436289,
378954,
395339,
338004,
100453,
329832,
329855,
329867,
329885,
346272,
362660,
100524,
387249,
379066,
387260,
256191,
395466,
346316,
411861,
411864,
411868,
411873,
379107,
411876,
387301,
346343,
338152,
387306,
387312,
346355,
436473,
321786,
379134,
411903,
411916,
379152,
395538,
387349,
338199,
387352,
182558,
338211,
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,
436962,
338660,
338664,
264941,
363251,
207619,
264964,
338700,
256786,
199452,
363293,
396066,
346916,
396069,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
265058,
355175,
387944,
355179,
330610,
330642,
355218,
412599,
207808,
379848,
396245,
330710,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
265214,
330760,
330768,
248862,
396328,
347176,
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,
175486,
249214,
175489,
249218,
249224,
249227,
249234,
175513,
175516,
396705,
175522,
355748,
380332,
396722,
208311,
388542,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
413141,
339417,
339420,
249308,
339424,
249312,
339428,
339434,
249328,
69113,
372228,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
224897,
372353,
216707,
126596,
421508,
224904,
11918,
159374,
224913,
126610,
339601,
224916,
224919,
126616,
224922,
208538,
224926,
224929,
224932,
224936,
257704,
224942,
257712,
224947,
257716,
257720,
224953,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
257761,
224993,
257764,
224999,
339695,
225012,
257787,
225020,
339710,
257790,
225025,
257794,
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,
257908,
225141,
257912,
225148,
257916,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
372706,
356335,
380918,
372738,
405533,
430129,
266294,
266297,
421960,
356439,
430180,
421990,
266350,
356466,
266362,
381068,
225423,
250002,
250004,
225429,
356506,
225437,
135327,
225441,
438433,
192673,
225444,
438436,
225447,
438440,
225450,
258222,
225455,
430256,
225458,
225461,
225466,
389307,
225470,
381120,
372929,
430274,
225475,
389320,
225484,
225487,
225490,
225493,
266453,
225496,
225499,
225502,
225505,
356578,
225510,
217318,
225514,
225518,
372976,
381176,
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,
324111,
340500,
381481,
356907,
324142,
356916,
324149,
324155,
348733,
324164,
356934,
348743,
381512,
324173,
324176,
389723,
332380,
373343,
381545,
340627,
373398,
184982,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
373449,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
348924,
389892,
373510,
389926,
348978,
152370,
340789,
348982,
398139,
127814,
357201,
357206,
389978,
430939,
357211,
357214,
201579,
201582,
349040,
340849,
201588,
430965,
381813,
324472,
398201,
340858,
324475,
430972,
340861,
324478,
119674,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
201637,
324524,
340909,
324533,
324538,
324541,
398279,
340939,
340941,
209873,
340957,
431072,
398306,
340963,
209895,
201711,
349172,
381946,
349180,
439294,
431106,
209943,
357410,
250914,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
209995,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210036,
210039,
349308,
210044,
349311,
160895,
152703,
210052,
349319,
210055,
218247,
210067,
210071,
210077,
210080,
251044,
210084,
185511,
210088,
210095,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
218360,
251128,
275706,
275712,
275715,
275721,
349459,
333078,
251160,
349484,
349491,
251189,
415033,
251210,
357708,
210260,
365911,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
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,
210719,
358191,
366387,
210739,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
341851,
350045,
399199,
259938,
399206,
268143,
358255,
399215,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
358339,
333774,
358371,
350189,
350193,
350202,
350206,
350213,
268298,
350224,
350231,
333850,
350237,
350240,
350244,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
374902,
432271,
334011,
260289,
260298,
350410,
350416,
350422,
211160,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
325891,
350467,
350475,
375053,
268559,
350480,
432405,
350486,
325914,
350490,
325917,
350493,
325919,
350498,
194852,
350504,
358700,
391468,
350509,
358704,
358713,
358716,
383306,
334161,
383321,
383330,
383333,
391530,
383341,
334203,
268668,
194941,
391563,
366990,
416157,
342430,
268701,
375208,
375216,
334262,
334275,
326084,
358856,
195039,
334304,
334311,
375277,
334321,
350723,
391690,
186897,
334358,
342550,
342554,
334363,
358941,
350761,
252461,
334384,
383536,
358961,
334394,
252482,
219718,
334407,
334420,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
260801,
350917,
391894,
154328,
416473,
64230,
342766,
375535,
203506,
342776,
391937,
391948,
375568,
326416,
375571,
375574,
162591,
326441,
383793,
326451,
326454,
326460,
260924,
375612,
244540,
326467,
244551,
326473,
326477,
326485,
416597,
326490,
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,
343154,
384114,
212094,
351364,
384135,
384139,
384143,
351381,
384160,
384168,
367794,
384181,
367800,
384191,
351423,
384198,
326855,
244937,
253130,
343244,
146642,
359649,
343270,
351466,
351479,
384249,
343306,
261389,
359694,
384269,
253200,
261393,
384275,
245020,
245029,
171302,
351534,
376110,
245040,
384314,
425276,
384323,
212291,
343365,
212303,
367965,
343393,
343398,
367980,
425328,
343409,
253303,
154999,
343417,
327034,
245127,
384397,
245136,
245142,
245145,
343450,
245148,
245151,
245154,
245157,
245162,
327084,
359865,
384443,
146876,
327107,
384453,
327110,
327115,
327117,
359886,
359890,
343507,
368092,
343534,
343539,
368119,
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,
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,
204784,
393203,
360438,
253943,
393206,
393212,
155646
] |
fc64e9630201be41ff2427b2f967823bdd6c2bb3 | 3b4e6c6b830bc18c7e9cad0c8369767a7d35c14b | /Extendable Table/Extendable Table/DetailViewController.swift | 4c7993b471523e6eebc66aba74d467b3fb6ebdd7 | [] | no_license | LiLiKazine/Swift-Training | b456fa10ce6ab4787999389f743f46bb7aaa18b8 | 624c4ea30c016804d374637ad41a308e559d7fbd | refs/heads/master | 2020-04-07T02:21:09.171367 | 2019-03-24T12:29:14 | 2019-03-24T12:29:14 | 157,972,012 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,960 | swift | //
// DetailViewController.swift
// Extendable Table
//
// Created by LiLi Kazine on 2018/11/18.
// Copyright © 2018 HNA Group Co.,Ltd. All rights reserved.
//
import UIKit
class DetailViewController: UIViewController {
var selected: Artist!
let moreInfoText = "Select For More Info >"
@IBOutlet weak var detailTable: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
title = selected.name
detailTable.rowHeight = UITableView.automaticDimension
detailTable.estimatedRowHeight = 300
// NotificationCenter.default.addObserver(forName: UIContentSizeCategory.didChangeNotification, object: .none, queue: OperationQueue.main) { [weak self] _ in
// self?.detailTable.reloadData()
// }
}
/*
// 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.
}
*/
}
extension DetailViewController: UITableViewDelegate, UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return selected.works.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "DetailCell") as! DetailTableViewCell
let work = selected.works[indexPath.row]
cell.nameLbl.text = work.title
cell.avatarImg.image = work.image
cell.nameLbl.backgroundColor = UIColor(white: 204/255, alpha: 1)
cell.nameLbl.textAlignment = .center
cell.detailTv.textColor = UIColor(white: 114 / 255, alpha: 1)
cell.selectionStyle = .none
cell.detailTv.text = work.isExpanded ? work.info : moreInfoText
cell.detailTv.textAlignment = work.isExpanded ? .left : .center
cell.nameLbl.font = UIFont.preferredFont(forTextStyle: UIFont.TextStyle.headline)
cell.detailTv.font = UIFont.preferredFont(forTextStyle: UIFont.TextStyle.footnote)
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
guard let cell = tableView.cellForRow(at: indexPath) as? DetailTableViewCell else { return }
var work = selected.works[indexPath.row]
work.isExpanded = !work.isExpanded
selected.works[indexPath.row] = work
cell.detailTv.text = work.isExpanded ? work.info : moreInfoText
cell.detailTv.textAlignment = work.isExpanded ? .left : .center
tableView.beginUpdates()
tableView.endUpdates()
tableView.scrollToRow(at: indexPath, at: .top, animated: true)
}
}
| [
-1
] |
cd534483ffefea7f5fde3a95c9826c5a1b171234 | 780ce073f3055c1ef317b27be8af610c08da157c | /DouYuDemo/DouYuDemo/classes/Home/Controller/RecommentVC.swift | f45a95a9b0bc647388e654a2362353c010077bb4 | [
"MIT"
] | permissive | Jefflx/LXDYdemo | 7cc02875ee79c117337567c00b4cdfbeb079f797 | 84904bbcc13dbf4edd3f6b0571a48f224b9cfa73 | refs/heads/master | 2022-11-15T06:28:46.026358 | 2020-07-10T09:56:28 | 2020-07-10T09:56:28 | 262,482,578 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 5,759 | swift | //
// RecommentVC.swift
// DouYuDemo
//
// Created by TS on 2020/5/22.
// Copyright © 2020 TS. All rights reserved.
//
import UIKit
private let kItemMargin : CGFloat = 10
private let kItemW = (kScreenW - 3 * kItemMargin) / 2
private let kNormalItemH = kItemW * 3 / 4
private let kPrettyItemH = kItemW * 4 / 3
private let kHeaderViewH : CGFloat = 50
private let kCycleViewH = kScreenW * 3 / 8
private let kGameViewH : CGFloat = 90
private let kNormalCellID = "kNormalCellID"
private let kPrettyCellID = "kPrettyCellID"
private let kHeaderViewID = "kHeaderViewID"
class RecommentVC: UIViewController {
//懒加载属性
private lazy var recommendVM : RecommentViewModel = RecommentViewModel()
private lazy var collectionView : UICollectionView = {[weak self] in
//1.创建布局
let layout = UICollectionViewFlowLayout()
layout.itemSize = CGSize(width: kItemW, height: kNormalItemH)
layout.minimumLineSpacing = 0 //行间距
layout.minimumInteritemSpacing = kItemMargin
layout.sectionInset = UIEdgeInsets(top: 0, left: kItemMargin, bottom: 0, right: kItemMargin)
layout.headerReferenceSize = CGSize(width: kScreenW, height: kHeaderViewH)
//2.创建uicollectionview
let collectionView = UICollectionView(frame: self!.view.bounds, collectionViewLayout: layout)
collectionView.backgroundColor = UIColor.white
collectionView.dataSource = self
collectionView.delegate = self
collectionView.autoresizingMask = [.flexibleHeight, .flexibleWidth] //daxiao
collectionView.register(UINib(nibName: "CollectionNomalCell", bundle: nil), forCellWithReuseIdentifier: kNormalCellID)
collectionView.register(UINib(nibName: "PrettyCell", bundle: nil), forCellWithReuseIdentifier: kPrettyCellID)
collectionView.register(UINib(nibName: "CollectionHeaderView", bundle: nil), forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: kHeaderViewID)
return collectionView
}()
private lazy var cycleview : RecommendCycleView = {[weak self] in
let view = RecommendCycleView.init(frame: CGRect(x: 0, y: -(kCycleViewH + kGameViewH), width: kScreenW, height: kCycleViewH))
return view
}()
private lazy var gameview : RecommendGameView = {[weak self] in
let view = RecommendGameView.init(frame: CGRect(x: 0, y: -kGameViewH, width: kScreenW, height: kGameViewH))
//view.frame = CGRect(x: 0, y: -kGameViewH, width: kScreenW, height: kGameViewH)
return view
}()
//推荐
override func viewDidLoad() {
super.viewDidLoad()
//设置ui界面
setupUI()
//发送网络请求
recommendVM.requestData {
self.collectionView.reloadData()
//2.将数据传递给GameView
self.gameview.groups = self.recommendVM.anchorGroups
}
//请求无限轮播数据
recommendVM.requestCycleData {
self.cycleview.cycleModels = self.recommendVM.cycleModels
}
}
}
//设置ui界面
extension RecommentVC{
private func setupUI(){
//1.添加collectionview
view.addSubview(collectionView)
//2.将CycleView添加到collectionview
collectionView.addSubview(cycleview)
//3.将gameview添加到collectionview
collectionView.addSubview(gameview)
//4.设置collectionView的内边距
collectionView.contentInset = UIEdgeInsets(top: kCycleViewH + kGameViewH, left: 0, bottom: 0, right: 0)
}
}
//UICollectionViewDataSource的数据源协议
extension RecommentVC: UICollectionViewDataSource,UICollectionViewDelegateFlowLayout{
func numberOfSections(in collectionView: UICollectionView) -> Int {
return recommendVM.anchorGroups.count
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
let group = recommendVM.anchorGroups[section]
return group.anchors.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
// 1.取出模型对象
let group = recommendVM.anchorGroups[indexPath.section]
let anchor = group.anchors[indexPath.item]
//2.取出cell
if indexPath.section == 1{
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kPrettyCellID, for: indexPath)as! PrettyCell
cell.anchor = anchor
return cell
}else{
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kNormalCellID, for: indexPath)as! CollectionNomalCell
cell.anchor = anchor
return cell
}
}
func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
//1.取出section的headerview
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: kHeaderViewID, for: indexPath)as! CollectionHeaderView
//2.取出模型
headerView.group = recommendVM.anchorGroups[indexPath.section]
return headerView
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize{
if indexPath.section == 1{
return CGSize(width: kItemW, height: kPrettyItemH)
}
return CGSize(width: kItemW, height: kNormalItemH)
}
}
| [
-1
] |
c983fcefee57b701ac9535876015e4c5a3cdb69a | c64387a6ced66c1e85d6e5e578ff85d7d4ce7b61 | /GithubUserSearch/GithubUserSearch/GithubStore.swift | 5e38d98a724029314f8534169c33dec28973f18c | [] | no_license | AtmanChen/SwiftUILearning | 40f4a186ac0563c99f4c9278a03bd9e8f4500e2e | 79437d54cd839efe6545b396d4f54e45cda2c6b1 | refs/heads/master | 2022-11-05T03:35:28.830329 | 2020-06-18T10:02:59 | 2020-06-18T10:02:59 | 266,964,149 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,711 | swift | import Foundation
import SwiftUI
import Combine
protocol FluxAction {
}
protocol FluxReducer {
associatedtype StateType: FluxState
func reduce(state: StateType, action: FluxAction) -> StateType
}
protocol FluxState {
}
struct GithubUserActions {
struct QueryUsers: FluxAction {
init(querySyntax: String) {
let _ = GithubAPIService.shared
.search(username: querySyntax)
.sink(
receiveCompletion: { _ in },
receiveValue: { users in
githubStore.dispatch(action: GithubUserActions.SetResultUsers(queryedUsers: users))
})
}
}
struct SetResultUsers: FluxAction {
var queryedUsers: [GithubUser]
}
}
struct GithubUserReducer: FluxReducer {
typealias StateType = GithubUserState
func reduce(state: GithubUserState, action: FluxAction) -> GithubUserState {
var state = state
if let action = action as? GithubUserActions.SetResultUsers {
state.users = action.queryedUsers
}
return state
}
}
struct GithubUserState: FluxState {
var users: [GithubUser] = []
}
final class GithubStore: ObservableObject {
var didChange = PassthroughSubject<GithubStore, Never>()
var githubUserState: GithubUserState
init(githubUserState: GithubUserState = GithubUserState()) {
self.githubUserState = githubUserState
}
func dispatch(action: FluxAction) {
githubUserState = GithubUserReducer().reduce(state: githubUserState, action: action)
DispatchQueue.main.async {
self.didChange.send(self)
}
}
}
let githubStore = GithubStore()
| [
-1
] |
768d6ecd6703c318721cbaa6d5c5e54c14c023f8 | 5ff34e3ecb6738094702492c4b8649cacee7fbf7 | /jeong.do/Views/Animating/GroupsCollectionViewCellAnimatingView.swift | 0d84e187fd5a1c649450d9fce76d8298f4337bdf | [] | no_license | yassinmziya/jeong.do | 50234da661861513478460b2c8314171b8f811c6 | c17628c0cbf37d1fa53f25872cb9ce84041fb047 | refs/heads/master | 2020-08-28T19:17:51.636160 | 2019-10-27T02:46:01 | 2019-10-27T02:46:01 | 217,796,201 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 289 | swift | //
// GroupsCollectionViewCellAnimatingView.swift
// jeong.do
//
// Created by Yassin Mziya on 6/7/19.
// Copyright © 2019 Yassin Mziya. All rights reserved.
//
import UIKit
class GroupsCollectionViewCellAnimatingView: GroupsCollectionViewCell {
var startFrame: CGRect!
}
| [
-1
] |
cb665d57fe65d30fc3bbe5999541103471622d17 | 37d01f4db384c556545bc4ba9ded071803f62b1e | /FlapyBird/SKScrollableNode.swift | ba52ac3c1374c55242a998ad7eb7b4a47286eaae | [
"MIT"
] | permissive | Insfgg99x/FlappyBird | 171c382c0050b55328f92818c1ea47e2852ef5de | da979a95f337973e5737b9f7aacaba314f725dc3 | refs/heads/master | 2021-04-27T17:29:16.293777 | 2018-03-23T10:38:40 | 2018-03-23T10:38:40 | 122,322,193 | 8 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,536 | swift | //
// SKScrollableNode.swift
// FlapyBird
//
// Created by xgf on 2018/2/6.
// Copyright © 2018年 xgf. All rights reserved.
//
import UIKit
import SpriteKit
class SKScrollableNode: SKSpriteNode {
var scrollSpeed:CGFloat = 1.0
convenience init(size:CGSize, imageNamed: String) {
self.init()
let texture = SKTexture.init(imageNamed: imageNamed)
self.texture = texture
self.size = size
var xpos:CGFloat = 0
while xpos < size.width * 2 {
let sub = SKSpriteNode.init(imageNamed: imageNamed)
sub.position = .init(x: xpos, y: 0)
sub.anchorPoint = .zero
sub.size = size
addChild(sub)
xpos += size.width
}
}
func enableScroll() {
let scroll = SKAction.run {
let array = self.children as! [SKSpriteNode]
for sub in array {
sub.position = .init(x: sub.position.x - self.scrollSpeed, y: sub.position.y)
if sub.position.x <= -self.size.width {
sub.position = .init(x: self.size.width * CGFloat(array.count - 1), y: sub.position.y)
}
}
}
let interval:TimeInterval = 1.0/60.0
let wait = SKAction.wait(forDuration: interval)
let sequence = SKAction.sequence([scroll, wait])
let forever = SKAction.repeatForever(sequence)
run(forever, withKey: "forever")
}
func disableScroll() {
removeAction(forKey: "forever")
}
}
| [
-1
] |
e8b44f2ca83000db794eb5dfa85f7b37b04b487d | 632d36cde6ca754356f5141fec73ceab4deeb68c | /ios/SwiftUI-Cookbook-2nd-Edition/Chapter14-Cross-Platform-SwiftUI/03-Create-the-watchOS-version/StartingPoint/Cross-Platform/macOS-Cross-Platform/MacInsectListView.swift | 8dc1758e2dafd807425748a90a0198a3edd30048 | [
"Apache-2.0",
"MIT"
] | permissive | hermantai/samples | 18c2d20c97bff85125709741ac952e35e0f4d349 | 7c38b0c8c9db4b116fcb162e436fdc3181f9c933 | refs/heads/master | 2023-03-08T05:57:43.283521 | 2022-12-10T05:06:01 | 2022-12-10T05:06:01 | 24,401,146 | 2 | 0 | Apache-2.0 | 2023-03-07T01:25:16 | 2014-09-24T04:48:50 | Java | UTF-8 | Swift | false | false | 684 | swift | //
// MacInsectListView.swift
// macOS-Cross-Platform
//
// Created by Edgar Nzokwe on 9/18/21.
//
import SwiftUI
struct MacInsectListView: View {
@EnvironmentObject var insectData: InsectData
@Binding var selectedInsect: Insect?
var body: some View {
List(selection: $selectedInsect){
ForEach(insectData.insects){ insect in
MacInsectCellView(insect: insect).tag(insect)
}
}.listStyle(SidebarListStyle())
}
}
struct MacInsectListView_Previews: PreviewProvider {
static var previews: some View {
MacInsectListView(selectedInsect: .constant(testInsect)).environmentObject(InsectData())
}
}
| [
264453
] |
bdd24a751cc71fc7aa3164be48b727d3e84d9437 | c2d3fa4a3a210eeb1659bc5647f6b5c9d69601a2 | /Dice/Extentions/CGPoint+Distance.swift | 3744b22c73e33ea1268cf0481888a1214fd5fd41 | [
"MIT"
] | permissive | enzosterro/dice | 9eaacdb76be155dc5fdb8d02e8c9805526f169b4 | 4a1fb665a152d56c88c3a5c97e527ba55f24d7b2 | refs/heads/master | 2023-07-20T18:13:49.344605 | 2023-07-08T11:23:54 | 2023-07-08T11:23:54 | 197,929,216 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 315 | swift | //
// CGPoint+Distance.swift
// Dice
//
// Created by Enzo Sterro on 16/06/2019.
// Copyright © 2019 Enzo Sterro. All rights reserved.
//
import CoreGraphics
extension CGPoint {
func distance(_ point: CGPoint) -> CGFloat {
return CGFloat(hypotf(Float(point.x - x), Float(point.y - y)))
}
}
| [
-1
] |
2c90f1a7c771a6da0d71f0e57a4c9212312a400b | 455112b7ebe6947fc5e0d21ba71266b45a1e8277 | /travel/travel/Modules/CreateTrip/CreateTripMain/Routing/CreateTripRouter.swift | c7df9f47d3964ef9ff691d38b17dc7437949f2f1 | [] | no_license | psshmart/smrtrvl | c1914af02efa782a93af120acdd7ad3e0cb0c352 | b1abb75684e10ed3fa28ecd2e3170f7f94bdad6b | refs/heads/main | 2023-05-04T12:59:55.721309 | 2021-05-26T20:05:19 | 2021-05-26T20:05:19 | 343,574,115 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,153 | swift | //
// CreateTripRouter.swift
// travel
//
// Created by Svetlana Safonova on 16.05.2021.
//
import UIKit
class CreateTripRouter: Coordinator {
var navigationController: UINavigationController
init(navigationController: UINavigationController = UINavigationController()) {
self.navigationController = navigationController
}
func start() {
}
func getMyTripsController() {
showMyTripsScene()
}
func getAddPlanController(trip: Trip, delegate: PlanSaved) {
showAddPlanScene(trip: trip, delegate: delegate)
}
private func showAddPlanScene(trip: Trip, delegate: PlanSaved) {
let scene = CreateTripSceneFactory.createAddPlanScene()
scene.router = AddPlanRouter(navigationController: navigationController)
scene.presenter = AddPlanPresenter(trip: trip, view: scene)
scene.delegate = delegate
navigationController.pushViewController(scene, animated: true)
}
private func showMyTripsScene() {
CreateTripSceneFactory.showMyTrispScene(navigationController: navigationController)
}
}
| [
-1
] |
65ddaea63472318dd284fc895c94ee5ae61e1872 | ef3045a0d1a27beeb567dcab4c43e689d99a6026 | /Frameworks/IpcCommon/Features/NetworkMocking/Methods/UrlProtocolClient/UrlProtocolDidReceiveIpcMethod.swift | 66c272149c82350b72364dd8ddbaa2125ca912c9 | [
"MIT"
] | permissive | Raiffeisen-DGTL/Mixbox | a08d7bfc4dd19ef6b5c14cbbeb127bdfabf5cd62 | ad3b0b04fbfc2843a19531f58b582620124c2dc0 | refs/heads/master | 2020-08-03T19:07:10.501568 | 2020-01-09T13:24:00 | 2020-01-09T13:24:00 | 211,855,388 | 4 | 0 | MIT | 2019-12-20T08:29:56 | 2019-09-30T12:32:49 | Swift | UTF-8 | Swift | false | false | 921 | swift | #if MIXBOX_ENABLE_IN_APP_SERVICES
import MixboxIpc
public final class UrlProtocolDidReceiveIpcMethod: IpcMethod {
public final class _Arguments: Codable {
public let selfIpcObjectId: IpcObjectId
public let bridgedUrlResponse: BridgedUrlResponse
public let bridgedUrlCacheStoragePolicy: BridgedUrlCacheStoragePolicy
public init(
selfIpcObjectId: IpcObjectId,
bridgedUrlResponse: BridgedUrlResponse,
bridgedUrlCacheStoragePolicy: BridgedUrlCacheStoragePolicy)
{
self.selfIpcObjectId = selfIpcObjectId
self.bridgedUrlResponse = bridgedUrlResponse
self.bridgedUrlCacheStoragePolicy = bridgedUrlCacheStoragePolicy
}
}
public typealias Arguments = _Arguments
public typealias ReturnValue = IpcThrowingFunctionResult<IpcVoid>
public init() {
}
}
#endif
| [
-1
] |
09dd4a0066a19a0bddb018e5d264f5fe41cf86ec | e2bc03c0dc2a0e4612cac724decc52511a1e231f | /DotaImages/HeroViewController.swift | d2d31131589f51d120e9101495b8cbec0f6c4c35 | [] | no_license | akishevatai/DotaImages | 631b0a64f7ff46eb9e9c42ddd6dd66fd6c3fa6eb | 18ba35dd6748ccd126f4672df8486dfa263f5c17 | refs/heads/main | 2023-05-19T16:07:09.484662 | 2021-06-03T22:33:05 | 2021-06-03T22:33:05 | 373,657,948 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 874 | swift | //
// HeroViewController.swift
// DotaImages
//
// Created by Atai Akishev on 6/1/21.
//
import UIKit
class HeroViewController: UIViewController {
@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var attributeLabel: UILabel!
@IBOutlet weak var attacLabel: UILabel!
@IBOutlet weak var legsLabel: UILabel!
var hero:HeroStats?
override func viewDidLoad() {
super.viewDidLoad()
nameLabel.text = hero?.localized_name
attributeLabel.text = hero?.primary_attr
attacLabel.text = hero?.attack_type
legsLabel.text = "\((hero?.legs)!)"
let urlString = "https://api.opendota.com"+(hero?.img)!
let url = URL(string: urlString)
imageView.downloaded(from: url!)
}
}
| [
-1
] |
3d9438c05ec18938a4926fdf2a44ab27102b07f0 | f084ec472f225d35737a6b31bd939891f328d059 | /NYPLCardCreator/Helpers/CLPlacemark+LocationString.swift | acbdf0d51fb7b07c6c6331e97aeed7403d33f7d8 | [
"Apache-2.0"
] | permissive | NYPL-Simplified/CardCreator-iOS | 9f62022f91fb56b3e83582ee5faadffae51e7cf2 | 402267a704b2aa04b76ddefea949e09bfdbf23b3 | refs/heads/main | 2022-10-21T15:04:21.841450 | 2022-09-26T17:15:08 | 2022-09-26T17:15:08 | 64,567,223 | 1 | 2 | NOASSERTION | 2022-08-11T15:56:56 | 2016-07-30T22:50:27 | Swift | UTF-8 | Swift | false | false | 981 | swift | //
// CLPlacemark+LocationString.swift
// Created by Ernest Fan on 2022-01-24.
// Copyright © 2022 NYPL. All rights reserved.
//
import Foundation
import CoreLocation
extension CLPlacemark {
/// This method determines if the location is within NYC, NYS, US or none of the above,
/// for patron creation purpose.
/// - Returns: A location string, eg. nyc, nys, us or an empty string
func getLocationString() -> String {
guard isoCountryCode == "US" else {
return ""
}
guard let state = administrativeArea?.lowercased(),
state == "ny" || state == "new york" else {
return "us"
}
guard let postalCodeString = postalCode,
let postalCodeNumber = Int(postalCodeString) else {
return "nys"
}
if (10001...10499).contains(postalCodeNumber) ||
(11001...11499).contains(postalCodeNumber) ||
(11601...11699).contains(postalCodeNumber) {
return "nyc"
}
return "nys"
}
}
| [
-1
] |
c4ab0eeec8e9c2a34e7f85c5893db765c0ea2f82 | d7feba0d2c7130c806bb192f247c215e79cd1205 | /TwoWayBind/PushSetting/PushSettingData.swift | 5534a3a334ec6b1662da05228cafadc55cfb0d32 | [
"MIT"
] | permissive | DianQK/TwoWayBind | 037e39ca63430a57d40bf683415ad192b21117be | ddc4c80677aa4b406ed55d4cdfaabb25a7815e20 | refs/heads/master | 2020-09-18T05:29:33.460796 | 2016-08-23T17:28:53 | 2016-08-23T18:20:00 | 66,388,412 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,280 | swift | //
// PushSettingData.swift
// RxDealCell
//
// Created by 宋宋 on 8/8/16.
// Copyright © 2016 T. All rights reserved.
//
import Foundation
import RxSwift
import RxCocoa
let pushSettingData: [PushSettingSectionModel] = {
let consumption = PushSectionModel(category: "消费相关", isSelectedAll: Variable(true))
let consumptionItems = [
PushItemModel(pushType: PushType.confirm, isSelected: Variable(true)),
PushItemModel(pushType: PushType.willExpire, isSelected: Variable(true)),
PushItemModel(pushType: PushType.expired, isSelected: Variable(true)),
PushItemModel(pushType: PushType.refunded, isSelected: Variable(true))
]
let consumptionSection = PushSettingSectionModel(model: consumption, items: consumptionItems)
let other = PushSectionModel(category: "其他", isSelectedAll: Variable(true))
let otherItems = [
PushItemModel(pushType: PushType.getGift, isSelected: Variable(true)),
PushItemModel(pushType: PushType.couponInfo, isSelected: Variable(true)),
PushItemModel(pushType: PushType.favorite, isSelected: Variable(true))
]
let otherSection = PushSettingSectionModel(model: other, items: otherItems)
return [consumptionSection, otherSection]
}() | [
-1
] |
35fca785af6a1747ffa8401e0205091cc85e4fec | 6d8966e4c7d653a93e994afbee9737be89c26e20 | /FitsMe/App/Entities/Token.swift | 52c814592a89ff78f1408e2941fd9420a71f5be2 | [] | no_license | Djaflienda/eMstiF | fb834b19e3d160b840c012e8f482fbbefd82563b | 6083c04ab3034fd46db5ebf01102f2af15206298 | refs/heads/master | 2020-05-22T14:31:27.476274 | 2019-05-13T09:25:09 | 2019-05-13T09:25:09 | 186,387,189 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 422 | swift | //
// Token.swift
// FitsMe
//
// Created by Тигран Хачатурян on 21/01/2019.
// Copyright © 2019 Тигран Хачатурян. All rights reserved.
//
import Foundation
struct TokenResponse: Codable {
let response: TokenResult?
let error: ErrorResult?
}
struct TokenResult: Codable {
let token: String
}
struct ErrorResult: Codable {
let code: Int
let message: String
}
| [
-1
] |
a3053ebb7a772d064ae73dac00bfcead4b90c13c | 46c33d80c2763df600050b1e3acf485c23cdce46 | /SwiftVocabulary/SwiftVocabulary/VocabularyWord.swift | 2ab478e9b246ce5c6826f514223540c97d24d265 | [] | no_license | Ezra-Black/SwiftVocabulary | ea9fde9c16aa6b0dc1c789a5e64d93bd19c547cf | 795d6e3cc517cffe8cc9b79e80ce388f60fb8be4 | refs/heads/master | 2022-01-22T10:42:45.781285 | 2019-07-28T03:24:20 | 2019-07-28T03:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,702 | swift | //
// VocabularyWord.swift
// SwiftVocabulary
//
// Created by Joseph Rogers on 7/19/19.
// Copyright © 2019 Joe Rogers. All rights reserved.
//
import Foundation
struct VocabularyWord {
var word: String
var definition: String
}
let vocabVariable = VocabularyWord(word: "Variable", definition: "In computer programming, a variable or scalar is a storage location (identified by a memory address) paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value. The variable name is the usual way to reference the stored value, in addition to referring to the variable itself, depending on the context. This separation of name and content allows the name to be used independently of the exact information it represents. The identifier in computer source code can be bound to a value during run time, and the value of the variable may thus change during the course of program execution.")
let vocabConstant = VocabularyWord(word: "Constant", definition: "In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant.[a] When associated with an identifier, a constant is said to be named, although the terms constant and named constant are often used interchangeably. This is contrasted with a variable, which is an identifier with a value that can be changed during normal execution, i.e., the value is variable. Constants are useful for both programmers and compilers: For programmers they are a form of self-documenting code and allow reasoning about correctness, while for compilers they allow compile-time and run-time checks that verify that constancy assumptions are not violated, and allow or simplify some compiler optimizations.")
let vocabFunction = VocabularyWord(word: "Function", definition: "Subprograms may be defined within programs, or separately in libraries that can be used by many programs. In different programming languages, a subroutine may be called a procedure, a function, a routine, a method, or a subprogram. The generic term callable unit is sometimes used.")
let voacabOptional = VocabularyWord(word: "Optional", definition: "In programming languages (more so functional programming languages) and type theory, an option type or maybe type is a polymorphic type that represents encapsulation of an optional value; e.g., it is used as the return type of functions which may or may not return a meaningful value when they are applied. It consists of a constructor which either is empty (often named None or Nothing), or which encapsulates the original data type A (often written Just A or Some A).")
| [
-1
] |
1d09707f85de0323bfe9ad616a33b90c0f453d95 | 337c1bcc08a3a156f909e9ee687e90c1ae0983cd | /Example/TableViewPopoverPresenting/ViewController.swift | d6d0dabdd15f20917e67b17efc2cf0a2b2a5b8c3 | [
"Apache-2.0"
] | permissive | lionheart/TableViewPopoverPresenting | 2db0f90c99a2ccacb37dd758a919b2dbb7391b83 | 9f9ee7ac4f85959de5d41e937dc1a45242748bd9 | refs/heads/master | 2020-04-12T03:56:52.669791 | 2018-03-10T21:45:22 | 2018-03-10T21:45:22 | 61,488,113 | 9 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 2,849 | swift | //
// ViewController.swift
// TableViewPopoverPresenting
//
// Created by Dan Loewenherz on 06/19/2016.
// Copyright (c) 2016 Dan Loewenherz. All rights reserved.
//
import UIKit
import TableViewPopoverPresenting
class ViewController: UITableViewController, TableViewPopoverPresenting, UIPopoverPresentationControllerDelegate {
let CellIdentifier = "CellIdentifier"
override func viewDidLoad() {
super.viewDidLoad()
title = "TableViewPopoverPresenting Example"
initializeTableViewPopover()
tableView.register(UITableViewCell.self, forCellReuseIdentifier: CellIdentifier)
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 5
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: CellIdentifier)!
cell.textLabel?.text = {
switch (indexPath as NSIndexPath).row {
case 0:
return "Colors"
default:
return "Row #\((indexPath as NSIndexPath).row)"
}
}()
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
let alert = UIAlertController(title: "Hey", message: "Here be dragons.", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: ":(", style: .default, handler: nil))
present(alert, animated: true, completion: nil)
}
// MARK: - TableViewPopoverPresenting
func permittedArrowDirections(forPopoverAt indexPath: IndexPath) -> UIPopoverArrowDirection? {
return nil
}
func viewController(forPopoverAt indexPath: IndexPath) -> UIViewController? {
if (indexPath as NSIndexPath).row == 0 {
let actionSheet = UIAlertController(title: "Important Question", message: "What's your favorite color?", preferredStyle: .actionSheet)
actionSheet.addAction(UIAlertAction(title: "Red", style: .default) { _ in })
actionSheet.addAction(UIAlertAction(title: "Green", style: .default) { _ in })
actionSheet.addAction(UIAlertAction(title: "Blue", style: .default) { _ in })
if traitCollection.horizontalSizeClass == .compact {
actionSheet.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in })
}
if let popover = actionSheet.popoverPresentationController {
popover.delegate = self
}
return actionSheet
}
return nil
}
func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {
return .none
}
}
| [
-1
] |
ce54e40f72d902cb4f948cca6b4ab6d317c63932 | 12819740046d2e6b04cb45d64308eb2fcd762f3d | /DrinkWater/text.swift | 0f8998d6317504843da20504c760d83fe2a8b994 | [] | no_license | q1002875/DrinkWater | 430397d93017dbdd904caf2581027c67f2c3e0b1 | b1d2ade7b2522ead2bcbe9406a1a23f838fde10f | refs/heads/master | 2020-04-10T09:05:06.644655 | 2019-01-04T01:21:06 | 2019-01-04T01:21:06 | 160,925,661 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 9,954 | swift | ////
//// SearchDrinkViewController.swift
//// DrinkWater
////
//// Created by 徐志豪 on 2018/12/8.
//// Copyright © 2018 orange. All rights reserved.
////
//
//import UIKit
//import MapKit
//import CoreLocation
//
//struct name:Decodable {
// let 地址 :String
// let 飲水點名稱:String
// let 飲水機所在地:String
//
//}
//class myAnnotation: NSObject, MKAnnotation {
// var coordinate: CLLocationCoordinate2D
//
// var title: String?
//
// var subtitle: String?
// var aaa:String?
// var image:String = ""
// init(coordinate:CLLocationCoordinate2D,title:String,subtitle:String,aaa:String) {
// self.coordinate = coordinate
// self.title = title
// self.subtitle = subtitle
// self.aaa = aaa
// }
//}
//class SearchDrinkViewController: UIViewController,MKMapViewDelegate,CLLocationManagerDelegate {
//
// var address : [String] = []
// var drinkname : [String] = []
// var drinkpoint : [String] = []
//
// @IBAction func locationpoint(_ sender: Any) {
// moveAndZoomMap()
// }
//
//
//
// @IBOutlet weak var mainMapView: MKMapView!
// //使用位置管理器獲取用戶位置
// let locationManager = CLLocationManager()
// override func viewDidLoad() {
// super.viewDidLoad()
//
//
// DownloadJsonAndShowAnnotations()
//
// mainMapView.showsUserLocation = true
// mainMapView.delegate = self
//
// locationManager.delegate = self
//
// //最好的精確度
// locationManager.desiredAccuracy = kCLLocationAccuracyBest
// //取得用戶授權
// locationManager.requestWhenInUseAuthorization()
// locationManager.startUpdatingLocation()
// // locationManager.allowsBackgroundLocationUpdates = true
// // let user = mainMapView.userLocation.coordinate
// //開始放大地圖畫面
// let latitude :CLLocationDegrees = 24.981419
// let longitude:CLLocationDegrees = 121.226977
// // let latitude :CLLocationDegrees = user.latitude
// // let longitude:CLLocationDegrees = user.longitude
// let latDleta :CLLocationDegrees = 1
// let lotDleta :CLLocationDegrees = 1
//
// let span:MKCoordinateSpan = MKCoordinateSpan(latitudeDelta: latDleta, longitudeDelta: lotDleta)
//
// let location:CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
//
// let region:MKCoordinateRegion = MKCoordinateRegion(center: location, span: span)
//
// mainMapView.setRegion(region, animated: true)
// moveAndZoomMap()
//
//
// }
// func moveAndZoomMap(){
// guard let location = self.locationManager.location else{
// print("Location is not ready")
// return
// }
// //Move and zoom the map
// let span = MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1)//螢幕顯示地圖的範圍大小
// let region = MKCoordinateRegion(center: location.coordinate, span: span)
// self.mainMapView.setRegion(region, animated: true)
// }
// //按鈕設置
// func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
//
// if annotation is MKUserLocation
// {
// return nil
// }
//
// let reuseId = "annotionView"
// var resultView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? EGImageAnnotionView
// if resultView == nil {
// // resultView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId)
// let annotionImage = UIImage(named: "pointRed.png")
// resultView = EGImageAnnotionView(annotation: annotation, reuseIdentifier: reuseId,image:annotionImage)
// }
// else {
// resultView!.annotation = annotation
// }
//
// // Setup it
// resultView!.canShowCallout = true
// let button:UIButton = UIButton(type: .detailDisclosure)
//
// button.addTarget(self, action: #selector(buttonTapped(sender:)), for: .touchUpInside)
//
// resultView!.rightCalloutAccessoryView = button as UIView
// //換地圖照片
// let leftImage = UIImage(named: "pointRed.png")
//
// resultView!.leftCalloutAccessoryView = UIImageView(image: leftImage)
//
// return resultView
// }
// @objc func buttonTapped(sender:UIButton!)
// {
//
// let alert = UIAlertController(title: nil, message: "導航前往這個地點?", preferredStyle: .alert)
// let ok = UIAlertAction(title: "OK", style: .default){(action) in
//
// let target = self.currentpoint
// self.navigate(target)
//
// }
//
// let cancel = UIAlertAction(title: "Cancel", style: .cancel)
// alert.addAction(ok)
// alert.addAction(cancel)
// present(alert,animated: true)
//
// }
// //導航
// func navigate( _ target:String){
//
// let geocoder1 = CLGeocoder()
// //address - >lat/lon住址查經緯
// geocoder1.geocodeAddressString(target){(placemarks ,error) in
// if let error = error {
// print("geocodeaddressString:fail\(error)")
// return
// }
// guard let placemark = placemarks?.first,
// let coordinate = placemark.location?.coordinate else{
// assertionFailure("placemark id empty or nil")
// return
// }
// print("My Home\(coordinate.latitude),\(coordinate.longitude)")
//
// //location
// let user = self.mainMapView.userLocation.coordinate
// let sourcecoordinate = CLLocationCoordinate2DMake(user.latitude,user.longitude)
// let sourdePlacemark = MKPlacemark(coordinate: sourcecoordinate)
// let sourceMapItem = MKMapItem(placemark: sourdePlacemark)
//
// //prepare taarget map item導航
// let targetPlacemark = MKPlacemark(placemark: placemark)
// let targetMapItem = MKMapItem(placemark: targetPlacemark)
// //設為步行driving
// let options = [MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving]
// // targetMapItem.openInMaps(launchOptions: options)
//
// //兩點的路徑距離
// MKMapItem.openMaps(with: [sourceMapItem,targetMapItem], launchOptions: options)
// }
// }
//
//
// var currentpoint :String = ""
// func mapView(_ mapView: MKMapView, didSelect view: myAnnotation) {
// if let annotation = view.aaa{
// currentpoint = annotation ?? ""
// }
// }
//
// func DownloadJsonAndShowAnnotations(){
// if let url = URL(string: "http://opendata.hccg.gov.tw/dataset/64cb7d6d-692e-4312-a4a5-931b902680d5/resource/9fcbba71-4e28-47c3-8d29-6e85c24e3415/download/20171206102431392.json"){
// let session = URLSession.shared
// let request = URLRequest(url:url)
// let task = session.dataTask(with: request) { (data, response, error) in
// do{
// let address = try JSONDecoder().decode([name].self, from: data!)
//
// for countr in address{
//
// self.address.append(countr.地址)
// self.drinkname.append(countr.飲水點名稱)
// self.drinkpoint.append(countr.飲水機所在地)
// }
//
// for index in 0...self.address.count-1{
// let geoCoder = CLGeocoder()
// geoCoder.geocodeAddressString(self.address[index], completionHandler: {
// placemarks, error in
// if error != nil {
// print("\(String(describing: error))")
// return
// }
// if let placemarks = placemarks {
// // 取得第一個座標
// let placemark = placemarks[0]
// // 加上地圖標註
// let annotation = myAnnotation( coordinate: (placemark.location?.coordinate)!, title: self.drinkname[index], subtitle: self.address[index], aaa: self.address[index])
// // annotation.subtitle = self.address[index]
// // annotation.title = self.drinkname[index]
//
//
// if let location = placemark.location {
// // 顯示標註
// annotation.coordinate = location.coordinate
// //存到一個地方再一次show
// self.mainMapView.addAnnotation(annotation)
// // self.mainMapView.selectAnnotation(annotation, animated: true)
// }
// }
// })
//
// }
// }catch{
// print("\(error)")
//
// }
// }
// task.resume()
// }
//
// }
//
//
//
//}
| [
-1
] |
49751c8f9132b776dff451117f0a0c8151a9295f | 951cd142dfcf13f4b136d239ec1a96b19a3f5cdb | /Sources/App/Utilities/String.swift | 35a831ea1b881a8f97515cce004962504b1932a1 | [
"MIT"
] | permissive | pigeon-cms/pigeon | f8d765f431aa83f7caae1b232767bb1efdc88313 | 2fceb46e41f6e1de38d1e3a04cfcecbc20c72531 | refs/heads/master | 2020-04-09T12:26:15.478925 | 2019-03-21T12:26:29 | 2019-03-21T12:26:29 | 160,349,809 | 17 | 0 | MIT | 2019-03-19T12:02:49 | 2018-12-04T11:52:27 | Swift | UTF-8 | Swift | false | false | 1,810 | swift | import Foundation
extension String {
/// Converts this string to camelCase. Can convert sentence formatted, snake_case, and kebab-case.
/// Only alphanumerics are allowed.
func camelCase() -> String {
let allowedCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
let whiteSpaceSplit = self.split(omittingEmptySubsequences: true) { char -> Bool in
switch char {
case " ", " ", " ", " ", "", "_", "-", "–", "—", ".", ",":
return true
default:
return false
}
}
return whiteSpaceSplit.reduce("") { phrase, word -> String in
var word = word.filter { return allowedCharacters.contains($0) }
if phrase == "" {
/// first word in the sequence
word = word.lowercased()
} else {
if word != word.uppercased() && word != word.iosStyle() {
word = word.capitalized
}
}
return phrase + word
}
}
/// Converts this string to PascalCase. Can convert sentence formatted, snake_case, and kebab-case.
/// Only alphanumerics are allowed.
func pascalCase() -> String {
let camelCase = self.camelCase()
guard let first = camelCase.first else { return camelCase }
return String(first).uppercased() + camelCase.dropFirst()
}
/// This string with "iOS" style capitalization, with the first character
/// lowercase and the rest uppercase.
func iosStyle() -> String {
guard self.count > 1 else { return self }
guard let first = self.first else { return self }
return String(first).lowercased() + self.dropFirst().uppercased()
}
}
| [
-1
] |
45fa858d23c972bc8712a204073af43cdbb51593 | 627c6ae8b732e6e5fe27d9dbc3729aa13bf0e529 | /PartyRock2/PartyRock2/VideoVC.swift | aea06c9eeffef0a6fd1e2af4b10a3e0c692c5de7 | [] | no_license | rishsanyal/iOS-practice | 9f0249fa5075258961272c9b1e1a0fb2713c8426 | 2fe55474a8f532cec8bd278ba68369e1f21b5de4 | refs/heads/master | 2021-01-22T22:13:27.980937 | 2017-03-20T00:56:58 | 2017-03-20T00:56:58 | 85,520,212 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,243 | swift | //
// VideoVC.swift
// PartyRock2
//
// Created by Rishab Sanyal on 12/30/16.
// Copyright © 2016 Rishab Sanyal. All rights reserved.
//
import UIKit
class VideoVC: UIViewController {
@IBOutlet weak var webView: UIWebView!
private var _partyRock: PartyRock!
@IBOutlet weak var titleLbl: UILabel!
var partyRock: PartyRock {
get {
return _partyRock
} set {
_partyRock = newValue
}
}
override func viewDidLoad() {
super.viewDidLoad()
titleLbl.text = partyRock.videoTitle
webView.loadHTMLString(partyRock.videoURL, baseURL: nil)
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
| [
-1
] |
ec87d388ed0d5132c763b2ab8a22e7a6bd46719e | b0cf80e5362b533a9a7556c58cd23429de56570e | /LGS/TableDataSource.swift | 7b406939b0981b84a62fcde7baa77a03c5dc63af | [] | no_license | erikVildanov/LGS | f5ec78a5d9bb611df521d3de35c849b348b646a3 | 9e561d33ec95e4c88ad9cc1920a869e572f8c433 | refs/heads/master | 2020-01-27T09:58:19.708230 | 2016-08-24T02:49:07 | 2016-08-24T02:49:07 | 66,006,859 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 6,568 | swift | //
// TableDataSource.swift
// LGS
//
// Created by Эрик Вильданов on 18.08.16.
// Copyright © 2016 ErikVildanov. All rights reserved.
//
import UIKit
import CoreData
class TableDataSource: NSObject ,UITableViewDataSource {
var leadership: [Leadership] = []
var coWorker:[CoWorker] = []
var bookkeeping:[Bookkeeping] = []
private let context = (UIApplication.sharedApplication().delegate as! AppDelegate).managedObjectContext
override init() {
super.init()
let corporateService = CorporateService(context: context)
leadership = corporateService.getAllLeadership()
coWorker = corporateService.getAllCoWorker()
bookkeeping = corporateService.getAllBookkeeping()
}
private func makeAttributedString(title title: String, subtitle: String) -> NSAttributedString {
let titleAttributes = [NSFontAttributeName: UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline), NSForegroundColorAttributeName: UIColor.blackColor()]
let subtitleAttributes = [NSFontAttributeName: UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline)]
let titleString = NSMutableAttributedString(string: "\(title)\n", attributes: titleAttributes)
let subtitleString = NSAttributedString(string: subtitle, attributes: subtitleAttributes)
titleString.appendAttributedString(subtitleString)
return titleString
}
func numberOfSectionsInTableView(tableView: UITableView) -> Int
{
return 3
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
if (section == 0) {
return leadership.count
}
if (section == 1) {
return coWorker.count
} else {
return bookkeeping.count
}
}
func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String?
{
if (section == 0) {
return "Руководство"
}
if (section == 1) {
return "Сотрудник"
} else {
return "Бухгалтерия"
}
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! TableViewCell
cell.iconImage.image = UIImage(named: "avatar")
if indexPath.section == 0 {
cell.information.attributedText = makeAttributedString(title: leadership[indexPath.row].fullName!, subtitle: "Часы приема: \(leadership[indexPath.row].businessHours!)\n Зарплата: \(String(leadership[indexPath.row].salary!))")
}
if indexPath.section == 1 {
cell.information.attributedText = makeAttributedString(title: coWorker[indexPath.row].fullName!, subtitle: "Обед: \(coWorker[indexPath.row].lunchTime!)\n Номер рабочего места: \(coWorker[indexPath.row].seatNumber!)\n Зарплата: \(coWorker[indexPath.row].salary!)")
}
if indexPath.section == 2 {
var type = String()
if bookkeeping[indexPath.row].bookkeepingType == 0 {
type = "начисление зарплаты"
} else {
type = "учет материалов"
}
cell.information.attributedText = makeAttributedString(title: bookkeeping[indexPath.row].fullName!, subtitle: "Обед: \(bookkeeping[indexPath.row].lunchTime!)\n Номер рабочего места: \(bookkeeping[indexPath.row].seatNumber!)\n Зарплата: \(bookkeeping[indexPath.row].salary!)\n Тип бухгалтера: \(type)")
}
return cell
}
func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
if tableView.editing { return true }
return false
}
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
let corporateService = CorporateService(context: context)
switch editingStyle {
case .Delete:
if indexPath.section == 0 {
let deleteLeadership = corporateService.getByIdLeadership(leadership[indexPath.row].objectID)!
corporateService.deleteLeadership(deleteLeadership.objectID)
leadership.removeAtIndex(indexPath.row)
}
if indexPath.section == 1 {
let deleteCoWorker = corporateService.getByIdCoWorker(coWorker[indexPath.row].objectID)!
corporateService.deleteCoWorker(deleteCoWorker.objectID)
coWorker.removeAtIndex(indexPath.row)
}
if indexPath.section == 2 {
let deleteBookkeepingType = corporateService.getByIdBookkeeping(bookkeeping[indexPath.row].objectID)!
corporateService.deleteBookkeeping(deleteBookkeepingType.objectID)
bookkeeping.removeAtIndex(indexPath.row)
}
corporateService.saveChanges()
default:
return
}
tableView.reloadSections(NSIndexSet(index: indexPath.section), withRowAnimation: .Automatic)
tableView.reloadData()
}
func tableView(tableView: UITableView, moveRowAtIndexPath sourceIndexPath: NSIndexPath, toIndexPath destinationIndexPath: NSIndexPath) {
if sourceIndexPath.section == 0 && destinationIndexPath.section == 0 {
let movedObject = self.leadership[sourceIndexPath.row]
leadership.removeAtIndex(sourceIndexPath.row)
leadership.insert(movedObject, atIndex: destinationIndexPath.row)
}
if sourceIndexPath.section == 1 && destinationIndexPath.section == 1 {
let movedObject = self.coWorker[sourceIndexPath.row]
coWorker.removeAtIndex(sourceIndexPath.row)
coWorker.insert(movedObject, atIndex: destinationIndexPath.row)
}
if sourceIndexPath.section == 2 && destinationIndexPath.section == 2 {
let movedObject = self.bookkeeping[sourceIndexPath.row]
bookkeeping.removeAtIndex(sourceIndexPath.row)
bookkeeping.insert(movedObject, atIndex: destinationIndexPath.row)
}
tableView.reloadData()
}
}
| [
-1
] |
d73d002cfc50e5b81fc1bc4a7505fb478cdd9d34 | d093d934140b1edf23b46d9b2b3c122fb113611e | /Farsi CalculatorTests/Farsi_CalculatorTests.swift | 9058732d38c718ad8a920fa4cae15a18d49f7998 | [] | no_license | AmidSedghi/FarsiCalculator | 1001b4407ccc7b11d749e2c941bcb38e55c4b3c7 | 0ae2d8e18bced2f69b42b4909889fdb170ef0e06 | refs/heads/master | 2021-06-20T14:08:33.975002 | 2017-07-20T21:40:38 | 2017-07-20T21:40:38 | 93,799,727 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,008 | swift | //
// Farsi_CalculatorTests.swift
// Farsi CalculatorTests
//
// Created by Amid Sedghi on 2017-06-08.
// Copyright © 2017 Amid Sedghi. All rights reserved.
//
import XCTest
@testable import Farsi_Calculator
class Farsi_CalculatorTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
| [
360462,
278558,
229413,
204840,
344107,
360491,
155694,
229424,
229430,
163896,
180280,
376894,
286788,
352326,
196691,
385116,
237663,
254048,
319591,
278634,
221290,
278638,
204916,
131189,
131191,
131198,
311435,
319629,
311438,
278677,
196760,
426138,
278691,
196773,
377009,
131256,
278714,
295098,
139479,
229597,
311519,
205035,
286958,
327929,
344313,
147717,
368905,
254226,
368916,
262421,
377114,
278810,
278816,
237856,
237857,
311597,
98610,
262450,
180535,
336183,
278842,
139589,
319813,
311621,
344401,
377169,
311636,
368981,
155990,
368984,
98657,
270701,
270706,
139640,
311681,
311685,
106888,
385417,
385422,
213403,
385454,
377264,
278961,
278965,
278970,
311738,
33211,
336320,
311745,
278978,
254406,
188871,
278989,
278993,
278999,
328152,
188894,
287198,
279008,
279013,
279018,
319981,
279022,
279029,
254456,
377338,
377343,
279039,
254465,
287241,
279050,
303631,
139792,
303636,
393751,
377376,
180771,
377386,
197167,
385588,
279094,
115270,
385615,
426576,
369235,
295519,
139872,
66150,
279146,
295536,
287346,
139892,
287352,
344696,
279164,
303746,
311941,
336518,
311945,
369289,
344715,
311949,
287374,
377489,
311954,
352917,
230040,
271000,
377497,
303771,
377500,
205471,
344738,
139939,
205487,
303793,
336564,
287417,
287422,
377539,
287439,
164560,
385747,
279252,
361176,
418520,
287452,
369385,
279280,
312052,
230134,
172792,
344827,
221948,
279294,
205568,
295682,
197386,
434957,
426774,
197399,
426775,
197411,
279336,
262954,
295724,
197422,
353070,
164656,
303920,
262962,
295729,
197431,
230199,
336702,
353109,
377686,
230234,
189275,
435039,
295776,
279392,
303972,
385893,
230248,
246643,
295798,
279417,
361337,
254850,
369538,
287622,
213894,
295824,
279456,
279464,
140204,
377772,
304051,
230332,
287677,
189374,
377790,
353215,
213957,
213960,
345033,
386006,
418776,
50143,
123881,
287731,
271350,
295927,
304122,
328700,
328706,
410627,
320516,
295942,
386056,
353290,
230410,
377869,
238610,
418837,
140310,
230423,
197657,
369701,
238639,
312373,
238651,
230463,
377926,
296019,
304222,
230499,
279660,
173166,
156785,
312434,
377972,
377983,
279685,
402565,
222343,
386189,
238743,
296092,
238765,
279728,
238769,
402613,
230588,
279747,
353479,
402634,
279760,
189652,
279765,
189653,
419029,
148696,
296153,
279774,
304351,
304356,
222440,
279785,
328940,
279792,
386294,
386301,
320770,
386306,
328971,
353551,
173334,
320796,
222494,
304421,
353584,
345396,
386359,
378172,
312648,
337225,
304456,
230729,
222541,
296270,
238927,
353616,
296273,
378209,
230756,
386412,
296307,
116084,
181625,
337281,
148867,
296329,
296335,
230799,
9619,
370071,
279974,
173491,
304564,
279989,
353719,
296375,
296387,
361927,
296391,
280010,
280013,
312782,
280032,
271843,
280041,
296425,
296433,
280055,
288249,
329225,
296461,
149007,
304656,
329232,
370197,
402985,
394794,
312880,
288309,
312889,
288318,
280130,
288327,
280147,
239198,
99938,
312940,
222832,
288378,
337534,
337535,
263809,
239237,
288392,
239250,
419478,
198324,
296628,
337591,
296632,
280257,
280267,
403148,
9936,
9937,
370388,
272085,
345814,
67292,
345821,
321247,
321249,
345833,
345834,
313065,
280300,
239341,
419569,
67315,
173814,
313081,
288512,
288516,
280327,
280329,
321302,
345879,
321310,
255776,
362283,
378668,
296755,
345919,
436031,
403267,
345929,
304977,
18262,
362327,
280410,
345951,
362337,
345955,
296806,
288619,
288620,
214895,
313199,
362352,
313203,
182144,
305026,
329622,
337815,
214937,
214938,
247712,
436131,
436137,
362417,
362431,
280514,
280519,
214984,
362443,
231375,
280541,
329695,
436191,
313319,
296941,
436205,
43014,
354316,
313357,
305179,
313375,
346162,
288828,
436285,
288833,
288834,
436292,
403525,
280649,
436301,
338001,
338003,
223316,
280661,
329814,
223318,
288857,
280675,
280677,
43110,
313447,
321637,
436329,
288879,
223350,
280694,
215164,
215166,
280712,
215178,
141450,
346271,
436383,
362659,
239793,
182456,
280762,
223419,
379071,
280768,
149703,
280778,
346314,
321745,
280795,
387296,
280802,
379106,
346346,
321772,
436470,
157944,
149760,
411906,
272658,
338218,
321840,
379186,
321860,
280902,
289110,
215385,
321894,
313713,
354676,
436608,
362881,
240002,
436611,
280961,
108944,
190871,
149916,
420253,
141728,
289189,
108972,
272813,
338356,
436661,
281040,
289232,
256477,
281072,
174593,
420369,
223767,
223769,
207393,
289332,
174648,
338489,
338490,
281171,
297560,
436832,
436834,
281199,
420463,
346737,
313971,
346740,
420471,
330379,
133774,
117396,
346772,
264856,
289434,
346779,
166582,
314040,
158394,
199366,
363211,
363230,
264928,
330474,
289518,
199414,
117517,
322319,
166676,
207640,
289576,
191283,
273207,
289598,
281408,
330609,
207732,
158593,
224145,
355217,
256922,
289690,
420773,
289703,
363438,
347055,
289727,
273344,
330689,
363458,
379844,
19399,
52172,
183248,
248796,
347103,
289774,
183279,
347123,
314355,
240630,
257024,
330754,
322570,
330763,
281625,
281626,
175132,
248872,
207938,
314448,
339030,
281697,
281700,
257125,
273515,
404593,
363641,
363644,
150657,
248961,
330888,
363669,
339100,
380061,
429214,
199839,
330913,
306338,
265379,
249002,
306346,
3246,
421048,
208058,
265412,
290000,
298208,
363744,
298212,
298213,
330984,
298221,
298228,
216315,
208124,
437505,
322824,
257305,
339234,
199971,
372009,
412971,
306494,
216386,
224586,
331090,
314709,
314710,
372054,
159066,
224606,
314720,
142689,
281962,
380271,
208244,
249204,
290173,
306559,
314751,
298374,
314758,
314760,
142729,
388487,
281992,
314766,
306579,
282007,
290207,
314783,
314789,
314791,
282024,
396711,
396712,
380337,
380338,
150965,
380357,
339398,
306631,
306639,
413137,
429542,
306673,
306677,
290300,
282114,
372227,
306692,
306693,
323080,
192010,
282129,
175639,
282136,
388632,
396827,
282141,
134686,
347694,
265798,
282183,
265804,
396882,
290390,
44635,
396895,
323172,
282213,
224883,
314998,
323196,
339584,
192131,
290443,
282259,
282271,
282273,
282276,
298661,
290471,
282280,
298667,
224946,
110268,
224958,
282303,
274115,
282312,
306890,
241361,
216795,
298720,
282369,
339715,
339720,
372496,
323346,
339745,
257830,
421672,
282409,
159533,
282438,
307025,
413521,
216918,
307031,
241495,
282474,
282480,
241528,
339841,
315273,
315274,
110480,
184208,
372626,
380821,
282519,
44952,
118685,
298909,
298920,
323507,
290745,
290746,
274371,
151497,
372701,
298980,
380908,
307231,
102437,
315432,
233517,
102445,
176175,
241716,
159807,
225351,
315465,
315476,
307289,
315487,
356447,
438377,
233589,
233590,
266357,
422019,
241808,
381073,
233636,
299174,
233642,
299187,
405687,
299198,
258239,
389313,
299203,
299209,
372941,
282831,
266449,
307435,
438511,
233715,
381172,
168188,
184575,
381208,
299293,
151839,
233762,
217380,
282919,
332083,
332085,
332089,
315706,
307517,
438596,
332101,
323913,
348492,
323920,
348500,
168281,
332123,
323935,
332127,
242023,
160110,
242033,
291192,
340357,
225670,
242058,
373134,
242078,
61857,
315810,
61859,
315811,
381347,
340398,
299441,
283064,
127427,
127428,
324039,
373197,
176601,
160225,
291311,
291333,
340490,
283153,
258581,
291358,
283182,
234036,
315960,
348732,
242237,
70209,
348742,
70215,
348749,
381517,
332378,
201308,
111208,
184940,
373358,
389745,
209530,
291454,
373375,
184962,
152195,
348806,
152203,
316049,
111253,
316053,
111258,
111259,
176808,
299699,
422596,
422599,
291530,
225995,
225997,
242386,
226004,
226007,
422617,
422626,
226019,
234217,
299759,
299770,
234234,
299776,
242433,
291585,
430849,
234241,
209670,
291592,
226058,
234250,
62220,
234253,
422673,
430865,
291604,
234263,
422680,
234268,
234277,
283430,
234283,
152365,
234286,
422703,
234289,
422709,
152374,
234294,
160571,
234301,
430910,
160575,
160580,
234311,
234312,
299849,
381773,
234317,
201551,
234323,
234326,
234331,
242529,
349026,
357218,
234340,
234343,
177001,
234346,
308076,
242541,
234355,
209783,
234360,
209785,
234361,
177019,
185211,
308092,
398206,
234366,
291712,
234367,
234372,
381829,
226181,
226184,
316298,
308112,
349072,
234386,
234387,
234392,
324507,
390045,
234400,
185250,
234404,
283558,
185254,
234409,
275371,
234419,
373687,
234425,
234427,
234430,
234436,
234438,
373706,
316364,
234444,
234445,
234451,
234454,
234457,
234463,
234466,
234472,
234473,
234477,
234482,
349175,
201720,
127992,
234498,
357379,
234500,
234506,
234514,
308243,
234531,
357414,
234534,
234542,
300084,
234548,
234555,
308287,
234560,
234565,
234569,
218186,
300111,
234577,
341073,
234583,
439384,
234584,
234587,
300135,
316520,
275565,
357486,
144496,
275571,
300150,
300151,
291959,
234616,
398457,
160891,
300158,
234622,
349316,
349318,
275591,
234632,
373903,
169104,
177296,
234642,
308372,
185493,
119962,
300187,
300188,
119963,
234656,
234659,
234663,
300201,
300202,
275625,
226481,
373945,
283840,
259268,
283852,
259280,
316627,
333011,
234733,
234742,
292091,
128251,
439562,
292107,
414990,
251153,
177428,
349462,
226608,
382258,
300343,
382269,
226624,
300359,
226632,
234827,
177484,
406861,
259406,
234831,
283991,
357719,
374109,
218462,
292195,
333160,
284014,
316787,
357762,
112017,
234898,
259475,
275859,
357786,
251298,
333220,
374191,
415171,
300487,
300489,
284116,
210390,
210391,
210393,
226781,
144867,
316902,
251378,
308723,
300535,
300536,
300542,
259599,
308756,
398869,
374296,
374299,
308764,
431649,
169518,
431663,
194110,
349763,
218696,
292425,
276040,
128587,
333388,
366154,
276045,
300630,
128599,
243292,
333408,
300644,
317032,
415338,
243307,
54893,
325231,
276085,
325245,
194180,
415375,
276120,
276126,
153251,
300714,
210603,
415420,
333503,
259781,
333517,
276173,
333520,
325346,
276195,
153319,
325352,
276210,
325371,
276219,
194303,
194304,
300811,
276238,
243472,
366360,
284442,
325404,
276253,
399147,
431916,
300848,
276282,
259899,
276283,
325439,
276287,
276294,
153415,
276298,
341836,
415567,
325457,
317269,
341847,
284507,
350044,
128862,
284512,
284514,
276327,
292712,
423789,
325492,
276341,
300918,
341879,
317304,
333688,
276344,
194429,
112509,
55167,
325503,
333701,
243591,
325518,
333722,
350109,
300963,
292771,
415655,
284587,
292782,
317360,
243637,
276408,
276421,
276430,
301008,
153554,
194515,
276444,
292836,
292837,
276454,
317415,
276459,
325619,
432116,
292858,
415741,
333828,
358410,
399373,
317467,
145435,
227370,
325674,
129076,
276534,
243767,
358456,
227417,
194656,
309345,
227428,
276582,
194666,
276589,
260207,
432240,
227439,
284788,
292992,
194691,
227460,
415881,
104587,
235662,
276627,
276632,
284826,
333991,
284842,
129203,
309444,
276682,
227548,
194782,
301279,
317664,
211193,
243962,
375039,
325905,
325912,
309529,
211235,
432421,
211238,
358703,
358709,
227658,
276813,
6481,
366930,
6482,
6489,
276835,
383332,
383336,
416104,
276847,
285040,
211326,
317831,
227725,
178578,
252308,
293274,
121245,
285090,
342450,
293303,
276920,
276925,
293310,
416197,
129483,
342476,
326100,
227809,
342498,
358882,
334309,
227813,
391655,
432618,
375276,
276998,
186893,
416286,
375333,
293419,
244269,
375343,
236081,
23092,
375351,
277048,
244281,
309830,
301638,
293448,
55881,
416341,
309846,
416351,
268899,
277094,
39530,
277101,
277111,
301689,
244347,
277133,
326287,
375440,
334481,
318106,
318107,
342682,
285353,
285361,
342706,
318130,
293556,
383667,
285371,
285373,
39614,
154316,
203477,
96984,
375526,
285415,
342762,
342763,
293612,
277227,
154359,
432893,
162561,
383754,
310036,
326429,
293664,
326433,
400166,
293672,
301871,
375609,
162621,
293693,
162626,
277316,
252741,
318278,
277325,
293711,
244568,
244570,
301918,
293730,
342887,
400239,
277366,
277370,
400252,
359298,
359299,
260996,
277381,
113542,
228233,
228234,
392074,
56208,
293781,
318364,
310176,
310178,
293800,
236461,
293806,
326581,
326587,
326601,
359381,
433115,
343005,
277479,
326635,
187374,
383983,
277492,
318461,
293886,
293893,
277509,
277510,
433165,
384016,
277523,
433174,
252958,
310317,
203830,
359478,
277563,
392290,
253029,
228458,
15471,
351344,
285814,
392318,
384131,
285828,
302213,
253063,
302216,
326804,
351390,
253099,
253100,
318639,
367799,
113850,
294074,
277690,
302274,
367810,
195808,
310497,
195811,
228588,
302325,
204022,
228600,
261377,
253216,
277792,
277800,
113966,
261425,
351537,
286013,
15686,
294218,
146762,
294219,
318805,
425304,
294243,
163175,
327024,
318848,
253317,
384393,
368011,
318864,
318868,
318875,
310692,
245161,
286129,
286132,
228795,
425405,
302531,
163269,
425418,
310732,
64975,
228827,
286172,
310757,
187878,
286202,
359930,
286205,
302590,
294400,
253451,
359950,
65041,
146964,
253463,
204313,
302623,
286244,
245287,
245292,
278060,
286254,
196164,
228943,
286288,
179801,
147036,
343647,
310889,
204397,
138863,
188016,
188031,
294529,
286343,
229001,
310923,
188048,
425626,
229020,
302754,
40613,
40614,
40615,
278191,
286388,
286391,
384695,
327358,
286399,
212685,
302797,
384720,
212688,
302802,
286423,
278233,
278234,
278240,
212716,
212717,
360177,
319233,
311042,
360195,
294678,
278299,
286494,
294700,
409394,
319292,
360252,
360264,
376669,
245599,
237408,
425825,
425833,
417654,
188292,
40853,
294807,
294809,
376732,
294814,
311199,
319392,
294823,
327596,
294843,
188348,
98239,
237504,
294850,
384964,
344013,
212942,
24532,
311281,
311282
] |
91545d3d7faa7e3a227b085239b00fe7f23ac370 | d628ced39a68b5f3684941c1ac5f4c881ca67e73 | /HandsomeURLSessionTests/WhenTextIsRequestedSynchronously.swift | 64df62a09553a18de862869671c75c718b73ed5f | [
"MIT"
] | permissive | xinmyname/HandsomeURLSession | b1224b1ad4686c649dbf2033a3bf8253f4d0bc33 | 03ba8efe4bae4a329f86d8a9c64c4dee96d16c58 | refs/heads/master | 2021-01-09T20:39:01.395179 | 2017-09-27T22:47:48 | 2017-09-27T22:47:48 | 63,705,047 | 3 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 941 | swift | //
// WhenATextRequstIsMadeAsynchronously.swift
// HandsomeURLSession
//
// Created by Andy Sherwood on 7/21/16.
//
//
import XCTest
import HandsomeURLSession
class WhenTextIsRequestedSynchronously: XCTestCase {
let _request = URLRequest(url: URL(string:"http://marco.coffee")!)
let _text = "Casey was right."
func testThatTheTextMatches() {
let session = MockURLSession(for: _request, text:_text)
XCTAssertEqual(try! session.awaitText(with: _request), _text)
}
func testThatFailedHTTPStatusCodeThrowsException() {
let session = MockURLSession(for: _request, statusCode: 404)
XCTAssertThrowsError(try session.awaitText(with: _request))
}
func testThatNoResponseThrowsException() {
let session = MockURLSession(response: nil)
XCTAssertThrowsError(try session.awaitText(with: _request))
}
}
| [
-1
] |
81f3afebc1903683469e3c7d0411bc486616e3ae | e27b58070180212836ec2fe4cb5a6f75384a189a | /Aqark/Utilities/CircularImage.swift | c0fa9a68449072a6d25a3ffd6190d9ebfee65176 | [] | no_license | mahmoudfouadbadwy/Aqark | ae8277ebf3957c103e69b1e28dfedceee3ec36ec | 346c2a8bd638940e743f4fc889d6273faf42b048 | refs/heads/master | 2023-06-05T23:49:51.455390 | 2021-07-01T13:01:37 | 2021-07-01T13:01:37 | 262,683,232 | 1 | 3 | null | null | null | null | UTF-8 | Swift | false | false | 392 | swift | //
// CircularImage.swift
// Aqark
//
// Created by ZeyadEl3ssal on 5/30/20.
// Copyright © 2020 ITI. All rights reserved.
//
import UIKit
class CircularImage: UIImageView {
override func layoutSubviews() {
layer.cornerRadius = frame.size.width / 2
layer.masksToBounds = true
layer.borderColor = UIColor.clear.cgColor
layer.borderWidth = 1
}
}
| [
-1
] |
42f720dc952fbab70dfaef91f0cc324e06b79bdc | 285af201d1da4b0b02ce3cad6c7459cbb6dbb182 | /JNMentionTextView/Classes/JNMentionTextView/PickerViewController/JNMentionPickerViewController.swift | 59e0201b1e920622882b2482276097bbdfb9e89b | [
"MIT"
] | permissive | JNDisrupter/JNMentionTextView | 8b90f6faf365fb4ba3c06512d1c662c1f6201243 | c973a4f06c6ddfd76ec98fd52d9a48dc4cfca29d | refs/heads/master | 2023-08-31T15:37:34.478067 | 2023-08-16T20:52:53 | 2023-08-16T20:52:53 | 191,050,842 | 12 | 12 | MIT | 2023-08-16T20:52:54 | 2019-06-09T20:11:45 | Swift | UTF-8 | Swift | false | false | 5,472 | swift | //
// JNMentionPickerViewController.swift
// JNMentionTextView
//
// Created by JNDisrupter 💡 on 6/21/19.
//
import UIKit
/// JN Mention Picker View Controller
class JNMentionPickerViewController: UIViewController {
/// Table View
var tableView: UITableView!
/// Loading Indicator View
var loadingIndicatorView: UIActivityIndicatorView!
/// Options
var options: JNMentionPickerViewOptions = JNMentionPickerViewOptions(viewPositionMode: JNMentionPickerViewPositionwMode.automatic)
/// Table View
var dataList: [JNMentionPickable] = []
/// Delegate
weak var delegate: JNMentionPickerViewControllerDelegate?
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
self.initSubViews(with: self.options)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
/**
View Did load
*/
override func viewDidLoad() {
super.viewDidLoad()
self.initSubViews(with: self.options)
}
/**
View Will Appear
*/
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// Reload Data
self.tableView.reloadData()
}
/**
Init Sub Views
- Parameter options: JNMentionPickerViewOptions
*/
private func initSubViews(with options: JNMentionPickerViewOptions) {
// Init Table View
self.initTableView(with: self.options)
// Init Loading View
self.initLoadingIndicatorView()
}
/**
Init Table View
- Parameter options: JNMentionPickerViewOptions
*/
private func initTableView(with options: JNMentionPickerViewOptions) {
// init table view
self.tableView = UITableView(frame: CGRect.zero)
self.tableView.delegate = self
self.tableView.dataSource = self
self.tableView.tableFooterView = UIView(frame: CGRect.zero)
self.view.backgroundColor = options.backgroundColor
self.tableView.backgroundColor = UIColor.clear
self.view.addSubview(self.tableView)
self.tableView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
self.tableView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
self.tableView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
self.tableView.topAnchor.constraint(equalTo: self.view.topAnchor),
self.tableView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor)
])
}
/**
Init Loading Indicator View
*/
private func initLoadingIndicatorView() {
// init table view
self.loadingIndicatorView = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.gray)
self.loadingIndicatorView.frame = CGRect.zero
self.view.addSubview(self.loadingIndicatorView)
self.loadingIndicatorView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
self.loadingIndicatorView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
self.loadingIndicatorView.centerYAnchor.constraint(equalTo: self.view.centerYAnchor)
])
}
/**
Show Loading Indicator View
*/
func showLoadingIndicatorView() {
if self.dataList.isEmpty {
self.loadingIndicatorView.isHidden = false
self.loadingIndicatorView.startAnimating()
}
}
/**
Reload Data
*/
func reloadData() {
self.loadingIndicatorView.isHidden = true
self.tableView.reloadData()
}
}
// UITableViewDelegate & UITableViewDataSource
extension JNMentionPickerViewController: UITableViewDelegate, UITableViewDataSource {
/**
Number Of Sections
*/
open func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
/**
Number Of Rows In Section
*/
open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.dataList.count
}
/**
Cell For Row At
*/
open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// get cell for pickable item
if self.dataList.count > indexPath.row {
return self.delegate?.jnMentionPickerViewController(cellFor: self.dataList[indexPath.row]) ?? UITableViewCell()
}
return UITableViewCell()
}
/**
Height for row at
*/
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// get cell for pickable item
if self.dataList.count > indexPath.row {
return self.delegate?.jnMentionPickerViewController(cellHeightFor: self.dataList[indexPath.row]) ?? UITableView.automaticDimension
}
return UITableView.automaticDimension
}
/**
Did Select Row At
*/
open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// did select item
self.delegate?.jnMentionPickerViewController(didSelectItemAt: indexPath)
}
}
| [
-1
] |
3d5dd2b6ba185bbad782e4b7ad37869ff924606b | 97ff70780ad18102cf084e7e2f3546397ccba7b9 | /SwiftyJsonDataModels/ViewController.swift | 56644559fa25f112940b51fa3625f0851c262ea0 | [] | no_license | sugamkalra/SwiftJsonDataModel | 5726d176d1a0d4052406237cc7d333568901d891 | 95f2693eb168efbb963d668bd7f7b98eafb446d4 | refs/heads/master | 2021-01-10T03:06:36.119815 | 2015-12-15T05:52:49 | 2015-12-15T05:52:49 | 48,022,499 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 767 | swift | //
// ViewController.swift
// SwiftyJsonDataModels
//
// Created by Sugam Kalra on 15/12/15.
// Copyright © 2015 Sugam Kalra. 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.
// This is how to call json data model class from view controller and pass json object
/* let caneQuality = CaneQuality.caneQualityFromJSON("Json Object Pass It From Here")
print(caneQuality) */
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
| [
279041,
279046,
277512,
215562,
275466,
278543,
281107,
279064,
281118,
284197,
289318,
296487,
296489,
304174,
309807,
300086,
234551,
279096,
286775,
300089,
234043,
288827,
238653,
226878,
288321,
129604,
301637,
226887,
293961,
286796,
158285,
226896,
212561,
284242,
292435,
300629,
276054,
237655,
307288,
40545,
200802,
284261,
281703,
306791,
286314,
296042,
164974,
307311,
281202,
284275,
277108,
300149,
314996,
276087,
234619,
284287,
284289,
276612,
280710,
284298,
303242,
278157,
311437,
226447,
234641,
349332,
117399,
280219,
282270,
285855,
228000,
282275,
278693,
287399,
100521,
313007,
277171,
307379,
284341,
286390,
300727,
282301,
277696,
285377,
280770,
227523,
302788,
228551,
279751,
280775,
279754,
282311,
230604,
284361,
276686,
298189,
282320,
229585,
302286,
307410,
189655,
302295,
226009,
282329,
363743,
282338,
228585,
282346,
358127,
312049,
286963,
280821,
120054,
226038,
234232,
282357,
280826,
286965,
358139,
282365,
286462,
280832,
282368,
358147,
226055,
282377,
299786,
312586,
300817,
282389,
282393,
329499,
228127,
315170,
282403,
281380,
233767,
283433,
130346,
282411,
293682,
159541,
282426,
289596,
283453,
307516,
279360,
289088,
293700,
234829,
307029,
241499,
308064,
227688,
313706,
290303,
306540,
299374,
162672,
199024,
276849,
292730,
333179,
303998,
290175,
275842,
224643,
304008,
324491,
304012,
304015,
300432,
226705,
310673,
277406,
285087,
234402,
289187,
284580,
276396,
286126,
277935,
324528,
282035,
292277,
296374,
130487,
234423,
277432,
278968,
293308,
278973,
295874,
299973,
165832,
306633,
286158,
280015,
310734,
301016,
163289,
286175,
234465,
168936,
294889,
231405,
183278,
282095,
227315,
296436,
281078,
290299,
233980,
287231
] |
6429d7750d3dc7d9ced1979f1ba8f5683888ede8 | 980941940ddbeae053f5fcbe4dcec8c10f4eee9c | /ProgConstraints/AppDelegate.swift | 7b3b4c347528b2e40034878b84e2607d8fa04671 | [] | no_license | DennisNesanoff/ProgConstraints | 6b524a9b29145ac89fb0b40feb2c5ba6f0e39787 | baca5e554d7490a6fcdd83a6dca8cb4413890ee7 | refs/heads/master | 2022-04-16T07:26:45.811095 | 2020-04-15T18:44:25 | 2020-04-15T18:44:25 | 255,991,508 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,433 | swift | //
// AppDelegate.swift
// ProgConstraints
//
// Created by Dennis Nesanoff on 15.04.2020.
// Copyright © 2020 Dennis Nesanoff. 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,
393230,
393250,
344102,
393261,
163891,
385081,
376905,
327756,
254030,
286800,
368727,
368735,
180320,
376931,
286831,
368752,
286844,
262283,
286879,
286888,
377012,
327871,
180416,
377036,
180431,
377046,
377060,
327914,
205036,
393456,
393460,
418043,
336123,
336128,
385280,
262404,
180490,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
262472,
213332,
65880,
262496,
418144,
262499,
213352,
246123,
262507,
262510,
385419,
393612,
262550,
262552,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
328206,
393747,
254490,
188958,
385570,
33316,
197159,
352821,
188987,
418363,
385609,
385616,
352856,
352864,
369253,
262760,
352887,
254587,
377472,
336512,
148105,
377484,
352918,
98968,
344744,
361129,
336555,
434867,
164534,
336567,
328378,
328386,
352968,
418507,
385742,
385748,
361179,
139997,
189153,
369381,
361195,
344831,
336643,
344835,
344841,
336659,
434970,
369435,
262942,
336675,
328484,
336696,
361273,
328515,
336708,
328519,
336711,
328522,
336714,
426841,
254812,
361309,
197468,
361315,
361322,
328573,
369542,
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,
361598,
214149,
345222,
337047,
345246,
214175,
337071,
337075,
386258,
328924,
222437,
328941,
386285,
386291,
345376,
345379,
410917,
345382,
337205,
345399,
378169,
369978,
337222,
337229,
337234,
263508,
402791,
345448,
271730,
378227,
271745,
353673,
181643,
181654,
230809,
181670,
181673,
181678,
181681,
337329,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
337398,
337415,
329226,
419339,
419349,
345625,
419355,
394786,
419362,
370213,
419368,
206395,
419400,
419402,
353867,
419406,
214610,
419410,
345701,
394853,
222830,
370297,
403075,
345736,
345749,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
419512,
337592,
337599,
419527,
419530,
419535,
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,
329544,
370509,
354130,
247637,
337750,
370519,
313180,
345967,
345970,
345974,
354172,
247691,
337808,
247700,
329623,
436126,
436132,
337833,
337844,
346057,
247759,
346063,
329697,
354277,
190439,
247789,
346139,
378954,
395339,
338004,
329832,
329855,
329867,
329885,
346272,
100524,
387249,
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,
248111,
362822,
436555,
190796,
321879,
354673,
321910,
248186,
420236,
379278,
354727,
338352,
330189,
338381,
338386,
338403,
338409,
248308,
199164,
330252,
330267,
354855,
199249,
346721,
174695,
248425,
191084,
338543,
191092,
346742,
330383,
354974,
150183,
248504,
223934,
355024,
273108,
264918,
183005,
256734,
338660,
338664,
264941,
207619,
338700,
256786,
199452,
363293,
396066,
346916,
396069,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
265058,
355179,
330610,
330642,
207808,
396245,
330710,
248792,
248798,
257008,
183282,
330748,
330760,
330768,
248862,
396328,
158761,
199728,
396336,
396339,
339001,
388154,
388161,
248904,
330826,
248914,
183383,
339036,
412764,
257120,
265320,
248951,
420984,
330889,
248985,
339097,
44197,
380070,
339112,
249014,
126144,
330965,
265436,
388319,
175375,
159005,
175396,
208166,
273708,
372015,
347441,
372018,
199988,
175415,
396600,
437566,
175423,
437570,
437575,
437583,
331088,
437587,
331093,
396633,
175450,
437595,
175457,
208227,
175460,
175463,
175477,
249208,
175483,
175486,
249214,
175489,
249218,
249224,
249227,
249234,
175513,
175516,
175522,
355748,
380332,
396722,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
413141,
339417,
249308,
339424,
249312,
339428,
339434,
249328,
69113,
372228,
339461,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
257633,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
224897,
372353,
216707,
126596,
339588,
224904,
11918,
159374,
224913,
126610,
339601,
224916,
224919,
126616,
224922,
208538,
224926,
224929,
224932,
224936,
257704,
224942,
257712,
224947,
257716,
257720,
257724,
257732,
339662,
224981,
257761,
224993,
257764,
224999,
339695,
225020,
339710,
225025,
339721,
225038,
225043,
372499,
167700,
225048,
257819,
225053,
184094,
225058,
339747,
339749,
225066,
257836,
413484,
225070,
225073,
397112,
225082,
397115,
225087,
323402,
257868,
225103,
257871,
397139,
225108,
257886,
257896,
274280,
257912,
339844,
225165,
397200,
380822,
225180,
118691,
184244,
372664,
372702,
372706,
380918,
405533,
430129,
266294,
217157,
421960,
356439,
421990,
266350,
356466,
266362,
381068,
225423,
250002,
250004,
225429,
356506,
225437,
135327,
225441,
225444,
225447,
438440,
225450,
258222,
225455,
430256,
225458,
225461,
225466,
389307,
225470,
381120,
372929,
430274,
225475,
389320,
225484,
225487,
225490,
266453,
225493,
225496,
225502,
225505,
356578,
225510,
225514,
372976,
397571,
389380,
356637,
356640,
356643,
266536,
356649,
356655,
332080,
340275,
356660,
397622,
332090,
225597,
332097,
201028,
348488,
332106,
332117,
250199,
250202,
332125,
250210,
348522,
348525,
348527,
332152,
389502,
250238,
332161,
356740,
332172,
373145,
340379,
389550,
324030,
340451,
160234,
127471,
340472,
324094,
324099,
324102,
324111,
340500,
324117,
324131,
332324,
324139,
356907,
324142,
356916,
324149,
324155,
348733,
324160,
324164,
356934,
348743,
381512,
324170,
324173,
324176,
332380,
373343,
381545,
340627,
184982,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
389892,
373510,
389926,
152370,
340789,
348982,
127814,
357201,
357206,
389978,
430939,
357211,
357214,
201579,
201582,
340849,
201588,
430965,
324472,
398201,
119674,
340858,
324475,
430972,
340861,
324478,
324481,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
324524,
340909,
324533,
5046,
324538,
324541,
398279,
340939,
340941,
209873,
340957,
431072,
340963,
349180,
439294,
209943,
209946,
250914,
357410,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210039,
341113,
349308,
210044,
349311,
152703,
160895,
210052,
349319,
210055,
210067,
210071,
210077,
210080,
251044,
210084,
210088,
210095,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
218360,
251128,
275706,
275712,
275715,
275721,
333078,
251160,
349484,
251189,
415033,
251210,
357708,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
136590,
112020,
349590,
357792,
259515,
415166,
415185,
366034,
366038,
415191,
415193,
415196,
415199,
423392,
333284,
415207,
210420,
415224,
423423,
415257,
415263,
366117,
415270,
144939,
415278,
415281,
415285,
415290,
415293,
349761,
415300,
333386,
333399,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
333498,
210631,
333511,
358099,
333534,
431851,
210672,
210695,
268041,
210698,
210706,
399128,
333594,
210719,
358191,
366387,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341843,
415573,
358234,
341851,
350045,
399199,
399206,
268143,
358255,
399215,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
358339,
333774,
358371,
350189,
350193,
350202,
333818,
350206,
350213,
350224,
350231,
333850,
350237,
350240,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
342133,
374902,
432271,
333997,
334011,
260289,
260298,
350410,
350416,
350422,
350425,
268507,
334045,
350445,
375026,
350458,
350461,
350464,
325891,
350467,
350475,
268559,
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,
366990,
416157,
342430,
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,
334420,
334465,
334468,
162445,
326290,
342679,
342683,
342710,
244409,
260797,
334528,
260801,
350917,
391894,
154328,
416473,
64230,
342766,
342776,
391937,
391948,
375568,
326416,
375571,
162591,
326441,
326451,
326454,
326460,
244540,
375612,
326467,
244551,
326473,
326477,
326485,
416597,
326490,
326502,
375656,
326507,
326510,
211825,
211831,
351097,
359295,
351104,
342915,
400259,
236430,
342930,
252822,
392091,
400285,
252836,
359334,
211884,
400306,
351168,
359361,
326598,
359366,
359382,
359388,
383967,
343015,
359407,
244726,
383997,
359451,
211998,
359470,
359476,
343131,
384098,
384101,
384107,
367723,
187502,
384114,
351364,
384135,
384139,
384143,
384151,
384160,
384168,
367794,
244916,
384181,
384188,
384191,
351423,
326855,
244937,
384201,
253130,
343244,
384208,
146642,
384224,
343270,
351466,
384246,
351479,
343306,
261389,
359694,
384275,
384283,
245020,
384288,
245029,
171302,
351534,
245040,
425276,
384323,
343365,
212303,
343393,
343398,
425328,
343409,
253303,
154999,
343417,
327034,
245127,
384397,
245136,
245142,
245145,
343450,
245148,
245151,
245154,
245157,
245162,
327084,
384443,
146876,
327107,
384453,
327110,
327115,
327117,
359886,
359890,
343507,
368092,
343534,
343539,
368119,
343544,
368122,
359955,
359983,
343630,
327275,
245357,
138864,
155254,
155273,
368288,
245409,
425638,
155322,
425662,
155327,
245460,
155351,
155354,
212699,
245475,
155363,
245483,
409335,
155393,
155403,
245525,
155422,
360223,
155438,
155447,
155461,
155482,
261981,
425822,
155487,
376671,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
262005,
147317,
262008,
262011,
155516,
155521,
155525,
360326,
155531,
262027,
262030,
262033,
262036,
262042,
155549,
262045,
262048,
262051,
327589,
155559,
155562,
155565,
393150,
393169,
155611,
155619,
155621,
253926,
327654,
204784,
393212,
155646
] |
9f593e2e6998820897fc8bcda3aac0b2419c3ab1 | 60810a0107efbdc074e548ae09c225a58d095b5a | /QuickPerformanceTests/QuickSpec553.swift | bb54bb583241d9c43535db518ede835b4ad5a4ef | [] | no_license | tangzhen/QuickPerformance | bb1905d2214c694b586a691488281a5e215b3e2b | c4babdc6d5d6a8ca134512a815301d28c6e8c442 | refs/heads/master | 2020-12-03T14:12:05.691204 | 2016-08-31T09:27:12 | 2016-08-31T09:27:12 | 67,023,455 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 372 | swift | //
// QuickPerformanceTests.swift
// QuickPerformanceTests
//
// Created by Zhen Tang on 8/29/16.
// Copyright © 2016 Zhen Tang. All rights reserved.
//
import Quick
import XCTest
class QuickSpec553: QuickSpec {
override func spec() {
it("should pass the test") {
XCTAssertEqual(1 + 1, 2, "one plus one should equal two")
}
}
}
| [
-1
] |
185ad80d39c4a7e1ad4d15358336c2f0dc481863 | 6f41b321c29a7b614cd2820f38e5cdf1b3c52a38 | /spendSumCounter/ExpenceViewController.swift | 5cf17c9d3afe4aa6ac6ba7c0e10526f9ffd82a5e | [] | no_license | asilmb/navigationList | a734a2385ac9ea779ec1e7e4e5ea9a6e63a08850 | efb53e4317c137ba01a87673aface319164e20d2 | refs/heads/master | 2020-03-27T08:51:43.525193 | 2018-11-14T09:08:15 | 2018-11-14T09:08:15 | 146,293,261 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,051 | swift | //
// ViewController.swift
// spendSumCounter
//
// Created by Admin on 21.05.2018.
// Copyright © 2018 Admin. All rights reserved.
//
import UIKit
class ExpenceViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var amount: UITextField!
@IBOutlet weak var currency: UISegmentedControl!
var spend: Spend = Spend(howMuch: 0, currency: CurrencyEnum.usd)
override func viewDidLoad() {
super.viewDidLoad()
configureUI()
self.updateViewFields()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
let ACCEPTABLE_CHARACTERS = "0123456789."
let characterSet = CharacterSet(charactersIn: ACCEPTABLE_CHARACTERS).inverted
let filtered = string.components(separatedBy: characterSet).joined(separator: "")
return (string == filtered)
}
@IBOutlet var backgroundView: UIView!
@IBOutlet weak var doneButton: UIButton!
@IBAction func amountChanged(_ sender: UITextField) {
if let amountInput = Double(sender.text!){
self.spend.amount = amountInput
}
}
@IBAction func currencyChanged(_ sender: UISegmentedControl) {
let currency = CurrencyEnum.getRawValue(at: sender.selectedSegmentIndex)
let currencyEnum = CurrencyEnum.init(rawValue: currency)
self.spend.currency = currencyEnum!
}
private func configureUI() {
backgroundView.layer.cornerRadius = 6
doneButton.layer.cornerRadius = 8
for value in CurrencyEnum.allValues {
currency.setTitle(value.sign, forSegmentAt: value.identifier)
}
}
func updateViewFields() {
self.amount.text = "\(self.spend.getStringSum())"
self.currency.selectedSegmentIndex = self.spend.currency.identifier
}
}
| [
-1
] |
7fc458451865b4a098ca0f10a11587d275444d2a | 120bef8372adac87f8610ebb49712991b9507e74 | /BeardTracker/NotificationDelegate.swift | 1c31867f2d7873a21b99caf6880c5127b06187b6 | [] | no_license | 8secz-johndpope/beard-tracker | 7a9a4e3ca51839033adcdd635d8d6fddfb7bdf0f | 32a2152922bd38811e5fcc4d5a9b485d77ba7914 | refs/heads/master | 2020-12-18T17:48:17.357768 | 2019-11-27T07:47:17 | 2019-11-27T07:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,243 | swift | import Foundation
import UserNotifications
class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate {
let notificationCenter = UNUserNotificationCenter.current()
func userRequest() {
let options: UNAuthorizationOptions = [.alert, .sound, .badge]
notificationCenter.requestAuthorization(options: options) {
(didAllow, error) in
if !didAllow {
print("User has declined notifications")
}
}
}
func scheduleNotification(notificationType: String) {
let content = UNMutableNotificationContent() // Содержимое уведомления
let userActions = "User Actions"
content.title = notificationType
content.body = "This is example how to create " + notificationType
content.sound = UNNotificationSound.default
content.badge = 1
content.categoryIdentifier = userActions
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false)
let identifier = "Local Notification"
let request = UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)
notificationCenter.add(request) { (error) in
if let error = error {
print("Error \(error.localizedDescription)")
}
}
let snoozeAction = UNNotificationAction(identifier: "Snooze", title: "Snooze", options: [])
let deleteAction = UNNotificationAction(identifier: "Delete", title: "Delete", options: [.destructive])
let category = UNNotificationCategory(identifier: userActions,
actions: [snoozeAction, deleteAction],
intentIdentifiers: [],
options: [])
notificationCenter.setNotificationCategories([category])
}
func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.alert,.sound])
}
func userNotificationCenter(_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void) {
if response.notification.request.identifier == "Local Notification" {
print("Handling notifications with the Local Notification Identifier")
}
switch response.actionIdentifier {
case UNNotificationDismissActionIdentifier:
print("Dismiss Action")
case UNNotificationDefaultActionIdentifier:
print("Default")
case "Snooze":
print("Snooze")
scheduleNotification(notificationType: "sdfd")
case "Delete":
print("Delete")
default:
print("Unknown action")
}
completionHandler()
}
}
| [
-1
] |
ad78aa17ff3119d1b074a3dadb187fba36b1d262 | 2ab7b135a7ad792a7d9a4984096811873d4af9f6 | /StarWars/Network/Util.swift | 4142c84caa2b8b3fd62a0a398600b68f05549847 | [] | no_license | Ghassan-Albakuaa/StarWar | 6578e6359ee1bd5005e1cee7069889743a18cfb1 | 95cff8c0c89aa94263fe7ebf3d71565e14aa359d | refs/heads/main | 2023-01-01T13:53:24.740129 | 2020-10-12T15:30:31 | 2020-10-12T15:30:31 | 303,434,492 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 678 | swift | //
// Util.swift
// StarWars
//
// Created by Ghassan albakuaa on 10/12/20.
//
import UIKit
extension UIView {
func superViewBind(constant: CGFloat = 0) {
guard let safe = self.superview?.safeAreaLayoutGuide else { return }
self.topAnchor.constraint(equalTo: safe.topAnchor, constant: constant).isActive = true
self.leadingAnchor.constraint(equalTo: safe.leadingAnchor, constant: constant).isActive = true
self.trailingAnchor.constraint(equalTo: safe.trailingAnchor, constant: constant).isActive = true
self.bottomAnchor.constraint(equalTo: safe.bottomAnchor, constant: constant).isActive = true
}
}
| [
-1
] |
b9a3977fac0b7978e6920abb95e4ee4b53338c94 | 2d1916344a13dd310b4d743686a24899d5a23686 | /ROJSONParsing/Employee.swift | 05399cab32bcec28c4a0b44e862e06c8c3aea678 | [
"MIT"
] | permissive | prine/ROJSONParser | 5d198998138b372868048a59328a399a8a7b7bc1 | 37b339a270822b5da650449832365730c3ff5dfb | refs/heads/master | 2021-01-25T10:29:11.128488 | 2016-11-17T10:59:46 | 2016-11-17T10:59:46 | 22,738,859 | 20 | 4 | null | null | null | null | UTF-8 | Swift | false | false | 707 | swift | //
// Employee.swift
// ROJSONParsing
//
// Created by Robin Oster on 08/08/14.
// Copyright (c) 2014 Robin Oster. All rights reserved.
//
import Foundation
class Employee : ROJSONObject {
required init() {
super.init();
}
required init(jsonData:AnyObject) {
super.init(jsonData: jsonData)
}
required init(jsonString: String) {
super.init(jsonString:jsonString)
}
var firstname:String {
return Value<String>.get(self, key: "firstName")
}
var lastname:String {
return Value<String>.get(self, key: "lastName")
}
var age:Int {
return Value<Int>.get(self, key: "age")
}
} | [
-1
] |
c8e8536cd0533229cfb5ea027beb95fc908e06a2 | 55d86af47c3696639baa95d190abbbb233c678a1 | /FilmDemo/Global/Extension/UIImageView+.swift | 86d761b2b8f32d7e6b702a2da9d7e2a801228560 | [] | no_license | ibrahimdn/filmSearchDemo | 72482493526d684acca0e9e5a26035d1d06585c6 | ef8a1b14d5e6524d733e21d60a18162ea5128be4 | refs/heads/master | 2022-12-06T04:13:34.827452 | 2020-08-25T12:00:40 | 2020-08-25T12:00:40 | 272,817,312 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,558 | swift | import UIKit
import Alamofire
import AlamofireImage
extension UIImageView {
public func imageFromUrl(urlString: String?, placeHolderImage:UIImage?) {
image = placeHolderImage
if var urlS = urlString{
//Servis may return image url without base url so control it
if !urlS.hasPrefix("http") {
urlS = ServiceBrain.serviceBaseURL + urlS
}
if let url = URL(string: urlS) {
self.af_setImage(withURL: url)
}
}
}
public func imageFromUrl(urlString: String?, placeHolderImage:UIImage?, success:@escaping ()->Void, fail:@escaping ()->Void) {
image = placeHolderImage
if var urlS = urlString{
//Servis may return image url without base url so control it
if !urlS.hasPrefix("http") {
urlS = ServiceBrain.serviceBaseURL + urlS
}
Alamofire.request(urlS, method: .).responseImage { response in
guard let image = response.result.value else {
// Handle error
DispatchQueue.main.async {
fail()
}
return
}
// Do stuff with your image
DispatchQueue.main.async {
self.image = image
success()
}
}
}
}
}
| [
-1
] |
f9b67543ab6c40f622f1e40de1bbe6053b5604cc | 07b5cdd989e87bb545431345fcaad9c2b45f52cf | /Cassini/Cassini/ViewController.swift | 52a2ef78e07b3b88b8ffdf40afc65690cb95cd0a | [] | no_license | ScottLiuQDSD/Swift | 4c949cbe913d5e8c993a0d0e32dfaa35e15cf95b | be477b02879874d23dbb2bfee3b5c8d95f2c39ce | refs/heads/master | 2021-01-22T05:15:44.140265 | 2015-04-20T06:09:25 | 2015-04-20T06:09:25 | 34,093,411 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,002 | swift | //
// ViewController.swift
// Cassini
//
// Created by LiuScott on 15-4-14.
// Copyright (c) 2015年 LiuScott. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if let ivc = segue.destinationViewController as? ImageViewController {
if let identifier = segue.identifier {
switch identifier {
case "earth":
ivc.imageURL = DemoURL.NASA.Earth
ivc.title = "Earth"
case "saturn":
ivc.imageURL = DemoURL.NASA.Saturn
ivc.title = "Saturn"
case "cassini":
ivc.imageURL = DemoURL.NASA.Cassini
ivc.title = "Cassini"
default:
ivc.imageURL = DemoURL.Stanford
ivc.title = "Stanford"
}
}
}
}
}
| [
279784
] |
60367cd788dcf2cc97b9528a2a7df09b546457b8 | 3ae08c53f72d9193820ed757686cad05133a0ca9 | /Thinksns Plus/Global/UserInfo/UserInfoModel/TSCurrentUserInfoModel.swift | d600049bccd78c2e7dbbc19c4fcbd35ce1fcafd8 | [] | no_license | yunxin-dianbo-ios/plus-ios | 81d938e0c6d5781fb611fe5959d750cb62cd601b | 02c48ccc80e001c629da79c1e7856dae1a1240a7 | refs/heads/master | 2020-05-16T16:29:54.890771 | 2019-04-24T04:41:28 | 2019-04-24T04:41:28 | 183,162,912 | 1 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 5,750 | swift | //
// TSCurrentUserInfoModel.swift
// ThinkSNS +
//
// Created by 小唐 on 25/07/2017.
// Copyright © 2017 ZhiYiCX. All rights reserved.
//
// 当前用户的数据模型
// 含有wallet数据模型
import Foundation
import RealmSwift
import ObjectMapper
import UIKit
class TSCurrentUserInfoModel: Mappable {
/// 用户标识
var userIdentity: Int = -1
/// 用户名
var name: String = ""
/// 电话
var phone: String?
/// 邮箱
var email: String?
/// 是否初始化了密码(当前登录用户信息获取的接口已经添加了)
var isInitPwd: Bool = false
/// The user's gender, 0 - Unknown, 1 - Man, 2 - Woman.
var sex: Int = 0
/// 服务器返回的用户简介
var bio: String?
/// 地址
var location: String?
/// 创建时间
var createDate: String = ""
/// 更新时间
var updateDate: String = ""
/// 头像
var avatar: TSNetFileModel?
/// 背景
var bg: TSNetFileModel?
/// Whether the user is following you.
var following: Bool = false
/// Whether you are following this user.
var follower: Bool = false
/// 好友数量
var friendsCount: Int = 0
/// 验证信息
var verified: TSUserVerifiedModel?
/// 附加信息
var extra: TSUserExtraModel?
/// 钱包
var wallet: TSUserInfoWalletModel?
/// 积分
var integration: UserIntegrationModel?
/// 是否显示过资讯投稿的支付提示,默认为false,无需存入数据库,使用UserDefaults存储
var isShowedNewsContributePayPrompt: Bool {
get {
let userDefaults = UserDefaults.standard
let key = String(format: "%d-isShowedNewsContributePayPrompt", self.userIdentity)
return userDefaults.bool(forKey: key)
}
set(newIsShowedNewsContributePayPrompt) {
// 1.获得NSUserDefaults文件
let userDefaults = UserDefaults.standard
//2.向文件中写入内容
let key = String(format: "%d-isShowedNewsContributePayPrompt", self.userIdentity)
userDefaults.setValue(newIsShowedNewsContributePayPrompt, forKey: key)
userDefaults.synchronize()
}
}
/// 返回用户的简介信息
func shortDesc() -> String {
return bio == nil ? "占位符_空的简介".localized : bio!
}
required init?(map: Map) {
}
func mapping(map: Map) {
userIdentity <- map["id"]
name <- map["name"]
phone <- map["phone"]
email <- map["email"]
bio <- map["bio"]
sex <- map["sex"]
location <- map["location"]
createDate <- map["created_at"]
updateDate <- map["updated_at"]
avatar <- map["avatar"]
bg <- map["bg"]
follower <- map["follower"]
following <- map["following"]
friendsCount <- map["friends_count"]
verified <- map["verified"]
extra <- map["extra"]
wallet <- map["new_wallet"]
isInitPwd <- map["initial_password"]
integration <- map["currency"]
}
init(object: TSCurrentUserInfoObject) {
self.userIdentity = object.userIdentity
self.name = object.name
self.email = object.email
self.phone = object.phone
self.bio = object.bio
self.sex = object.sex
self.location = object.location
self.createDate = object.createDate
self.updateDate = object.updateDate
self.follower = object.follower
self.following = object.following
self.friendsCount = object.friendsCount
if nil != object.avatar {
self.avatar = TSNetFileModel(object: object.avatar!)
}
if nil != object.bg {
self.bg = TSNetFileModel(object: object.bg!)
}
if nil != object.verified {
self.verified = TSUserVerifiedModel(object: object.verified!)
}
if nil != object.extra {
self.extra = TSUserExtraModel(object: object.extra!)
}
if nil != object.wallet {
self.wallet = TSUserInfoWalletModel(object: object.wallet!)
}
}
/// 转换为数据库对象
func object() -> TSCurrentUserInfoObject {
let object = TSCurrentUserInfoObject()
object.userIdentity = self.userIdentity
object.name = self.name
object.email = self.email
object.phone = self.phone
object.bio = self.bio
object.sex = self.sex
object.location = self.location
object.avatar = self.avatar?.object()
object.bg = self.bg?.object()
object.createDate = self.createDate
object.updateDate = self.updateDate
object.follower = self.follower
object.following = self.following
object.friendsCount = self.friendsCount
object.verified = self.verified?.object()
object.extra = self.extra?.object()
object.wallet = self.wallet?.object()
return object
}
/// 可将本身转化为TSUserInfoModel
func convert() -> TSUserInfoModel {
let model = TSUserInfoModel()
model.userIdentity = self.userIdentity
model.name = self.name
model.email = self.email
model.phone = self.phone
model.bio = self.bio
model.sex = self.sex
model.location = self.location
model.avatar = self.avatar
model.bg = self.bg
model.createDate = self.createDate
model.updateDate = self.updateDate
model.follower = self.follower
model.following = self.following
model.friendsCount = self.friendsCount
model.verified = self.verified
model.extra = self.extra
return model
}
}
| [
-1
] |
730ba2b0a28c524237b8259ecd1c09f894b119e5 | 5e97aa7dc60421e83e4bcf87fa7313f56872a75b | /windmill-ios/windmill/Controllers/Timeline/TimelineViewController.swift | 299b4a818925294b7ef64166e2aeb05c1bf0402f | [
"MIT"
] | permissive | learnswifty/windmill | 707adef1a9e83a1f7a918d7731eec5f7cf5e4a13 | a92351f95697b119f122c47cd61db2fac43c53df | refs/heads/master | 2022-11-20T17:47:38.142351 | 2020-07-26T14:20:05 | 2020-07-26T14:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 7,357 | swift | //
// TImelineViewController.swift
// windmill
//
// Created by Liam on 2020-06-20.
// Copyright © 2020 Liam Reardon. All rights reserved.
//
import UIKit
import GoogleSignIn
import Pageboy
import SwiftKeychainWrapper
import AVFoundation
import SDWebImage
class TimelineViewController: PageboyViewController {
// MARK: IVARS
var previousBarButton: UIBarButtonItem?
var nextBarButton: UIBarButtonItem?
let feedManager = FeedManager()
var postsData: [Post] = []
var pageControllers: [ChildViewController] = []
var profileTapIndex: Int!
var refreshControl = UIRefreshControl()
var feedLoaded: Bool = false
var vSpinner: UIView?
var currentUserProfile: Bool = true
var currentUser: User?
@IBOutlet var homeView: UIView!
// Lifecycle
override func viewDidLoad() {
super.viewDidLoad()
self.tabBarController?.delegate = UIApplication.shared.delegate as? UITabBarControllerDelegate
getFeed()
dataSource = self
delegate = self
navigationOrientation = .vertical
if !feedLoaded {
showSpinner(onView: homeView)
}
initGraphics()
}
override func viewWillAppear(_ animated: Bool) {
if feedLoaded {
self.reloadData()
}
}
override func viewDidAppear(_ animated: Bool) {
}
override func viewDidDisappear(_ animated: Bool) {
if pageControllers.count == 0 { return }
let vc = pageControllers[profileTapIndex]
vc.stop()
}
override func viewWillDisappear(_ animated: Bool) {
}
@objc func refresh() {
self.refreshControl.beginRefreshing()
self.reloadData()
}
// MARK: Pageboy Data Source
func createPageControllers() {
if pageControllers.count > 0 {
pageControllers = []
}
let storyboard = UIStoryboard(name: "WindmillMain", bundle: Bundle.main)
if postsData.count == 0 { return }
for i in 0 ..< postsData.count {
let viewController = storyboard.instantiateViewController(withIdentifier: "ChildViewController") as! ChildViewController
viewController.index = i + 1
viewController.post = postsData[i]
pageControllers.append(viewController)
}
}
func updateVideoLoop(index: Int, direction: PageboyViewController.NavigationDirection) {
// let vc = pageControllers[index]
//
// switch direction {
// case .forward:
// let prevVC = pageControllers[index-1]
// prevVC.stop()
// case .reverse:
// let prevVC = pageControllers[index+1]
// prevVC.stop()
// default:
// print("")
// }
//
// vc.play()
}
// MARK: API Functions
func getFeed() {
if postsData.count > 0 {
postsData = []
}
feedManager.getUserFeed(username: currentUser!.username!) { (data) in
do {
let jsonResponse = try JSONSerialization.jsonObject(with: data!, options: []) as! [String:Any]
let posts = jsonResponse["posts"] as! [[String:Any]]
for i in 0..<(posts.count) {
let p = Post(dictionary: posts[i])!
self.postsData.append(p)
}
DispatchQueue.main.async {
self.createPageControllers()
self.reloadData()
self.removeSpinner()
self.feedLoaded = true
self.scrollToPage(.at(index: self.profileTapIndex), animated: false)
self.reloadData()
}
} catch let parsingError {
print("Error", parsingError)
}
}
}
// MARK: User Interface
func showSpinner(onView: UIView) {
let spinnerView = UIView.init(frame: onView.bounds)
let ai = UIActivityIndicatorView.init(style: UIActivityIndicatorView.Style.large)
ai.color = .white
ai.startAnimating()
ai.center = spinnerView.center
spinnerView.addSubview(ai)
onView.addSubview(spinnerView)
vSpinner = spinnerView
}
func removeSpinner() {
vSpinner?.removeFromSuperview()
vSpinner = nil
}
func initGraphics() {
let icon3 = UIImage(systemName: "arrow.left", withConfiguration: UIImage.SymbolConfiguration(pointSize: 25, weight: .bold))?.withTintColor(.white, renderingMode: .alwaysOriginal)
let button3 = UIButton()
button3.frame = CGRect(x:0, y:0, width: 51, height: 31)
button3.setImage(icon3, for: .normal)
button3.addTarget(self, action: #selector(self.backButtonTapped), for: .touchUpInside)
let barButton3 = UIBarButtonItem()
barButton3.customView = button3
self.navigationItem.leftBarButtonItem = barButton3
navigationController?.setNavigationBarHidden(false, animated: true)
}
// MARK: User Interaction
@objc internal func backButtonTapped() {
navigationController?.popViewController(animated: true)
}
}
// MARK: Pageboy Data Source
extension TimelineViewController: PageboyViewControllerDataSource {
func numberOfViewControllers(in pageboyViewController: PageboyViewController) -> Int {
return pageControllers.count
}
func viewController(for pageboyViewController: PageboyViewController,
at index: PageboyViewController.PageIndex) -> UIViewController? {
return pageControllers[index]
}
func defaultPage(for pageboyViewController: PageboyViewController) -> PageboyViewController.Page? {
return nil
}
}
// MARK: Pageboy Delegates
extension TimelineViewController: PageboyViewControllerDelegate {
func pageboyViewController(_ pageboyViewController: PageboyViewController,
willScrollToPageAt index: Int,
direction: PageboyViewController.NavigationDirection,
animated: Bool) {
if feedLoaded {
self.profileTapIndex = index
updateVideoLoop(index: index, direction: direction)
}
}
func pageboyViewController(_ pageboyViewController: PageboyViewController,
didScrollTo position: CGPoint,
direction: PageboyViewController.NavigationDirection,
animated: Bool) {
}
func pageboyViewController(_ pageboyViewController: PageboyViewController,
didScrollToPageAt index: Int,
direction: PageboyViewController.NavigationDirection,
animated: Bool) {
}
func pageboyViewController(_ pageboyViewController: PageboyViewController,
didReloadWith currentViewController: UIViewController,
currentPageIndex: PageboyViewController.PageIndex) {
}
}
| [
-1
] |
4968f60643d00e16aa9fd931273f6f3c70f30978 | d5df25e01232b19b18143d007f614d40bf3a13c9 | /OnTheMap3/ViewControllers/FindLocationViewController.swift | 2104b5e7279f8ec37530c76cc9fdb1dce8036ba1 | [] | no_license | Raghad64/OntheMap | ec0310f3af57a7e064f7d5df5cd090f13f444d55 | 89e8b79a49da8a8b7fba976a49059802c11569be | refs/heads/master | 2020-04-20T11:00:37.477936 | 2019-04-18T14:50:25 | 2019-04-18T14:53:22 | 168,804,604 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,910 | swift | //
// AddLocationViewController.swift
// OnTheMap3
//
// Created by Raghad Mah on 09/01/2019.
// Copyright © 2019 Udacity. All rights reserved.
//
import UIKit
import MapKit
class FindLocationViewController: UIViewController {
@IBOutlet weak var locationTextField: UITextField!
@IBOutlet weak var urlTextField: UITextField!
var latitude: Double?
var longitude: Double?
func returnToRoot(){
DispatchQueue.main.async {
if let navController = self.navigationController {
navController.popToRootViewController(animated: true)
}
}
}
@IBAction func findLocationButton(_ sender: Any) {
guard let url = urlTextField.text else {return}
//checks if link begins with http://
if url.range(of: "http://") == nil {
Alert.alert(vc: self, message: "URL must contain http://")
}
else {
if locationTextField.text != "" && urlTextField.text != "" {
ActivityIndicator.startAI(view: self.view)
//create search request and start the search on locationTextField
let searchRequest = MKLocalSearch.Request()
searchRequest.naturalLanguageQuery = locationTextField.text
let activeSearch = MKLocalSearch(request: searchRequest)
//see if there is any error. Otherwise, shows the location
activeSearch.start{(response, error) in
if error != nil {
ActivityIndicator.stopAI()
Alert.alert(vc: self, message: "Location doesn't exist!")
}
else {
ActivityIndicator.stopAI()
self.latitude = response?.boundingRegion.center.latitude
self.longitude = response?.boundingRegion.center.longitude
self.performSegue(withIdentifier: "location", sender: nil)
}
}
}
else {
DispatchQueue.main.async {
Alert.alert(vc: self, message: "Enter your location and URL!")
}
}
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "location" {
let vc = segue.destination as! AddLocationViewController
//send data to addLocationViewController
vc.mapString = locationTextField.text
vc.mediaURL = urlTextField.text
vc.latitude = self.latitude
vc.longitude = self.longitude
}
}
}
| [
-1
] |
e0e073d2eb7c23d4e2c21a6079be5a2d7612b629 | 8c9ff61a56d300de87c18ce8e6e1fbf124a522cd | /MatchyTest01/TopBranchViewController.swift | cb560bd6db1890603b919d39096a963be5861c97 | [] | no_license | ka0ru19/MatchyTest01 | 126a09323295ed157ecdcd149d13446d82b37b08 | 7eae061c65d6c7e76a9b0de5a7dc4f5cf609500c | refs/heads/master | 2021-01-18T21:43:39.024305 | 2016-09-18T16:07:38 | 2016-09-18T16:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,457 | swift | //
// ViewController.swift
// MatchyTest01
//
// Created by 井上航 on 2016/08/25.
// Copyright © 2016年 Wataru Inoue. All rights reserved.
//
import UIKit
class TopBranchViewController: UIViewController {
var window: UIWindow? // StoryboardHelperで使う
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 onTappedUniv(sender: UIButton) {
// // 画面遷移
// let storyboard: UIStoryboard = UIStoryboard(name: "UnivUser-Main",bundle:nil)
// var nextVC: UITabBarController //UIViewController!
// nextVC = storyboard.instantiateViewControllerWithIdentifier("UnivStoryBoardTop") as! UITabBarController
// self.presentViewController(nextVC, animated: true, completion: nil)
// }
//
// @IBAction func onTappedHiSch(sender: UIButton) {
// // 画面遷移
// let storyboard: UIStoryboard = UIStoryboard(name: "HighSchUser-Main",bundle:nil)
// var nextVC: UITabBarController //UIViewController!
// nextVC = storyboard.instantiateViewControllerWithIdentifier("HighSchStoryBoardTop") as! UITabBarController
// self.presentViewController(nextVC, animated: true, completion: nil)
// }
}
| [
-1
] |
f09a2ac33419803f9127420025abebbed081eef1 | 0cd28d27ee9b4697cefa0ba1a5000dd80edae596 | /Pod/Classes/VCStepper.swift | 4f38cc7eeb76f1736f3ecbac20df898db6e32d5f | [
"MIT"
] | permissive | vicino/VCStepper | f4a69cd8f21fe8e3b10de37b9d6f7259f4732c2c | 682ae0d224c4443a2bfe4e13afca1b306821fbbe | refs/heads/master | 2021-01-10T02:11:21.904920 | 2016-02-12T02:05:53 | 2016-02-12T02:05:53 | 49,306,007 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 8,464 | swift | //
// VCStepper.swift
// VCStepper
//
// Created by Craig Barreras on 1/2/16.
// Copyright © 2016 Vicino. All rights reserved.
//
import UIKit
struct Observer<T> {
let failed: ((NSError) -> ())?
let completed: (() -> ())?
let sendNext: ((T) -> ())?
}
struct SignalProducer<T> {
let start: (Observer<T>) -> ()
}
protocol VCStepperDelegate {
func stepper(stepper: VCStepper, shouldChangeValue newValue: Double) -> SignalProducer<Bool>
}
enum VCStepperButtonType {
case Plus, Minus
}
public class VCStepper: UIControl {
private var minusButton: VCStepperButton!
private var plusButton: VCStepperButton!
private var label: UILabel!
var delegate: VCStepperDelegate?
// Set this to true if you want the label to be truncated as an Int on the label
var truncateValue = false {
didSet {
if truncateValue {
label.text = String(Int(value))
} else {
label.text = String(_value)
}
}
}
private var _value: Double = 0 {
didSet {
if truncateValue {
label.text = String(Int(value))
} else {
label.text = String(_value)
}
if _value == minimumValue {
minusButton.enabled = false
} else {
minusButton.enabled = true
}
if _value == maximumValue {
plusButton.enabled = false
} else {
plusButton.enabled = true
}
}
}
public var value: Double {
get {
return _value
}
set {
if let minimum = minimumValue where newValue < minimum {
return
}
if let maximum = maximumValue where newValue > maximum {
return
}
_value = newValue
sendActionsForControlEvents(.ValueChanged)
}
}
var color: UIColor = UIColor.redColor() {
didSet {
setNeedsDisplay()
minusButton.color = color
minusButton.setNeedsDisplay()
plusButton.color = color
plusButton.setNeedsDisplay()
}
}
private var _initialValue: Double = 1
var initialValue: Double {
get {
return _initialValue
}
set {
if let minimum = minimumValue where newValue < minimum {
print("Attempting to set an initial value greater than the maximum value")
return
}
if let maximum = maximumValue where newValue > maximum {
print("Attempting to set an initial value less than the minimum value")
return
}
_initialValue = newValue
}
}
var minimumValue: Double? {
didSet {
if let minimum = minimumValue where value < minimum {
_value = minimum
}
}
}
var maximumValue: Double? {
didSet {
if let maximum = maximumValue where value > maximum {
_value = maximum
}
}
}
var incrementalValue: Double = 1 {
willSet {
if newValue <= 0 {
NSException(name: NSInvalidArgumentException, reason: "The VCStepper incremental value must be greater than 0", userInfo: nil).raise()
}
}
}
override public func drawRect(rect: CGRect) {
layer.masksToBounds = true
layer.cornerRadius = 5
layer.borderColor = color.CGColor
layer.borderWidth = 1.5
}
override init(frame: CGRect) {
super.init(frame: frame)
commonInit()
backgroundColor = UIColor.clearColor()
}
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
commonInit()
}
private func commonInit() {
// minus button
minusButton = VCStepperButton(stepperButtonType: .Minus)
minusButton.addTarget(self, action: Selector("didTapStepperButton:"), forControlEvents: .TouchUpInside)
minusButton.translatesAutoresizingMaskIntoConstraints = false
minusButton.setContentHuggingPriority(750, forAxis: .Horizontal)
// plus button
plusButton = VCStepperButton(stepperButtonType: .Plus)
plusButton.addTarget(self, action: Selector("didTapStepperButton:"), forControlEvents: .TouchUpInside)
plusButton.translatesAutoresizingMaskIntoConstraints = false
plusButton.setContentHuggingPriority(750, forAxis: .Horizontal)
// label
label = UILabel(frame: CGRectZero)
label.translatesAutoresizingMaskIntoConstraints = false
label.setContentHuggingPriority(749, forAxis: .Horizontal)
label.textAlignment = .Center
if truncateValue {
label.text = String(Int(value))
} else {
label.text = String(_value)
}
label.font = UIFont.systemFontOfSize(15)
label.textColor = color
let stackView = UIStackView(arrangedSubviews: [minusButton, label, plusButton])
stackView.translatesAutoresizingMaskIntoConstraints = false
stackView.distribution = .FillEqually
addSubview(stackView)
let views = ["stack" : stackView]
let horizontalConstraints = NSLayoutConstraint.constraintsWithVisualFormat("H:|[stack]|", options: .DirectionLeadingToTrailing, metrics: nil, views: views)
let verticalConstraints = NSLayoutConstraint.constraintsWithVisualFormat("V:|[stack]|", options: .DirectionLeadingToTrailing, metrics: nil, views: views)
addConstraints(horizontalConstraints)
addConstraints(verticalConstraints)
}
@objc private func didTapStepperButton(sender: VCStepperButton) {
let newValue: Double
switch sender.stepperButtonType {
case .Minus:
if value == minimumValue {
return
}
newValue = value - incrementalValue
case .Plus:
if value == maximumValue {
return
}
newValue = value + incrementalValue
}
// if the delegate supplies a signal producer for shouldChangeValue:, then we use that here
if let signalProducer = delegate?.stepper(self, shouldChangeValue: newValue) {
let observer = Observer<Bool>(failed: nil, completed: nil) { (nextValue) -> () in
if nextValue {
self.value = newValue
}
}
signalProducer.start(observer)
return
}
// otherwise, we just go ahead and set the new value
self.value = newValue
}
}
private class VCStepperButton: UIButton {
var color = UIColor.redColor()
var disabledColor = UIColor(red: 255, green: 0, blue: 0, alpha: 0.7)
private var stepperButtonType: VCStepperButtonType
init(stepperButtonType: VCStepperButtonType) {
self.stepperButtonType = stepperButtonType
super.init(frame: CGRectZero)
switch stepperButtonType {
case .Minus:
setTitle("-", forState: .Normal)
case .Plus:
setTitle("+", forState: .Normal)
}
setTitleColor(color, forState: .Normal)
setTitleColor(disabledColor, forState: .Disabled)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private override func drawRect(rect: CGRect) {
super.drawRect(rect)
switch stepperButtonType {
case .Minus:
addRightBorderWithRect(rect)
case .Plus:
addLeftBorderWithRect(rect)
}
}
private func addLeftBorderWithRect(rect: CGRect) {
let layer = CALayer()
layer.frame = CGRectMake(0, 0, 1.5, rect.height)
layer.backgroundColor = color.CGColor
self.layer.addSublayer(layer)
}
private func addRightBorderWithRect(rect: CGRect) {
let layer = CALayer()
layer.frame = CGRectMake(rect.width - 1.5, 0, 1.5, rect.height)
layer.backgroundColor = color.CGColor
self.layer.addSublayer(layer)
}
}
| [
-1
] |
372b61db0b4c05b7a2567cc78490774c9299e3e2 | a51b815ad0a23c0319f8693194a4c342c130d1ce | /GitHubList/Extensions.swift | e9c9873470e5f10550f4af06d84e544e9ace943d | [] | no_license | Edimax98/GitHubList | f8008b18e27fdf992d7769653f45e0db0d19a85d | 535873bb0099e59812202f3ca33bf8efbae7bd76 | refs/heads/master | 2020-03-23T20:23:26.105598 | 2018-07-23T22:50:14 | 2018-07-23T22:50:14 | 142,038,292 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,128 | swift | //
// Extensions.swift
// GitHubList
//
// Created by Даниил Смирнов on 23.07.2018.
// Copyright © 2018 Даниил Смирнов. All rights reserved.
//
import UIKit
extension UIAlertController {
static func createLoadingAlertController(title: String?, message: String, preferredStyle: UIAlertControllerStyle) -> UIAlertController {
let alert = UIAlertController(title: title, message: message, preferredStyle: preferredStyle)
alert.view.tintColor = UIColor.black
let spinner = UIActivityIndicatorView(frame: CGRect(x: 10, y: 5, width: 50, height: 50)) as UIActivityIndicatorView
spinner.hidesWhenStopped = true
spinner.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.gray
spinner.startAnimating()
alert.view.addSubview(spinner)
return alert
}
}
extension UIViewController {
func showWarningAlert(with title: String) {
let alert = UIAlertController(title: title, message: nil, preferredStyle: .alert)
let okAction = UIAlertAction(title: "Ok", style: .default, handler: nil)
alert.addAction(okAction)
present(alert, animated: true, completion: nil)
}
}
| [
-1
] |
056f57c6be8605d2ddb5f2dc28ce762b19803574 | 0f94586bb229cd15367d4e6622f32957e5321ecf | /Pokemons Info Test/AppDelegate.swift | 75ad36c390e01c94eef6f6f5d069dee90017be13 | [] | no_license | v-slobodianiuk/Pokemons-Info-Test | b54dd4d86930231d5434ec46ffbda59867c87cf0 | e3f32194ce4c85559b34994d46b32b28f2e16d97 | refs/heads/master | 2022-12-12T16:09:52.285339 | 2020-08-26T10:40:19 | 2020-08-26T10:40:19 | 290,455,214 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 976 | swift | //
// AppDelegate.swift
// Pokemons Info Test
//
// Created by Vadym on 25.08.2020.
// Copyright © 2020 Vadym. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
setupWindow()
return true
}
func setupWindow() {
let navController = UINavigationController()
let assemblyBuilder = AssemblyModelBuilder()
let router = Router(navConroller: navController, assemblyBuilder: assemblyBuilder)
router.initialVC()
let window = UIWindow(frame: UIScreen.main.bounds)
window.rootViewController = navController
window.makeKeyAndVisible()
self.window = window
}
}
| [
-1
] |
ca5769f80391dd8a766d008951c186766cf3d5a9 | 811de0500376bdf10e8599f1ef8b47b9db0e08b6 | /ExponeaSDK/ExponeaSDK/Classes/Push Notifications/PushNotificationParser.swift | 6a293bfcb5641d34439dcaf9b53503ca77b83f22 | [
"MIT",
"Apache-2.0"
] | permissive | anonymcek/exponea-ios-sdk | de0104ee7361fc792169d75c6da77f7d68e2d8e3 | 3b3e0aaa18935d09ccdb6f3fc33900534e990b0e | refs/heads/master | 2020-08-09T00:28:44.644898 | 2020-07-20T10:41:12 | 2020-07-20T12:16:10 | 213,957,983 | 0 | 0 | MIT | 2019-10-09T15:41:36 | 2019-10-09T15:41:36 | null | UTF-8 | Swift | false | false | 4,895 | swift | //
// PushNotificationParser.swift
// ExponeaSDK
//
// Created by Panaxeo on 23/10/2019.
// Copyright © 2019 Exponea. All rights reserved.
//
import Foundation
import UserNotifications
struct PushNotificationParser {
struct PushOpenedData: Equatable {
let silent: Bool
let campaignData: CampaignData
let actionType: ExponeaNotificationActionType
let actionValue: String?
let eventType: EventType
let eventData: [DataType]
let extraData: [String: Any]?
static func == (
lhs: PushNotificationParser.PushOpenedData,
rhs: PushNotificationParser.PushOpenedData
) -> Bool {
guard lhs.silent == rhs.silent &&
lhs.campaignData == rhs.campaignData &&
lhs.actionType == rhs.actionType &&
lhs.actionValue == rhs.actionValue &&
lhs.eventData == rhs.eventData else {
return false
}
if lhs.extraData == nil && rhs.extraData == nil {
return true
}
if let lhsExtraData = lhs.extraData, let rhsExtraData = rhs.extraData {
return NSDictionary(dictionary: lhsExtraData).isEqual(to: rhsExtraData)
} else {
return false
}
}
}
static let decoder: JSONDecoder = JSONDecoder.snakeCase
static func parsePushOpened(userInfoObject: AnyObject?, actionIdentifier: String?) -> PushOpenedData? {
guard let userInfo = userInfoObject as? [String: Any] else {
Exponea.logger.log(.error, message: "Failed to convert push payload.")
return nil
}
let silent = userInfo["silent"] as? Int == 1
var eventData: [DataType] = []
var eventType = silent ? EventType.pushDelivered : EventType.pushOpened
var properties: [String: JSONValue] = [
"status": .string(silent ? "delivered" : "clicked"),
"cta": .string("notification"),
"url": .string("app")
]
let notificationData = NotificationData.deserialize(
attributes: userInfo["attributes"] as? [String: Any] ?? [:],
campaignData: userInfo["url_params"] as? [String: Any] ?? [:]
) ?? NotificationData()
properties.merge(notificationData.properties) { (current, _) in current }
if let customEventType = notificationData.eventType,
!customEventType.isEmpty,
customEventType != Constants.EventTypes.pushOpen {
eventType = .customEvent
eventData.append(.eventType(customEventType))
}
// Handle actions
let action: ExponeaNotificationActionType
let actionValue: String?
// If we have action identifier then a button was pressed
if let identifier = actionIdentifier, identifier != UNNotificationDefaultActionIdentifier {
// Fetch action (only a value if a custom button was pressed)
// Format of action id should look like - EXPONEA_APP_OPEN_ACTION_0
// We need to get the right index and fetch the correct action url from payload, if any
let indexString = identifier.components(separatedBy: "_").last
if let indexString = indexString, let index = Int(indexString),
let actions = userInfo["actions"] as? [[String: String]], actions.count > index {
let actionDict = actions[index]
action = ExponeaNotificationActionType(rawValue: actionDict["action"] ?? "") ?? .none
actionValue = actionDict["url"]
// Track the notification action title
if let name = actionDict["title"] {
properties["cta"] = .string(name)
}
} else {
action = .none
actionValue = nil
}
} else {
// Fetch notification action (on tap of notification)
let notificationActionString = (userInfo["action"] as? String ?? "")
action = ExponeaNotificationActionType(rawValue: notificationActionString) ?? .none
actionValue = userInfo["url"] as? String
}
switch action {
case .none, .openApp, .selfCheck:
break
case .browser, .deeplink:
if let value = actionValue, URL(string: value) != nil {
properties["url"] = .string(value)
}
}
eventData.append(.properties(properties))
return PushOpenedData(
silent: silent,
campaignData: notificationData.campaignData,
actionType: action,
actionValue: actionValue,
eventType: eventType,
eventData: eventData,
extraData: userInfo["attributes"] as? [String: Any]
)
}
}
| [
-1
] |
91ba7136e527d51fea1c1f14813db7ad09d4223d | fd5e3eaea4f3c99b7a2c03653e1f9fb6914067bc | /Sources/CountableRange+Extensions.swift | 724e63ed245d8f515f5ab5622f1bcab105604ce6 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | siuying/Forest | 2d80027ee9b9b09deccb190e2aeeb6165e5cffe1 | 3e8174e674152d0a9c5bc6b853031834f7710c84 | refs/heads/master | 2022-07-04T22:33:03.243586 | 2020-05-23T08:38:30 | 2020-05-23T08:38:30 | 265,995,407 | 0 | 0 | NOASSERTION | 2020-05-22T02:01:50 | 2020-05-22T02:01:49 | null | UTF-8 | Swift | false | false | 595 | swift | //
// CountableRange.swift
// Forest
//
// Created by Vincent Esche on 9/10/15.
// Copyright © 2015 Vincent Esche. All rights reserved.
//
extension CountableRange {
func bisect() -> (CountableRange, Index, CountableRange)? {
let count = self.distance(from: self.startIndex, to: self.endIndex)
if count < 1 {
return nil
}
let index = self.index(self.startIndex, offsetBy: count / 2)
let lower = self.startIndex..<index
let upper = (self.index(index, offsetBy: 1))..<self.endIndex
return (lower, index, upper)
}
}
| [
-1
] |
08040d2e35283394d48c984cb726df373519a2ed | 3fe34d954499c66ad8eddc7398d31059dcd6e4e4 | /ObjcCNCalculatorDataBinding/Calculator/CalculatorModel.swift | bfd16b5b6dc46453f1c8da96b32f7a216084f0ca | [] | no_license | jeff-test-ios/onevcat_study | 3828ab583029469e92a8977b919f7265f45d0951 | 04d5603ec79befe7f7653b6138c961f7ce7d7bf1 | refs/heads/master | 2020-09-12T08:05:47.708803 | 2020-05-13T07:58:01 | 2020-05-13T07:58:01 | 222,362,967 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,128 | swift | import Foundation
import Combine
class CalculatorModel: ObservableObject {
@Published var brain: CalculatorBrain = .left("0")
@Published var history: [CalculatorButtonItem] = []
var historyDetail: String {
history.map { $0.description }.joined()
}
var temporaryKept: [CalculatorButtonItem] = []
var totalCount: Int {
history.count + temporaryKept.count
}
var slidingIndex: Float = 0 {
didSet {
keepHistory(upTo: Int(slidingIndex))
}
}
func apply(_ item: CalculatorButtonItem) {
brain = brain.apply(item: item)
history.append(item)
temporaryKept.removeAll()
slidingIndex = Float(totalCount)
}
func keepHistory(upTo index: Int) {
precondition(index <= totalCount, "Out of index.")
let total = history + temporaryKept
history = Array(total[..<index])
temporaryKept = Array(total[index...])
brain = history.reduce(CalculatorBrain.left("0")) { result, item in
result.apply(item: item)
}
}
}
| [
-1
] |
701d2f720bd0a0f71dc3df53fe5491a7525fbcc5 | 2bfbab742b3698245bdd8866bf90bb34fd75871e | /Cards/Model/Game.swift | 8a3f18a150fc2a4c1e82c1f0a46af8f21ccde07a | [] | no_license | nerzul88/FlipTwoCards | 06f2c055e51f6a1f1b9bbcbd5d4a979ba59993b0 | 5da7eceffa46a23344321eba1e055709bdf9a9a5 | refs/heads/main | 2023-07-27T23:56:10.142197 | 2021-09-13T16:00:36 | 2021-09-13T16:00:36 | 406,037,489 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,007 | swift | //
// Game.swift
// Cards
//
// Created by Александр Касьянов on 06.09.2021.
//
import Foundation
import UIKit
class Game {
//количество пар уникальных карточек
var cardsCount = 0
//массив сгенерированных карточек
var cards = [Card]()
//генерация массива случайных карт
func generateCards() {
//генерируем новый массив карточек
var cards = [Card]()
for _ in 0...cardsCount {
let randomElement = (type: CardType.allCases.randomElement()!, color: CardColor.allCases.randomElement()!)
cards.append(randomElement)
}
self.cards = cards
}
//проверка эквивалентности карточек
func checkCards (_ firstCard: Card, _ secondCard: Card) -> Bool {
if firstCard == secondCard {
return true
}
return false
}
}
| [
-1
] |
16a228c3ed6712060e1408b543b5050dc7398a94 | faa2389e300b13a44221c558b779a6010662699e | /DopaAppTask/Models/BrandModel.swift | 8dab3b97eff80210e0bc2d7a5c1c157e28db84b8 | [] | no_license | elbutchma/DopaAppTask | 2cfca403b8e9cb1a4fefd552ced5b845436b7543 | 4c6bcc7910f08695f80f701e762eb4f30faae19e | refs/heads/master | 2021-01-16T18:47:32.423407 | 2017-08-15T20:56:08 | 2017-08-15T20:56:08 | 100,115,876 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 485 | swift | //
// BrandModel.swift
// DopaAppTask
//
// Created by Mostafa Elbutch on 8/12/17.
// Copyright © 2017 Mostafa Elbutch. All rights reserved.
//
import UIKit
import ObjectMapper
class BrandModel: Mappable {
var brandId : Int?
var brandLogo : String?
var brandName : String?
required init?(map: Map) {
}
func mapping(map: Map) {
brandId <- map["id"]
brandLogo <- map["logo"]
brandName <- map["name"]
}
}
| [
-1
] |
7b05e233319f221e25841f897db839ef74a4b18b | 186ce96ab628e0b89e0aae03263ded67af6da673 | /Tests/LeftPad/LeftPadTests.swift | d3132542eb0f7a48414796a1e3ae58b35f4f3e5d | [
"MIT"
] | permissive | armcknight/leftpad.swift | c44a48002d3cbfc2880245b9b35d264f1449a885 | d7c3f28a885f1c28609d0947c1670c9dc61f8c9a | refs/heads/master | 2021-05-04T10:52:04.633006 | 2020-10-05T22:43:11 | 2020-10-05T22:45:12 | 54,848,885 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,005 | swift | //
// LeftPadTests.swift
// LeftPadTests
//
// Created by Andrew McKnight on 3/27/16.
// Copyright © 2016 Two Ring Software. All rights reserved.
//
import XCTest
import LeftPad
class LeftPadTests: XCTestCase {
func testLeftPadAllDefaults() {
for (input, expectedOutput) in [
"abc" : " abc",
"abcdefghijk" : "abcdefghijk"
] {
let computedOutput = input.leftPad(toWidth: 10)
XCTAssert(computedOutput == expectedOutput, "expected \(expectedOutput) but got \(computedOutput)")
}
}
func testLeftPadAlternatePadString() {
for (input, expectedOutput) in [
"abc" : "%%%%%%%abc",
"abcdefghijk" : "abcdefghijk"
] {
let computedOutput = input.leftPad(toWidth: 10, withString: "%")
XCTAssert(computedOutput == expectedOutput, "expected \(expectedOutput) but got \(computedOutput)")
}
}
}
| [
-1
] |
f3b2fcdae5919bf88132753f18265da9c6a542bc | 0cc1438ab89e46dc0e69c502829e49948099c860 | /SwiftyStyleTests/SwiftyStyleTests.swift | d74f0b6a6676cbcc33a31f6c1c36f18b74fa780e | [
"MIT"
] | permissive | ldstreet/SwiftyStyle | 4e9d12e758dbf336d3b1a8c4d43187a98303de73 | bd3763d2cd6a6c791437eee6eea6587e27d2d55a | refs/heads/master | 2021-05-07T18:05:56.099177 | 2018-08-18T00:04:08 | 2018-08-18T00:04:08 | 108,779,742 | 0 | 0 | MIT | 2018-08-18T00:04:09 | 2017-10-29T23:22:21 | Swift | UTF-8 | Swift | false | false | 250 | swift | //
// SwiftyStyleTests.swift
// SwiftyStyleTests
//
// Created by Luke Street on 10/29/17.
// Copyright © 2017 com.ldstreet. All rights reserved.
//
import XCTest
import UIKit
@testable import SwiftyStyle
class SwiftyStyleTests: XCTestCase {}
| [
-1
] |
329b9c3df52ae8e3cb285e0b63db5a5f9126d6c4 | ddabe433a7428128078888b058eb4cae675e4111 | /RXSwiftDemo/AppDelegate.swift | 20482b8dcab2e0af7ba5fd19f74be9558460e35c | [] | no_license | pwnSmithers/RXSwiftDemo | 226d4567d7e9d58cbfa24b3505877f2daf431bb7 | a05784bc39af6465492e5a5f7ed847d4be49dc38 | refs/heads/master | 2020-07-31T09:54:16.206567 | 2019-09-24T11:48:26 | 2019-09-24T11:48:26 | 210,566,580 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,415 | swift | //
// AppDelegate.swift
// RXSwiftDemo
//
// Created by Smithers on 24/09/2019.
// Copyright © 2019 Smithers. 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,
368752,
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,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
328206,
410128,
393747,
254490,
188958,
385570,
33316,
197159,
377383,
352821,
188987,
418363,
369223,
385609,
385616,
352856,
352864,
369253,
262760,
352874,
352887,
254587,
377472,
336512,
148105,
377484,
352918,
98968,
344744,
361129,
336555,
385713,
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,
262942,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
336711,
361288,
328522,
336714,
426841,
254812,
361309,
197468,
361315,
361322,
328573,
377729,
369542,
361360,
222128,
345035,
345043,
386003,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
336921,
386073,
336925,
345118,
377887,
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,
419517,
337599,
419527,
419530,
419535,
272081,
419542,
394966,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
370415,
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,
345964,
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,
395538,
387349,
338199,
387352,
182558,
338211,
395566,
248111,
362822,
436555,
190796,
321879,
379233,
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,
436962,
338660,
338664,
264941,
207619,
264964,
338700,
256786,
199452,
363293,
396066,
346916,
396069,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
355175,
387944,
355179,
330610,
330642,
355218,
412599,
207808,
379848,
396245,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
265214,
330760,
330768,
248862,
396328,
158761,
199728,
330800,
396339,
339001,
388154,
388161,
347205,
248904,
330826,
248914,
339036,
412764,
257120,
265320,
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,
437570,
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,
216707,
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,
257794,
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,
257916,
225148,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
372706,
356335,
380918,
405533,
430129,
217157,
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,
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,
266687,
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,
373449,
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,
209873,
340957,
431072,
398306,
340963,
209895,
201711,
349172,
381946,
349180,
439294,
431106,
209943,
250914,
357410,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210036,
210039,
341113,
349308,
210044,
349311,
152703,
160895,
210052,
349319,
210055,
210067,
210071,
210077,
210080,
251044,
210084,
185511,
210088,
210095,
210098,
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,
259421,
365921,
333154,
251235,
333162,
234866,
390516,
333175,
357755,
251271,
136590,
112020,
349590,
357792,
259515,
415166,
415185,
366034,
366038,
415191,
415193,
415196,
415199,
423392,
333284,
366056,
366061,
210420,
415224,
423423,
415257,
415263,
366117,
415270,
144939,
415278,
415281,
415285,
210487,
415290,
415293,
349761,
415300,
333386,
333399,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
333498,
210631,
333511,
358099,
153302,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
210695,
268041,
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,
375053,
268559,
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,
195039,
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,
367800,
384188,
384191,
351423,
326855,
244937,
384201,
253130,
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,
367965,
343393,
343398,
367980,
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,
327275,
245357,
138864,
155254,
155273,
368288,
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
] |
564325f60a3585af8f3d3a1ba26c65424d0fd651 | 35e469e407dfa5083afdb5a0c2b32603556a62fd | /RestaurantPages/RestaurantPages/PageCollectionViewCell.swift | f5edfbebc33c4f843914f364b6be5beb300dd358 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | trujunzhang/Anypic | f564a9c582f83e0918994a7a91a52eb0af9dcfd3 | 46d6305b775f5344d0ead4c7a6e8ff7cce6729af | refs/heads/master | 2021-01-16T21:54:36.885212 | 2015-06-06T02:26:23 | 2015-06-06T02:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 728 | swift | //
// PageCollectionViewCell.swift
// RestaurantPages
//
// Created by djzhang on 6/4/15.
// Copyright (c) 2015 djzhang. All rights reserved.
//
import UIKit
class PageCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var photoImageView: UIImageView!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
// self.titleLabel.font = UIFont.applicationUserTitleFont()
// self.detailLabel.font = UIFont.applicationUserDetailFont()
}
func configureCell(row:Int){
let name = "recipe0\(row).jpg"
let image:UIImage = UIImage(named: name)!
self.photoImageView.image = image
}
}
| [
-1
] |
6c3d801bcdf68ea7edd30ae8a3a409c6c38585bf | facc400ebf3a3238e258d0a8b1baf748a126a12d | /Payperless/PayperlessTests/PayperlessTests.swift | dd13f93bd2063034d3f8a8ef75178837d7f6559e | [] | no_license | veroborges/payperless_ios | 04445d277ad671a974677e3c8010b3bab7281769 | d12dae68174d1f1ee8de38812ee7674b263ae5e8 | refs/heads/master | 2021-01-09T07:04:38.935625 | 2014-11-06T19:02:13 | 2014-11-06T19:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 917 | swift | //
// PayperlessTests.swift
// PayperlessTests
//
// Created by Veronica Borges on 11/1/14.
// Copyright (c) 2014 Veronica Borges. All rights reserved.
//
import UIKit
import XCTest
class PayperlessTests: 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,
276489,
278541,
278544,
305179,
276509,
278558,
307231,
313375,
102437,
227370,
360491,
276534,
159807,
286788,
280649,
223316,
315476,
223318,
288857,
278618,
227417,
194653,
278624,
194656,
309345,
227428,
276581,
276582,
43109,
276585,
276589,
278638,
227439,
131189,
227446,
223350,
276606,
292992,
276613,
141450,
215178,
311435,
311438,
276627,
276631,
276632,
227492,
196773,
227495,
129203,
299187,
131256,
176314,
280762,
223419,
299198,
309444,
276682,
276684,
278742,
155867,
280802,
276709,
276715,
233715,
157944,
211193,
227576,
168188,
227585,
276737,
227592,
276744,
276753,
276760,
309529,
278810,
276764,
299293,
276774,
282919,
262450,
276787,
315706,
164162,
311621,
280902,
278856,
227658,
276813,
278862,
278863,
6481,
6482,
276821,
276822,
6489,
276831,
323935,
276835,
321894,
416104,
276847,
285040,
278898,
278908,
280961,
178571,
227725,
178578,
190871,
293274,
61857,
61859,
276900,
278951,
278954,
278961,
278965,
276919,
276920,
278969,
293303,
33211,
276925,
278978,
278985,
278993,
279002,
287198,
227809,
358882,
227813,
279013,
279019,
279022,
281072,
279039,
276998,
287241,
279050,
186893,
279054,
303631,
223767,
223769,
291358,
277029,
293419,
277048,
277066,
277083,
295519,
66150,
277094,
277101,
189037,
287346,
189042,
189043,
277111,
279164,
277118,
291454,
184962,
303746,
152203,
225933,
133774,
277133,
225936,
277142,
225943,
230040,
225944,
164512,
225956,
285353,
209581,
205487,
285361,
303793,
299699,
277172,
293556,
342706,
277175,
285371,
277190,
199366,
225997,
226001,
164563,
277204,
203477,
203478,
226004,
279252,
226007,
201442,
226019,
285415,
342762,
277227,
226035,
230134,
234234,
279294,
234238,
234241,
226051,
234245,
209670,
203529,
226058,
234250,
234253,
234256,
285463,
234263,
369432,
234268,
105246,
228129,
234277,
279336,
277289,
289576,
234283,
234280,
234286,
234289,
226097,
234294,
230199,
162621,
234301,
289598,
281408,
293693,
162626,
234304,
277316,
234305,
234311,
234312,
299849,
234317,
277325,
293711,
277327,
234323,
234326,
234331,
277339,
301918,
297822,
279392,
349026,
234340,
174949,
234343,
277354,
234346,
234355,
277366,
234360,
279417,
277370,
226170,
209785,
177019,
234361,
234366,
234367,
158593,
234372,
226181,
113542,
213894,
226184,
234377,
277381,
228234,
234381,
295824,
226194,
234386,
234387,
234392,
324507,
234395,
234400,
279456,
234404,
226214,
289703,
234409,
275371,
236461,
226223,
234419,
226227,
234425,
277435,
234427,
287677,
234430,
226241,
234436,
275397,
234438,
226249,
52172,
234444,
234445,
183248,
234450,
234451,
234454,
234457,
234463,
234466,
277479,
277480,
234472,
234473,
234477,
234482,
287731,
277492,
314355,
234492,
234495,
277505,
234498,
234500,
277509,
277510,
234503,
277513,
230410,
234506,
277517,
275469,
197647,
295953,
277523,
234517,
230423,
197657,
281625,
281626,
175132,
234530,
234531,
234534,
234539,
310317,
277550,
234542,
275505,
234548,
277563,
234555,
156733,
7230,
277566,
238651,
230463,
234560,
207938,
281666,
234565,
234569,
300111,
207953,
277585,
296018,
234577,
296019,
234583,
234584,
234594,
277603,
230499,
281700,
300135,
234603,
275565,
156785,
312434,
275571,
300151,
234616,
398457,
234622,
300158,
285828,
302213,
275590,
253063,
234632,
275591,
302217,
234642,
226451,
308372,
226452,
119963,
234652,
234656,
277665,
330913,
306338,
275620,
234659,
234663,
275625,
300201,
275628,
238769,
226481,
277686,
277690,
208058,
230588,
277694,
283840,
279747,
279760,
290000,
189652,
203989,
275671,
363744,
195811,
298212,
304356,
285929,
279792,
298228,
204022,
120055,
234742,
228600,
208124,
292107,
277792,
339234,
259363,
199971,
304421,
277800,
113962,
113966,
226608,
226609,
277809,
277814,
300343,
277815,
277821,
277824,
277825,
226624,
15686,
277831,
226632,
294218,
177484,
222541,
277838,
277841,
296273,
314709,
277845,
283991,
357719,
277852,
224606,
218462,
142689,
230756,
302438,
163175,
277862,
281962,
277868,
284014,
277871,
279919,
277878,
275831,
275832,
181625,
277882,
277883,
142716,
275839,
277891,
226694,
281992,
277896,
277900,
230799,
112017,
296338,
277907,
306579,
226711,
226712,
277911,
310692,
277925,
279974,
277927,
282024,
370091,
277936,
277939,
277940,
279989,
277943,
296375,
277946,
277952,
296387,
415171,
163269,
277957,
296391,
300487,
277962,
277965,
280013,
312782,
284116,
277974,
277977,
277980,
226781,
277983,
277988,
310757,
316902,
277993,
277994,
296425,
277997,
278002,
226805,
306677,
278005,
278008,
300542,
306693,
175625,
192010,
280077,
149007,
65041,
282136,
204313,
278056,
278060,
286254,
228917,
226875,
194110,
128583,
276040,
226888,
366154,
276045,
276046,
286288,
226897,
276050,
280147,
300630,
147036,
243292,
370271,
282213,
317032,
222832,
276085,
276092,
278140,
188031,
192131,
276100,
276101,
229001,
310923,
312972,
278160,
278162,
282259,
276116,
276120,
280220,
276126,
276129,
282273,
282276,
278191,
276146,
198324,
286388,
296628,
278214,
276173,
302797,
212688,
302802,
276179,
276180,
286423,
216795,
276195,
153319,
313065,
280300,
419569,
276210,
276219,
194303,
171776,
288512,
311042,
288516,
278285,
276238,
227091,
184086,
294678,
284442,
278299,
276253,
278316,
159533,
276279,
276282,
276283,
288574,
276287,
345919,
276294,
282438,
276298,
216918,
307031,
188246,
237408,
276325,
227177,
282474,
288619,
276344,
194429,
227199,
40850,
40853,
44952,
247712,
276385,
227238,
294823,
276394,
276400,
276401,
276408,
290746,
276413,
276421,
276422,
276430,
231375,
153554,
276444,
280541,
276450,
276451,
276454,
276459,
296941,
276463,
276468,
276469,
276475,
276478
] |
99da924d52fd9c961b394b53ff58f724ac74c297 | 84be60e43686cae62e3ad432b8d73a90c711848a | /DropProjectsGame/DropProjectsGame/FallingObjectBehavior.swift | 57585e7a10b35e2cfea5edc3cb96c444be0c1bf6 | [] | no_license | klbest1/FallingGame | 66cf0ce3c2b188daef9a1026b172fa45b9749df0 | 022bf29f01d27e37f9bb0f66b366ab52a1c1f88f | refs/heads/master | 2021-01-11T17:30:52.459545 | 2017-03-10T10:51:49 | 2017-03-10T10:51:49 | 79,796,237 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,824 | swift | //
// FallingObjectBehavior.swift
// DropProjectsGame
//
// Created by lin kang on 17/1/12.
// Copyright © 2017年 lin kang. All rights reserved.
//
import UIKit
let defaultYspeedItem:Float = 0.04
class FallingObjectBehavior: UIDynamicBehavior {
var ySpeed:Float = 1.0
let gravityBehavior:UIGravityBehavior = UIGravityBehavior();
let collisionBehavior:UICollisionBehavior = UICollisionBehavior()
let dynamicItemBehavior:UIDynamicItemBehavior = UIDynamicItemBehavior()
override init() {
super.init()
self.addChildBehavior(gravityBehavior)
self.addChildBehavior(collisionBehavior)
self.addChildBehavior(dynamicItemBehavior)
gravityBehavior.magnitude = 4;
gravityBehavior.gravityDirection = CGVector(dx: 0, dy:CGFloat(defaultYspeedItem*ySpeed))
// dynamicItemBehavior.allowsRotation = true
// dynamicItemBehavior.elasticity = 0.4
collisionBehavior.translatesReferenceBoundsIntoBoundary = true;
}
func addItems(items:[UIView]) {
for item in items{
gravityBehavior.addItem(item);
dynamicItemBehavior.addItem(item)
collisionBehavior.addItem(item)
}
}
func removeItems(items:[UIView]) {
for item in items{
gravityBehavior.removeItem(item);
dynamicItemBehavior.removeItem(item)
collisionBehavior.removeItem(item)
}
}
func addBundry(name:NSCopying , path:UIBezierPath) {
collisionBehavior.addBoundary(withIdentifier: name, for: path)
}
func removeBundry( ) {
collisionBehavior.removeAllBoundaries()
}
func setfallingSpeed(speed:Float) {
gravityBehavior.gravityDirection = CGVector(dx: 0, dy:CGFloat(defaultYspeedItem*speed))
}
}
| [
-1
] |
47b7530f7c5435fe22d18931bff4c95da4856411 | e5d7b607398d0ee352841eeedcb759afaa4435c1 | /autolayoutanimation/FlipInteractiveAnimationController.swift | 12b41d3487934b69567ffbc8f6ebb01034adb8c0 | [
"MIT"
] | permissive | ozgur/AutoLayoutAnimation | 86776b7f41abecde62a14bde4962a2153f9b15a8 | f08e26454e07fa7fba0f240b9b3efeb3bfe57a9e | refs/heads/master | 2021-01-10T05:22:03.346064 | 2017-04-15T00:08:49 | 2017-04-15T00:08:49 | 45,705,273 | 5 | 0 | null | 2015-12-07T02:12:48 | 2015-11-06T20:19:54 | Swift | UTF-8 | Swift | false | false | 1,464 | swift | //
// FlipInteractiveAnimationController.swift
// AutoLayoutAnimation
//
// Created by Ozgur Vatansever on 3/17/16.
// Copyright © 2016 Techshed. All rights reserved.
//
import UIKit
class FlipInteractiveAnimationController: UIPercentDrivenInteractiveTransition {
var inProgress: Bool = false
fileprivate var completesTransition: Bool = false
fileprivate weak var viewController: UIViewController!
func wireToViewController(_ viewController: UIViewController) {
self.viewController = viewController
let gestureRecognizer = UIScreenEdgePanGestureRecognizer(target: self, action: "handlePan:")
gestureRecognizer.edges = .left
viewController.view.addGestureRecognizer(gestureRecognizer)
}
func handlePan(_ gestureRecognizer: UIScreenEdgePanGestureRecognizer) {
let translation = gestureRecognizer.translation(in: gestureRecognizer.view!.superview!)
let progress = fminf(fmaxf(0, Float(translation.x / 200.0)), 1)
switch gestureRecognizer.state {
case .began:
inProgress = true
viewController.dismiss(animated: true, completion: nil)
case .changed:
completesTransition = progress > 0.5
self.update(CGFloat(progress))
case .cancelled:
inProgress = false
self.cancel()
case .ended:
inProgress = false
if completesTransition {
self.finish()
}
else {
self.cancel()
}
default:
return
}
}
}
| [
-1
] |
69e521b2e0b45b80cddcccc5f44763dc4680d6a6 | af83ce78b26e73a2f72f25445c207e65e50926d8 | /MBMobileSDK/MBMobileSDK/ViewController/Login/VerifyPinViewController.swift | c0fbc7b5f56971a0a0fe9b98642bb1c267d917d9 | [
"MIT"
] | permissive | aclima93/MBSDK-Mobile-iOS | 54e866ebc339de7b0597f4456374df1f846ec626 | 3f7ef59e9ad03572ab35cbd62874d99135d00625 | refs/heads/master | 2023-01-06T10:13:01.240789 | 2020-03-27T14:37:47 | 2020-03-30T09:13:23 | 310,548,816 | 0 | 0 | MIT | 2020-11-06T09:26:29 | 2020-11-06T09:18:48 | null | UTF-8 | Swift | false | false | 6,859 | swift | //
// Copyright (c) 2020 MBition GmbH. All rights reserved.
//
import UIKit
import MBCommonKit
import MBIngressKit
import MBNetworkKit
public enum PinVerifyCredentialType {
case mail(account: String)
case phone(number: String)
}
open class VerifyPinViewController: UIViewController, VerifyPinWorkflowHandling {
// MARK: IBOutlet
@IBOutlet private weak var tanHeadlineSubtitleView: MBHeadlineSubtitleView!
@IBOutlet private weak var noTanHeadlineSubtitleView: MBHeadlineSubtitleView!
@IBOutlet private weak var pinView: MBPinView!
@IBOutlet private weak var sendButton: MBPrimaryButton!
@IBOutlet private weak var retryButton: MBSecondaryButton!
@IBOutlet private weak var scrollView: UIScrollView!
// MARK: Properties
private var credential: String {
guard let credentialType = self.credentialType else {
return ""
}
switch credentialType {
case .mail(let credential),
.phone(let credential): return credential
}
}
private var observer: NSKeyValueObservation?
private var credentialType: PinVerifyCredentialType?
private weak var delegate: VerifyPinWorkflowHandling?
// MARK: - Instatiation
static func instantiate(verificationType: PinVerifyCredentialType) -> UIViewController {
let viewController = StoryboardScene.Login.verifyPinViewController.instantiate()
viewController.credentialType = verificationType
return viewController
}
// MARK: - Public
public func set(credentialType: PinVerifyCredentialType) {
self.credentialType = credentialType
}
// MARK: - View Lifecycle
deinit {
LOG.V()
self.observer = nil
}
open override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
self.title = L10n.Localizable.verificationTitle
self.setupAccessibility()
self.setupUI()
self.addKeyValueObserver()
}
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationController?.setNavigationBarHidden(false, animated: true)
self.mbEnableKeyboardHandler(scrollView: self.scrollView)
}
override open func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
self.mbDisableKeyboardHandler()
}
// MARK: - Setup
private func addKeyValueObserver() {
self.observer = self.pinView.observe(\.isPinInputComplete, options: [.initial, .new], changeHandler: { [weak self] (_, change) in
self?.sendButton.isEnabled = change.newValue ?? false
if change.newValue == true {
self?.processLogin(pin: self?.pinView.pin)
}
})
}
private func setupAccessibility() {
self.pinView.pinFieldAccessibilityIdentifier = L10n.IdentifierUI.verificationPinTextfield
self.sendButton.isAccessibilityElement = true
self.sendButton.accessibilityIdentifier = L10n.IdentifierUI.verificationBtnLogin
self.retryButton.isAccessibilityElement = true
self.retryButton.accessibilityIdentifier = L10n.IdentifierUI.verificationBtnSendAgain
}
private func setupUI() {
self.view.setBackgroundColor(.risGrey4)
guard let credentialType = self.credentialType else {
return
}
let bodyText: String = {
switch credentialType {
case .mail(let email): return L10n.Localizable.verificationLoginMsgUser(6, email)
case .phone(let phone): return L10n.Localizable.verificationLoginMsgUser(6, phone)
}
}()
let noTanBodyText: String = {
switch credentialType {
case .mail: return L10n.Localizable.verificationNotReceivedHintMail
case .phone: return L10n.Localizable.verificationNotReceivedHintPhone
}
}()
self.tanHeadlineSubtitleView.set(headline: L10n.Localizable.verificationHeadline, subtitle: bodyText)
self.noTanHeadlineSubtitleView.set(headline: L10n.Localizable.verificationNotReceived, subtitle: noTanBodyText)
self.sendButton.isEnabled = false
self.sendButton.setTitle(L10n.Localizable.verificationBtnNext, for: .normal)
self.retryButton.setTitle(L10n.Localizable.verificationBtnSendAgain, for: .normal)
self.configureButtons()
}
private func configureButtons() {
// send button action
self.sendButton.didTouchUpInside { [weak self] in
self?.processLogin(pin: self?.pinView.pin)
}
// retry
self.retryButton.didTouchUpInside { [weak self] in
self?.retryLogin()
}
}
// MARK: - Process Login
private func processLogin(pin: String?) {
guard let pin = pin,
self.credential.isEmpty == false else {
return
}
Notification.Name.willLogin.post()
self.sendButton.activate(state: .loading)
IngressKit.loginService.login(username: self.credential, pin: pin) { [weak self] (result) in
self?.sendButton.activate(state: .interactable)
switch result {
case .failure(let error): self?.handle(error: error)
case .success: self?.delegate?.handleSuccess()
}
}
}
// MARK: - Retry
private func retryLogin() {
guard self.credential.isEmpty == false else {
return
}
self.retryButton.activate(state: .loading)
IngressKit.userService.existUser(username: self.credential) { [weak self] (result) in
self?.retryButton.activate(state: .interactable)
switch result {
case .failure(let error): AlertHelper.showOK(from: self, type: .error(MBError(description: error.description, type: .unknown)))
case .success: AlertHelper.showOK(from: self, type: .hint(message: L10n.Localizable.verificationSendAgainMsg))
}
}
}
// MARK: - VerifyPinWorkflowHandling
open func handleSuccess() {
Notification.Name.didLogin.post()
}
func handle(error: MBError) {
if error.localizedDescription == nil {
AlertHelper.showOK(from: self, type: .default(title: L10n.Localizable.generalErrorTitle, message: L10n.Localizable.loginErrorAuthenticationFailed))
} else if error.localizedDescription == "invalid_grant" {
AlertHelper.showOK(from: self, type: .default(title: L10n.Localizable.generalErrorTitle, message: L10n.Localizable.loginErrorWrongTan))
} else {
AlertHelper.showOK(from: self, type: .error(error))
}
}
}
| [
-1
] |
7e5bd9c76ff2ebababf89f90074f6ab2acd13a5d | ee9a7c29b60efc2fa163df66705138a6e48d7866 | /textFieldCell/Extension/UILabelExtension.swift | 3a326c9f0548bc71110741b79800f70731625c46 | [] | no_license | zhangnianqq/Demos | 50b28b36f9ad52af0ce20d2fcd0a191fd90641a0 | 42325e31d875c56daa9bec9e14b29cb4912631fd | refs/heads/master | 2020-04-14T21:14:56.125242 | 2016-10-24T05:31:14 | 2016-10-24T05:31:14 | 68,086,585 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,571 | swift | //
// UILabelExtension.swift
// 类扩展
//
// Created by zhangnian on 16/3/10.
// Copyright © 2016年 zhangnian. All rights reserved.
//
import UIKit
extension UILabel {
/**
* 两端对齐
*/
func alignmentBothEnds() {
guard let textStr = self.text else{
return
}
let textSize = textStr.OCString.boundingRect(with: CGSize(width: self.frame.size.width, height:CGFloat(MAXFLOAT)), options: [NSStringDrawingOptions.usesLineFragmentOrigin,NSStringDrawingOptions.truncatesLastVisibleLine,NSStringDrawingOptions.usesFontLeading], attributes: [NSFontAttributeName:self.font], context: nil).size
let margin = (self.frame.size.width-textSize.width)/CGFloat((textStr.length-1))
let number = NSNumber.init(floatLiteral: Double(margin))
let attributeString = NSMutableAttributedString(string: textStr)
attributeString.addAttribute(kCTKernAttributeName as String, value: number, range: NSRange.init(location: 0, length: textStr.length-1))
self.attributedText = attributeString;
}
//快速创建
class func createLabel(frame:CGRect, text:String, textColor:UIColor ,font:CGFloat?)->UILabel {
let label: UILabel = UILabel(frame: frame)
label.text = text;
label.numberOfLines = 0;
label.textColor = textColor;
//行数字体 按照大小进行自适应
label.adjustsFontSizeToFitWidth = true
//对齐方式
label.textAlignment = NSTextAlignment.left
//单词折行
if font != nil {
label.font = UIFont.systemFont(ofSize: font!)
}
return label
}
/**
一个label需要多个字体多个颜色时
- parameter strArr: 字符串数组
- parameter colorArr: 颜色数组
- parameter fontArr: 字体大小数组
*/
func numberStrColol(strArr:[String], colorArr:[UIColor],fontArr:[CGFloat]) {
var overall = ""
for i in 0 ..< strArr.count {
overall += strArr[i]
}
let str = NSMutableAttributedString(string: overall)
//设置颜色 字体
var loc = 0
for i in 0 ..< strArr.count {
str.addAttribute(NSForegroundColorAttributeName, value: colorArr[i], range: NSRange.init(location: loc, length: strArr[i].length))
str.addAttribute(NSFontAttributeName, value:UIFont.systemFont(ofSize: fontArr[i]), range: NSRange.init(location:loc,length:strArr[i].length))
loc = loc + strArr[i].length
}
self.attributedText = str
}
}
extension UITextView {
/**
一个label需要多个字体多个颜色时
- parameter strArr: 字符串数组
- parameter colorArr: 颜色数组
- parameter fontArr: 字体大小数组
*/
func numberStrColol(strArr:[String], colorArr:[UIColor],fontArr:[CGFloat]) {
var overall = ""
for i in 0 ..< strArr.count {
overall += strArr[i]
}
let str = NSMutableAttributedString(string: overall)
//设置颜色 字体
var loc = 0
for i in 0 ..< strArr.count {
str.addAttribute(NSForegroundColorAttributeName, value: colorArr[i], range: NSRange.init(location: loc, length: strArr[i].length))
str.addAttribute(NSFontAttributeName, value:UIFont.systemFont(ofSize: fontArr[i]), range: NSRange.init(location:loc,length:strArr[i].length))
loc = loc + strArr[i].length
}
self.attributedText = str
}
}
| [
-1
] |
5ef905d7f3866b7680edd6cab9679d56586ee8ca | b31eeed27e74e9fec91f3eeb13b55d0c2aefb4c2 | /CustomView.swift | dd7405939f13d4eca31fa6ed6fcec3f3c7e48b73 | [] | no_license | isthateric/DigitalClock | 24fc5e069c9d39c2d17b32c364288f7a838a9cbb | 3b31e6ed5b3b07bad205afc10cf1beee321a26fb | refs/heads/master | 2020-04-02T11:34:36.961438 | 2018-10-24T19:38:59 | 2018-10-24T19:38:59 | 154,396,202 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 4,410 | swift | //
// CustomView.swift
// Digital Clock
//
// Created by Eric Fuentes on 9/25/18.
// Copyright © 2018 Eric Fuentes. All rights reserved.
//
import Foundation
import UIKit
@IBDesignable
class CustomView: UIView {
@IBOutlet weak var Top1: UIView!
@IBOutlet weak var TopRight1: UIView!
@IBOutlet weak var TopLeft1: UIView!
@IBOutlet weak var Middle1: UIView!
@IBOutlet weak var BottomLeft1: UIView!
@IBOutlet weak var BottomRight1: UIView!
@IBOutlet weak var Bottom1: UIView!
let greenC = "colorGreen"
let defaults = UserDefaults.standard
override func awakeFromNib() {
super.awakeFromNib()
loadViewFromNib()
}
func loadViewFromNib() {
let nibName = "CustomView"
let bundle = Bundle(for: type(of: self))
let nib = UINib(nibName: nibName, bundle: bundle)
let v = nib.instantiate(
withOwner: self,
options: nil).first as? UIView
print(self.bounds)
v?.frame = self.bounds
addSubview(v!)
}
override func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
loadViewFromNib()
}
func show(no: Int) {
// print("show \(no)")
if no == 1 {
Top1.alpha = 0.0
TopLeft1.alpha = 0.0
TopRight1.alpha = 1.0
Middle1.alpha = 0.0
BottomLeft1.alpha = 0.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 0.0
}
if no == 2 {
Top1.alpha = 1.0
TopLeft1.alpha = 0.0
TopRight1.alpha = 1.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 1.0
BottomRight1.alpha = 0.0
Bottom1.alpha = 1.0
}
if no == 3{
Top1.alpha = 1.0
TopLeft1.alpha = 0.0
TopRight1.alpha = 1.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 0.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 1.0
}
if no == 4{
Top1.alpha = 0.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 1.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 0.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 0.0
}
if no == 5{
Top1.alpha = 1.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 0.0
Middle1.alpha = 1.0
BottomRight1.alpha = 1.0
BottomLeft1.alpha = 0.0
Bottom1.alpha = 1.0
}
if no == 6{
Top1.alpha = 1.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 0.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 1.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 1.0
}
if no == 7{
Top1.alpha = 1.0
TopRight1.alpha = 1.0
TopLeft1.alpha = 0.0
Middle1.alpha = 0.0
BottomRight1.alpha = 1.0
BottomLeft1.alpha = 0.0
Bottom1.alpha = 0.0
}
if no == 8{
Top1.alpha = 1.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 1.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 1.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 1.0
}
if no == 9{
Top1.alpha = 1.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 1.0
Middle1.alpha = 1.0
BottomLeft1.alpha = 0.0
BottomRight1.alpha = 1.0
Bottom1.alpha = 0.0
}
if no == 0{
Top1.alpha = 1.0
TopLeft1.alpha = 1.0
TopRight1.alpha = 1.0
Middle1.alpha = 0.0
BottomRight1.alpha = 1.0
BottomLeft1.alpha = 1.0
Bottom1.alpha = 1.0
}
}
func changeColor(_ color: UIColor){
Top1.backgroundColor = color
TopLeft1.backgroundColor = color
TopRight1.backgroundColor = color
Middle1.backgroundColor = color
BottomLeft1.backgroundColor = color
BottomRight1.backgroundColor = color
Bottom1.backgroundColor = color
defaults.set(true, forKey: greenC)
}
}
| [
-1
] |
4e83bdbaa076114e98d5fb0a221a4fa8ebd5e980 | 18ef60723a127b0a515b0fda1bc2f8117a515ab0 | /Sliding Cards/AppDelegate.swift | 8802bf734bee21ba21566d69e98d98e8b36314b4 | [] | no_license | charlesmartinreed/Sliding-Cards | 30273c31a8ed7f470e1352b91618263773bb04c0 | 182db25ecf342ce26d2ed758754198157dfd2dfc | refs/heads/master | 2020-04-12T13:46:57.438351 | 2018-12-20T05:51:05 | 2018-12-20T05:51:05 | 162,531,341 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,195 | swift | //
// AppDelegate.swift
// Sliding Cards
//
// Created by Charles Martin Reed on 12/19/18.
// Copyright © 2018 Charles Martin Reed. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
| [
229380,
229383,
229385,
278539,
294924,
229388,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
204856,
229432,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
295110,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
303347,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
320007,
287238,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
213575,
172618,
303690,
33357,
287309,
303696,
279124,
172634,
262752,
254563,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
311942,
303751,
287365,
352905,
311946,
279178,
287371,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
287390,
303773,
172705,
287394,
172707,
303780,
164509,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
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,
279438,
189325,
189329,
295825,
304019,
189331,
213902,
58262,
304023,
304027,
279452,
234648,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
295873,
213963,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
197663,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
132165,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
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,
337335,
288185,
279991,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
148946,
288214,
239064,
329177,
288217,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
296446,
321022,
402942,
148990,
296450,
206336,
230916,
230919,
214535,
230923,
304651,
304653,
370187,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
370279,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
419489,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
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,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313171,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
288909,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
379218,
280919,
248153,
215387,
354653,
354656,
313700,
313705,
280937,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
330244,
281095,
223752,
150025,
338440,
240132,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
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,
142226,
289687,
240535,
224151,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
380226,
298306,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
306555,
298365,
290174,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
306694,
192008,
323084,
257550,
282127,
290321,
282130,
323090,
290325,
282133,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
28219,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
196133,
282295,
323260,
282300,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
298822,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
298901,
44948,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
241821,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
184503,
176311,
299191,
307386,
258235,
307388,
307385,
307390,
176316,
299200,
184512,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
323854,
291089,
282906,
291104,
233766,
295583,
176435,
307508,
315701,
332086,
307510,
307512,
168245,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
194654,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127429,
127431,
127434,
315856,
176592,
127440,
315860,
176597,
283095,
127447,
299481,
127449,
176605,
242143,
127455,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
283142,
127494,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234038,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
135808,
291456,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
242396,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
299814,
234278,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
316233,
234313,
316235,
234316,
283468,
234319,
242511,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
242530,
349027,
234338,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
291714,
234370,
291716,
234373,
316294,
201603,
226182,
308105,
234375,
226185,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
324522,
234410,
291756,
291754,
226220,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
324536,
275384,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
234437,
226245,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
234490,
234493,
316416,
234496,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
316439,
234520,
234519,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
234620,
275579,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
308379,
324757,
300189,
324766,
119967,
234653,
324768,
283805,
234657,
242852,
300197,
234661,
283813,
234664,
177318,
275626,
234667,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
283844,
226500,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
226617,
243003,
283963,
226628,
300357,
283973,
177482,
283983,
316758,
357722,
316766,
316768,
292192,
218464,
292197,
316774,
243046,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
227426,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
316917,
292343,
308727,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
366155,
317004,
276043,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
292433,
284247,
317015,
235097,
243290,
276053,
284249,
284251,
300638,
284253,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
358080,
276160,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
317221,
227109,
358183,
186151,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
292681,
153417,
358224,
284499,
276308,
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,
292845,
276464,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
350304,
178273,
309346,
194657,
194660,
350308,
309350,
309348,
292968,
309352,
309354,
301163,
350313,
350316,
227430,
301167,
276583,
350321,
276590,
284786,
276595,
350325,
252022,
227440,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
276699,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
243948,
194801,
309491,
227571,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
293387,
236043,
342541,
317963,
113167,
55822,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
334488,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
318132,
342707,
154292,
277173,
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,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277317,
277322,
293706,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
276579,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
285690,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
302218,
285835,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
294221,
146765,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
310727,
245191,
64966,
163272,
277959,
277963,
302541,
277966,
302543,
310737,
277971,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
310764,
286188,
278000,
228851,
310772,
278003,
278006,
40440,
212472,
278009,
40443,
286203,
310780,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
302617,
286233,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
245288,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286312,
40554,
286313,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
286420,
278227,
229076,
286425,
319194,
278235,
278238,
229086,
286432,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
319280,
278320,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
229233,
294776,
360317,
294785,
327554,
360322,
40840,
40851,
294803,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
237508,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
311283,
278516,
278519,
237562
] |
aceb5b7e6e2ab3b47edda12e0b225c963d437823 | 359f38b395ae7e36469f465483ab94065963fdca | /HiPDA/HiPDA/Sections/Message/Private/PrivateMessageTableViewCell.swift | 87d6f353efc1ead02fc7f3f28c3687bfac2a061d | [
"MIT"
] | permissive | hongtao008/HiPDA | e0b316132da093a21e0d78ffbf007a726d8a6757 | 66d559567e6e833030cb44908d4b7917966d7361 | refs/heads/master | 2021-06-03T04:19:57.967333 | 2021-05-12T10:49:01 | 2021-05-12T10:49:01 | 97,541,276 | 0 | 0 | MIT | 2021-05-12T10:49:02 | 2017-07-18T02:04:11 | Objective-C | UTF-8 | Swift | false | false | 1,648 | swift | //
// PrivateMessageTableViewCell.swift
// HiPDA
//
// Created by leizh007 on 2017/6/30.
// Copyright © 2017年 HiPDA. All rights reserved.
//
import UIKit
import SDWebImage
class PrivateMessageTableViewCell: UITableViewCell {
@IBOutlet fileprivate weak var avatarImageView: UIImageView!
@IBOutlet fileprivate weak var redPointView: UIView!
@IBOutlet fileprivate weak var nameLabel: UILabel!
@IBOutlet fileprivate weak var contentLabel: UILabel!
@IBOutlet fileprivate weak var timeLabel: UILabel!
var user: User! {
didSet {
nameLabel.text = user.name
avatarImageView.sd_setImage(with: user.avatarImageURL, placeholderImage: #imageLiteral(resourceName: "avatar_placeholder"))
}
}
var content: String! {
didSet {
contentLabel.text = content
}
}
var time: String! {
didSet {
timeLabel.text = time
}
}
var isRead: Bool! {
didSet {
redPointView.isHidden = isRead
}
}
override func prepareForReuse() {
super.prepareForReuse()
avatarImageView.sd_cancelCurrentImageLoad()
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
redPointView.backgroundColor = .red
}
override func setHighlighted(_ highlighted: Bool, animated: Bool) {
super.setHighlighted(highlighted, animated: animated)
redPointView.backgroundColor = .red
}
}
extension PrivateMessageTableViewCell: NibLoadableView { }
| [
-1
] |
355e11b5f442e22fedb482968b697a731e027223 | ac0a722288e88c238de4d0fd6e9f7fa70fcba426 | /FR-MealRecipes/FR-MealRecipes/Models/Category+Convenience.swift | 2bbe220936680b0962e31a96b38a881256ec7d97 | [] | no_license | AlphaGrade/FR-MealRecipes | 9bd0ffad5cb98e8cfa7a3e0eb3e18f77eb84f32e | f337a81fd7a183e045d3bacd7bf24272c3a9fda0 | refs/heads/main | 2023-07-18T16:00:48.749744 | 2021-09-22T22:56:32 | 2021-09-22T22:56:32 | 401,443,008 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,716 | swift | //
// Category+Convenience.swift
// FR-MealRecipes
//
// Created by Joe on 8/31/21.
//
import CoreData
import Foundation
extension Category {
var categoryRepresentation: CategoryRepresentation? {
guard let idCategory = idCategory else { return nil }
return CategoryRepresentation(idCategory: idCategory,
strCategory: strCategory ?? "N/A",
strCategoryThumb: strCategoryThumb ?? "N/A",
strCategoryDescription: strCategoryDescription ?? "N/A")
}
@discardableResult convenience init(context: NSManagedObjectContext = CoreDataStack.shared.mainContext,
idCategory: String,
strCategory: String,
strCategoryDescription: String,
strCategoryThumb: String) {
self.init(context: context)
self.idCategory = idCategory
self.strCategory = strCategory
self.strCategoryDescription = strCategoryDescription
self.strCategoryThumb = strCategoryThumb
}
@discardableResult convenience init?(categoryRepresentation: CategoryRepresentation, context: NSManagedObjectContext = CoreDataStack.shared.mainContext) {
self.init(context: context,
idCategory: categoryRepresentation.idCategory ?? "N/A",
strCategory: categoryRepresentation.strCategory ?? "N/A",
strCategoryDescription: categoryRepresentation.strCategoryDescription,
strCategoryThumb: categoryRepresentation.strCategoryThumb)
}
}
| [
-1
] |
eba473b8324fe230783f2d770cb0cebd1a9c3be7 | c634358c1b0ef0c2efc86bc926f127a40c6c4c40 | /Todoey/AppDelegate.swift | cfa50112e9747e6104f8801986947c7ff993f76f | [] | no_license | TFGoose/Todoey | 86bd81d28335ed10ef870d8b2dfae1ba3f407ec0 | b5ac6203ac3142fd2f22e938df0b18185dec7163 | refs/heads/master | 2020-04-24T20:09:42.821200 | 2019-02-24T16:52:25 | 2019-02-24T16:52:25 | 172,235,146 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,502 | swift | //
// AppDelegate.swift
// Todoey
//
// Created by Richard Rouse on 2/23/19.
// Copyright © 2019 Rich Rouse. 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 applicationWillTerminate(_ application: UIApplication) {
self.saveContext()
}
// MARK: - Core Data stack
lazy var persistentContainer: NSPersistentContainer = {
let container = NSPersistentContainer(name: "Data Model")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
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 {
let nserror = error as NSError
fatalError("Unresolved error \(nserror), \(nserror.userInfo)")
}
}
}
}
| [
306909,
329236,
148941,
265598
] |
7b32618bdaa6ca30c9922b1d2ccd607622c878b0 | cd19f3d8789e1bf1102862903df7a49104ff4c46 | /underdark/UDApp/UDApp/LogFormatter.swift | 9801f174e05db5f6d5fb02ae46ee6de17cad2b58 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sina2266/IAUCTB_iMesh_iOS | cea0c1f6d461edb00775030a42c436b458283dd4 | f9defb98e0791825cde86e84ca8d1875f2bd553e | refs/heads/master | 2023-04-28T12:25:32.037693 | 2019-05-29T06:08:48 | 2019-05-29T06:08:48 | 189,160,675 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,675 | swift | //
// LogFormatter.swift
// UDApp
//
// Created by Virl on 09/08/16.
// Copyright © 2016 Underdark. All rights reserved.
//
import Foundation
import CocoaLumberjack
class LogFormatter: NSObject, DDLogFormatter
{
let dateFormatter = DateFormatter()
override init()
{
super.init()
//dateFormatter.dateStyle = .NoStyle
//dateFormatter.timeStyle = .MediumStyle
//[_dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
//[_dateFormatter setDateFormat:@"dd.MM.yyyy HH:mm:ss:SSS"];
dateFormatter.formatterBehavior = DateFormatter.Behavior.behavior10_4
dateFormatter.dateFormat = "HH:mm:ss.SSS"
}
/**
* Formatters may optionally be added to any logger.
* This allows for increased flexibility in the logging environment.
* For example, log messages for log files may be formatted differently than log messages for the console.
*
* For more information about formatters, see the "Custom Formatters" page:
* Documentation/CustomFormatters.md
*
* The formatter may also optionally filter the log message by returning nil,
* in which case the logger will not log the message.
**/
func format(message logMessage: DDLogMessage) -> String?
{
let level: String
if(logMessage.flag.contains(DDLogFlag.debug)) {
level = ""
} else if(logMessage.flag.contains(DDLogFlag.info)) {
level = ""
} else if(logMessage.flag.contains(DDLogFlag.warning)) {
level = "WARN"
} else if(logMessage.flag.contains(DDLogFlag.error)) {
level = "ERROR"
} else {
level = ""
}
let date = dateFormatter.string(from: logMessage.timestamp)
let result = "\(date) \(level)\t\(logMessage.message)"
return result
}
}
| [
-1
] |
5e6b5c883ff3adc2b5bd6c47e05dfbfe89c17a78 | 3c2d11d9b80852a482060bd45af56cf833469052 | /Tic-Tac-Toe/Tic-Tac-Toe/ViewController.swift | 400b53784f23971e67d87bbbdce22031a0f862ed | [] | no_license | seoyoochan/ios | e67682da02b749a3c1bdc3a18d70b319bcffc470 | d414b2d0fcd2346ae3336c4b8521f8d83c286160 | refs/heads/master | 2021-01-10T04:17:28.003941 | 2015-12-19T21:28:37 | 2015-12-19T21:28:37 | 48,297,785 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 509 | swift | //
// ViewController.swift
// Tic-Tac-Toe
//
// Created by Seo Yoochan on 6/11/15.
// Copyright (c) 2015 Seo Yoochan. 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,
237616,
360501,
286775,
237624,
288827,
286786,
284740,
243786,
286796,
237655,
307288,
200802,
276580,
356460,
307311,
276597,
276612,
280710,
303242,
311437,
278675,
299165,
278693,
100521,
307379,
280760,
280770,
227523,
280772,
280775,
313550,
276686,
229585,
307410,
280797,
280808,
286963,
280821,
286965,
280826,
280832,
276736,
278786,
287007,
282917,
233767,
307516,
278845,
289088,
287055,
323933,
227688,
313706,
299374,
199024,
276849,
278897,
311684,
313733,
227740,
285087,
289187,
278968,
293308,
278973,
289224,
276959,
279011,
276965,
281078,
236022,
233980,
287231,
279041,
279046,
215562,
281107,
279064,
236057,
281118,
295460,
289318,
309807,
279096,
234043,
277057,
129604,
301637,
158285,
281202,
277108,
287350,
285321,
117399,
228000,
225955,
287399,
326311,
209577,
277171,
285377,
277192,
287437,
226009,
277224,
312049,
289524,
226038,
234232,
230147,
226055,
299786,
295696,
281373,
295711,
228127,
281380,
234279,
283433,
312107,
293682,
289596,
283453,
279360,
289600,
293700,
295766,
308064,
303977,
293742,
162672,
277364,
207738,
303998,
304008,
324491,
304012,
234380,
304015,
277406,
234402,
283556,
291755,
324528,
230323,
234423,
277432,
281530,
295874,
299973,
234465,
168936,
183278,
277487,
293888,
277508,
277512,
275466,
234511,
293909,
304174,
300086,
234551,
300089,
238653,
293961,
300107,
300116,
277602,
281701,
281703,
296042,
277612,
164974,
312433,
300149,
234619,
285837,
226447,
234641,
349332,
302235,
285855,
234665,
283839,
277696,
228548,
228551,
279751,
279754,
230604,
298189,
302286,
230608,
290006,
302295,
189655,
363743,
298211,
290020,
228585,
120054,
204027,
300288,
312586,
296216,
130346,
300358,
238920,
234829,
296272,
306540,
310649,
333179,
290175,
275842,
224643,
300432,
226705,
310673,
306578,
144811,
286126,
277935,
282035,
292277,
296374,
130487,
337336,
306633,
288205,
286158,
280015,
310734,
163289,
286175,
286189,
282095,
308721,
296436,
302580,
310773,
288251,
290299,
286204,
290303,
286234,
282143,
282145,
284197,
296487,
296489,
286249,
226878,
288321,
226887,
226896,
212561,
284242,
292435,
228945,
300629,
276054,
284240,
282202,
212573,
40545,
284261,
306791,
286314,
284275,
314996,
276087,
284287,
284289,
276099,
284298,
278157,
282262,
280219,
284315,
284317,
282270,
282275,
280231,
284328,
313007,
284336,
284341,
286390,
300727,
276150,
282301,
302788,
276167,
282311,
284361,
282320,
284373,
282329,
282338,
284391,
282346,
358127,
288501,
282357,
358139,
282365,
286462,
282368,
358147,
282377,
300817,
282389,
282393,
278298,
329499,
276256,
278304,
315170,
282403,
282411,
159541,
282426,
288577,
288579,
307029,
276309,
241499,
188253,
292730,
284580,
284586,
276396,
282548,
276412,
165832,
301012,
301016,
294889,
231405,
298989,
227315,
237556,
237564
] |
b89095240151e1794a09453c2854431bdcdbbca6 | efe83b7f3ffa65da0ba5783b8bfdac421c970eba | /Example/StreamingProgressBar/ViewController.swift | e9ceefa92a1472e883163b479819f9102aeb147d | [
"MIT"
] | permissive | mohsinalimat/StreamingProgressBar | 49ff33485d936d2e2ca35f410a94e8c8da819b18 | b62757ce27e9765b147d83edcc9b371175c38d39 | refs/heads/master | 2021-01-19T21:47:20.916155 | 2016-09-27T16:19:36 | 2016-09-27T16:19:36 | 88,705,683 | 1 | 0 | null | 2017-04-19T05:45:01 | 2017-04-19T05:45:01 | null | UTF-8 | Swift | false | false | 1,244 | swift | //
// ViewController.swift
// StreamingProgressBar
//
// Created by Kyle Zaragoza on 08/23/2016.
// Copyright (c) 2016 Kyle Zaragoza. All rights reserved.
//
import UIKit
import StreamingProgressBar
class ViewController: UIViewController {
@IBOutlet weak var progressBar: StreamingProgressBar!
var playTimer: Timer?
var bufferTimer: Timer?
override func viewDidLoad() {
super.viewDidLoad()
playTimer = Timer.scheduledTimer(
timeInterval: 1/30,
target: self,
selector: #selector(incrementPlayTimer),
userInfo: nil,
repeats: true)
bufferTimer = Timer.scheduledTimer(
timeInterval: 0.5,
target: self,
selector: #selector(incrementBufferProgress),
userInfo: nil,
repeats: true)
}
func incrementPlayTimer() {
let updatedProgress = progressBar.progress + 0.002
if updatedProgress > 1 {
progressBar.progress = 0
progressBar.secondaryProgress = 0
} else {
progressBar.progress = updatedProgress
}
}
func incrementBufferProgress() {
progressBar.secondaryProgress += 0.1
}
}
| [
-1
] |
912bc81228abc9732da659c5cdfd3cae9beb70f1 | e0c6f05c391a7bde18327d98df77e7645351c47c | /MyWeather/MyWeather/Supporting files/AppDelegate.swift | a716ae4c2bce18e380c9ed5908934689534d5a55 | [] | no_license | dankehotfire/WeatherApp_iOS | efef418db32cd00f562f70407b5f55473b4aaaf8 | 5446e40194bc2c607e6627b20340721cde647a43 | refs/heads/main | 2023-06-29T10:58:51.664771 | 2021-07-29T14:18:27 | 2021-07-29T14:18:27 | 368,776,265 | 0 | 1 | null | 2021-05-27T14:44:58 | 2021-05-19T07:09:30 | Swift | UTF-8 | Swift | false | false | 1,348 | swift | //
// AppDelegate.swift
// MyWeather
//
// Created by Danil Nurgaliev on 20.05.2021.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
| [
393222,
393224,
393230,
393250,
344102,
393261,
393266,
213048,
385081,
376889,
393275,
376905,
254030,
286800,
368727,
180313,
368735,
180320,
376931,
286831,
368752,
286844,
417924,
262283,
286879,
286888,
377012,
164028,
180416,
377036,
180431,
377046,
418007,
418010,
377060,
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,
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,
328702,
328714,
361489,
386069,
386073,
336921,
336925,
345118,
377887,
345133,
345138,
386101,
361536,
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,
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,
214593,
419400,
419402,
353867,
419406,
419410,
394853,
345701,
222830,
370297,
353919,
403075,
345736,
198280,
403091,
345749,
419483,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
419512,
337592,
419517,
337599,
419527,
419530,
419535,
272081,
394966,
419542,
419544,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
370415,
337659,
337668,
362247,
395021,
362255,
395029,
116509,
345887,
378663,
345905,
354106,
354111,
247617,
354117,
370503,
329544,
370509,
354130,
247637,
337750,
370519,
313180,
354142,
354150,
354156,
345967,
345970,
345974,
403320,
354172,
247691,
337808,
247700,
329623,
436126,
436132,
337833,
362413,
337844,
346057,
346063,
247759,
329697,
354277,
190439,
354313,
346139,
436289,
378954,
395339,
338004,
100453,
329832,
329855,
329885,
346272,
362660,
100524,
387249,
379066,
387260,
256191,
395466,
346316,
411861,
411864,
411868,
411873,
379107,
411876,
387301,
346343,
338152,
387306,
387312,
346355,
436473,
321786,
379134,
411903,
411916,
379152,
395538,
387349,
338199,
387352,
182558,
338211,
248111,
362822,
436555,
190796,
379233,
354673,
321910,
248186,
420236,
379278,
272786,
354727,
338352,
338381,
338386,
256472,
338403,
338409,
248308,
199164,
330252,
199186,
330267,
354855,
10828,
199249,
346721,
248425,
191084,
191092,
346742,
330383,
354974,
150183,
174774,
248504,
174777,
223934,
355024,
273108,
355028,
264918,
183005,
256734,
436962,
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,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
413141,
339417,
339420,
249308,
339424,
249312,
339428,
339434,
249328,
69113,
372228,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
372353,
224897,
216707,
421508,
126596,
224904,
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,
257908,
225141,
257912,
225148,
257916,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
372706,
356335,
380918,
372738,
405533,
430129,
266294,
266297,
421960,
356439,
430180,
421990,
266350,
356466,
266362,
381068,
225423,
250002,
250004,
225429,
356506,
225437,
135327,
225441,
438433,
192673,
225444,
438436,
225447,
438440,
225450,
258222,
225455,
430256,
225458,
225461,
225466,
389307,
225470,
381120,
372929,
430274,
225475,
389320,
225484,
225487,
225490,
225493,
266453,
225496,
225499,
225502,
225505,
356578,
225510,
217318,
225514,
225518,
372976,
381176,
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,
324111,
340500,
381481,
356907,
324142,
356916,
324149,
324155,
348733,
324164,
356934,
348743,
381512,
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,
349040,
340849,
201588,
430965,
381813,
324472,
398201,
119674,
324475,
430972,
340858,
340861,
324478,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
430995,
324501,
324510,
422816,
324513,
398245,
201637,
324524,
340909,
324533,
324538,
324541,
398279,
340939,
340941,
209873,
340957,
431072,
398306,
340963,
209895,
201711,
349172,
349180,
439294,
431106,
357410,
250914,
185380,
357418,
209965,
209968,
209975,
209979,
209987,
209995,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210036,
210039,
349308,
349311,
160895,
152703,
210052,
210055,
349319,
218247,
210067,
210071,
210077,
210080,
251044,
210084,
185511,
210088,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
218360,
251128,
275706,
275712,
275715,
275721,
349459,
333078,
251160,
349484,
349491,
251189,
415033,
251210,
357708,
210260,
365911,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
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,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
366325,
210695,
268041,
210698,
366348,
210706,
399128,
210719,
358191,
366387,
210739,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
350045,
399199,
259938,
399206,
358255,
268143,
399215,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
358339,
333774,
358371,
350189,
350193,
350202,
350206,
350213,
268298,
350224,
350231,
333850,
350237,
350240,
350244,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
374902,
432271,
260289,
260298,
350410,
350416,
350422,
211160,
350425,
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,
375208,
375216,
334262,
326084,
358856,
334304,
334311,
375277,
334321,
350723,
391690,
186897,
334358,
342550,
342554,
334363,
358941,
350761,
252461,
334384,
358961,
383536,
334394,
252482,
219718,
334407,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
260801,
350917,
391894,
154328,
416473,
64230,
342766,
375535,
203506,
342776,
391937,
391948,
375568,
326416,
375571,
375574,
162591,
326441,
383793,
326451,
326454,
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,
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,
204784,
393203,
360438,
253943,
393206,
393212,
155646
] |
42be538004dfd4b3448b10c95d362e7e8f092300 | a8a6d4d152684b68b68ab0b4f679a8d6b2fde69d | /App.okozukai/App.okozukai/ViewControllerReset.swift | 5e07794b1ccaa03d3ff5ba9004168c5b9b6cbc69 | [
"MIT"
] | permissive | okimatsu/OkozukaiApp1week | 160fc9591fb13163ab98a85826730c5dd7e117d7 | cdcac4d01c329d8f918a6807299786d93a1f6428 | refs/heads/master | 2020-03-21T12:25:31.058299 | 2018-06-25T06:19:01 | 2018-06-25T06:19:01 | 138,551,624 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 4,774 | swift | import UIKit
class ViewControllerReset: UIViewController {
var appDelegate = UIApplication.shared.delegate as! AppDelegate
let userDefaults: UserDefaults = UserDefaults.standard
override func viewDidAppear(_ animated: Bool) {
}
@IBOutlet weak var lavelSaisoku1: UILabel!
override func viewWillAppear(_ animated: Bool) {
lavelSaisoku1.text = appDelegate.E
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor(red: 84/255, green: 232/255, blue: 193/255, alpha: 1)
}
@IBAction func ReSetButton(_ sender: Any) {
appDelegate.A = 0
appDelegate.B = 0
appDelegate.C = 0
appDelegate.D1a = 0
appDelegate.D2a = 0
appDelegate.D3a = 0
appDelegate.D4a = 0
appDelegate.D5a = 0
appDelegate.D1b = 0
appDelegate.D2b = 0
appDelegate.D3b = 0
appDelegate.D4b = 0
appDelegate.D5b = 0
appDelegate.D1c = 0
appDelegate.D2c = 0
appDelegate.D3c = 0
appDelegate.D4c = 0
appDelegate.D5c = 0
appDelegate.D1d = 0
appDelegate.D2d = 0
appDelegate.D3d = 0
appDelegate.D4d = 0
appDelegate.D5d = 0
appDelegate.D1e = 0
appDelegate.D2e = 0
appDelegate.D3e = 0
appDelegate.D4e = 0
appDelegate.D5e = 0
appDelegate.D1f = 0
appDelegate.D2f = 0
appDelegate.D3f = 0
appDelegate.D4f = 0
appDelegate.D5f = 0
appDelegate.D1g = 0
appDelegate.D2g = 0
appDelegate.D3g = 0
appDelegate.D4g = 0
appDelegate.D5g = 0
appDelegate.aAll = 0
appDelegate.bAll = 0
appDelegate.cAll = 0
appDelegate.dAll = 0
appDelegate.eAll = 0
appDelegate.fAll = 0
appDelegate.gAll = 0
appDelegate.E = ""
appDelegate.D = ""
userDefaults.set(appDelegate.C, forKey: "KEY_C")
userDefaults.set(appDelegate.D1a, forKey: "D1a")
userDefaults.set(appDelegate.D2a, forKey: "D2a")
userDefaults.set(appDelegate.D3a, forKey: "D3a")
userDefaults.set(appDelegate.D4a, forKey: "D4a")
userDefaults.set(appDelegate.D5a, forKey: "D5a")
userDefaults.set(appDelegate.D1b, forKey: "D1b")
userDefaults.set(appDelegate.D2b, forKey: "D2b")
userDefaults.set(appDelegate.D3b, forKey: "D3b")
userDefaults.set(appDelegate.D4b, forKey: "D4b")
userDefaults.set(appDelegate.D5b, forKey: "D5b")
userDefaults.set(appDelegate.D1c, forKey: "D1c")
userDefaults.set(appDelegate.D2c, forKey: "D2c")
userDefaults.set(appDelegate.D3c, forKey: "D3c")
userDefaults.set(appDelegate.D4c, forKey: "D4c")
userDefaults.set(appDelegate.D5c, forKey: "D5c")
userDefaults.set(appDelegate.D1d, forKey: "D1d")
userDefaults.set(appDelegate.D2d, forKey: "D2d")
userDefaults.set(appDelegate.D3d, forKey: "D3d")
userDefaults.set(appDelegate.D4d, forKey: "D4d")
userDefaults.set(appDelegate.D5d, forKey: "D5d")
userDefaults.set(appDelegate.D1e, forKey: "D1e")
userDefaults.set(appDelegate.D2e, forKey: "D2e")
userDefaults.set(appDelegate.D3e, forKey: "D3e")
userDefaults.set(appDelegate.D4e, forKey: "D4e")
userDefaults.set(appDelegate.D5e, forKey: "D5e")
userDefaults.set(appDelegate.D1f, forKey: "D1f")
userDefaults.set(appDelegate.D2f, forKey: "D2f")
userDefaults.set(appDelegate.D3f, forKey: "D3f")
userDefaults.set(appDelegate.D4f, forKey: "D4f")
userDefaults.set(appDelegate.D5f, forKey: "D5f")
userDefaults.set(appDelegate.D1g, forKey: "D1g")
userDefaults.set(appDelegate.D2g, forKey: "D2g")
userDefaults.set(appDelegate.D3g, forKey: "D3g")
userDefaults.set(appDelegate.D4g, forKey: "D4g")
userDefaults.set(appDelegate.D5g, forKey: "D5g")
userDefaults.set(appDelegate.aAll, forKey: "KEY_aAll")
userDefaults.set(appDelegate.bAll, forKey: "KEY_bAll")
userDefaults.set(appDelegate.cAll, forKey: "KEY_cAll")
userDefaults.set(appDelegate.dAll, forKey: "KEY_dAll")
userDefaults.set(appDelegate.eAll, forKey: "KEY_eAll")
userDefaults.set(appDelegate.fAll, forKey: "KEY_fAll")
userDefaults.set(appDelegate.gAll, forKey: "KEY_gAll")
}
}
| [
-1
] |
f999ee253c25535f1102f02a1cc608a678d72f78 | fdcfb7c9ef74cfeaa5ee3eb4418bc26fa01e2023 | /FormsExample/View Controllers/SimpleFormViewController.swift | 7c624c44004140cf2262ae48fd3cccbe658e5908 | [] | no_license | Ericdowney/iOSFormExample | 56c6efc2980a05f1f82cbb70d4b44e65ec341f9e | dfbc58799b61a5484fd669ab08aea10654a62ad6 | refs/heads/master | 2020-03-26T19:36:08.633253 | 2018-08-24T19:24:08 | 2018-08-24T19:24:08 | 145,274,309 | 0 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 496 | swift | //
// SimpleFormViewController.swift
// FormsExample
//
// Created by Downey, Eric on 8/20/18.
// Copyright © 2018 downey. All rights reserved.
//
import UIKit
final class SimpleFormViewController: UIViewController {
// MARK: - Outlets
@IBOutlet var form: Form!
// MARK: - Actions
@IBAction func submit() {
print("Form Data:",
form["firstName"] as Any,
form["lastName"] as Any,
form["age"] as Any)
}
}
| [
-1
] |
839ff312cf2226bc74d82559b93a2d402a068773 | a952e15382076e3314dad15b5c50ef5ab02e78b8 | /FoodTracker/MealTableViewController.swift | 0aaea559828b87347c0f2d67bf9d0560cfcac21f | [] | no_license | tutanck/IOSTests | fe55767a10f5b4cef80a334986076ad10e1af471 | 6c0b785205b8684eb122d7d5424924338f1335f4 | refs/heads/master | 2021-01-04T00:08:33.119585 | 2017-07-14T09:04:45 | 2017-07-14T09:04:45 | 96,683,714 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 7,399 | swift | //
// MealTableViewController.swift
// FoodTracker
//
// Created by Zenika on 10/07/2017.
// Copyright © 2017 DevArtisant. All rights reserved.
//
import UIKit
import os.log
class MealTableViewController: UITableViewController {
//MARK: Properties
var meals = [Meal]()
override func viewDidLoad() {
super.viewDidLoad()
// Use the edit button item provided by the table view controller.
navigationItem.leftBarButtonItem = editButtonItem
// Load any saved meals, otherwise load sample data.
if let savedMeals = loadMeals() {
meals += savedMeals
}
else {
// Load the sample data.
loadSampleMeals()
}
// Uncomment the following line to preserve selection between presentations
// self.clearsSelectionOnViewWillAppear = false
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return meals.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// Table view cells are reused and should be dequeued using a cell identifier.
let cellIdentifier = "MealTableViewCell"
guard let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath)
as? MealTableViewCell else {
fatalError("The dequeued cell is not an instance of MealTableViewCell.")
}
// Fetches the appropriate meal for the data source layout.
let meal = meals[indexPath.row]
cell.nameLabel.text = meal.name
cell.photoImageView.image = meal.photo
cell.ratingControl.rating = meal.rating
return cell
}
// 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
meals.remove(at: indexPath.row)
saveMeals()
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?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
super.prepare(for: segue, sender: sender)
switch(segue.identifier ?? "") {
case "AddItem":
os_log("Adding a new meal.", log: OSLog.default, type: .debug)
case "ShowDetail":
guard let mealDetailViewController = segue.destination as? MealViewController else {
fatalError("Unexpected destination: \(segue.destination)")
}
guard let selectedMealCell = sender as? MealTableViewCell else {
fatalError("Unexpected sender: \(sender!)")
}
guard let indexPath = tableView.indexPath(for: selectedMealCell) else {
fatalError("The selected cell is not being displayed by the table")
}
let selectedMeal = meals[indexPath.row]
mealDetailViewController.meal = selectedMeal
default:
fatalError("Unexpected Segue Identifier; \((segue.identifier)!)")
}
}
//MARK: Private Methods
private func loadSampleMeals() {
let photo1 = UIImage(named: "meal1")
let photo2 = UIImage(named: "meal2")
let photo3 = UIImage(named: "meal3")
guard let meal1 = Meal(name: "Caprese Salad", photo: photo1, rating: 4) else {
fatalError("Unable to instantiate meal1")
}
guard let meal2 = Meal(name: "Chicken and Potatoes", photo: photo2, rating: 5) else {
fatalError("Unable to instantiate meal2")
}
guard let meal3 = Meal(name: "Pasta with Meatballs", photo: photo3, rating: 3) else {
fatalError("Unable to instantiate meal2")
}
meals += [meal1, meal2, meal3]
}
private func saveMeals() {
let isSuccessfulSave = NSKeyedArchiver.archiveRootObject(meals, toFile: Meal.ArchiveURL.path)
if isSuccessfulSave {
os_log("Meals successfully saved.", log: OSLog.default, type: .debug)
} else {
os_log("Failed to save meals...", log: OSLog.default, type: .error)
}
}
private func loadMeals() -> [Meal]? {
return NSKeyedUnarchiver.unarchiveObject(withFile: Meal.ArchiveURL.path) as? [Meal]
}
//MARK: Actions
@IBAction func unwindToMealList(sender: UIStoryboardSegue) {
if let sourceViewController = sender.source as? MealViewController, let meal = sourceViewController.meal {
if let selectedIndexPath = tableView.indexPathForSelectedRow {
// Update an existing meal.
meals[selectedIndexPath.row] = meal
tableView.reloadRows(at: [selectedIndexPath], with: .none)
}
else {
// Add a new meal.
let newIndexPath = IndexPath(row: meals.count, section: 0)
meals.append(meal)
tableView.insertRows(at: [newIndexPath], with: .automatic)
}
// Save the meals.
saveMeals()
}
}
}
| [
301924,
293669,
217191,
253289,
306994,
314424,
298717,
159071
] |
a6990e862ecc5c811badeed6f23c60630d6bd72f | 444655086b6af5ea53d64702fb91e27b0a041d25 | /Demo/SwiftOne/AppDelegate.swift | ca4ce882803226b026e78358fb06b7c6fd4fe6ab | [
"MIT"
] | permissive | pjk1129/SONetwork | a85440dc2db34527b06168fa5e8a08c93076958f | d9b5c9eefd770711b4f278c65913ceb3b75a0ab7 | refs/heads/master | 2020-12-31T07:33:41.159683 | 2017-03-31T04:01:40 | 2017-03-31T04:01:40 | 86,534,905 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,879 | swift | //
// AppDelegate.swift
// SwiftOne
//
// Created by JK.PENG on 2017/3/17.
// Copyright © 2017年 XXXXX. 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.
setupRootContoller()
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:.
}
//MARK:- 公共属性
var navRootController:UINavigationController?
//MARK:- 懒加载属性
fileprivate lazy var homeViewController: SOHomeViewController = SOHomeViewController()
fileprivate lazy var userViewController: SOUserViewController = SOUserViewController()
fileprivate lazy var tabController:UITabBarController = UITabBarController()
func appDelegate() -> AppDelegate {
return UIApplication.shared.delegate as! AppDelegate
}
}
extension AppDelegate{
fileprivate func setupRootContoller(){
let homeNav = UINavigationController(rootViewController: homeViewController)
homeNav.isNavigationBarHidden = true
homeNav.tabBarItem = UITabBarItem(title: "首页", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1"))
let userNav = UINavigationController(rootViewController: userViewController)
userNav.isNavigationBarHidden = true
userNav.tabBarItem = UITabBarItem(title: "我的", image: UIImage(named: "super"), selectedImage: UIImage(named: "super_1"))
tabController.viewControllers = [homeNav,userNav]
tabController.tabBar.tintColor = UIColor.so_withHex(hexString: "ff4800")
tabController.tabBar.barTintColor = UIColor.so_withHex(hexString: "f8f8f8")
navRootController = UINavigationController(rootViewController: tabController)
navRootController?.isNavigationBarHidden = true
window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = UIColor.white
window?.rootViewController = navRootController
window?.makeKeyAndVisible()
}
}
| [
172675,
314372,
198405,
328453,
294026,
230923,
321659,
290835,
300436,
280725,
257302,
302740,
284312,
323349,
308762,
237470,
286240,
315552,
284194,
153765,
198310,
235047,
306856,
315557,
311850,
280747,
313258,
207661,
329850,
304175,
311728,
299185,
308401,
317361,
374196,
194101,
214966,
184503,
293817,
276410,
303804,
40513,
118593,
172737,
316610,
291269,
314441,
319947,
284238,
24528,
230739,
313044,
178006,
310486,
290008,
138332,
160221,
172512,
234464,
312035,
326244,
241509,
241640,
280681,
400236,
172526,
40560,
172534,
284278,
293370,
299003,
239997,
204031
] |
db5e77377e0b639c30e0d3f77cbfd0acfcb25095 | aee274edaf0e6a17d6331027844209bbdd51be3d | /videoEditing/SceneDelegate.swift | d94a6266a43e77b20e4cb9140f4eeaeac36e76a0 | [] | no_license | johndpope/videoEditing | 31e8d1efb8f55ec70d51323933476af092a64e3d | 06ecbffd23d63abb41e84969fa8264d025f16a8f | refs/heads/main | 2023-03-07T05:04:04.774535 | 2021-02-19T15:27:52 | 2021-02-19T15:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,622 | swift | //
// SceneDelegate.swift
// videoEditing
//
// Created by macbook on 7/19/20.
// Copyright © 2020 macbook. All rights reserved.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
@available(iOS 13.0, *)
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).
if #available(iOS 13.0, *) {
guard let _ = (scene as? UIWindowScene) else { return }
} else {
// Fallback on earlier versions
}
}
@available(iOS 13.0, *)
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).
}
@available(iOS 13.0, *)
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.
}
@available(iOS 13.0, *)
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).
}
@available(iOS 13.0, *)
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.
}
@available(iOS 13.0, *)
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
| [
393221,
163849,
393228,
393231,
393251,
352294,
344103,
393260,
393269,
213049,
376890,
385082,
393277,
376906,
327757,
254032,
368728,
254045,
180322,
376932,
286845,
286851,
417925,
262284,
360598,
377003,
377013,
164029,
327872,
180418,
377030,
377037,
377047,
418008,
418012,
377063,
327915,
205037,
393457,
393461,
393466,
418044,
385281,
262405,
180491,
336140,
164107,
262417,
368913,
262423,
377118,
377121,
262437,
254253,
336181,
262455,
393539,
262473,
344404,
213333,
418135,
270687,
262497,
418145,
262501,
213354,
246124,
262508,
262512,
213374,
385420,
262551,
262553,
385441,
385444,
262567,
385452,
262574,
393649,
385460,
262587,
344512,
262593,
360917,
369119,
328180,
328183,
328190,
254463,
328193,
328207,
410129,
393748,
377372,
188959,
385571,
377384,
197160,
33322,
352822,
270905,
197178,
418364,
188990,
369224,
270922,
385610,
352844,
385617,
352865,
262761,
352875,
344694,
352888,
336513,
377473,
385671,
148106,
377485,
352919,
98969,
344745,
361130,
336556,
434868,
164535,
164539,
328379,
328387,
352969,
418508,
385743,
385749,
189154,
369382,
361196,
418555,
344832,
336644,
344837,
344843,
328462,
361231,
394002,
336660,
418581,
418586,
434971,
369436,
262943,
369439,
418591,
418594,
336676,
418600,
418606,
369464,
361274,
328516,
336709,
328520,
336712,
361289,
328523,
336715,
361300,
213848,
426842,
361307,
197469,
361310,
254813,
361318,
344936,
361323,
361335,
328574,
369544,
361361,
222129,
345036,
386004,
345046,
386012,
386019,
386023,
435188,
328703,
328710,
418822,
377867,
328715,
386070,
336922,
345119,
377888,
214060,
345134,
345139,
361525,
361537,
377931,
189525,
402523,
361568,
148580,
345200,
361591,
386168,
361594,
410746,
214150,
345224,
386187,
345247,
361645,
345268,
402615,
361657,
402636,
328925,
165086,
165092,
328933,
222438,
328942,
386286,
386292,
206084,
328967,
345377,
345380,
353572,
345383,
263464,
337207,
345400,
378170,
369979,
386366,
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,
214594,
419401,
353868,
419404,
173648,
419408,
214611,
419412,
403040,
345702,
370298,
353920,
403076,
345737,
198282,
403085,
403092,
345750,
419484,
345758,
345763,
419492,
345766,
419498,
419502,
370351,
419507,
337588,
419510,
419513,
419518,
403139,
337607,
419528,
419531,
419536,
272083,
394967,
419543,
419545,
345819,
419548,
419551,
345829,
419560,
337643,
419564,
337647,
370416,
337671,
362249,
362252,
395022,
362256,
321300,
345888,
362274,
378664,
354107,
354112,
370504,
329545,
345932,
370510,
247639,
337751,
370520,
313181,
182110,
354143,
354157,
345965,
345968,
345971,
345975,
403321,
1914,
354173,
395148,
247692,
337809,
247701,
436127,
436133,
247720,
337834,
362414,
337845,
190393,
247760,
346064,
346069,
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,
411865,
411869,
411874,
379108,
411877,
387303,
346344,
395496,
338154,
387307,
346350,
338161,
436474,
379135,
411905,
411917,
379154,
395539,
387350,
387353,
338201,
338212,
248112,
362823,
436556,
321880,
362844,
379234,
354674,
321911,
420237,
379279,
272787,
354728,
338353,
338382,
272849,
248279,
256474,
182755,
338404,
330225,
248309,
330254,
199189,
420377,
330268,
191012,
330320,
199250,
191069,
346722,
248427,
338544,
191093,
346743,
346769,
150184,
174775,
248505,
174778,
363198,
223936,
355025,
273109,
264919,
264942,
363252,
338680,
264965,
338701,
256787,
396067,
346917,
396070,
215854,
355123,
355141,
355144,
338764,
330581,
387929,
330585,
355167,
265056,
265059,
355176,
355180,
355185,
412600,
207809,
379849,
347082,
396246,
330711,
248794,
248799,
347106,
437219,
257009,
265208,
199681,
338951,
330761,
330769,
330775,
248863,
396329,
404526,
396337,
330803,
396340,
339002,
388155,
339010,
347208,
248905,
330827,
248915,
183384,
339037,
412765,
257121,
265321,
248952,
420985,
347288,
248986,
44199,
380071,
339118,
249018,
339133,
126148,
330959,
330966,
265433,
265438,
388320,
363757,
339199,
396552,
175376,
175397,
273709,
372016,
437553,
347442,
199989,
175416,
396601,
208189,
437567,
175425,
437571,
437576,
437584,
396634,
175451,
437596,
429408,
175458,
175461,
175464,
265581,
175478,
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,
175637,
134689,
265779,
421442,
413251,
265796,
265806,
224854,
224858,
339553,
257636,
224871,
372328,
257647,
372338,
224885,
224888,
224891,
224895,
126597,
421509,
224905,
11919,
224911,
224914,
126611,
224917,
224920,
126618,
208539,
224923,
224927,
224930,
224933,
257705,
224939,
224943,
257713,
224949,
257717,
257721,
224954,
257725,
224960,
257733,
224966,
224970,
257740,
224976,
257745,
257748,
224982,
257752,
224987,
257762,
224996,
225000,
225013,
225021,
339711,
257791,
225027,
257796,
339722,
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,
225128,
257897,
225138,
257909,
225142,
257914,
257917,
225150,
257922,
380803,
225156,
339845,
257927,
225166,
397201,
225171,
380823,
225176,
225183,
372698,
372704,
372707,
356336,
380919,
393215,
372739,
405534,
266295,
266298,
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,
225451,
258223,
225456,
430257,
225459,
225462,
225468,
389309,
225472,
225476,
389322,
225485,
225488,
225491,
266454,
225494,
225497,
225500,
225503,
225506,
225511,
217319,
225515,
225519,
381177,
397572,
389381,
356638,
356641,
356644,
356647,
266537,
389417,
356650,
356656,
332081,
340276,
356662,
397623,
332091,
225599,
348489,
332107,
151884,
430422,
348503,
250211,
340328,
250217,
348523,
348528,
332153,
356734,
389503,
332158,
438657,
348548,
356741,
332175,
160152,
373146,
373149,
70048,
356783,
266688,
324032,
201158,
127473,
217590,
340473,
324095,
324100,
324103,
324112,
340501,
324118,
324122,
340512,
332325,
324134,
381483,
356908,
324141,
324143,
356917,
324150,
324156,
168509,
348734,
324161,
324165,
356935,
348745,
381513,
324171,
324174,
324177,
389724,
332381,
373344,
340580,
348777,
381546,
340628,
184983,
373399,
258723,
332455,
332460,
332464,
332473,
381626,
332484,
332487,
332494,
357070,
357074,
332512,
340724,
332534,
348926,
389927,
348979,
398141,
357202,
389971,
357208,
389979,
430940,
357212,
357215,
439138,
349041,
340850,
381815,
430967,
324473,
398202,
340859,
324476,
430973,
119675,
324479,
340863,
324482,
324485,
324488,
185226,
381834,
324493,
324496,
324499,
430996,
324502,
324511,
422817,
324514,
201638,
373672,
324525,
111539,
324534,
324539,
324542,
398280,
349129,
340942,
209874,
340958,
431073,
398307,
340964,
209896,
201712,
209904,
349173,
381947,
201724,
349181,
431100,
431107,
349203,
209944,
209948,
250917,
357419,
209966,
209969,
209973,
209976,
209980,
209988,
209991,
431180,
209996,
349268,
250968,
210011,
373853,
341094,
210026,
210028,
210032,
349296,
210037,
210042,
210045,
349309,
160896,
349313,
152704,
210053,
210056,
349320,
259217,
373905,
210068,
210072,
210078,
210081,
210085,
210089,
210096,
210100,
324792,
210108,
357571,
210116,
210128,
210132,
333016,
210139,
210144,
218355,
218361,
275709,
128254,
275713,
242947,
275717,
275723,
333075,
349460,
349486,
349492,
415034,
210261,
365912,
259423,
374113,
251236,
374118,
390518,
357756,
374161,
112021,
349591,
357793,
333222,
259516,
415168,
366035,
415187,
366039,
415192,
415194,
415197,
415200,
333285,
415208,
366057,
366064,
415217,
415225,
423424,
415258,
415264,
366118,
415271,
382503,
349739,
144940,
415279,
415282,
415286,
210488,
415291,
415295,
333396,
333400,
366173,
423529,
423533,
210547,
415354,
333440,
267910,
267929,
259789,
366301,
333535,
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,
341839,
341844,
415574,
358235,
350046,
399200,
399208,
268144,
358256,
358260,
399222,
325494,
333690,
325505,
399244,
333709,
333725,
333737,
382891,
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,
268435,
333998,
334012,
260299,
375027,
358645,
268553,
268560,
432406,
325920,
358701,
391469,
358705,
358714,
358717,
383307,
358738,
383331,
383334,
391531,
383342,
334204,
268669,
194942,
391564,
366991,
334224,
342431,
375209,
334263,
326087,
358857,
195041,
334312,
104940,
375279,
350724,
186898,
342546,
350740,
342551,
342555,
416294,
350762,
252463,
358962,
334397,
252483,
219719,
399957,
334425,
326240,
375401,
334466,
334469,
391813,
162446,
342680,
342685,
260767,
342711,
244410,
260798,
334530,
260802,
350918,
154318,
342737,
391895,
154329,
416476,
64231,
113389,
203508,
375541,
342777,
391938,
391949,
375569,
375572,
375575,
375580,
162592,
334633,
326444,
383794,
375613,
244542,
375616,
342857,
416599,
342875,
244572,
433001,
400238,
211826,
211832,
392061,
351102,
252801,
260993,
400260,
211846,
342921,
342931,
252823,
400279,
392092,
400286,
359335,
211885,
400307,
351169,
359362,
170950,
187335,
326599,
359367,
359383,
359389,
383968,
343018,
261109,
261112,
244728,
383999,
261130,
261148,
359452,
261155,
261160,
261166,
359471,
375868,
384099,
384102,
384108,
367724,
187503,
343155,
384115,
212095,
384136,
384140,
384144,
384152,
384158,
384161,
351399,
384169,
367795,
384182,
384189,
384192,
351424,
343232,
367817,
244938,
384202,
253132,
384209,
146644,
351450,
384225,
359650,
343272,
351467,
359660,
384247,
351480,
384250,
351483,
384270,
359695,
261391,
253202,
261395,
384276,
384284,
245021,
384290,
253218,
245032,
171304,
384299,
351535,
245042,
326970,
384324,
212296,
212304,
367966,
343394,
367981,
343410,
155000,
327035,
245121,
245128,
253321,
155021,
384398,
245137,
245143,
245146,
245149,
245152,
245155,
155045,
245158,
114093,
327090,
343478,
359867,
384444,
327108,
327112,
384457,
359887,
359891,
368093,
155103,
343535,
343540,
368120,
409092,
359948,
359951,
359984,
400977,
400982,
179803,
155255,
155274,
368289,
245410,
425639,
425652,
425663,
155328,
245463,
155352,
155356,
155364,
245477,
155372,
245487,
212723,
409336,
155394,
155404,
245528,
155423,
360224,
155439,
204592,
155444,
155448,
417596,
384829,
360262,
155463,
155477,
376665,
155484,
261982,
425823,
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,
262046,
253854,
262049,
262052,
327590,
155560,
155563,
155566,
327613,
393152,
393170,
155604,
155620,
253924,
155622,
253927,
327655,
360432,
393204,
360439,
253944,
393209,
155647
] |
41aa11440b9ea6b73b7c00d0b89ed6409bd002ac | bacd24bf7420a348e73f415b75f05dbbae1b4637 | /fav-movies-app/favourite-movies-app/HTTPHandler.swift | 0ea56f0309fd4134172fa001073cc9af61ebd21b | [] | no_license | kieranheg/Swift | 93f05326b42c84e76c757ea8145ac5a36b542634 | 14a1516386c635a5551afaab71818d91d51deb9d | refs/heads/master | 2021-05-08T09:19:01.297605 | 2017-10-24T15:00:42 | 2017-10-24T15:00:42 | 107,114,363 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,171 | swift | //
// HTTPHandler.swift
// favourite-movies-app
//
// Created by localadmin on 10/17/17.
// Copyright © 2017 localadmin. All rights reserved.
//
import Foundation
class HTTPHandler {
static func getJson(urlString: String, completionHandler: @escaping (Data?) -> (Void)) {
let urlString = urlString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let url = URL(string: urlString!)
print("URL being used is \(url!)")
let session = URLSession.shared
let task = session.dataTask(with: url!) { data, response, error in
if let data = data {
let httpResponse = response as! HTTPURLResponse
let statusCode = httpResponse.statusCode
print("Request completed with code: \(statusCode)")
if statusCode == 200 {
completionHandler(data as Data)
}
} else if let error = error {
print("***There was an error making the HTTP request***")
print(error.localizedDescription)
completionHandler(nil)
}
}
task.resume()
}
}
| [
-1
] |
72def77ac8e2abf53fdb89e153c49ecf638167d4 | d5090f9b911d5abc57e34d5fcceb5ecfc672e8c0 | /CoreData+Images/View/PhotoCell.swift | c93f33b4ba9af2334401033dda65411cea589312 | [
"MIT"
] | permissive | hungMighty/CoreData-Images | 69b4b9dabb54eb06f074e865039a48feb29fe279 | 5666c6221b82f5176f938240a8c89e64fe7cd7a6 | refs/heads/master | 2021-01-23T23:45:15.232493 | 2018-02-24T12:27:04 | 2018-02-24T12:27:04 | 122,731,919 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,608 | swift | //
// PhotoCell.swift
// CoreDataTutorial
//
// Created by James Rochabrun on 3/1/17.
// Copyright © 2017 James Rochabrun. All rights reserved.
//
import Foundation
import UIKit
class PhotoCell: UITableViewCell {
@IBOutlet weak var photoImageView: UIImageView!
@IBOutlet weak var authorLabel: UILabel!
@IBOutlet weak var dividerLineView: UIView!
@IBOutlet weak var tagsLabel: UILabel!
static let id = String(describing: PhotoCell.self)
static let nibName = String(describing: PhotoCell.self)
var photo: Photo? {
didSet {
guard let photo = photo else {
return
}
self.authorLabel.text = photo.author
self.tagsLabel.text = photo.tags
if let url = photo.mediaURL {
self.photoImageView
.loadImageUsingCacheWithURLString(url,
placeHolder: UIImage(named: "placeholder"))
}
}
}
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override func awakeFromNib() {
super.awakeFromNib()
isUserInteractionEnabled = false
authorLabel.font = UIFont.systemFont(ofSize: 16)
tagsLabel.font = UIFont.systemFont(ofSize: 14)
}
override func layoutSubviews() {
super.layoutSubviews()
}
}
| [
-1
] |
eaeb14edb1bde4cc1bd004da5c6fa801923b6db1 | e4f79cf1a758c4fde11cd8c1a2d8ef5d123fff56 | /Ch03/03_03/end/AFInstall/AFInstall/ViewController.swift | 7c447bf80bd5da39ff90929235d60274981ac91c | [] | no_license | rrbolton423/iOS-Networking-Development-Using-URLSession-and-AlamoFire | b5757db311b0c8b3984a7848840cdebc01b8fc7d | cd2959b4d274e01b4a51a7b43232b0a3220eb891 | refs/heads/master | 2020-03-27T18:33:50.324471 | 2018-08-31T19:11:59 | 2018-08-31T19:11:59 | 146,150,925 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,169 | swift | //
// ViewController.swift
// AFInstall
//
// Created by Bear Cahill on 9/18/17.
// Copyright © 2017 Bear Cahill. All rights reserved.
//
import UIKit
import Alamofire
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.
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
fetchURL(url: "https://orangevalleycaa.org/api/videos", param: ["category":"Dance","keyword":"ballet","value":["value1","value2"], "address":["street":"Lakeshore Dr","city":"Mandeville"]])
}
func fetchURL(url : String, param : [String:Any]) {
Alamofire.request(url, method: .post, parameters: param, encoding : JSONEncoding.prettyPrinted).responseString { (response) in
print (response.value ?? "no value")
}.responseJSON { (response) in
print (response.value ?? "no value")
}
}
}
| [
-1
] |
ec55a7a118d4dcc2341f62bd3dc5414cad5f6a59 | 4b346b680fe9684f870a98f57c7d44badcae6690 | /FoodTracker/MealViewController.swift | 9f3e1ec8ae4a9361c9784fdf736d1ab699e466ef | [] | no_license | 3948ulrichm/Wk9Ex1 | ae7e4844fc0afc60e56d1233e947f86d8e30eb3c | e2e09e43771e9d28aa754887df5872c9e82ca1c3 | refs/heads/master | 2021-05-07T03:40:23.806774 | 2017-11-15T06:14:46 | 2017-11-15T06:14:46 | 110,791,380 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 5,241 | swift | //
// MealViewController.swift
// Wk9Ex1
//
// Created by Michael Ulrich on 11/6/17.
// Copyright © 2017 Michael Ulrich. All rights reserved.
//
import UIKit
import os.log
class MealViewController: UIViewController, UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
//MARK: Properties
@IBOutlet weak var nameTextField: UITextField!
@IBOutlet weak var photoImageView: UIImageView!
@IBOutlet weak var ratingControl: RatingControl!
@IBOutlet weak var saveButton: UIBarButtonItem!
/*
This value is either passed by `MealTableViewController` in `prepare(for:sender:)`
or constructed as part of adding a new meal.
*/
@objc var meal: Meal?
override func viewDidLoad() {
super.viewDidLoad()
// Handle the text field’s user input through delegate callbacks.
nameTextField.delegate = self
// Set up views if editing an existing Meal.
if let meal = meal {
navigationItem.title = meal.name
nameTextField.text = meal.name
photoImageView.image = meal.photo
ratingControl.rating = meal.rating
}
// Enable the Save button only if the text field has a valid Meal name.
updateSaveButtonState()
}
//MARK: UITextFieldDelegate
func textFieldDidBeginEditing(_ textField: UITextField) {
// Disable the Save button while editing.
saveButton.isEnabled = false
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
// Hide the keyboard.
textField.resignFirstResponder()
return true
}
func textFieldDidEndEditing(_ textField: UITextField) {
updateSaveButtonState()
navigationItem.title = textField.text
}
//MARK: UIImagePickerControllerDelegate
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
// Dismiss the picker if the user canceled.
dismiss(animated: true, completion: nil)
}
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
// The info dictionary may contain multiple representations of the image. You want to use the original.
guard let selectedImage = info[UIImagePickerControllerOriginalImage] as? UIImage else {
fatalError("Expected a dictionary containing an image, but was provided the following: \(info)")
}
// Set photoImageView to display the selected image.
photoImageView.image = selectedImage
// Dismiss the picker.
dismiss(animated: true, completion: nil)
}
//MARK: Navigation
@IBAction func cancel(_ sender: UIBarButtonItem) {
// Depending on style of presentation (modal or push presentation), this view controller needs to be dismissed in two different ways.
let isPresentingInAddMealMode = presentingViewController is UINavigationController
if isPresentingInAddMealMode {
dismiss(animated: true, completion: nil)
}
else if let owningNavigationController = navigationController{
owningNavigationController.popViewController(animated: true)
}
else {
fatalError("The MealViewController is not inside a navigation controller.")
}
}
// This method lets you configure a view controller before it's presented.
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
super.prepare(for: segue, sender: sender)
// Configure the destination view controller only when the save button is pressed.
guard let button = sender as? UIBarButtonItem, button === saveButton else {
os_log("The save button was not pressed, cancelling", log: OSLog.default, type: .debug)
return
}
let name = nameTextField.text ?? ""
let photo = photoImageView.image
let rating = ratingControl.rating
// Set the meal to be passed to MealTableViewController after the unwind segue.
meal = Meal(name: name, photo: photo, rating: rating)
}
//MARK: Actions
@IBAction func selectImageFromPhotoLibrary(_ sender: UITapGestureRecognizer) {
// Hide the keyboard.
nameTextField.resignFirstResponder()
// UIImagePickerController is a view controller that lets a user pick media from their photo library.
let imagePickerController = UIImagePickerController()
// Only allow photos to be picked, not taken.
imagePickerController.sourceType = .photoLibrary
// Make sure ViewController is notified when the user picks an image.
imagePickerController.delegate = self
present(imagePickerController, animated: true, completion: nil)
}
//MARK: Private Methods
private func updateSaveButtonState() {
// Disable the Save button if the text field is empty.
let text = nameTextField.text ?? ""
saveButton.isEnabled = !text.isEmpty
}
}
| [
301923,
293668,
217190,
306993,
312468,
304053,
314423,
298716
] |
6a4e2f976d0114614e09e9c030f2ef77bdc8af0d | 979d470f95af817e6a1cba381c625f84aa34890b | /GenericsExample.playground/Contents.swift | 9bab032c1f6ebf7423465df0a2acf4192dd7d9ee | [] | no_license | yalcingediz/iOSWithSwiftProjects | 763ba815589f421a0984fbeb595abc5f2cb236fe | a0f9996428c24168da9261192958a19ddecbcf8c | refs/heads/master | 2021-01-20T15:50:55.030078 | 2017-08-02T05:29:07 | 2017-08-02T05:29:07 | 90,795,863 | 0 | 1 | null | 2017-05-09T22:38:04 | 2017-05-09T22:03:23 | Swift | UTF-8 | Swift | false | false | 448 | swift | //: Playground - noun: a place where people can play
import UIKit
func adder<T: Strideable>(number: T) -> T {
return number + 1
}
adder(number: 1)
adder(number: 2.0)
protocol Numeric {
func *(lhs: Self, rhs: Self) -> Self
}
extension Double: Numeric {}
extension Float: Numeric {}
extension Int: Numeric {}
func multiplier<T: Numeric>(lhs: T, rhs: T) -> T {
return lhs*rhs
}
multiplier(lhs: 4.0, rhs:5)
multiplier(lhs:3, rhs:6)
| [
-1
] |
bf73b2e04ea6862993c680972662a59fe1826c7e | 678e022fb98ebd9e591e034c7f5387b1bcca5c8e | /dna_translator/Tests/LinuxMain.swift | 46121188eba2724f3546343f086bb19416f9b3f4 | [
"Unlicense"
] | permissive | Clocks-in-a-Cooler/MaLT | b4a3b8ed304a1c412c687a8a9bf0ccc02e20a779 | 5a90232507629fce81223d563c6f7024600dc0de | refs/heads/master | 2022-12-28T05:28:58.960526 | 2020-09-15T22:41:28 | 2020-09-15T22:41:28 | 231,258,849 | 0 | 0 | Unlicense | 2022-12-10T13:36:56 | 2020-01-01T20:11:19 | JavaScript | UTF-8 | Swift | false | false | 130 | swift | import XCTest
import dna_translatorTests
var tests = [XCTestCaseEntry]()
tests += dna_translatorTests.allTests()
XCTMain(tests)
| [
241184,
222401,
248320,
35235,
344515,
357063,
6122,
350828,
200182,
343158,
65272,
254173
] |
29ad5e2521ef0fb4aa507b177c6150e264b04ee9 | b82ddd5247206ac81950547038a41ee084a70db2 | /src/IconSelector/IconSelectorViewController.swift | 17129cfc15b70d20906d7c6a3700368f9e5e0b13 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | xrolfex/ios-icon-selector | 81d2b58537df4b37e94ba07d50c8265a22fd65cd | 002f7cefa47c9f18716d7be54829d15dec954b1e | refs/heads/main | 2023-07-03T09:04:19.668303 | 2021-08-11T23:06:02 | 2021-08-16T22:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 5,079 | swift | //
// Copyright © 2021 Daniel Farrelly & Curtis Herbert
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this list
// of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice, this
// list of conditions and the following disclaimer in the documentation and/or
// other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
import UIKit
/// A very simple view controller implementation of the `IconSelector`, which can be instantiated to display a custom
/// collection of icons, or pull the complete list from a given bundle.
@available(iOSApplicationExtension, unavailable)
open class IconSelectorViewController: UITableViewController {
/// The icons displayed by the receiver.
public let icons: [Icon]
/// Creates an `IconSelectorViewController` with the given `icons`.
/// - Parameter icons: Icons to display
public init(icons: [Icon]) {
self.icons = icons
super.init(nibName: nil, bundle: nil)
}
/// Creates an `IconSelectorViewController` with icons from the given `bundle`.
/// Icons should be defined within the `CFBundleIcons` value of the given `bundle`'s Info.plist.
/// - Parameter bundle: The `Bundle` to source icons from. Defaults to the `main` bundle.
public convenience init(bundle: Bundle = .main) {
self.init(icons: Icon.options(for: bundle))
}
public required convenience init?(coder: NSCoder) {
self.init()
}
// MARK: View life cycle
/// Returns the icon selector managed by the controller object.
public var iconSelector: IconSelector? {
return view as? IconSelector
}
public override func loadView() {
let iconSelector = IconSelector(icons: icons)
iconSelector.backgroundColor = UIColor.white
iconSelector.layoutMargins = UIEdgeInsets(top: 20, left: 0, bottom: 20, right: 0)
iconSelector.adjustHeightToFitContent = false
iconSelector.anchorHorizontalEdges = false
iconSelector.shouldDisplayLabels = true
iconSelector.scrollView.alwaysBounceVertical = true
iconSelector.addTarget(self, action: #selector(didSelectIcon(_:)), for: .valueChanged)
view = iconSelector
}
/// Method called when the icon selector is interacted with.
@objc private func didSelectIcon(_ sender: IconSelector) {
guard let selectedIcon = sender.selectedIcon else {
return
}
self.iconSelector(sender, didChangeValue: selectedIcon)
}
// MARK: Responding to selection
/// Method called when the icon is selected within the view controller.
///
/// - Note: The default implementation validates that alternate icons are supported, and that the application is in
/// an active state before attempting to change the selected icon. If the application is not in an active state,
/// the application will loop until it is.
/// - Parameters:
/// - iconSelector: The `IconSelector` that the `selectedIcon` was selected in.
/// - selectedIcon: The `Icon` that was selected.
open func iconSelector(_ iconSelector: IconSelector, didChangeValue selectedIcon: Icon) {
guard UIApplication.shared.supportsAlternateIcons else {
return
}
guard UIApplication.shared.applicationState == .active else {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
self.iconSelector(iconSelector, didChangeValue: selectedIcon)
}
return
}
UIApplication.shared.setAlternateIcon(selectedIcon) { error in
guard let error = error else {
return
}
self.iconSelector(iconSelector, didFailWith: error)
}
}
/// Method called when the application throws an error upon attempting to select an icon.
///
/// - Note: The default implementation does nothing, which is a mostly valid option. The only errors really thrown
/// are to indicate that an invalid icon was selected, so as long as the icons you provide during init are
/// sourced from the Info.plist (the default option), you're golden.
/// - Parameters:
/// - iconSelector: The `IconSelector` that the `selectedIcon` was selected in.
/// - error: The `Error` that was thrown by the system.
open func iconSelector(_ iconSelector: IconSelector, didFailWith error: Swift.Error) {
}
}
| [
-1
] |
d8fce91871c9356b4d6dc65c60dca9fd8c194e93 | 66ce51061971e9c9718fa169474802a063ade498 | /BBNSchedule/BBNSchedule/RegularSchedule.swift | 40bb9353248c613427e342ab98608bc94ffd67ea | [] | no_license | ASKProducts/BBNSchedule | c8014e0ae1e0c938d62244d44befe00e359a2be4 | c1a473add7372fc54d408d3ec690b7e2396d1e23 | refs/heads/master | 2020-05-29T21:25:29.724390 | 2015-02-16T09:07:18 | 2015-02-16T09:07:18 | 29,749,305 | 1 | 2 | null | 2015-02-10T04:02:21 | 2015-01-23T19:30:50 | Swift | UTF-8 | Swift | false | false | 1,889 | swift | //
// RegularSchedule.swift
// BBNSchedule
//
// Created by Aaron Kaufer on 1/25/15.
// Copyright (c) 2015 Aaron Kaufer. All rights reserved.
//
import Foundation
var RegularWeeklySchedule: Schedule = Schedule()
var regularWeeklyScheduleCommands = [
"a 0 0800 0815 Assembly",
"a 0 0820 0905 D",
"a 0 0910 1000 B",
"a 0 1000 1020 B_Lab",
"a 0 1025 1110 F",
"a 0 1115 1140 L1",
"a 0 1145 1235 L2",
"a 0 1115 1205 A1",
"a 0 1145 1235 A2",
"a 0 1240 1325 X",
"a 0 1330 1420 C",
"a 0 1425 1510 G",
"a 1 0800 0815 Advisory",
"a 1 0820 0905 E",
"a 1 0910 1000 C",
"a 1 1000 1020 C_Lab",
"a 1 1025 1110 D",
"a 1 1115 1140 L1",
"a 1 1145 1235 L2",
"a 1 1115 1205 B1",
"a 1 1145 1235 B2",
"a 1 1240 1220 X",
"a 1 1325 1415 F",
"a 1 1415 1435 F_Lab",
"a 1 1440 1525 A",
"a 2 0800 0815 Class_Meeting",
"a 2 0820 0905 G",
"a 2 0910 1000 E",
"a 2 1000 1020 E_Lab",
"a 2 1025 1110 C",
"a 2 1115 1140 L1",
"a 2 1145 1235 L2",
"a 2 1115 1205 F1",
"a 2 1145 1235 F2",
"a 2 1240 1325 Activities",
"a 3 0800 0815 Sign_In",
"a 3 0820 0905 Free",
"a 3 0910 1000 Science",
"a 3 1000 1020 Science_Lab",
"a 3 1025 1105 X",
"a 3 1110 1135 CompSci",
"a 3 1200 1230 Lunch",
"a 3 1235 1320 English",
"a 3 1325 1415 French",
"a 3 1415 1435 French_Lab",
"a 3 1440 1525 FilmVideo",
"a 4 0800 0815 Assembly",
"a 4 0820 0905 C",
"a 4 0910 1000 G",
"a 4 1000 1020 G_Lab",
"a 4 1025 1110 B",
"a 4 1115 1140 L1",
"a 4 1145 1235 L2",
"a 4 1115 1205 D1",
"a 4 1145 1235 D2",
"a 4 1240 1325 A",
"a 4 1330 1420 E",
"a 4 1425 1510 X"
]
func initRegularWeeklySchedule(){
for com in regularWeeklyScheduleCommands{
RegularWeeklySchedule.parseCommand(com)
}
} | [
-1
] |
4c604abb4fa51bebcf7f2e8431c45520a441b64c | 5dbbff8dccc563d3847ee5a83815fcb4cdae85d1 | /Project Loca/QuizResult.swift | 218d13489464e1e9670a344d56b0aa9d9c8adf11 | [] | no_license | TeamMilton370/ProjectLoca | 0f90643ea8ba7dd952a3c7ef7eedcacc668d7ef3 | 1871b2d60368d985a6cabdf0de225be39c98abe2 | refs/heads/master | 2021-01-09T05:30:32.951140 | 2017-09-12T06:22:18 | 2017-09-12T06:22:18 | 80,779,582 | 4 | 2 | null | 2017-04-24T05:25:31 | 2017-02-02T23:36:07 | Swift | UTF-8 | Swift | false | false | 335 | swift | //
// QuizResult.swift
// Project Loca
//
// Created by Jake Cronin on 4/20/17.
// Copyright © 2017 TeamMilton370. All rights reserved.
//
import Foundation
import RealmSwift
class QuizResult: Object{
dynamic var word: Word!
dynamic var date: Date!
dynamic var correct = false
dynamic var timeLapsed: TimeInterval = 0
}
| [
-1
] |
fc54d4203b6487f2de99b83c2b677bd8c1d8167c | eedb7bf656a400a2698f22352c394c6bd3303cd1 | /mvp/toast-project/toast-project/Contribution/CarouselViews/ReviewAccesoryView/ReviewAccesoryView.swift | c07770985ce5fa48e3a8c003d8ba497939fbf7e2 | [] | no_license | ckn220/TOAST-previously-LastEats | 11fd3b166a2656d6b5e4e79f07ca3b9712c34e71 | 81485e0b7c976e9719b8e52215fe6232f764fd20 | refs/heads/master | 2021-05-30T11:55:20.056207 | 2015-11-14T12:11:34 | 2015-11-14T12:11:34 | 17,371,679 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,915 | swift | //
// ReviewAccesoryView.swift
// toast-project
//
// Created by Diego Cruz on 3/29/15.
// Copyright (c) 2015 Diego Cruz. All rights reserved.
//
import UIKit
import Parse
protocol ReviewAccesoryViewDelegate{
func reviewAccesoryViewDidSelect(hashtag:PFObject)
}
class ReviewAccesoryView: UIView,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout {
@IBOutlet weak var hashtagCollectionView: UICollectionView!
var myHashtags = [PFObject]()
var myDelegate: ReviewAccesoryViewDelegate?
var moods:[PFObject]!
override func layoutSubviews() {
super.layoutSubviews()
configure()
}
func configure(){
hashtagCollectionView.registerNib(UINib(nibName: "ToastHashtagCell", bundle: nil), forCellWithReuseIdentifier: "hashtagCell")
//configureCollectionView()
configureHashtags()
}
private func configureCollectionView(){
let layout = (hashtagCollectionView.collectionViewLayout as! UICollectionViewFlowLayout)
layout.estimatedItemSize = CGSize(width: 60,height: 30)
}
private func configureHashtags(){
let objectsId = objectsIdArray(moods: moods)
PFCloud.callFunctionInBackground(/*"moodsTopHashtags"*/"defaultHashtags", withParameters: ["moods":objectsId,"limit":45]) { (results, error) -> Void in
if error == nil{
self.myHashtags = results as! [PFObject]
NSLog("Hashtags count: %d", self.myHashtags.count)
self.hashtagCollectionView.reloadData()
}else{
NSLog("configureHashtags error: %@",error!.description)
}
}
}
private func objectsIdArray(moods moods:[PFObject])->[String]{
var array=[String]()
for m in moods{
array.append(m.objectId!)
}
return array
}
func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int {
return 1
}
func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return myHashtags.count
}
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCellWithReuseIdentifier("hashtagCell", forIndexPath: indexPath)
let item = myHashtags[indexPath.row]
configureCell(cell, item: item)
return cell
}
private func configureCell(cell:UICollectionViewCell, item:PFObject){
let label = cell.viewWithTag(101) as! UILabel
label.text = "#"+(item["name"] as! String)
}
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAtIndex section: Int) -> CGFloat {
return 0
}
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAtIndex section: Int) -> CGFloat {
return 0
}
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -> UIEdgeInsets {
return UIEdgeInsetsMake(0, 10, 0, 10)
}
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
let itemWidth = CGRectGetWidth(collectionView.bounds) * 0.4
return CGSizeMake(itemWidth, 30)
}
func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
collectionView.deselectItemAtIndexPath(indexPath, animated: true)
myDelegate?.reviewAccesoryViewDidSelect(myHashtags[indexPath.row])
}
}
| [
-1
] |
59a29f0f38c470520cef433975a088a8a8e3e7d9 | 5f587410069808a4a632bad0c380e340c1949f41 | /DokoikoTests/Entities/Utils/DateUtilsTests.swift | 8fc7fb148d1e7f8a003dfd5ea029cbe9427e0e67 | [] | no_license | tyomashin/Dokoiko | 02c79da825b6c4f247813730fa96e88cc8868b28 | 4e9c4bfa2ffb869b1d0046e67ac311640f9b42fd | refs/heads/main | 2023-07-13T04:56:08.685419 | 2021-08-29T04:51:35 | 2021-08-29T04:51:35 | 329,017,984 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,565 | swift | //
// DateUtilsTests.swift
// DokoikoTests
//
// Created by 岡崎伸也 on 2021/05/03.
//
@testable import Dokoiko
import XCTest
class DateUtilsTests: XCTestCase {
private var dateUtils: DateUtils!
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
super.setUp()
dateUtils = DateUtils()
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
dateUtils = nil
super.tearDown()
}
/// Dateを任意のフォーマット文字列に変換するメソッドのテスト
func testGetFormatterStrJP() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
var calendar = Calendar(identifier: .gregorian)
calendar.timeZone = TimeZone(identifier: "Asia/Tokyo")!
let date = calendar.date(from: DateComponents(year: 2020, month: 4, day: 10, hour: 21, minute: 0, second: 20))
let formatDateStr = dateUtils.getFormatterStrJP(date: date!, formatter: "yyyy年MM月dd日HH時mm分ss秒")
XCTAssertEqual(formatDateStr, "2020年04月10日21時00分20秒")
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
measure {
// Put the code you want to measure the time of here.
}
}
}
| [
-1
] |
67052f0c5b9ea53a0d22186b50a3e8a71d23d102 | 858664b9ae44ecf6654a497681695bac65dd40f3 | /BYColorPickerSwiftExample/BYGfxUtility.swift | 079b6d09076a4363f8108ec5e21c0c1d138a1b1c | [
"MIT"
] | permissive | berkyuksel/BYColorPicker-Swift | 976175359e7039c779204828075efeaa4bd3dfb3 | e1db89bf107010aed94cc0881c85962a66bedf23 | refs/heads/master | 2021-01-12T01:16:02.814561 | 2017-01-08T18:43:57 | 2017-01-08T18:43:57 | 78,362,373 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 897 | swift | //
// BYGfxUtility.swift
// BYColorPickerSwiftExample
//
// Created by Berk Yuksel on 08/01/2017.
// Copyright © 2017 Berk Yuksel. All rights reserved.
//
import UIKit
class BYGfxUtility {
static func drawInnerShadow(inContext context:CGContext, withPath path:CGPath, color:CGColor, offset:CGSize, blurRadius:CGFloat){
context.saveGState()
context.addPath(path)
context.clip()
let opaqueShadowColor = color.copy(alpha: 1.0)
context.setAlpha(color.alpha)
context.beginTransparencyLayer(auxiliaryInfo: nil)
context.setShadow(offset: offset, blur: blurRadius, color: opaqueShadowColor)
context.setBlendMode(CGBlendMode.sourceOut)
context.setFillColor(opaqueShadowColor!)
context.addPath(path)
context.fillPath()
context.endTransparencyLayer()
context.restoreGState()
}
}
| [
-1
] |
9da2b54cde30f64df2107d12d8ff6ad209043aaa | eed693fa55889e2b021717a8594e03f25b7302b4 | /planburger/ViewController.swift | 462ec2c269cc919958ef0b77c3bf61ce6288a60c | [] | no_license | rpgdice/planburger | d75f1d3b2e792299e261d8a39b3b36f0914ebee6 | de6418422c68c00b67f91ac3d493d7c580af6c2f | refs/heads/master | 2020-03-16T06:54:44.412435 | 2018-05-08T07:13:17 | 2018-05-08T07:13:17 | 132,561,580 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 504 | swift | //
// ViewController.swift
// planburger
//
// Created by 최호생 on 2018. 5. 8..
// Copyright © 2018년 hafen. 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.
}
}
| [
307212,
278543,
237616,
292915,
360501,
286775,
288827,
290875,
286786,
243786,
286796,
237655,
307288,
200802,
309347,
276580,
309349,
309351,
309353,
307311,
276597,
278657,
276612,
280710,
303242,
311437,
278675,
307353,
299165,
278693,
100521,
307379,
280760,
184504,
280770,
227523,
280772,
280775,
276686,
229585,
307410,
280797,
278749,
278752,
301284,
280808,
280810,
286963,
280821,
286965,
280826,
280832,
276736,
309506,
278786,
278791,
287004,
287007,
233767,
307516,
278845,
289088,
311624,
289112,
311645,
323933,
289120,
289121,
227688,
313706,
299374,
199024,
276849,
278897,
311684,
313733,
233869,
285087,
289187,
289190,
289191,
305577,
289196,
305582,
285103,
289204,
278968,
127418,
293308,
278973,
311761,
283093,
276959,
279011,
276965,
281078,
236022,
233980,
287231,
279041,
279046,
215562,
287243,
281107,
279064,
281118,
295460,
289318,
309807,
281142,
279096,
234043,
277057,
129604,
301637,
158285,
311913,
281202,
277108,
287350,
285321,
117399,
228000,
225955,
287399,
326311,
277171,
299709,
285377,
285378,
287437,
299727,
226009,
291556,
277224,
199402,
234223,
312049,
289524,
226038,
234232,
230147,
226055,
299786,
295699,
369434,
281373,
228127,
281380,
283433,
289578,
312107,
293682,
289596,
283453,
279360,
289600,
293700,
283461,
308064,
303977,
293742,
162672,
277364,
207738,
291709,
303998,
183173,
304008,
324491,
304012,
304015,
279442,
226196,
277406,
275358,
234402,
291755,
297903,
324528,
230323,
234423,
277432,
293816,
291774,
295874,
299973,
234465,
168936,
289771,
183278,
277487,
293874,
293875,
293888,
277512,
275466,
300057,
304174,
300086,
234551,
300089,
238653,
293961,
203858,
281701,
281703,
296042,
277612,
164974,
312433,
300149,
189557,
234619,
226447,
234641,
349332,
285855,
302256,
283839,
277696,
228548,
228551,
279751,
279754,
230604,
298189,
302286,
230608,
290004,
290006,
189655,
302295,
298202,
298206,
363743,
290020,
228585,
120054,
204027,
300288,
292102,
312586,
130346,
300358,
238920,
234829,
296272,
230737,
230745,
306540,
300400,
310649,
333179,
290175,
275842,
224643,
298375,
300432,
226705,
310673,
304531,
306577,
306578,
304536,
304540,
288165,
304550,
304551,
370093,
286126,
277935,
279982,
282035,
292277,
296374,
130487,
144822,
292280,
306633,
286158,
280015,
310734,
286162,
163289,
280028,
280029,
280030,
286175,
286189,
282095,
308721,
296436,
302580,
310773,
288251,
290299,
286204,
290303,
282143,
294433,
284197,
296487,
296489,
286249,
226878,
288321,
228932,
226887,
284235,
288331,
226896,
212561,
284242,
292435,
228945,
300629,
276054,
280146,
284240,
282202,
212573,
40545,
284261,
306791,
286314,
284275,
314996,
284277,
294518,
276087,
284279,
292478,
284287,
284289,
276099,
284298,
278157,
282262,
280219,
284315,
284317,
282270,
282275,
284323,
280231,
284328,
198315,
313007,
284336,
302767,
284341,
286390,
300727,
276150,
282301,
296638,
302788,
282311,
276167,
284361,
239310,
282320,
317137,
239314,
284373,
282329,
282338,
284391,
282346,
358127,
282357,
358139,
282365,
286462,
282368,
358147,
282377,
300817,
282389,
282393,
278298,
329499,
276256,
278304,
315170,
282403,
304933,
282411,
159541,
282426,
288577,
288579,
307029,
276309,
298842,
241499,
298843,
188253,
292701,
296811,
296813,
315250,
284534,
292730,
284570,
294812,
284574,
284576,
284577,
284580,
284586,
276396,
282548,
298936,
10179,
296901,
165832,
301012,
301016,
292824,
294889,
231405,
227315,
237556,
237564
] |
da49a80c53a04c3561bd109ac442ba2fc9077204 | 384d0d89449d8576bf420ce117eb0a9d1d3b939e | /AuthenticatorScreenshots/AuthenticatorScreenshots.swift | 56617a69df701d00a0a6a5b786825df57652511f | [
"MIT",
"Apache-2.0"
] | permissive | turlodales/Authenticator | cec3547dab4f1277c998ff7594e8835d0073fdd5 | 154b44a644157b375be4886fd9d5c682bcd400af | refs/heads/develop | 2023-02-21T05:13:25.732289 | 2023-02-12T04:02:43 | 2023-02-12T04:02:43 | 235,522,256 | 0 | 0 | NOASSERTION | 2023-02-13T03:14:39 | 2020-01-22T07:37:38 | Swift | UTF-8 | Swift | false | false | 2,558 | swift | //
// AuthenticatorScreenshots.swift
// Authenticator
//
// Copyright (c) 2016-2017 Authenticator authors
//
// 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 XCTest
import SimulatorStatusMagiciOS
class AuthenticatorScreenshots: XCTestCase {
override class func setUp() {
super.setUp()
SDStatusBarManager.sharedInstance().enableOverrides()
}
override func setUp() {
super.setUp()
continueAfterFailure = false
let app = XCUIApplication()
setupSnapshot(app)
if let demoScannerImagePath = UserDefaults.standard.string(forKey: "demo-scanner-image") {
app.launchArguments += ["-demo-scanner-image", demoScannerImagePath]
}
app.launch()
}
override class func tearDown() {
SDStatusBarManager.sharedInstance().disableOverrides()
super.tearDown()
}
func testScreenshots() {
let app = XCUIApplication()
// Wait for the scroll bars to fade.
sleep(1)
// Take a screenshot of the token list.
snapshot("0-TokenList")
// Tap the "+" button.
app.toolbars.buttons["Add"].tap()
// Wait for the HUD to fade.
sleep(1)
// Take a screenshot of the token scanner.
snapshot("1-ScanToken")
app.navigationBars.buttons["Manual token entry"].tap()
// Wait for the scroll bars to fade.
sleep(1)
// Take a screenshot of the token entry form.
snapshot("2-AddToken")
}
}
| [
173635,
173637,
173639
] |
49de283ee14bea8e8474a80282f00a5d79a0c8da | a141bc7b82a683d76ead96a8ebf1926579923234 | /ademNewComputer/Views/AcctCellDesign.swift | b72dab4090ce6cdd92c69fac3a0651b7b8ed3fbe | [] | no_license | ccoats200/ademNewComputer | 6e9c313e573bd35a20bc901de2f14ffbd71583a1 | d4a153072da9fdb3691e9f82e208c482bb50c1b3 | refs/heads/master | 2022-01-08T15:06:58.894788 | 2019-07-23T23:50:34 | 2019-07-23T23:50:34 | 198,315,342 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 11,848 | swift | //
// AcctCellDesign.swift
// ademNewComputer
//
// Created by Coleman Coats on 7/22/19.
// Copyright © 2019 Coleman Coats. All rights reserved.
//
import Foundation
import UIKit
import Firebase
import FirebaseFirestore
import CoreBluetooth
//Second cell implementation elements
class familySection: UICollectionViewCell, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
let cellId2 = "cell2" // same as above unique id
let addFamily = "addFamily"
var profile: [profileContent]? = {
var eggs = profileContent()
eggs.personName = "Coleman"
eggs.profielImageIdentifier = "eggs"
var bitch = profileContent()
bitch.personName = "Dan"
bitch.profielImageIdentifier = "eggs"
var third = profileContent()
third.personName = "Will"
third.profielImageIdentifier = "eggs"
return [eggs, bitch, third]
}()
override init(frame: CGRect) {
super.init(frame: frame);
setupViews();
//MARK: Cell configuration at section
collectionView.register(familyCells.self, forCellWithReuseIdentifier: cellId2)
collectionView.contentInset = UIEdgeInsets.init(top: 10, left: 10, bottom: 10, right: 10)
//styling of the cell border
collectionView.layer.borderWidth = 2.0
collectionView.layer.borderColor = UIColor.ademGreen.cgColor
}
func setupViews(){
addSubview(collectionView);
collectionView.delegate = self;
collectionView.dataSource = self;
collectionView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true;
collectionView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true;
collectionView.topAnchor.constraint(equalTo: topAnchor).isActive = true;
collectionView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true;
}
let collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout();
layout.scrollDirection = .horizontal; //set scroll direction to horizontal
let cv = UICollectionView(frame: .zero, collectionViewLayout: layout);
//testing
cv.backgroundColor = .white
cv.layer.cornerRadius = 10
cv.translatesAutoresizingMaskIntoConstraints = false;
return cv
}()
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//let firstCell = collectionView.dequeueReusableCell(withReuseIdentifier: cellId2, for: indexPath) as! familyCells
let firstCell = collectionView.dequeueReusableCell(withReuseIdentifier: cellId2, for: indexPath) as! familyCells
firstCell.profileItems = profile![indexPath.item]
//firstCell.backgroundColor = .blue
firstCell.layer.cornerRadius = 46.5
return firstCell
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
let test = profile!.count
return test
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let cell0 = CGSize(width: self.frame.width/4, height: self.frame.height - 10)
return cell0
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
//Third cell
class deviceSection: UICollectionViewCell, CBCentralManagerDelegate, CBPeripheralDelegate, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
let cellId3 = "cell4" // same as above unique id
var centralManager : CBCentralManager!
var fruitPeripheral : CBPeripheral!
let fruitServiceCBUUID = [CBUUID(string: "6E400001-B5A3-F393-E0A9-E50E24DCCA9E")]
var profile: [profileContent]? = {
var deviceImages = profileContent()
deviceImages.deviceImage = "eggs"
return [deviceImages]
}()
override init(frame: CGRect) {
super.init(frame: frame)
setupViews()
collectionView.register(deviceCells.self, forCellWithReuseIdentifier: cellId3) //register custom UICollectionViewCell class.
// Here I am not using any custom class
collectionView.contentInset = UIEdgeInsets.init(top: 20, left: 20, bottom: 20, right: 20)
centralManager = CBCentralManager(delegate: self, queue: nil)
}
func setupViews(){
addSubview(collectionView)
collectionView.delegate = self
collectionView.dataSource = self
collectionView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
collectionView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true
collectionView.topAnchor.constraint(equalTo: topAnchor).isActive = true
collectionView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
centralManager = CBCentralManager(delegate: self, queue: nil)
}
let collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout()
layout.scrollDirection = .horizontal //set scroll direction to horizontal
let cv = UICollectionView(frame: .zero, collectionViewLayout: layout)
cv.backgroundColor = .blue //testing
cv.layer.cornerRadius = 10
cv.translatesAutoresizingMaskIntoConstraints = false
return cv
}()
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(SettingsVC.connected(_:)))
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: cellId3, for: indexPath)
return cell
}
/*
//Go to Device Cell
func connected(_ sender:AnyObject){
print("you tap image number : \(sender.view.tag)")
//Your code for navigate to another viewcontroller
}
*/
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return 4
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let deviceCount = 3
let cell0 = CGSize(width: self.frame.width/CGFloat(deviceCount), height: self.frame.height - 10)
return cell0
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func centralManagerDidUpdateState(_ central: CBCentralManager) {
if central.state == CBManagerState.poweredOn {
print("Bluetooth on")
centralManager.scanForPeripherals(withServices: fruitServiceCBUUID)
print("ADEM Found")
}
else {
print("Bluetooth off")
}
// switch central.state {
//
// case .unknown:
// print("BT unknown")
// case .resetting:
// print("BT resetting")
// case .unsupported:
// print("BT unsupported")
// case .unauthorized:
// print("BT unauthorized")
// case .poweredOff:
// print("BT powered off")
// case .poweredOn:
// print("BT powered on")
// centralManager.scanForPeripherals(withServices: nil)
// }
}
func centralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber) {
print(peripheral, " ", peripheral.services as Any)
fruitPeripheral = peripheral
fruitPeripheral.delegate = self
centralManager.stopScan()
centralManager.connect(fruitPeripheral)
}
func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) {
let tempindex = IndexPath(item: 0, section: 0)
if let temp = self.collectionView.cellForItem(at: tempindex) as? deviceCells {
temp.kitchenStaff0.layer.borderColor = UIColor.rgb(red: 0, green: 0, blue: 0).cgColor
// temp.layer.borderColor = UIColor.rgb(red: 0, green: 0, blue: 0).cgColor
}
self.collectionView.reloadData()
print("Connected af")
//trying the 6e400... first
//peripheral.discoverServices(fruitServiceCBUUID)
peripheral.discoverServices(nil)
}
func peripheral(_ peripheral: CBPeripheral, didDiscoverServices error: Error?) {
guard let services = peripheral.services else { return }
for service in services {
//peripheral.discoverCharacteristics(nil, for: service)
print(service)
}
}
/*
func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService,
error: Error?) {
print("This is running")
guard let characteristics = service.characteristics else { return }
for characteristic in characteristics {
print(characteristic)
}
}
*/
}
//Fourth cell
class privacySection: UICollectionViewCell, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
let cellId4 = "cell4" // same as above unique id
var aP: [profileContent]? = {
var accountUI = profileContent()
accountUI.userNameLabel = "Account"
accountUI.profileImage = "eggs"
var privacyUI = profileContent()
privacyUI.userNameLabel = "Privacy"
privacyUI.profileImage = "eggs"
return [accountUI, privacyUI]
}()
override init(frame: CGRect) {
super.init(frame: frame);
setupViews();
collectionView.register(accountAndPrivacyCollectionViewCells.self, forCellWithReuseIdentifier: cellId4) //register custom UICollectionViewCell class.
// Here I am not using any custom class
//collectionView.contentInset = UIEdgeInsets.init(top: 20, left: 20, bottom: 20, right: 20)
collectionView.isScrollEnabled = false
}
func setupViews(){
addSubview(collectionView);
collectionView.delegate = self;
collectionView.dataSource = self;
collectionView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true;
collectionView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true;
collectionView.topAnchor.constraint(equalTo: topAnchor).isActive = true;
collectionView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true;
}
let collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout();
layout.scrollDirection = .horizontal; //set scroll direction to horizontal
let cv = UICollectionView(frame: .zero, collectionViewLayout: layout);
cv.backgroundColor = .blue; //testing
cv.layer.cornerRadius = 10
cv.translatesAutoresizingMaskIntoConstraints = false;
return cv
}()
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
//let selected = cellId4[collectionView.tag][indexPath.item]
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(SettingsVC.connected(_:)))
switch indexPath.item {
case 0:
let account = collectionView.dequeueReusableCell(withReuseIdentifier: cellId4, for: indexPath) as! accountAndPrivacyCollectionViewCells
account.backgroundColor = UIColor.rgb(red: 241, green: 249, blue: 255)
account.layer.cornerRadius = 10
return account
case 1:
let privacy = collectionView.dequeueReusableCell(withReuseIdentifier: cellId4, for: indexPath)
privacy.backgroundColor = UIColor.red
return privacy
default:
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: cellId4, for: indexPath)
return cell
}
}
//Go to Device Cell
func connected(_ sender:AnyObject){
print("you tap image number : \(sender.view.tag)")
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return 2
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let deviceCount = 2
let cell0 = CGSize(width: self.frame.width/CGFloat(deviceCount), height: self.frame.height)
return cell0
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
| [
-1
] |
a74735ac723a3cf0590b311dc2f24f28f70bdfe1 | be77dc544bf1126383a83a3cf248b7b442bdd239 | /ToastViewiOS/AppDelegate.swift | e812151e41f672854479bb810f54f5d0a2643c19 | [] | no_license | anvesh039/ToastMessageViewIOS | 90c230a4f1fe27369adc8287e3397b9c44e13c58 | 0640092c9e6566f2c0ae08bd152b627c9665c15f | refs/heads/master | 2020-04-15T08:21:17.233280 | 2019-01-08T00:34:35 | 2019-01-08T00:34:35 | 164,519,832 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,109 | swift | //
// AppDelegate.swift
// ToastViewiOS
//
// Created by Anvesh reddy
//
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,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
204856,
229432,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
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,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
320007,
287238,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
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,
287390,
303773,
172705,
287394,
172707,
303780,
164509,
287398,
205479,
287400,
279208,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
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,
189325,
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,
132165,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
164973,
205934,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
230679,
320792,
230681,
296215,
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,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
288154,
337306,
173472,
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,
288210,
370130,
222676,
280021,
288212,
288214,
239064,
329177,
288217,
288218,
280027,
288220,
239070,
288224,
288226,
370146,
280036,
288229,
320998,
280038,
288232,
288230,
288234,
280034,
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,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
313044,
280276,
321239,
280283,
313052,
18140,
288478,
313055,
321252,
313066,
288494,
280302,
280304,
313073,
321266,
419570,
288499,
288502,
288510,
124671,
67330,
280324,
198405,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
337732,
280388,
304968,
280393,
280402,
173907,
313171,
313176,
280419,
321381,
296809,
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,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
288909,
141455,
141459,
280725,
313498,
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,
248153,
215387,
354653,
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,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
330244,
240132,
223752,
150025,
338440,
281095,
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,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
158596,
183172,
338823,
322440,
314249,
240519,
183184,
289687,
240535,
224151,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
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,
290321,
282130,
323090,
290325,
282133,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
28219,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
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,
148946,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
282481,
315251,
110450,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
298901,
44948,
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,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
323763,
184503,
176311,
307385,
307386,
258235,
307388,
176316,
307390,
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,
176592,
315860,
176597,
127447,
283095,
299481,
176605,
242143,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
127494,
283142,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
135707,
234010,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234038,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
135808,
291456,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
242396,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
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,
316294,
201603,
226182,
308105,
324490,
234375,
226185,
234379,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
234396,
324508,
291742,
226200,
234401,
291747,
291748,
234405,
291750,
324518,
324520,
234407,
324522,
234410,
291756,
291754,
226220,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
324536,
275384,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
234437,
226245,
226239,
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,
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,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
324757,
234647,
234648,
226453,
234650,
308379,
275606,
300189,
324766,
119967,
234653,
324768,
283805,
234657,
242852,
300197,
234661,
177318,
283813,
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,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
349451,
177424,
275725,
283917,
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,
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,
292414,
284223,
284226,
284228,
243268,
292421,
284231,
226886,
128584,
284234,
366155,
317004,
276043,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
292433,
284247,
317015,
235097,
243290,
284249,
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,
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,
399252,
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,
350186,
292843,
276460,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
350210,
276482,
178181,
317446,
276485,
350218,
276490,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
178224,
276528,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
350293,
350295,
309337,
194649,
350299,
227418,
350302,
194654,
350304,
178273,
309346,
227423,
194660,
350308,
309350,
309348,
292968,
309352,
309354,
301163,
350313,
350316,
276583,
301167,
276586,
350321,
276590,
227440,
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,
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,
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,
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,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
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,
342745,
137946,
342747,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
56045,
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,
310080,
293696,
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,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
276579,
293817,
293820,
203715,
326603,
342994,
293849,
293861,
228327,
228328,
318442,
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,
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,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
302403,
294211,
384328,
277832,
277836,
294221,
146765,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
310727,
245191,
64966,
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,
302614,
302617,
286233,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
245288,
310831,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286312,
40554,
286313,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
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,
360322,
40840,
40851,
294803,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
237508,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
311283,
278516,
237562
] |
be841b075992cc1dab5514f369c317915748996e | 21a95dc0ee37a75fbe4d30b47629e9d0d884c496 | /quitic3/Controllers/searchController/searchTableViewCell.swift | 072f9e66ec06d530deac2f3df54af19d9148ab68 | [] | no_license | Developer-Rahmah/celeb | eb1665ddc5e1337649025c2c427b1ed5808deedb | dfc0f13464b448bfa1c189d5807434d5512e98d7 | refs/heads/master | 2020-07-28T23:06:49.900044 | 2019-09-19T14:10:29 | 2019-09-19T14:10:29 | 209,569,918 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 577 | swift | //
// searchTableViewCell.swift
// quitic3
//
// Created by DOT on 8/7/18.
// Copyright © 2018 DOT. All rights reserved.
//
import UIKit
class searchTableViewCell: UITableViewCell {
@IBOutlet weak var cellImage: UIImageView!
@IBOutlet weak var cellLabel: UILabel!
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
}
}
| [
172545,
384002,
206343,
241159,
241160,
34318,
34319,
34320,
372750,
372753,
372754,
307218,
328221,
366111,
345634,
345635,
356391,
278567,
305202,
292919,
310839,
289336,
123451,
66109,
332882,
215125,
115311,
115313,
403072,
131721,
230545,
139419,
131745,
131748,
148647,
300206,
327344,
313522,
166583,
313528,
313529,
313530,
313546,
278220,
278231,
290007,
291544,
131808,
131814,
131817,
375532,
228599,
298746,
228602,
322306,
298255,
225040,
298258,
312598,
320790,
67356,
336156,
123678,
336159,
336160,
336161,
336158,
123681,
336164,
349477,
293674,
287022,
110387,
282934,
399679,
200513,
300356,
157512,
302922,
380242,
200542,
350050,
317283,
317296,
112499,
317302,
177015,
244599,
244602,
233853,
233857,
277904,
320404,
311211,
258998,
281014,
306623,
306625,
306626,
306627,
317377,
317378,
317379,
317381,
311755,
311756,
311757,
311759,
430546,
430547,
346078,
167415,
310778,
196093,
201727
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.