netyouli/WHC_AutoLayoutKit

iphonex safearea

shenshangjimiaoZG opened this issue · 1 comments

这个在最新的ios11的safearea如何?

支持 UILayoutGuide,safearea
请更新最新版本
UILayoutGuide * guide = UILayoutGuide.new;
UIView * view = UIView.new;

guide.whc_LeftSpace(10)
.whc_TopSpaceToView(0, self.view.safeAreaLayoutGuide)
.whc_RightSpace(10)
.whc_Height(30);

view.whc_LeftSpace(10)
.whc_RightSpace(10)
.whc_TopSpaceToView(0, guide)
.whc_Height(50);