I found an app which has an arrow which is used as a compass. The arrow moves when I rotate my device. You can see it in the following screen shots:
You can see that the size of the arrow changes depending on its direction as well as the gray shadow behind the arrow.
How can I create a 3D arrow with Swift or Objective-C? How can I make an image to appear 3D?