Questions tagged [calayer]
CALayer is a Core Animation class in the Quartz Core framework. It encapsulates the geometry and presentation of a layer. It supports animations of the layer's geometry and its content.
calayer
2,863
questions
0
votes
2
answers
89
views
in iOS17 UIKit is there a way to change/affect the border color of an iOS17 UITextField (other than the mangle shown here)?
This is about iOS 17 only. The only way I could hack around and achieve something like this was
find the actual, real, border, get its real values
sadly just add a fake on top of that layer once ...
0
votes
1
answer
56
views
Removing animation from CALayer
I'm currently building a drawing app that should leverage a CALayer hierarchy to avoid redrawing each layer when not necessary (e.g. I would like to render temporary stuff like selections on a ...
0
votes
0
answers
309
views
App crashes of type EXC_BREAKPOINT (SIGTRAP) SIGNAL 5 Trace/BPT trap on iOS17
I'm encountering crashes of type EXC_BREAKPOINT (SIGTRAP) Termination Reason: SIGNAL 5 Trace/BPT trap: 5 on iOS 17.
In the iOS app I'm developing, I've noticed that since upgrading to iOS 17 (Xcode 15....
0
votes
1
answer
44
views
Inserting subview into view where I've added subviews and sublayers
I have the following set-up of CAShapeLayers and UIViews attached to a UIView:
[self.layer addSublayer:self.shapeLayer1];
if (someCase)
{
[self.layer addSublayer:self.shapeLayerOptional];
}
[...
1
vote
1
answer
63
views
Performance slowdown and inaccuracies in stroke rendering due to float-based distance calculation in drawing
Description:
I'm currently working on a Drawing application and facing challenges with stroke rendering due to the use of float-based distance calculations.
While attempting to convert integer ...
0
votes
1
answer
23
views
When using UIScrollView, how can I fade the left and right edges if content is outside the visible bounds?
Let's say I have a horizontally scrollable UIScrollView with various types of content. It could be images, UIViews etc. I would like to fade transparent the left and right edges if the content is ...
0
votes
0
answers
91
views
How to render content of CALayer and sync with it in real-time
I'm creating a backdrop layer.
I can
find the correct layer that needs to be re-rendered in real-time.
render these layers by using layer.render(in: context).
update capture by using CADisplayLink in ...
0
votes
1
answer
49
views
Issue with Sequential Touch Points in Using CALayer for Drawing in Swift
I'm encountering an issue with my drawing functionality in Swift, specifically when using CALayer instead of UIBezierPath. Here's the problem I'm facing:
I am creating a texture from an image and ...
-1
votes
1
answer
41
views
layerClass breaks auto layout
I made a custom view which has CAGradientLayer as a layer, and I added this view on the other view with bottom anchor. It was just very simple auto layout constraint with bottom, leading, trailing and ...
1
vote
1
answer
148
views
why does write addSublayer twice to block screenshot in swift?
I found an extension function to block screeenShot in iOS.
But I wounder to know why addSublayer twice.
self.layer.superlayer?.addSublayer(textfield.layer)
textfield.layer.sublayers?.last?....
1
vote
0
answers
105
views
CALayer in SwiftUI: add CALayer circleLayer to view Camera layer but not show it on the screen
I am working on an object detection application in SwiftUI. I have a problem: I added circleLayer as ship to the view Camera but cannot show it on the screen
You can also see here that I configure the ...
2
votes
0
answers
32
views
How to make CALayer adapt to the application appearance using drawlayer:inContext:?
I have a layer-hosting NSView subclass that draws itself using a CALayer object set as its layer. Since it's not a layer-backed view, it doesn't redraw during drawRect: nor during updateLayer, but ...
2
votes
0
answers
53
views
Synchronize CARenderer with .private MTLTextuer
What is the proper way to synchronize the work done by CARenderer when rendering to a MTLTexture that has storageMode = .private?
In another long and somewhat rambling post, I think I've proved that ...
0
votes
1
answer
107
views
Synchronize UIView CALayer draw with UIScrollView
I'm trying to make an application that will draw on top of a pdf. It is required that graphic shapes be tied to a specific position on the page.
To solve the problem, I use PDFView and CALayer, listen ...
2
votes
0
answers
129
views
Flickering while rendering a CALayer -> MTLTexture, via CARenderer on background thread
I'm trying to render a layer tree, via CARenderer, ideally on a background thread, and running into weird rendering/flicker issues
Progress as of 25th Oct
Not knowing exactly WHERE the issue was ...