> For the complete documentation index, see [llms.txt](https://frost.gitbook.io/iosbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frost.gitbook.io/iosbook/ios/ios-book/ios-ibdesignable-and-ibinspectable.md).

# \[iOS] IBDesignable & IBInspectable

ex:

```swift
@IBDesignable 
class MyView: UIView {
    @IBInspectable var myColor: UIColor = UIColor.white  //注意需明确定义型态
    @IBInspectable var myTitle: String {
        get {
            return ""
        }
        set {
            
        }
    }
}  
```

缺點: 無法使用code一次批次修改大量參數
