Skip to content

Instantly share code, notes, and snippets.

@ymtky ymtky/border.swift
Created Sep 17, 2018

Embed
What would you like to do?
[Swift] UIViewの1辺にボーダーを設定
let bottomBorder = CALayer()
bottomBorder.frame = CGRect(x: 0, y: view.frame.height - 1, width: view.frame.width, height: 1.0)
bottomBorder.backgroundColor = UIColor.lightGray.cgColor
view.layer.addSublayer(bottomBorder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.