Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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)
Comment

PREVIOUS NEXT
Code Example
Swift :: change button text in swift 
Swift :: swift remove all duplicates from an array 
Swift :: swift test if simulator 
Swift :: how do i get a string from a float swift to 1 decimal swift 
Swift :: swiftui steppers 
Swift :: alert swiftui 
Swift :: post API Call in swift 
Swift :: IOS create UIAlertViewController programmatically 
Swift :: how to insert element at start of the array ios swift 
Swift :: swift change background color 
Swift :: how to style textfield swiftui 
Swift :: string to swift 2022 
Swift :: swift alert toast 
Swift :: swift calendar components 
Swift :: swift string time to epoch 
Swift :: swift 5 make image fit uiimageview 
Swift :: dismiss keyboard on tap outside swiftui 
Swift :: swift struct 
Swift :: UIFont.init bold 
Swift :: swift show title on navigation bar programmatically 
Swift :: swiftui check available ios 
Swift :: ios get notification payload 
Swift :: swift wait until condition is true 
Swift :: after redirect from another viewcontroller in swift 5 make full view view controller 
Swift :: swift do catch where 
Swift :: store multiple items in one core data record 
Swift :: cherries 
Swift :: Create a Set in Swift 
Swift :: how to stack align label over a card in flutter 
Swift :: swift navigationbar not working 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =