You can contact me via a comment on this page.

4 comments on Contact

    1. @anit thanks for the appreciation, I don’t have a LinkedIn profile that deserves following, you can always subscribe the RSS feed of this blog 🙂

  1. Hello there,

    My name is Aly and I would like to know if you would have any interest to have your website here at promoted as a resource on our blog ?

    We are in the midst of updating our broken link resources to include current and up to date resources for our readers. Our resource links are manually approved allowing us to mark a link as a do-follow link as well
    If you may be interested please in being included as a resource on our blog, please let me know.


  2. Hi Cristik
    Nice to meet you.
    Can you help me?
    I’m new to SwiftUI.
    I encounter Binding issue between View and Controller.
    It’s very similar to your resolve on stackoverflow. (
    I tried with your solution but I’ve not resolve my problem.

    This is source code.

    struct MainView: View {

    @State var cropperRate: Double = 1.0
    var body: ome View {
    ImageCropperView(isShowing: $cropperShown, image: $vm.targetImage,
    cropShapeType: .rect, presetFixedRatioType:
    .canUseMultiplePresetFixedRatio(), _cropperRate: $cropperRate)
    .ignoresSafeArea(edges: .bottom)
    .frame(maxWidth: .infinity, maxHeight: 500)

    in this code, ImageCropperView is not rebuilt when cropperRate is changed.

    // ImageCropper.swift

    import SwiftUI
    import Mantis

    struct ImageCropperView: UIViewControllerRepresentable {

    var _cropperRate: Binding

    class Coordinator: CropViewControllerDelegate {
    var _cropperRateBinding: Binding

    var parent: ImageCropperView

    init( parent: ImageCropperView, _cropperRateBinding: Binding) {
    self.parent = parent
    self._croppeRateBindiing = _cropperRatebinding


    func makeCoordinator() -> Coordinator {
    Coordinator(self, _cropperRateBinding: _cropperRate)

    func makeUIViewController(context: Context) -> CropViewController {
    var config = Mantis.Config()
    config.presetFixedRatioType = presetFixedRatioType
    let cropViewController = Mantis.cropViewController(image: image!)
    cropViewController.delegate = context.coordinator
    return cropViewController

    func updateUIViewController( uiViewController: CropViewController, context: Context) {


    Help me!
    Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *