Forum Xamarin Cross Platform with Xamarin

How can i share IOS views between projects?

Okay so i have a solution with four projects in:

  • iPad project
  • iPhone project
  • android project
  • Portable class library

The issue i am having is in the iPad project i have a class that opens the camera and saves the image, but i want to share this class between the two IOS projects, if i put it in the portable class library the android project will no longer compile.

My aim is to make components that i can share between my projects so i do not have to rewrite this code. I have seen how you can write platform specific code in the pcl however this is multiple classes rather than a few lines. I am still fairly new to Xamarin so any guidance on this would be great. Thank you for any help.

Best Answer


Sign In or Register to comment.