neoneye / SwiftyFORM

iOS framework for creating forms
MIT License
1.07k stars 87 forks source link

Disable uppercase for Title? #51

Closed IOS-Sisa closed 3 years ago

IOS-Sisa commented 3 years ago

Hi there,

As your document/comment says "SectionHeaderTitleFormItem" only shows Uppercased string, I couldnt disable it. I really would like to show the string as it comes from service.

How do i do that? Any tips?

neoneye commented 3 years ago

SectionHeaderTitleFormItem uses the default behavior of the UITableViewDataSource.tableView(_ tableView: UITableView, titleForHeaderInSection section: Int), which is uppercasing. I'm not aware of ways of bypassing this behavior.

Unfortunately UITableView is ugly when making custom headers/footers. This makes it tricky to do using SwiftyFORM. You can create a custom header using SectionHeaderViewFormItem. If you search for demo_showInfo inside the repo, there is an example of how to use SectionHeaderViewFormItem.

Does this work for you?