Skip to content

Instantly share code, notes, and snippets.

@muhammadabbas001
Created November 19, 2023 17:49
Show Gist options
  • Save muhammadabbas001/7e08b6e1e70f7fdf1ef4652ceb6dec83 to your computer and use it in GitHub Desktop.
Save muhammadabbas001/7e08b6e1e70f7fdf1ef4652ceb6dec83 to your computer and use it in GitHub Desktop.
func relativeLoc() -> Int {
return ((views.count * 10000) + carousalLocation) % views.count
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment