Some refactoring

This commit is contained in:
Ivan Zinovyev 2019-01-09 13:39:06 +03:00
parent aae443a5bd
commit e504963d0c
6 changed files with 12 additions and 7 deletions

View File

@ -265,7 +265,7 @@
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-ExpandableCellDemo-ios/Pods-ExpandableCellDemo-ios-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-ExpandableCellDemo-ios/Pods-ExpandableCellDemo-ios-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/PinLayout/PinLayout.framework",
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
"${BUILT_PRODUCTS_DIR}/TableKit/TableKit.framework",
@ -280,7 +280,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ExpandableCellDemo-ios/Pods-ExpandableCellDemo-ios-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ExpandableCellDemo-ios/Pods-ExpandableCellDemo-ios-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

View File

@ -33,7 +33,6 @@ class BaseTableViewCell: UITableViewCell {
clipsToBounds = true
label.numberOfLines = 0
label.preferredMaxLayoutWidth = UIScreen.main.bounds.width - 2 * BaseTableViewCell.textMargin
collapsedView.addSubview(indexLabel)
containerView.addSubview(collapsedView)
@ -43,6 +42,12 @@ class BaseTableViewCell: UITableViewCell {
initializeView()
}
override func layoutSubviews() {
super.layoutSubviews()
label.preferredMaxLayoutWidth = contentView.frame.width - 2 * BaseTableViewCell.textMargin
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

View File

@ -1,7 +1,7 @@
import SnapKit
import TableKit
class ExpandableAutolayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
final class ExpandableAutolayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
// MARK: - Init

View File

@ -1,6 +1,6 @@
import TableKit
class ExpandableManualLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
final class ExpandableManualLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
// MARK: - Init

View File

@ -1,7 +1,7 @@
import TableKit
import PinLayout
class ExpandablePinLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
final class ExpandablePinLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
// MARK: - Init

View File

@ -30,4 +30,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 6b497b1c0f4030ade5783db0b837662f14759131
COCOAPODS: 1.5.3
COCOAPODS: 1.6.0.beta.2