TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.67k stars 929 forks source link

how to change color of title #535

Closed wkb1192 closed 3 months ago

wkb1192 commented 1 year ago

in SwiftUI

func makeUIViewController(context: Context) -> some UIViewController { let img = self.image ?? UIImage() let cropViewController = CropViewController(image: img) cropViewController.delegate = context.coordinator cropViewController.resetButtonHidden = true cropViewController.aspectRatioPreset = .presetSquare cropViewController.aspectRatioPickerButtonHidden = true cropViewController.rotateButtonsHidden = true cropViewController.cancelButtonTitle = "cancel!!!" cropViewController.doneButtonTitle = "done!!!" cropViewController.aspectRatioLockEnabled = true return cropViewController }

I want to change color of 【cancelButtonTitle】&【doneButtonTitle】. Please teach me!

woxtu commented 1 year ago

How about using doneButtonColor and cancelButtonColor?

TimOliver commented 3 months ago

I think @woxtu nailed it here. :)