Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item icons are not in center #321

Open
imnayandave opened this issue Feb 21, 2023 · 0 comments
Open

Item icons are not in center #321

imnayandave opened this issue Feb 21, 2023 · 0 comments

Comments

@imnayandave
Copy link

imnayandave commented Feb 21, 2023

image

Code for above Image

/// *Adding Floaty Item Buttons*
private func add_Floaty_Butttons() {
    for i in 0..<3 {
        let button = FloatyItem()
        switch i {
        case 0:
            button.icon = UIImage(named: "ic-Files")
            button.handler = { [weak self] _ in
                self?.init_DocumentPicker()
            }
        case 1:
            button.icon = UIImage(named: "ic-Galley")
            button.handler = { [weak self] _ in
                self?.open_Photo_Gallery()
            }
        case 2:
            button.icon = UIImage(named: "ic-Camera")
            button.handler = { [weak self] _ in
                self?.open_Camera()
            }
        default: debugPrint("Invalid Index")
        }
        button.iconTintColor = .white
        button.buttonColor = .ourAppThemeColor
        button.size = 60
        btnFloaty.addItem(item: button)
    }
    view.addSubview(btnFloaty)

    btnFloaty.openAnimationType = .semiCircular     
    btnFloaty.circleAnimationDegreeOffset = 30     
    btnFloaty.circleAnimationRadius = 90    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant