{"published":"2023-01-05 16:24:34","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/develop-imonari/","title":"\u3010swift\u3011UIView\u3092\u4f7f\u3063\u3066\u7834\u7dda\u3092\u8868\u793a\u3059\u308b\u3002","blog_title":"\u3044\u3082\u306a\u308a\u958b\u767a\u306e\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevelop-imonari.hatenablog.com%2Fentry%2F20230105%2F1672903474\" title=\"\u3010swift\u3011UIView\u3092\u4f7f\u3063\u3066\u7834\u7dda\u3092\u8868\u793a\u3059\u308b\u3002 - \u3044\u3082\u306a\u308a\u958b\u767a\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_name":"develop-imonari","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/develop-imonari/20230105/20230105162655.png","blog_url":"https://develop-imonari.hatenablog.com/","type":"rich","width":"100%","provider_name":"Hatena Blog","url":"https://develop-imonari.hatenablog.com/entry/20230105/1672903474","categories":["swift"],"description":"\u6982\u8981 UIView\u3092\u4f7f\u3063\u3066\u7834\u7dda\u3092\u8868\u73fe\u3057\u307e\u3059\u3002 \u4f5c\u6210\u3057\u305f\u7834\u7dda\u30ec\u30a4\u30e4\u30fc\u3092\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u3068\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u958b\u767a\u74b0\u5883 Mac OS 13.1 Xcode 14.0 func drawDottedLine(view: UIView) { // CAShapeLayer\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 let sharpeLayer: CAShapeLayer = CAShapeLayer() // \u6ce2\u7dda\u306b\u8272\u3092\u4ed8\u3051\u307e\u3059\u3002 sharpeLayer.strokeColor = UIColor.lightGray.cgColor // \u539a\u3055\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 sharpeLayer.lineWidth =\u2026","height":"190"}