Commit bce1b91f authored by David黄金龙's avatar David黄金龙

统一 修改 sheetView 的圆角 kCornerRadius6

parent f877ea57
...@@ -146,7 +146,7 @@ class YHInvitationWithGiftsSelectItemView: UIView { ...@@ -146,7 +146,7 @@ class YHInvitationWithGiftsSelectItemView: UIView {
centerView.layoutIfNeeded() centerView.layoutIfNeeded()
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = centerView.bounds layer.frame = centerView.bounds
layer.path = path.cgPath layer.path = path.cgPath
......
...@@ -157,7 +157,7 @@ private extension YHAdopterCardOtherGuideView { ...@@ -157,7 +157,7 @@ private extension YHAdopterCardOtherGuideView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -136,7 +136,7 @@ private extension YHTravelHKDLGuideSheetView { ...@@ -136,7 +136,7 @@ private extension YHTravelHKDLGuideSheetView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -136,7 +136,7 @@ private extension YHHKCardTemplateView { ...@@ -136,7 +136,7 @@ private extension YHHKCardTemplateView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -134,7 +134,7 @@ private extension YHSmallWhiteNoteTemplateView { ...@@ -134,7 +134,7 @@ private extension YHSmallWhiteNoteTemplateView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -95,7 +95,7 @@ private extension YHUploadCertificateDetailCell { ...@@ -95,7 +95,7 @@ private extension YHUploadCertificateDetailCell {
func updateCell() { func updateCell() {
if isLastCell { if isLastCell {
let corner = UIRectCorner(rawValue: UIRectCorner.bottomLeft.rawValue | UIRectCorner.bottomRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.bottomLeft.rawValue | UIRectCorner.bottomRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -177,7 +177,7 @@ private extension YHOffivialApprovalGuildLineCheckView { ...@@ -177,7 +177,7 @@ private extension YHOffivialApprovalGuildLineCheckView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -159,7 +159,7 @@ class YHCertificateEditSheetView: UIView { ...@@ -159,7 +159,7 @@ class YHCertificateEditSheetView: UIView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -183,7 +183,7 @@ class YHCertificateFilterView: UIView { ...@@ -183,7 +183,7 @@ class YHCertificateFilterView: UIView {
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8.0, 8.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -166,7 +166,7 @@ class YHCertificateTemplateSheetView: UIView { ...@@ -166,7 +166,7 @@ class YHCertificateTemplateSheetView: UIView {
whiteContentView.addSubview(tableView) whiteContentView.addSubview(tableView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -198,7 +198,7 @@ class YHCertificateUploadSheetView: UIView { ...@@ -198,7 +198,7 @@ class YHCertificateUploadSheetView: UIView {
whiteContentView.addSubview(tableView) whiteContentView.addSubview(tableView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -135,7 +135,7 @@ class YHFileRenameInputView: UIView { ...@@ -135,7 +135,7 @@ class YHFileRenameInputView: UIView {
whiteContentView.addSubview(confirmBtn) whiteContentView.addSubview(confirmBtn)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -156,7 +156,7 @@ class YHDocumentUploadView: UIView { ...@@ -156,7 +156,7 @@ class YHDocumentUploadView: UIView {
whiteContentView.addSubview(tableView) whiteContentView.addSubview(tableView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -122,7 +122,7 @@ class YHEmailInputAlertView: UIView { ...@@ -122,7 +122,7 @@ class YHEmailInputAlertView: UIView {
whiteContentView.addSubview(confirmBtn) whiteContentView.addSubview(confirmBtn)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -248,7 +248,7 @@ class YHSignAppendStepView: UIView { ...@@ -248,7 +248,7 @@ class YHSignAppendStepView: UIView {
centerView.layoutIfNeeded() centerView.layoutIfNeeded()
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = centerView.bounds layer.frame = centerView.bounds
layer.path = path.cgPath layer.path = path.cgPath
......
...@@ -327,7 +327,7 @@ class YHSheetPickerView: UIView { ...@@ -327,7 +327,7 @@ class YHSheetPickerView: UIView {
whiteContentView.addSubview(pickerView) whiteContentView.addSubview(pickerView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8.0, 8.0)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = whiteContentView.bounds layer.frame = whiteContentView.bounds
layer.path = path.cgPath layer.path = path.cgPath
......
...@@ -181,7 +181,7 @@ class YHDatePickView: UIView { ...@@ -181,7 +181,7 @@ class YHDatePickView: UIView {
centerView.layoutIfNeeded() centerView.layoutIfNeeded()
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = centerView.bounds layer.frame = centerView.bounds
layer.path = path.cgPath layer.path = path.cgPath
......
...@@ -200,7 +200,7 @@ class YHOtherPickerView: UIView { ...@@ -200,7 +200,7 @@ class YHOtherPickerView: UIView {
whiteContentView.layoutIfNeeded() whiteContentView.layoutIfNeeded()
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
...@@ -157,7 +157,7 @@ class YHSelectFileSheetView: UIView { ...@@ -157,7 +157,7 @@ class YHSelectFileSheetView: UIView {
centerView.layoutIfNeeded() centerView.layoutIfNeeded()
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8, 8)) let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6))
let layer = CAShapeLayer() let layer = CAShapeLayer()
layer.frame = centerView.bounds layer.frame = centerView.bounds
layer.path = path.cgPath layer.path = path.cgPath
......
...@@ -133,7 +133,7 @@ class YHLongtapPictureSheetView: UIView { ...@@ -133,7 +133,7 @@ class YHLongtapPictureSheetView: UIView {
whiteContentView.addSubview(closeBtn2) whiteContentView.addSubview(closeBtn2)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(kCornerRadius6, kCornerRadius6));
let layer = CAShapeLayer(); let layer = CAShapeLayer();
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds;
layer.path = path.cgPath; layer.path = path.cgPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment