From ba1212d8c83a4aad26e75a54a734830e3b2cdfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A1=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Mon, 11 Jan 2016 14:03:19 +0300 Subject: [PATCH] Fixed: Xcode 7.2 build --- PeriscommentView/PeriscommentCell.swift | 4 ++-- PeriscommentView/PeriscommentView.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)