My name is Aly and I would like to know if you would have any interest to have your website here at cristik.com promoted as a resource on our blog alychidesign.com ?
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.
Would love to subscribe and follow you.. linkedin??
@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 🙂
Hello there,
My name is Aly and I would like to know if you would have any interest to have your website here at cristik.com promoted as a resource on our blog alychidesign.com ?
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.
Thanks,
Aly
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. (https://stackoverflow.com/questions/64959542/pass-data-from-viewcontroller-to-representable-swiftui)
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)
.padding()
}
}
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!)
print(“here”)
cropViewController.setFixedRatio(5.0)
cropViewController.delegate = context.coordinator
return cropViewController
}
func updateUIViewController( uiViewController: CropViewController, context: Context) {
}
}
Help me!
Thank you.