Some refactoring
This commit is contained in:
parent
aae443a5bd
commit
e504963d0c
|
|
@ -265,7 +265,7 @@
|
||||||
inputFileListPaths = (
|
inputFileListPaths = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
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}/PinLayout/PinLayout.framework",
|
||||||
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
|
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
|
||||||
"${BUILT_PRODUCTS_DIR}/TableKit/TableKit.framework",
|
"${BUILT_PRODUCTS_DIR}/TableKit/TableKit.framework",
|
||||||
|
|
@ -280,7 +280,7 @@
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
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;
|
showEnvVarsInLog = 0;
|
||||||
};
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ class BaseTableViewCell: UITableViewCell {
|
||||||
clipsToBounds = true
|
clipsToBounds = true
|
||||||
|
|
||||||
label.numberOfLines = 0
|
label.numberOfLines = 0
|
||||||
label.preferredMaxLayoutWidth = UIScreen.main.bounds.width - 2 * BaseTableViewCell.textMargin
|
|
||||||
|
|
||||||
collapsedView.addSubview(indexLabel)
|
collapsedView.addSubview(indexLabel)
|
||||||
containerView.addSubview(collapsedView)
|
containerView.addSubview(collapsedView)
|
||||||
|
|
@ -43,6 +42,12 @@ class BaseTableViewCell: UITableViewCell {
|
||||||
initializeView()
|
initializeView()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func layoutSubviews() {
|
||||||
|
super.layoutSubviews()
|
||||||
|
|
||||||
|
label.preferredMaxLayoutWidth = contentView.frame.width - 2 * BaseTableViewCell.textMargin
|
||||||
|
}
|
||||||
|
|
||||||
required init?(coder aDecoder: NSCoder) {
|
required init?(coder aDecoder: NSCoder) {
|
||||||
fatalError("init(coder:) has not been implemented")
|
fatalError("init(coder:) has not been implemented")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import SnapKit
|
import SnapKit
|
||||||
import TableKit
|
import TableKit
|
||||||
|
|
||||||
class ExpandableAutolayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
final class ExpandableAutolayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
||||||
|
|
||||||
// MARK: - Init
|
// MARK: - Init
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import TableKit
|
import TableKit
|
||||||
|
|
||||||
class ExpandableManualLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
final class ExpandableManualLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
||||||
|
|
||||||
// MARK: - Init
|
// MARK: - Init
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import TableKit
|
import TableKit
|
||||||
import PinLayout
|
import PinLayout
|
||||||
|
|
||||||
class ExpandablePinLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
final class ExpandablePinLayoutCell: BaseTableViewCell, ConfigurableCell, Expandable {
|
||||||
|
|
||||||
// MARK: - Init
|
// MARK: - Init
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,4 @@ SPEC CHECKSUMS:
|
||||||
|
|
||||||
PODFILE CHECKSUM: 6b497b1c0f4030ade5783db0b837662f14759131
|
PODFILE CHECKSUM: 6b497b1c0f4030ade5783db0b837662f14759131
|
||||||
|
|
||||||
COCOAPODS: 1.5.3
|
COCOAPODS: 1.6.0.beta.2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue