bevy / photo-editor

Photo editor with a lot of cool features
MIT License
881 stars 337 forks source link

custom icons #57

Open jothikannan opened 5 years ago

jothikannan commented 5 years ago

Hi,

Is there any way to add our custom icons in the Editor view? Like Crop, Save.. etc

marinofaggiana commented 5 years ago

Confirm, the system of ttf file is unusual

ttorbik commented 5 years ago

I second this, is there a way to do this?

grd888 commented 5 years ago

I just submitted pull request #63 . It allows you to customize all icons by simply initializing the following variables after instantiating PhotoEditorViewController:

cropButtonImage stickerButtonImage drawButtonImage textButtonImage saveButtonImage shareButtonImage clearButtonImage continueButtonImage

For example:

let photoEditor = PhotoEditorViewController(nibName:"PhotoEditorViewController",bundle: Bundle(for: PhotoEditorViewController.self))
photoEditor.cropButtonImage = UIImage(named: 'crop')
midhunnarayan22 commented 3 years ago

Value of type 'PhotoEditorViewController' has no member 'stickerButtonImage' 😒

I need to update my pod? Which is the latest version?