Re:Building DSLs in Swift
by pjmlp on Monday October 15, 2018 @04:02AM
(#18218136)
You can do that by implementing designer aware controls since .NET 1.0, so I don't see the difference, other than having a bit extra code maybe.
[ Parent
| on HN ]
I suppose you are referring to this WPF functionality https://docs.microsoft.com/en-us/dotnet/framework/wpf/contro..., and similarly in UWP: https://docs.microsoft.com/en-us/windows/uwp/design/controls...?
While it looks powerful, I have to say that the Xcode interface builder and code annotation approach has a lot less friction.
Yes, exactly that, but you don't need to go the full way.
It depends on what kind of rendering one wants to present to the user/developer, even with DesignerAttribute one can provide a custom rendering for the control.
Here with a forms example, but similar way can be done for the XAML variants.