Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin DesignTime Custom Controls Render in XCode, edit control properties in DesignTime

I am developing an application on Xamarin.iOS and MvvmCross platforms. I use xib files instead of storyboards for design interfaces (navigation in my app based on ViewModels). How can I use Xcode's Interface Builder to render my custom controls & edit properties in IB?

Adding attributes [DesignTimeVisible (true)] for class and [Export ("Counter"), Browsable (true)] for properties does not work for XCode Interface Builder.

As far as I know in Objective-C classes there must be set @IBDesignable & @IBInspectable, if you want design time support in Xcode for custom controls.

like image 581
F_Z_14 Avatar asked Feb 10 '15 04:02

F_Z_14


1 Answers

I believe this is not possible with XCode Interface Builder since it needs to build the custom control in order to present it. And the XCode project generated by Xamarin is not buildable it is used only to track changes and generate C# code.

However you can take a look at the Xamarin Studio’s iOS designer. I think it has the feature you need.

like image 147
Yavor Dimitrov Avatar answered Sep 18 '22 06:09

Yavor Dimitrov