swift - How would I save a photo with text (inputted by a user) that is overlaid onto it? -
the user inputs text textfield, press 'go' button , label, on photo, presents text user has inputted.
how user able save photo text on it?
overlay text: found answer time ago: https://stackoverflow.com/a/28907826/1465126
save image file: save uiimage file using tutorial: https://www.hackingwithswift.com/example-code/media/how-to-save-a-uiimage-to-a-file-using-uiimagepngrepresentation
i've used in project myself, works. hope helps.
Comments
Post a Comment