Skip to content

Commit 2ff5233

Browse files
committed
swift 2.3 update
1 parent f3d8e5a commit 2ff5233

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

DOAlertController-DEMO/DOAlertController-DEMO.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,12 @@
188188
TargetAttributes = {
189189
05D1AFE71CB2A073002E5C24 = {
190190
CreatedOnToolsVersion = 7.3;
191+
LastSwiftMigration = 0800;
191192
};
192193
4F47CAAA1AE26BD100BF71E4 = {
193194
CreatedOnToolsVersion = 6.2;
195+
DevelopmentTeam = M8F9QH57A6;
196+
LastSwiftMigration = 0800;
194197
};
195198
};
196199
};
@@ -285,9 +288,11 @@
285288
isa = XCBuildConfiguration;
286289
buildSettings = {
287290
CLANG_ANALYZER_NONNULL = YES;
291+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
288292
CURRENT_PROJECT_VERSION = 1;
289293
DEBUG_INFORMATION_FORMAT = dwarf;
290294
DEFINES_MODULE = YES;
295+
DEVELOPMENT_TEAM = "";
291296
DYLIB_COMPATIBILITY_VERSION = 1;
292297
DYLIB_CURRENT_VERSION = 1;
293298
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -300,6 +305,7 @@
300305
PRODUCT_BUNDLE_IDENTIFIER = co.devlog.DOAlertController;
301306
PRODUCT_NAME = "$(TARGET_NAME)";
302307
SKIP_INSTALL = YES;
308+
SWIFT_VERSION = 2.3;
303309
TARGETED_DEVICE_FAMILY = "1,2";
304310
VERSIONING_SYSTEM = "apple-generic";
305311
VERSION_INFO_PREFIX = "";
@@ -313,6 +319,7 @@
313319
CURRENT_PROJECT_VERSION = 1;
314320
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
315321
DEFINES_MODULE = YES;
322+
DEVELOPMENT_TEAM = "";
316323
DYLIB_COMPATIBILITY_VERSION = 1;
317324
DYLIB_CURRENT_VERSION = 1;
318325
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -324,6 +331,7 @@
324331
PRODUCT_BUNDLE_IDENTIFIER = co.devlog.DOAlertController;
325332
PRODUCT_NAME = "$(TARGET_NAME)";
326333
SKIP_INSTALL = YES;
334+
SWIFT_VERSION = 2.3;
327335
TARGETED_DEVICE_FAMILY = "1,2";
328336
VERSIONING_SYSTEM = "apple-generic";
329337
VERSION_INFO_PREFIX = "";
@@ -411,11 +419,13 @@
411419
isa = XCBuildConfiguration;
412420
buildSettings = {
413421
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
422+
DEVELOPMENT_TEAM = M8F9QH57A6;
414423
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
415424
INFOPLIST_FILE = "DOAlertController-DEMO/Info.plist";
416425
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
417426
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418427
PRODUCT_NAME = "$(TARGET_NAME)";
428+
SWIFT_VERSION = 2.3;
419429
TARGETED_DEVICE_FAMILY = "1,2";
420430
};
421431
name = Debug;
@@ -424,11 +434,13 @@
424434
isa = XCBuildConfiguration;
425435
buildSettings = {
426436
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
437+
DEVELOPMENT_TEAM = M8F9QH57A6;
427438
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
428439
INFOPLIST_FILE = "DOAlertController-DEMO/Info.plist";
429440
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
430441
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
431442
PRODUCT_NAME = "$(TARGET_NAME)";
443+
SWIFT_VERSION = 2.3;
432444
TARGETED_DEVICE_FAMILY = "1,2";
433445
};
434446
name = Release;

DOAlertController-DEMO/DOAlertController/DOAlertController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class DOAlertAnimation : NSObject, UIViewControllerAnimatedTransitioning
9292
} else {
9393
alertController.alertView.transform = CGAffineTransformMakeTranslation(0, alertController.alertView.frame.height)
9494
}
95-
containerView!.addSubview(alertController.view)
95+
containerView.addSubview(alertController.view)
9696

9797
UIView.animateWithDuration(0.25,
9898
animations: {
@@ -654,7 +654,7 @@ public class DOAlertController : UIViewController, UITextFieldDelegate, UIViewCo
654654
let contextRef: CGContextRef = UIGraphicsGetCurrentContext()!
655655
CGContextSetFillColorWithColor(contextRef, color.CGColor)
656656
CGContextFillRect(contextRef, rect)
657-
let img: UIImage = UIGraphicsGetImageFromCurrentImageContext()
657+
let img: UIImage = UIGraphicsGetImageFromCurrentImageContext()!
658658
UIGraphicsEndImageContext()
659659
return img
660660
}

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,17 @@ alertController.buttonBgColorHighlighted[.Default] = UIColor(red:64/255, green:2
7777
// Destructive style : [.Default] → [.Destructive]
7878
```
7979

80-
## Installation
81-
DOAlertController is available through [CocoaPods](http://cocoapods.org).
80+
## Version Compatibility
81+
82+
Current Swift compatibility breakdown:
83+
84+
| Swift Version | Framework Version |
85+
| ------------- | ----------------- |
86+
| 3.0 | master |
87+
| 2.3 | 1.3 |
88+
89+
[all releases](https://github.com/wieweb/DOAlertController/releases)
8290

83-
To install add the following line to your Podfile:
84-
```
85-
pod 'DOAlertController'
86-
```
8791
### Carthage
8892

8993
Add the following line to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile).

0 commit comments

Comments
 (0)