Skip to content

Commit

Permalink
Merge pull request #4 from swifty-iOS/swift5.0
Browse files Browse the repository at this point in the history
Swift5.0
  • Loading branch information
manishbhande authored Apr 28, 2019
2 parents 0487216 + 6726a18 commit 1927fb6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 32 deletions.
11 changes: 0 additions & 11 deletions MBCheckboxButton.podspec

This file was deleted.

11 changes: 0 additions & 11 deletions MBRadioButton.podspec

This file was deleted.

2 changes: 1 addition & 1 deletion MBRadioCheckboxButton.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MBRadioCheckboxButton"
s.version = "1.4"
s.version = "2.0"
s.summary = "MBRadioCheckboxButton help you create Radio and Checkbox button without a single line of code. It also help you group the Radio or Checkbox buttons. It gives animation effects and customization."
s.homepage = "https://github.com/swifty-iOS/RadioCheckboxButton"
s.license = "MIT"
Expand Down
16 changes: 10 additions & 6 deletions RadioAndCheckboxButtonDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
TargetAttributes = {
130845392005D8B100C96F1C = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1010;
ProvisioningStyle = Automatic;
LastSwiftMigration = 1020;
ProvisioningStyle = Manual;
};
};
};
Expand Down Expand Up @@ -367,13 +367,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = RadioAndCheckboxButtonDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swifty.ios.radiocheckboxDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -382,13 +384,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = RadioAndCheckboxButtonDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swifty.ios.radiocheckboxDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions RadioAndCheckboxButtonDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4</string>
<string>2.0</string>
<key>CFBundleVersion</key>
<string>5</string>
<string>6</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion Source/BaseButton/RadioCheckboxBaseContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class RadioCheckboxBaseContainer<T> where T: RadioCheckboxBaseButton {
/// - Returns: Bool
@discardableResult
public func removeButton(_ button: T) -> Bool {
guard let index = buttonContainer.index(where: { $0.value == button }) else {
guard let index = buttonContainer.firstIndex(where: { $0.value == button }) else {
return false
}
buttonContainer.remove(at: index)
Expand Down

0 comments on commit 1927fb6

Please sign in to comment.