Hi,
There is a strange displaying behavior of custom annotation. I added custom annotation using the code below.
let imageView = UIImageView(image: UIImage(named: imageName))
imageView.frame = CGRect(origin: .zero, size: CGSize(width: 10, height: 10))
let customAnnotation = SCICustomAnnotation()
customAnnotation.customView = imageView
customAnnotation.verticalAnchorPoint = .bottom
customAnnotation.horizontalAnchorPoint = .center
customAnnotation.set(x1: xCoordinate)
customAnnotation.set(y1: yCoordinate)
sciChartSurface?.annotations.add(items: customAnnotation)
The result looks good, but when I move surface left and right, custom annotation would go outside of bounds. Like the image I uploaded.
Please help me solve the issue.
Thanks.
- Tsung-Han Wu asked 4 years ago
- You must login to post comments
Hi, there.
Thanks for pointing out this bug. We’ve fixed this issue and fix is available in the latest nightly cocoapods build – 3.1.0-nightly.5197
Please, try it and let us know if the issue is gone.
Thanks in advance.
- Andriy P answered 4 years ago
- You must login to post comments
Please login first to submit.