Skip to content

Commit

Permalink
Update to Swift 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
DevLiuSir committed May 7, 2018
1 parent 8afd975 commit 3e72fea
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ let screenWith = UIScreen.main.bounds.size.width
/// 默认完成按钮颜色
public let defaultDoneColor = UIColor(red:0.45, green:0.69, blue:0.95, alpha:1.00)

/// 样式
/// 键盘样式
///
/// - idcard: 身份证类型
/// - number: 数字类型
public enum Style {
public enum KeyboardStyle {

/// 身份证类型
case idcard
Expand All @@ -31,7 +31,7 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer

// MARK: - 属性
// 存储属性
open static let `default` = CustomKeyboard(frame: CGRect(x: 0, y: 0, width: screenWith, height: 300), inputViewStyle: .keyboard)
public static let `default` = CustomKeyboard(frame: CGRect(x: 0, y: 0, width: screenWith, height: 300), inputViewStyle: .keyboard)

/// 文本输入框
private var textFields = [UITextField]()
Expand All @@ -48,10 +48,10 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer
/// 按钮文字
fileprivate lazy var titles = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]

/// 样式
public var style = Style.idcard {
/// 键盘样式
public var keyboardStyle = KeyboardStyle.idcard {
didSet { // 监听 `style` 数值的改变, 从而设置数字键盘的样式
setDigitButton(style)
setDigitButton(keyboardStyle)
}
}

Expand All @@ -73,8 +73,8 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer
*参数三:通知的名字
*参数四:收到指定对象的通知,没有指定具体对象就写nil
*/
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: UIResponder.keyboardWillHideNotification, object: nil)
}else {
NotificationCenter.default.removeObserver(self)
}
Expand Down Expand Up @@ -119,7 +119,7 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer
/// - Parameters:
/// - frame: 尺寸
/// - inputViewStyle: 输入视图样式
public override init(frame: CGRect, inputViewStyle: UIInputViewStyle) {
public override init(frame: CGRect, inputViewStyle: UIInputView.Style) {
super.init(frame: frame, inputViewStyle: inputViewStyle)
}

Expand All @@ -141,7 +141,7 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer
let btnHeight = frame.height / CGFloat(columnsNum)

/***循环布局12个按钮***/
for i in 0...11 {
for i in 0...11 {
let view = viewWithTag(i + 1)
view?.frame.origin.x = btnWidth * CGFloat((i) % 3) //3个按钮以换行
view?.frame.origin.y = btnHeight * CGFloat((i) / 3)
Expand Down Expand Up @@ -405,11 +405,11 @@ open class CustomKeyboard: UIInputView, UITextFieldDelegate, UIGestureRecognizer
/// 设置数字按钮的样式
///
/// - Parameter style: 样式
private func setDigitButton(_ style: Style) {
private func setDigitButton(_ style: KeyboardStyle) {
guard let button = findButton(by: 12) else {
fatalError("not found the button with the tag")
}
switch style {
switch keyboardStyle {
case .idcard:
button.setTitle("X", for: .normal)
case .number:
Expand Down
120 changes: 63 additions & 57 deletions CustomKeyboardExample/CustomKeyboardExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@
objects = {

/* Begin PBXBuildFile section */
6B182C08227C144500643783 /* CustomKeyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B182C00227C144400643783 /* CustomKeyboard.swift */; };
6B182C09227C144500643783 /* CustomKeyboard.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C02227C144400643783 /* CustomKeyboard.bundle */; };
6B182C0A227C144500643783 /* Keyboard_Backspace@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C03227C144400643783 /* Keyboard_Backspace@2x.png */; };
6B182C0B227C144500643783 /* Keyboard_Backspace@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C04227C144400643783 /* Keyboard_Backspace@3x.png */; };
6B182C0C227C144500643783 /* Keyboard_DismissKey.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C05227C144400643783 /* Keyboard_DismissKey.png */; };
6B182C0D227C144500643783 /* Keyboard_DismissKey@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C06227C144400643783 /* Keyboard_DismissKey@2x.png */; };
6B182C0E227C144500643783 /* Keyboard_DismissKey@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B182C07227C144400643783 /* Keyboard_DismissKey@3x.png */; };
6B9CDF1D201789B800974C42 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B9CDF1C201789B800974C42 /* AppDelegate.swift */; };
6B9CDF1F201789B800974C42 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B9CDF1E201789B800974C42 /* ViewController.swift */; };
6B9CDF22201789B800974C42 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF20201789B800974C42 /* Main.storyboard */; };
6B9CDF24201789B800974C42 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF23201789B800974C42 /* Assets.xcassets */; };
6B9CDF27201789B800974C42 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF25201789B800974C42 /* LaunchScreen.storyboard */; };
6B9CDF3820178A8800974C42 /* CustomKeyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B9CDF2F20178A8800974C42 /* CustomKeyboard.swift */; };
6B9CDF3920178A8800974C42 /* CustomKeyboard.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3120178A8800974C42 /* CustomKeyboard.bundle */; };
6B9CDF3A20178A8800974C42 /* Keyboard_Backspace@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3320178A8800974C42 /* Keyboard_Backspace@2x.png */; };
6B9CDF3B20178A8800974C42 /* Keyboard_Backspace@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3420178A8800974C42 /* Keyboard_Backspace@3x.png */; };
6B9CDF3C20178A8800974C42 /* Keyboard_DismissKey.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3520178A8800974C42 /* Keyboard_DismissKey.png */; };
6B9CDF3D20178A8800974C42 /* Keyboard_DismissKey@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3620178A8800974C42 /* Keyboard_DismissKey@2x.png */; };
6B9CDF3E20178A8800974C42 /* Keyboard_DismissKey@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B9CDF3720178A8800974C42 /* Keyboard_DismissKey@3x.png */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
6B182C00227C144400643783 /* CustomKeyboard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomKeyboard.swift; sourceTree = "<group>"; };
6B182C02227C144400643783 /* CustomKeyboard.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = CustomKeyboard.bundle; sourceTree = "<group>"; };
6B182C03227C144400643783 /* Keyboard_Backspace@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_Backspace@2x.png"; sourceTree = "<group>"; };
6B182C04227C144400643783 /* Keyboard_Backspace@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_Backspace@3x.png"; sourceTree = "<group>"; };
6B182C05227C144400643783 /* Keyboard_DismissKey.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Keyboard_DismissKey.png; sourceTree = "<group>"; };
6B182C06227C144400643783 /* Keyboard_DismissKey@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_DismissKey@2x.png"; sourceTree = "<group>"; };
6B182C07227C144400643783 /* Keyboard_DismissKey@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_DismissKey@3x.png"; sourceTree = "<group>"; };
6B9CDF19201789B800974C42 /* CustomKeyboardExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomKeyboardExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
6B9CDF1C201789B800974C42 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6B9CDF1E201789B800974C42 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
6B9CDF21201789B800974C42 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
6B9CDF23201789B800974C42 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6B9CDF26201789B800974C42 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
6B9CDF28201789B800974C42 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
6B9CDF2F20178A8800974C42 /* CustomKeyboard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomKeyboard.swift; sourceTree = "<group>"; };
6B9CDF3120178A8800974C42 /* CustomKeyboard.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = CustomKeyboard.bundle; sourceTree = "<group>"; };
6B9CDF3320178A8800974C42 /* Keyboard_Backspace@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_Backspace@2x.png"; sourceTree = "<group>"; };
6B9CDF3420178A8800974C42 /* Keyboard_Backspace@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_Backspace@3x.png"; sourceTree = "<group>"; };
6B9CDF3520178A8800974C42 /* Keyboard_DismissKey.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Keyboard_DismissKey.png; sourceTree = "<group>"; };
6B9CDF3620178A8800974C42 /* Keyboard_DismissKey@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_DismissKey@2x.png"; sourceTree = "<group>"; };
6B9CDF3720178A8800974C42 /* Keyboard_DismissKey@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Keyboard_DismissKey@3x.png"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -49,65 +49,65 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
6B9CDF10201789B800974C42 = {
6B182BFE227C144400643783 /* CustomKeyboard */ = {
isa = PBXGroup;
children = (
6B9CDF1B201789B800974C42 /* CustomKeyboardExample */,
6B9CDF1A201789B800974C42 /* Products */,
6B182BFF227C144400643783 /* Classes */,
6B182C01227C144400643783 /* Resources */,
);
name = CustomKeyboard;
path = ../../CustomKeyboard;
sourceTree = "<group>";
};
6B9CDF1A201789B800974C42 /* Products */ = {
6B182BFF227C144400643783 /* Classes */ = {
isa = PBXGroup;
children = (
6B9CDF19201789B800974C42 /* CustomKeyboardExample.app */,
6B182C00227C144400643783 /* CustomKeyboard.swift */,
);
name = Products;
path = Classes;
sourceTree = "<group>";
};
6B9CDF1B201789B800974C42 /* CustomKeyboardExample */ = {
6B182C01227C144400643783 /* Resources */ = {
isa = PBXGroup;
children = (
6B9CDF2E20178A8800974C42 /* CustomKeyboard */,
6B9CDF1C201789B800974C42 /* AppDelegate.swift */,
6B9CDF1E201789B800974C42 /* ViewController.swift */,
6B9CDF20201789B800974C42 /* Main.storyboard */,
6B9CDF23201789B800974C42 /* Assets.xcassets */,
6B9CDF25201789B800974C42 /* LaunchScreen.storyboard */,
6B9CDF28201789B800974C42 /* Info.plist */,
6B182C02227C144400643783 /* CustomKeyboard.bundle */,
6B182C03227C144400643783 /* Keyboard_Backspace@2x.png */,
6B182C04227C144400643783 /* Keyboard_Backspace@3x.png */,
6B182C05227C144400643783 /* Keyboard_DismissKey.png */,
6B182C06227C144400643783 /* Keyboard_DismissKey@2x.png */,
6B182C07227C144400643783 /* Keyboard_DismissKey@3x.png */,
);
path = CustomKeyboardExample;
path = Resources;
sourceTree = "<group>";
};
6B9CDF2E20178A8800974C42 /* CustomKeyboard */ = {
6B9CDF10201789B800974C42 = {
isa = PBXGroup;
children = (
6B9CDF2F20178A8800974C42 /* CustomKeyboard.swift */,
6B9CDF3020178A8800974C42 /* Resources */,
6B9CDF1B201789B800974C42 /* CustomKeyboardExample */,
6B9CDF1A201789B800974C42 /* Products */,
);
name = CustomKeyboard;
path = ../../CustomKeyboard;
sourceTree = "<group>";
};
6B9CDF3020178A8800974C42 /* Resources */ = {
6B9CDF1A201789B800974C42 /* Products */ = {
isa = PBXGroup;
children = (
6B9CDF3120178A8800974C42 /* CustomKeyboard.bundle */,
6B9CDF3220178A8800974C42 /* images */,
6B9CDF19201789B800974C42 /* CustomKeyboardExample.app */,
);
path = Resources;
name = Products;
sourceTree = "<group>";
};
6B9CDF3220178A8800974C42 /* images */ = {
6B9CDF1B201789B800974C42 /* CustomKeyboardExample */ = {
isa = PBXGroup;
children = (
6B9CDF3320178A8800974C42 /* Keyboard_Backspace@2x.png */,
6B9CDF3420178A8800974C42 /* Keyboard_Backspace@3x.png */,
6B9CDF3520178A8800974C42 /* Keyboard_DismissKey.png */,
6B9CDF3620178A8800974C42 /* Keyboard_DismissKey@2x.png */,
6B9CDF3720178A8800974C42 /* Keyboard_DismissKey@3x.png */,
6B182BFE227C144400643783 /* CustomKeyboard */,
6B9CDF1C201789B800974C42 /* AppDelegate.swift */,
6B9CDF1E201789B800974C42 /* ViewController.swift */,
6B9CDF20201789B800974C42 /* Main.storyboard */,
6B9CDF23201789B800974C42 /* Assets.xcassets */,
6B9CDF25201789B800974C42 /* LaunchScreen.storyboard */,
6B9CDF28201789B800974C42 /* Info.plist */,
);
path = images;
path = CustomKeyboardExample;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down Expand Up @@ -137,7 +137,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 0920;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = LC;
TargetAttributes = {
6B9CDF18201789B800974C42 = {
Expand Down Expand Up @@ -169,13 +169,13 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6B9CDF3B20178A8800974C42 /* Keyboard_Backspace@3x.png in Resources */,
6B182C0B227C144500643783 /* Keyboard_Backspace@3x.png in Resources */,
6B9CDF27201789B800974C42 /* LaunchScreen.storyboard in Resources */,
6B9CDF3E20178A8800974C42 /* Keyboard_DismissKey@3x.png in Resources */,
6B9CDF3920178A8800974C42 /* CustomKeyboard.bundle in Resources */,
6B9CDF3A20178A8800974C42 /* Keyboard_Backspace@2x.png in Resources */,
6B9CDF3D20178A8800974C42 /* Keyboard_DismissKey@2x.png in Resources */,
6B9CDF3C20178A8800974C42 /* Keyboard_DismissKey.png in Resources */,
6B182C0E227C144500643783 /* Keyboard_DismissKey@3x.png in Resources */,
6B182C09227C144500643783 /* CustomKeyboard.bundle in Resources */,
6B182C0A227C144500643783 /* Keyboard_Backspace@2x.png in Resources */,
6B182C0D227C144500643783 /* Keyboard_DismissKey@2x.png in Resources */,
6B182C0C227C144500643783 /* Keyboard_DismissKey.png in Resources */,
6B9CDF24201789B800974C42 /* Assets.xcassets in Resources */,
6B9CDF22201789B800974C42 /* Main.storyboard in Resources */,
);
Expand All @@ -188,7 +188,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6B9CDF3820178A8800974C42 /* CustomKeyboard.swift in Sources */,
6B182C08227C144500643783 /* CustomKeyboard.swift in Sources */,
6B9CDF1F201789B800974C42 /* ViewController.swift in Sources */,
6B9CDF1D201789B800974C42 /* AppDelegate.swift in Sources */,
);
Expand Down Expand Up @@ -230,13 +230,15 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -270,6 +272,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -287,13 +290,15 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand All @@ -319,6 +324,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 5.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand All @@ -328,12 +334,12 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = QTU7D3WQQ9;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CustomKeyboardExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.LC.CustomKeyboardExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -343,12 +349,12 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = QTU7D3WQQ9;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CustomKeyboardExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.LC.CustomKeyboardExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
internal func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
Loading

0 comments on commit 3e72fea

Please sign in to comment.