Design defects fix
This commit is contained in:
parent
a454d0e3bd
commit
d196aa3cef
@ -214,14 +214,16 @@ open class ThreeLayerTableViewController: MFProgrammaticTableViewController {
|
|||||||
/// Subclass for a top view.
|
/// Subclass for a top view.
|
||||||
open func viewForTop() -> UIView {
|
open func viewForTop() -> UIView {
|
||||||
let view = MVMCoreUICommonViewsUtility.commonView()
|
let view = MVMCoreUICommonViewsUtility.commonView()
|
||||||
view.heightAnchor.constraint(equalToConstant: 0).isActive = true
|
// Small height is needed to stop apple from adding padding for grouped tables when no header.
|
||||||
|
view.heightAnchor.constraint(equalToConstant: 1).isActive = true
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Subclass for a bottom view.
|
/// Subclass for a bottom view.
|
||||||
open func viewForBottom() -> UIView {
|
open func viewForBottom() -> UIView {
|
||||||
|
// Default spacing is standard when no buttons.
|
||||||
let view = MVMCoreUICommonViewsUtility.commonView()
|
let view = MVMCoreUICommonViewsUtility.commonView()
|
||||||
view.heightAnchor.constraint(equalToConstant: 0).isActive = true
|
view.heightAnchor.constraint(equalToConstant: PaddingDefaultVerticalSpacing).isActive = true
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,6 +33,7 @@ static const CGFloat VertialShadowOffset = 6;
|
|||||||
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
|
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
|
||||||
view.translatesAutoresizingMaskIntoConstraints = NO;
|
view.translatesAutoresizingMaskIntoConstraints = NO;
|
||||||
view.backgroundColor = [UIColor clearColor];
|
view.backgroundColor = [UIColor clearColor];
|
||||||
|
view.directionalLayoutMargins = NSDirectionalEdgeInsetsZero;
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user