lucoceano / Pager

Pager is the simplest and best way to implement sliding view controllers in Swift
MIT License
232 stars 41 forks source link

index can go out of range #57

Open lofthousAA opened 6 years ago

lofthousAA commented 6 years ago

in selectTabAtIndex the index is being compared to tab count to see if it is >= this should actually be just > as index starts at 0 where count starts at 1. resulting impact is that application can crash as index is set out of range.