Skip to content

Commit

Permalink
Merge pull request #4 from JNDisrupter/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
jayelzaghmoutt authored Feb 5, 2019
2 parents d6dc13f + 3c0e253 commit 15e9b18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Example/JNSegmentedControl/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.1</string>
<string>1.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion JNSegmentedControl.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "JNSegmentedControl"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "JNSegmentedControl is animated segmented control for iOS applications."
s.description = "JNSegmentedControl is an easy to use, animated segmented control for iOS written in Swift. JNSegmentedControl supports 3 main styles of segments."
s.homepage = "https://github.com/JNDisrupter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,16 @@ public class JNSegmentedCollectionView: UIView {
// Update Layout
self.layoutIfNeeded()

// build representables
self.buildRepresentables()

// reload data
self.collectionView?.reloadData()
// Update Selected Item
if self.selectedIndex >= self.items.count {
self.selectedIndex = self.items.count - 1
}else{
// build representables
self.buildRepresentables()

// reload data
self.collectionView?.reloadData()
}
}

/**
Expand Down

0 comments on commit 15e9b18

Please sign in to comment.