2022-11-17から1日間の記事一覧
private extension UILabel { func countLines() -> Int { guard let text = self.text as NSString? else { return 0 } let rect = CGSize(width: self.bounds.width, height: CGFloat.greatestFiniteMagnitude) let labelSize = text.boundingRect(with: r…