diff --git a/PeriscommentView/PeriscommentCell.swift b/PeriscommentView/PeriscommentCell.swift index 6e4b31b..1d70172 100644 --- a/PeriscommentView/PeriscommentCell.swift +++ b/PeriscommentView/PeriscommentCell.swift @@ -55,10 +55,10 @@ import UIKit let width = min(inferedWidth, config.layout.maximumWidth) let height = config.layout.padding * 2 + config.layout.commentSpace + self.nameLabel.frame.height + self.commentLabel.frame.height - self.frame = CGRect(origin: CGPoint.zeroPoint, size: CGSize(width: width, height: height)) + self.frame = CGRect(origin: CGPoint.zero, size: CGSize(width: width, height: height)) let markSize = CGSize(width: config.layout.markWidth, height: height) - let markRect = CGRect(origin: CGPoint.zeroPoint, size: markSize) + let markRect = CGRect(origin: CGPoint.zero, size: markSize) self.mark = PeriscommentMark(frame: markRect, image: image) self.addSubview(self.mark!) diff --git a/PeriscommentView/PeriscommentView.swift b/PeriscommentView/PeriscommentView.swift index 5347b27..0aef0f6 100644 --- a/PeriscommentView/PeriscommentView.swift +++ b/PeriscommentView/PeriscommentView.swift @@ -60,7 +60,7 @@ public class PeriscommentView: UIView { } public func addCell(profileImage: UIImage, name: String, comment: String) { - let rect = CGRect.zeroRect + let rect = CGRect.zero let cell = PeriscommentCell(frame: rect, profileImage: profileImage, name: name, comment: comment, config: self.config) self.addCell(cell)