소스 검색

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
         }