Pausing UIImageView animation in Xamarin.iOS

gif source: https://cliply.co/clip/rocket-icon/
  1. Prepare your frames in png format, name them using an ordering convention (for example “Frame1.png”, “Frame2.png”, …)
  2. Add these images to your Xamarin.iOS project, let’s say to Resources/Animation folder
  3. Make sure all of your images are referenced as BundleResource in your csproj:
<ItemGroup>
<BundleResource Include="Resources\Animation\*.png" />
</ItemGroup>
gif source: https://cliply.co/clip/rocket-icon/
gif source: https://cliply.co/clip/rocket-icon/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michał Żołnieruk

Michał Żołnieruk

Full stack NET developer based in Berlin. Interested in VR, data analysis and tons of other stuff.