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

custom subview bottom spacing between first button #442

Open
tommyyoon opened this issue Mar 14, 2019 · 0 comments
Open

custom subview bottom spacing between first button #442

tommyyoon opened this issue Mar 14, 2019 · 0 comments

Comments

@tommyyoon
Copy link

tommyyoon commented Mar 14, 2019

I am adding a custom view and setting the textViewBottom isn't doing anything. That property only works on text textfields added by addTextField method. What am I doing wrong?

            let margin = SCLAlertView.SCLAppearance.Margin(
                textViewBottom: 30
            )
            let appearance = SCLAlertView.SCLAppearance(
                kButtonHeight: 40,
                kTitleFont: UIFont.boldSystemFont(ofSize: 19),
                kTextFont: UIFont.systemFont(ofSize: 19),
                kButtonFont: UIFont.systemFont(ofSize: 19),
                showCloseButton: false,
                circleBackgroundColor: theme.cellBackgroundColor,
                contentViewColor: theme.cellBackgroundColor,
                margin: margin
            )
            
            let alert = SCLAlertView(appearance: appearance)
            
            let pickerView = UIPickerView(frame: CGRect(x: 8, y: 0, width: 200, height: 150))
            pickerView.delegate = self as UIPickerViewDelegate
            pickerView.dataSource = self as UIPickerViewDataSource
            pickerView.tag = 100
            pickerView.backgroundColor = theme.cellBackgroundColor
            pickerView.layer.borderColor = theme.textColor.cgColor
            pickerView.layer.cornerRadius = 5
            pickerView.layer.borderWidth = 0.7
            
            alert.customSubview = pickerView
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