swipe gesture

How could i make a it so if the user swipes right or swipes left, do something.

check the iPhoneInput.touches if it

  1. has 2 touches
  2. both touches are next to each other
  3. both touches are either moving left or right
  4. if then both touches vanish within a given timeframe, you can assume that it was intend to be a swipe and react to it.

I get that… but i dont know how to implement it.

Is there an example somewhere?

No not yet. Unity iPhone was only released 3 days ago so right now, you will have to do something like this through own experimentation I guess