swift uiview gradient
let view = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 50))
let gradient = CAGradientLayer()
gradient.frame = view.bounds
gradient.colors = [UIColor.white.cgColor, UIColor.black.cgColor]
view.layer.insertSublayer(gradient, at: 0)
Also in Swift:
- get address from latitude and longitude in swift
- how to add two right bar button item xcode
- while loop swift
- create alert in swift
- swift check if regex is in string
- swift uiview gradient
- swift retrieve value from dictionary
- swift uicollectionviewcell how to know when off screen
- swift reload tableview
- declare function in swift
- setter must be with getter swift
- swift get day from available string
- how to make a quiz swift stack overflow
- convert secondsfrom1970 to date swift
- markdown
- swift string keep only numbers
- how to replace certain characters in string swift
- playing a sound in swift
- duplicate modifier swiftui error
- swift initialize a view
- swift how to set warning message
- get device name swift
- swift add navigation bar
- swift add image to button