소스 검색

remove deprecated defaultCellHeight and defaultHeaderHeight constants

cyberta 5 년 전
부모
커밋
901be5cf09
2개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 1
      deltachat-ios/Controller/ProfileInfoViewController.swift
  2. 0 7
      deltachat-ios/Helper/Constants.swift

+ 0 - 1
deltachat-ios/Controller/ProfileInfoViewController.swift

@@ -46,7 +46,6 @@ class ProfileInfoViewController: UITableViewController {
     init(context: DcContext) {
         self.dcContext = context
         super.init(style: .grouped)
-        tableView.estimatedRowHeight = Constants.defaultCellHeight
     }
 
     required init?(coder: NSCoder) {

+ 0 - 7
deltachat-ios/Helper/Constants.swift

@@ -13,13 +13,6 @@ struct Constants {
 
     static let notificationIdentifier = "deltachat-ios-local-notifications"
 
-    static var defaultCellHeight: CGFloat {
-        return UIFont.preferredFont(forTextStyle: .body).pointSize + 32
-    }
-    static var defaultHeaderHeight: CGFloat {
-        return UIFont.preferredFont(forTextStyle: .caption1).pointSize + 12
-    }
-
 }
 
 struct Time {