Skip to content

smakeev/ShimmerLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShimmerLabel

Farmers Market Finder Demo

		let label = ShimmerLabel()
		label.text = " Text From Code"
		label.font = UIFont.boldSystemFont(ofSize: 18)
		
		label.translatesAutoresizingMaskIntoConstraints = false
		label.shimmerColor = .red
		self.view.addSubview(label)
		
		label.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
		label.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
		label.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
		label.bottomAnchor.constraint(equalTo: self.view.bottomAnchor, constant: -40).isActive = true