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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With