== Why is this an issue?

Adding ``++IBInspectable++`` to a properly-typed variable makes it available in Xcode's Interface Builder. But that only works if variable type is declared explicitly as one of the following: 


* ``++Int++`` types, ``++Double++``, ``++Float++``, ``++Bool++``
* ``++String++`` (or its optional)
* ``++CGFloat++``, ``++CGPoint++``, ``++CGSize++``, ``++CGRect++``
* ``++UIColor++``, ``++UIImage++`` (and their optionals)
* ``++NSString++``,  ``++NSColor++``, ``++NSImage++`` (and their optionals)
* ``++NSRect++``, ``++NSPoint++``, ``++NSSize++``, 


=== Noncompliant code example

[source,swift]
----
@IBInspectable  // Noncompliant; type is implicit
public var cornerRadius = 2.0 {
  didSet {
     //...
  }
}
----


=== Compliant solution

[source,swift]
----
@IBInspectable
public var cornerRadius: CGFloat  = 2.0 {
  didSet {
     //...
  }
}
----


ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

=== Message

* Remove this "IBInspectable" attribute; it should only be applied to variables.
* Remove this "IBInspectable" attribute or use [a supported|an explicit] type.


=== Highlighting

``++IBInspectable++``


endif::env-github,rspecator-view[]
