yackle / CLImageEditor

MIT License
2.22k stars 574 forks source link

Default settings for CLDrawTool, CLTextTool? #176

Open cliffjoyce opened 7 years ago

cliffjoyce commented 7 years ago

I'd like to specify defaults for some of the tools. For example:

Can this be done already? I didn't see a way to do it via the CLImageToolProtocol's optionalInfo NSDictionary entries.

Even better would to set/save these default values in the app's [NSUserDefaults standardUserDefaults]. That way, the app could initialize these values (if they don't exist yet), and the user's most recent choices could be saved/restored.

yackle commented 7 years ago

It certainly seems necessary property for ease of use. But I do not think it is a good thing for the library to use NSUserDefaults without control from developers.

I cannot think of the best solution yet, I will try to change it so that it can be set from optionalInfo.

yqjroy commented 2 years ago

@yackle

It certainly seems necessary property for ease of use. But I do not think it is a good thing for the library to use NSUserDefaults without control from developers.

I cannot think of the best solution yet, I will try to change it so that it can be set from optionalInfo.

So have you already expended optionalInfo properties yet? I come into the same issue as @cliffjoyce cliffjoyce mentioned.