Some custom constraints on table view cells fixed for safe area

Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
ismailgulek
2020-04-22 16:15:30 +03:00
parent 6f398bd862
commit 008bbc678e
7 changed files with 93 additions and 21 deletions

View File

@@ -651,7 +651,7 @@ UIDocumentInteractionControllerDelegate>
{
MXKTableViewCellWithLabelAndSwitch *cell = [tableview dequeueReusableCellWithIdentifier:[MXKTableViewCellWithLabelAndSwitch defaultReuseIdentifier] forIndexPath:indexPath];
cell.mxkLabelLeadingConstraint.constant = cell.separatorInset.left;
cell.mxkLabelLeadingConstraint.constant = cell.vc_separatorInset.left;
cell.mxkSwitchTrailingConstraint.constant = 15;
cell.mxkLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
@@ -738,8 +738,8 @@ UIDocumentInteractionControllerDelegate>
textViewCell.mxkTextView.textColor = ThemeService.shared.theme.textPrimaryColor;
textViewCell.mxkTextView.font = [UIFont systemFontOfSize:17];
textViewCell.mxkTextView.backgroundColor = [UIColor clearColor];
textViewCell.mxkTextViewLeadingConstraint.constant = tableView.separatorInset.left;
textViewCell.mxkTextViewTrailingConstraint.constant = tableView.separatorInset.right;
textViewCell.mxkTextViewLeadingConstraint.constant = tableView.vc_separatorInset.left;
textViewCell.mxkTextViewTrailingConstraint.constant = tableView.vc_separatorInset.right;
textViewCell.mxkTextView.accessibilityIdentifier = nil;
return textViewCell;