Skip to content

UIButton subclass with pulsing effect. Also a pulsing layer which could be used in any view

License

Notifications You must be signed in to change notification settings

smakeev/PulsingButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PulsingButton

Farmers Market Finder Demo

How to use

pod "PulsingButton"
		let button = PulsingButton()
		button.translatesAutoresizingMaskIntoConstraints = false
		
		self.view.addSubview(button)
		button.pulsingColor = .orange
		button.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
		button.centerYAnchor.constraint(equalTo: self.view.centerYAnchor).isActive = true
		
		button.setTitle("   Press Me To See Pulsing   ", for: .normal)
		button.layer.cornerRadius = 25
		button.backgroundColor = .orange
	}

About

UIButton subclass with pulsing effect. Also a pulsing layer which could be used in any view

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published