SCLAlertView-Swift
SCLAlertView-Swift copied to clipboard
Get circleiconimage to fill circle
When I add an image to the circleIconImage the image is really small. How would I make it the full width of the circle like ScaleAspectFill.
Here is my code:
let successAlert = SCLAlertView() successAlert.addButton("Yes Add Drop", target:self, selector:Selector("addDrop")) successAlert.showSuccess("Hurray!", subTitle: "Your update saved succesfully! Would you like to add a Drop?", closeButtonTitle: "No thanks", duration: 0, colorStyle: 0x6699FF, colorTextButton: 0xFFFFFF, circleIconImage: self.currentUserProfileImage)
still trying to figure out how to make the icon the height and width of the circle and rounded
Same issue here. Any update?
Solved
`var foalertAppearanceImage = SCLAlertView.SCLAppearance( kTitleFont: FOFonts.title!, kTextFont: FOFonts.text!, kButtonFont: FOFonts.buttomtext!, showCloseButton: false, shouldAutoDismiss: false, kCircleIconHeight: 60, hideWhenBackgroundViewIsTapped: false )
let alert = SCLAlertView(appearance: foalertAppearanceImage) `
the key is kCircleIconHeight to 60
kCircleIconHeight works, thank you!