mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Some custom constraints on table view cells fixed for safe area
Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
@@ -2190,7 +2190,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
MXKTableViewCellWithLabelAndMXKImageView *roomPhotoCell = [tableView dequeueReusableCellWithIdentifier:[MXKTableViewCellWithLabelAndMXKImageView defaultReuseIdentifier] forIndexPath:indexPath];
|
||||
|
||||
roomPhotoCell.mxkLabelLeadingConstraint.constant = roomPhotoCell.separatorInset.left;
|
||||
roomPhotoCell.mxkLabelLeadingConstraint.constant = roomPhotoCell.vc_separatorInset.left;
|
||||
roomPhotoCell.mxkImageViewTrailingConstraint.constant = 10;
|
||||
|
||||
roomPhotoCell.mxkImageViewWidthConstraint.constant = roomPhotoCell.mxkImageViewHeightConstraint.constant = 30;
|
||||
@@ -2227,7 +2227,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
TableViewCellWithLabelAndLargeTextView *roomTopicCell = [tableView dequeueReusableCellWithIdentifier:kRoomSettingsTopicCellViewIdentifier forIndexPath:indexPath];
|
||||
|
||||
roomTopicCell.labelLeadingConstraint.constant = roomTopicCell.separatorInset.left;
|
||||
roomTopicCell.labelLeadingConstraint.constant = roomTopicCell.vc_separatorInset.left;
|
||||
|
||||
roomTopicCell.label.text = NSLocalizedStringFromTable(@"room_details_topic", @"Vector", nil);
|
||||
|
||||
@@ -2259,7 +2259,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
MXKTableViewCellWithLabelAndTextField *roomNameCell = [tableView dequeueReusableCellWithIdentifier:kRoomSettingsNameCellViewIdentifier forIndexPath:indexPath];
|
||||
|
||||
roomNameCell.mxkLabelLeadingConstraint.constant = roomNameCell.separatorInset.left;
|
||||
roomNameCell.mxkLabelLeadingConstraint.constant = roomNameCell.vc_separatorInset.left;
|
||||
roomNameCell.mxkTextFieldLeadingConstraint.constant = 16;
|
||||
roomNameCell.mxkTextFieldTrailingConstraint.constant = 15;
|
||||
|
||||
@@ -2299,7 +2299,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
roomTagCell = [tableView dequeueReusableCellWithIdentifier:[TableViewCellWithCheckBoxes defaultReuseIdentifier] forIndexPath:indexPath];
|
||||
|
||||
roomTagCell.mainContainerLeadingConstraint.constant = roomTagCell.separatorInset.left;
|
||||
roomTagCell.mainContainerLeadingConstraint.constant = roomTagCell.vc_separatorInset.left;
|
||||
|
||||
roomTagCell.checkBoxesNumber = 2;
|
||||
|
||||
@@ -2402,7 +2402,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
TableViewCellWithCheckBoxAndLabel *roomAccessCell = [tableView dequeueReusableCellWithIdentifier:[TableViewCellWithCheckBoxAndLabel defaultReuseIdentifier] forIndexPath:indexPath];
|
||||
|
||||
roomAccessCell.checkBoxLeadingConstraint.constant = roomAccessCell.separatorInset.left;
|
||||
roomAccessCell.checkBoxLeadingConstraint.constant = roomAccessCell.vc_separatorInset.left;
|
||||
|
||||
// Retrieve the potential updated values for joinRule and guestAccess
|
||||
NSString *joinRule = updatedItemsDict[kRoomSettingsJoinRuleKey];
|
||||
@@ -2454,7 +2454,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
TableViewCellWithCheckBoxAndLabel *historyVisibilityCell = [tableView dequeueReusableCellWithIdentifier:[TableViewCellWithCheckBoxAndLabel defaultReuseIdentifier] forIndexPath:indexPath];
|
||||
|
||||
historyVisibilityCell.checkBoxLeadingConstraint.constant = historyVisibilityCell.separatorInset.left;
|
||||
historyVisibilityCell.checkBoxLeadingConstraint.constant = historyVisibilityCell.vc_separatorInset.left;
|
||||
|
||||
// Retrieve first the potential updated value for history visibility
|
||||
NSString *visibility = updatedItemsDict[kRoomSettingsHistoryVisibilityKey];
|
||||
@@ -2518,7 +2518,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
NSString *currentValue = (addAddressTextField ? addAddressTextField.text : nil);
|
||||
|
||||
addAddressCell.mxkLabelLeadingConstraint.constant = 0;
|
||||
addAddressCell.mxkTextFieldLeadingConstraint.constant = addAddressCell.separatorInset.left;
|
||||
addAddressCell.mxkTextFieldLeadingConstraint.constant = addAddressCell.vc_separatorInset.left;
|
||||
addAddressCell.mxkTextFieldTrailingConstraint.constant = 15;
|
||||
|
||||
addAddressCell.mxkLabel.text = nil;
|
||||
@@ -2606,7 +2606,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
NSString *currentValue = (addGroupTextField ? addGroupTextField.text : nil);
|
||||
|
||||
addCommunityCell.mxkLabelLeadingConstraint.constant = 0;
|
||||
addCommunityCell.mxkTextFieldLeadingConstraint.constant = addCommunityCell.separatorInset.left;
|
||||
addCommunityCell.mxkTextFieldLeadingConstraint.constant = addCommunityCell.vc_separatorInset.left;
|
||||
addCommunityCell.mxkTextFieldTrailingConstraint.constant = 15;
|
||||
|
||||
addCommunityCell.mxkLabel.text = nil;
|
||||
@@ -2821,7 +2821,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user