Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 453 Bytes

ibinspectable_in_extension.md

File metadata and controls

27 lines (18 loc) · 453 Bytes

Pattern: Use of @IBInspectable in extension

Issue: -

Description

Extensions shouldn't add @IBInspectable properties.

Examples of correct code:

class Foo {
  @IBInspectable private var x: Int
}

Examples of incorrect code:

extension Foo {
  @IBInspectable private var x: Int
}

Further Reading