Skip to content

Commit

Permalink
Updated to swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfusedVorlon committed Jul 22, 2019
1 parent 5b1e4f1 commit cc0be1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions DemoProject/HSTableViewDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
TargetAttributes = {
D4232C0D1CF8BC20004C1D44 = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1000;
LastSwiftMigration = 1020;
};
};
};
Expand All @@ -173,6 +173,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -357,8 +358,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.HobbyistSoftware.HSTableViewDemo;
PRODUCT_NAME = HSTableViewDemo;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -371,8 +371,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.HobbyistSoftware.HSTableViewDemo;
PRODUCT_NAME = HSTableViewDemo;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
4 changes: 2 additions & 2 deletions HSTableView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "HSTableView"
s.version = "1.1.0"
s.version = "1.2.0"
s.summary = "A simpler, more elegant UITableView using objects, blocks instead of delegates"

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -79,7 +79,7 @@ HSTableView is suitable for situations where there is a known finite number of r
# s.platform = :ios
s.platform = :ios, "9.0"

s.swift_version = '4.2'
s.swift_version = '5.0'

# When using multiple platforms
# s.ios.deployment_target = "5.0"
Expand Down
2 changes: 1 addition & 1 deletion HSTableView/HSTVSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class HSTVSection {

func removeRow(_ row: HSTVRowInfo)
{
if let index = rows.index(of: row) {
if let index = rows.firstIndex(of: row) {
rows.remove(at: index)
}
}
Expand Down

0 comments on commit cc0be1f

Please sign in to comment.