[swift-users] Designable Protocols
Dennis Weissmann
dennis at dennisweissmann.me
Wed Apr 19 00:14:35 CDT 2017
Are you sure that's because it's defined in a protocol and not because it's a `CGColor`. Can you try it with `UIColor`? I don't think CG types are supported with `@IBInspectable`.
- Dennis
Sent from my iPhone
> On 19. Apr 2017, at 4:43 AM, Cavelle Benjamin via swift-users <swift-users at swift.org> wrote:
>
> I don’t post to this mailing list very often.
>
> Working on updating my app to have a base set of code that cuts across macOS, iOS, tvOS, watchOS
>
> I’m writing a protocol to use across all the platforms that would be “designable” inside Interface Builder, but I cannot make protocol variables Inspectable when they are defined implemented in the class/struct. Any thoughts on making this possible?
>
>
> https://gitlab.com/snippets/1658032
>
> Cheers,
> CB
> web: https://thecb4.io
> twitter: @_thecb4
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170419/943d726d/attachment.html>
More information about the swift-users
mailing list