Преглед на файлове

adaptive font sizes in NewGroupController

cyberta преди 5 години
родител
ревизия
e5b77f0235
променени са 1 файла, в които са добавени 2 реда и са изтрити 9 реда
  1. 2 9
      deltachat-ios/Controller/NewGroupController.swift

+ 2 - 9
deltachat-ios/Controller/NewGroupController.swift

@@ -201,16 +201,9 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
 
     override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
         let section = indexPath.section
-        let row = indexPath.row
         switch section {
-        case sectionGroupDetails:
-            if row == sectionGroupDetailsRowAvatar {
-                return AvatarSelectionCell.cellHeight
-            } else {
-                return Constants.defaultCellHeight
-            }
-        case sectionInvite:
-            return Constants.defaultCellHeight
+        case sectionGroupDetails, sectionInvite:
+            return UITableView.automaticDimension
         default:
             return ContactCell.cellHeight
         }