slackhq / SlackTextViewController

⛔️**DEPRECATED** ⛔️ A drop-in UIViewController subclass with a growing text input view and other useful messaging features
https://slack.com/
MIT License
8.32k stars 1.08k forks source link

Is there a solution for the layout on iPhone X now? #637

Closed NinoWang closed 7 years ago

dzenbot commented 7 years ago

This has been fixed in https://github.com/slackhq/SlackTextViewController/pull/619, which is available in the 1.9.6 release

NinoWang commented 7 years ago

I solved it by contentInset: if(isIPhoneX) { self.tableView.contentInset = UIEdgeInsetsMake(88, 0, 83, 0); self.textInputbar.contentInset = UIEdgeInsetsMake(4, 10, 28, 10); self.rightButton.titleEdgeInsets = UIEdgeInsetsMake(4, 0, 28, 0); }else { self.tableView.contentInset = UIEdgeInsetsMake(64, 0, 49, 0); } self.tableView.scrollIndicatorInsets = self.tableView.contentInset;