DataForm: Collapsible Groups

TKDataForm supports expand/collpase behavior for its property groups when the group's header is tapped. To allow exapnding and collapsing groups, you should implement dataForm:updateGroupView:forGroupAtIndex: of TKDataFormDelegate and set the collapsible property of the group view:

- (void)dataForm:(TKDataForm *)dataForm updateGroupView:(TKEntityPropertyGroupView *)groupView forGroupAtIndex:(NSUInteger)groupIndex
{
    groupView.collapsible = YES;
    groupView.titleView.style.separatorColor = [TKSolidFill solidFillWithColor:[UIColor colorWithRed:0.784 green:0.780 blue:0.8 alpha:1.0]];
}
func dataForm(_ dataForm: TKDataForm, update groupView: TKEntityPropertyGroupView, forGroupAt groupIndex: UInt) {
    groupView.collapsible = true
    groupView.titleView.style.separatorColor = TKSolidFill(color: UIColor(red: 0.784, green: 0.780, blue: 0.8, alpha: 1.0))
}
public override void UpdateGroupView (TKDataForm dataForm, TKEntityPropertyGroupView groupView, uint groupIndex)
{
    groupView.Collapsible = true;
    groupView.TitleView.Style.SeparatorColor = new TKSolidFill (new UIColor (0.784f, 0.780f, 0.8f, 1.0f));
}