Control Service
Method Overview
| Name | Description | Return |
|---|---|---|
| loadNib() | การ Load Control ของ AtlasX | Optional(T) |
Method Details
static func loadNib<T>(classObject: T.Type, nibName: String) -> T?การ Load Control ของ AtlasX
Parameters
| Name | Description | Type |
|---|---|---|
| T | Class ของ Control ที่ต้องการ Load | Class |
| classObject | Protocol ของ Class Control ที่ต้องการ Load | T.Type |
| nibName | ชื่อของ Nib Control | String |
Example
let scrollStackView: ScrollStackView = Control.loadNib(classObject: ScrollStackView.self, nibName: "ScrollStackView")!