swift - Calculate pan vs swipe amount -
i have tableview of weeks showing weather each week. in tableview, can swipe left go detailed view of week, or right go out of tableview , main menu. there 52 weeks can scroll through in tableview , trying make feel when swiping vs panning, of now, have precise when swiping sides. , problem wanna swipe detailed view, app things wanna swipe small amout of or down in stead.
i tried with:
// mark: gesture settings func gesturerecognizer(_ gesturerecognizer: uigesturerecognizer, shouldrecognizesimultaneouslywith othergesturerecognizer: uigesturerecognizer) -> bool { return true }
is there way make swiping easier trigger? example if im tryin got swipe side side , if not in 0 or 180 degree angle -10/10 or 170/160, still want considered swipe!
thanks guys, have one!
have thought putting uitableview
inside uicollectionview
instead? sounds might more appropriate you'd have 52 collection view cells , able reuse tableview based on index path of items.
Comments
Post a Comment