microsoft / microsoft/AdaptiveCards
Persistent Native Styling in Swift
@jwoo-msft is already working on this.
Since Mar 6, 2023.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Discussed in https://github.com/microsoft/AdaptiveCards/discussions/8179
Originally posted by vcarrerasj December 21, 2022
I am using AdaptiveCards 2.8.8 with Cocoapods, Swift 5 and Xcode 14.2.
Following the documentation, the first steps is to alter the xibs files inside the Pods folder. (In my case the path with all those xibs is: Pods/AdaptiveCards/AdaptiveCardsCore/Resources/ )
This is not enough, since being inside the Pods folder when the dependencies change, the files will be overwritten, resetting their content. So, following the mentioned documentation, the second step is to generate nibs files from the xibs files. For example:
ibtool --compile ACRButton.nib ACRButton.xib
Then the generated nib files can be then replaced at AdaptiveCards.framework. The only match I've found about AdaptiveCards.framework is in the DerivedData folder, outside of the project. I'm not quite sure where we are expected to replace the nib file and an example would be appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.