File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 10271027 SDKROOT = appletvos;
10281028 SKIP_INSTALL = YES;
10291029 SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
1030+ SWIFT_VERSION = 4.2;
10301031 TARGETED_DEVICE_FAMILY = 3;
10311032 TVOS_DEPLOYMENT_TARGET = 9.2;
10321033 };
10521053 PRODUCT_NAME = Cache;
10531054 SDKROOT = appletvos;
10541055 SKIP_INSTALL = YES;
1056+ SWIFT_VERSION = 4.2;
10551057 TARGETED_DEVICE_FAMILY = 3;
10561058 TVOS_DEPLOYMENT_TARGET = 9.2;
10571059 };
11431145 PRODUCT_NAME = Cache;
11441146 SDKROOT = macosx;
11451147 SKIP_INSTALL = YES;
1148+ SWIFT_VERSION = 4.2;
11461149 };
11471150 name = Debug;
11481151 };
11651168 PRODUCT_NAME = Cache;
11661169 SDKROOT = macosx;
11671170 SKIP_INSTALL = YES;
1171+ SWIFT_VERSION = 4.2;
11681172 };
11691173 name = Release;
11701174 };
12501254 ONLY_ACTIVE_ARCH = YES;
12511255 SDKROOT = iphoneos;
12521256 SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1253- SWIFT_VERSION = 4.0 ;
1257+ SWIFT_VERSION = 4.2 ;
12541258 TARGETED_DEVICE_FAMILY = "1,2";
12551259 VERSIONING_SYSTEM = "apple-generic";
12561260 VERSION_INFO_PREFIX = "";
13021306 MTL_ENABLE_DEBUG_INFO = NO;
13031307 SDKROOT = iphoneos;
13041308 SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1305- SWIFT_VERSION = 4.0 ;
1309+ SWIFT_VERSION = 4.2 ;
13061310 TARGETED_DEVICE_FAMILY = "1,2";
13071311 VALIDATE_PRODUCT = YES;
13081312 VERSIONING_SYSTEM = "apple-generic";
13261330 PRODUCT_BUNDLE_IDENTIFIER = no.hyper.Cache;
13271331 PRODUCT_NAME = Cache;
13281332 SKIP_INSTALL = YES;
1333+ SWIFT_VERSION = 4.2;
13291334 };
13301335 name = Debug;
13311336 };
13451350 PRODUCT_BUNDLE_IDENTIFIER = no.hyper.Cache;
13461351 PRODUCT_NAME = Cache;
13471352 SKIP_INSTALL = YES;
1353+ SWIFT_VERSION = 4.2;
13481354 };
13491355 name = Release;
13501356 };
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extension UIImage {
2323 /// Convert to data
2424 func cache_toData( ) -> Data ? {
2525 return hasAlpha
26- ? UIImagePNGRepresentation ( self )
27- : UIImageJPEGRepresentation ( self , 1.0 )
26+ ? self . pngData ( )
27+ : self . jpegData ( compressionQuality : 1.0 )
2828 }
2929}
You can’t perform that action at this time.
0 commit comments