Skip to content

Commit

Permalink
Update host-config.md (#248)
Browse files Browse the repository at this point in the history
* Update host-config.md

* updated native styling information for ios
  • Loading branch information
jwoo-msft committed Jan 21, 2020
1 parent 9a99731 commit db6d3bb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
10 changes: 9 additions & 1 deletion AdaptiveCards/sdk/rendering-cards/ios/host-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@ ACRRenderResult *renderResult;
renderResult = [ACRRenderer render:cardParseResult.card
config:hostconfigParseResult.config
widthConstraint:300.0];
```
```
## Customization
There are 3 ways to customize the adaptive card rendering:
1. Host Config
2. XIB
3. Custom element rendering
31 changes: 30 additions & 1 deletion AdaptiveCards/sdk/rendering-cards/ios/native-styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,33 @@ ms.topic: article

# Native styling - iOS

Not supported.
Use XIB for fine-grained styling.

The following XIBs exist

| XIB | Usage |
|---|---|
| ACRButton.xib | buttons |
| ACRCellForCompactMode.xib | ChoiceSet compact mode|
| ACRDatePicker.xib | DatePicker for Input.Date |
| ACRDateTextField.xib | TextField for Input.Date |
| ACRInputTableView.xib | Container for Inputs |
| ACRLabelView.xib | TextBlock |
| ACRPickerView.xib | ChoiceSet |
| ACRQuickActionMultilineView.xib | Quick Actions with multilines |
| ACRQuickActionView.xib | Quick Actions |
| ACRTextField.xib | Input |

XIB can be edited through XCode IB.
Once XIBs are edited to the specification.
From a terminal
```
ibtool --compile name.nib name.xib
```

For example, to style a button
```
ibtool --compile ACRButton.nib ACRButton.xib
```

The generated nib files can be then replaced at AdaptiveCards.framework

0 comments on commit db6d3bb

Please sign in to comment.