SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

Get circleiconimage to fill circle

Open devJoshLopez opened this issue 9 years ago • 4 comments

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)

devJoshLopez avatar Feb 11 '16 02:02 devJoshLopez

still trying to figure out how to make the icon the height and width of the circle and rounded

devJoshLopez avatar Jun 24 '16 18:06 devJoshLopez

Same issue here. Any update?

pabloroca avatar Mar 30 '17 13:03 pabloroca

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

pabloroca avatar Mar 30 '17 14:03 pabloroca

kCircleIconHeight works, thank you!

apspot avatar Feb 23 '18 15:02 apspot