IRSingleButtonGroup-swift IRSingleButtonGroup-swift is a powerful buttons group framework for iOS. See objc version in here: IRSingleButtonGroup. Features Single Button Selection. Single Button Selection Demo: Deselect able. Multi Buttons Selection. Install Cocoapods Add pod 'IRSingleButtonGroup-swift' in the Podfile pod install Usage more examples in the demo applications. Basic self.singleButtonGroup = IRSingleButtonGroup.init() self.singleButtonGroup.buttons = [self.button1, self.button2, self.button3] self.singleButtonGroup.delegate = self // MARK: - SingleButtonGroupDelegate func didSelectedButton(button: UIButton) { NSLog("Button%ld", button.tag) } func didDeselectedButton(button: UIButton) { NSLog("Button%ld", button.tag) } Advanced settings singleButtonGroup.canMultiSelected = false singleButtonGroup.canSelectWhenSelected = true singleButtonGroup.setInitSelected(selectedButton: button) Screenshots