Symbols: 90.6% of Apple's iOS API (531 of 586, exact) · Rows: 30: 27 ✅ 1 🟡 2 ❌ · iOS: 2.0+
Area: Graphics & text · Apple: QuartzCore · Issues: area:graphics
- Adapted: Core Animation is part of isim's UIKit (
isim/frameworks/UIKit/CoreAnimation.m,CALayerKinds.m). - Layers are rendered with cairo every frame, with no render server.
- Objective-C:
QuartzCore/QuartzCore.handQuartzCore.frameworkforward to UIKit (isim/sdk-src/Frameworks/QuartzCore). CAMetalLayer,CAMetalDrawableandCAMetalDisplayLink(#329):- Like the other layers, they belong below QuartzCore: they are in the Metal Swift overlay
(
isim/swift/overlays/Metal/CAMetalLayer.swift).import UIKitwithimport Metalreaches them, and so doesimport QuartzCore, which re-exports Metal as Apple's does. QuartzCore.frameworkre-exports them for Objective-C.- A drawable's texture is rendered on the CPU (see Metal). Presenting it copies the pixels into the
layer's
contents.
- Like the other layers, they belong below QuartzCore: they are in the Metal Swift overlay
(
| API / feature | Status | iOS | Notes |
|---|---|---|---|
CALayer basics (frame, bounds, position, anchorPoint, corner radius/curve, maskedCorners, border, background, opacity, masksToBounds, hidden) |
🟡 | ≤17 | standalone layer trees keep their own geometry; a view's layer reports the view's, and its anchorPoint is the view's (iOS 16 UIView.anchorPoint): the center sits at that point of the frame, so changing it moves the frame, and the view's transform applies about it (drawing, hit-testing, conversions, 3D transforms; tested by HelloQuartzCoreObjC). cornerCurve: circular arcs by default, .continuous Apple's continuous ("squircle") corners, which ease into the edges over 1.6× the radius (smoothing reduced when the side is too short, a capsule stays circular); system shapes (sheets, alerts, menus, sidebars, inset-grouped cards, glass) are continuous. Tested (HelloCoreAnimation, HelloVideo, HelloCorners) |
CALayer.isGeometryFlipped |
✅ | ≤17 | adapted: a flipped layer's sublayers are placed with y running up from its bottom edge, and their own content (contents, draw(in:), background) stays upright, as on iOS; tested (VideoCompositionTest: AVVideoCompositionCoreAnimationTool, whose layer trees rely on it) |
zPosition, transform, sublayerTransform, convert(_:from:/to:), hitTest, contains |
✅ | ≤17 | zPosition orders siblings (no depth buffer); conversions through the full 4x4 chain. Ordering/conversion unverified |
| Layer shadows | ✅ | ≤17 | blurred, shadowPath (see UIKit) |
mask |
✅ | ≤17 | see UIKit |
magnificationFilter / minificationFilter |
✅ | ≤17 | nearest affects image drawing |
Sublayers, custom drawing (draw(in:), delegate draw(_:in:)/display(_:)/layoutSublayers(of:)), setNeedsDisplay/setNeedsLayout |
✅ | ≤17 | content is redrawn every frame; display/layout run when flagged. Tested (sublayers, AVPlayerLayer in HelloVideo) |
contents (CGImage / UIImage), contentsGravity, contentsRect, contentsScale, contentsCenter |
✅ | ≤17 | every gravity (top / bottom are y-up, as on iOS: bottomLeft is the top left), contentsRect (no bleeding from the pixels around the part), contentsScale (the natural size), contentsCenter 9-slice when the contents are scaled (corners at natural size, edges stretched along one axis, the centre in both; shrunk together when the layer is smaller). Tested (HelloCoreAnimation -layers) |
CAShapeLayer |
✅ | ≤17 | path fill (rules) and stroke (width, caps, joins, miter, dashes + phase), strokeStart/strokeEnd trimming along the path length, animatable path (same-structure paths morph, others switch half-way). Tested (strokeEnd half-way pixels) |
CAGradientLayer |
✅ | ≤17 | axial, radial (ellipse from startPoint reaching endPoint), conic; locations; animatable colours/locations/points. Tested (axial pixels); radial/conic unverified |
CATextLayer |
✅ | ≤17 | NSString / NSAttributedString, font (UIFont, CTFont, name), size, colour, alignment, wrapping; truncationMode start / middle / end with an ellipsis (one line in the width, or wrapped, the lines that fit the height); .none draws the whole string, cut off at the bounds. Tested (HelloCoreAnimation -layers) |
CAReplicatorLayer |
✅ | ≤17 | instanceCount, instanceTransform (perspective too), instanceDelay, instanceColor + RGBA offsets. Tested (5 copies) |
CAEmitterLayer, CAEmitterCell |
✅ | ≤17 | adapted: particle simulation (point / line / rectangle / circle / cuboid / sphere shapes, birth rate, lifetime, velocity, emission angle / range, acceleration, scale / spin / colour speeds and ranges; render modes: oldest first / last, back to front, additive); a cell's emitterCells are emitted by each of its particles, from its position, at angles relative to its direction, inheriting its scale and colour; 3D emission (emissionLatitude, zAcceleration, emitterZPosition / emitterDepth) moves particles in z, drawn projected onto the layer's plane (orthographic). Tested (HelloCoreAnimation -layers: sub-cell trails, latitude) |
CATransformLayer, CAScrollLayer |
✅ | ≤17 | adapted: a transform layer's sublayers share its 3D space (not flattened into its plane), each drawn in perspective, back to front by the depth of its centre (no per-pixel depth buffer: intersecting layers are not split); it draws no content of its own. Scroll layer: scroll(to:) (point / rect), scrollMode, and CALayer scroll(_:) / scrollRectToVisible(_:) / visibleRect through the nearest scroll layer. Tested (HelloCoreAnimation -layers) |
CABasicAnimation, CAKeyframeAnimation, CASpringAnimation, CAAnimationGroup |
✅ | ≤17 | from/to/by (missing end = current presentation value), additive, cumulative, keyframe values or path, keyTimes, timingFunctions, linear/discrete/paced/cubic modes, rotationMode; damped-spring physics with settlingDuration and perceptual duration/bounce; groups; key paths incl. transform.rotation.z, position.x, bounds.size, custom KVC keys. Tested (keyframe positions at times, spring, group, view-layer rotation) |
CAMediaTiming (beginTime, duration, speed, timeOffset, repeatCount/repeatDuration, autoreverses, fillMode, isRemovedOnCompletion); layer timing (speed = 0 pausing, convertTime) |
✅ | ≤17 | Tested (paused layer + timeOffset, fillMode forwards) |
Animation delegate, add(_:forKey:), removeAnimation(forKey:), animation(forKey:), animationKeys(), presentation()/model() |
✅ | ≤17 | Tested |
CATransition |
✅ | ≤17 | fade, push, moveIn, reveal with subtypes: the previous on-screen appearance (a snapshot when added) leaves while the new state comes in, on the transition's timing (pausable with the layer's speed / timeOffset). Tested (HelloCoreAnimation -layers: each kind half-way) |
CATransaction, implicit animations, CAMediaTimingFunction |
✅ | ≤17 | begin/commit, duration, timing function, setDisableActions, completion blocks (wait for the transaction's animations), implicit 0.25 s animations for standalone layers only (not a view's layer, as on iOS), actions/delegate action(for:forKey:)/NSNull; custom control-point curves. Tested |
CADisplayLink |
✅ | ≤17 | fires once per frame while added; keeps the run loop at 60 fps. Retains its target until invalidate(), as on iOS, so a target only the link holds keeps firing (#648; tested: HelloQuartzCoreObjC, test_quartzcore_objc) |
CADisplayLink.preferredFrameRateRange, preferredFramesPerSecond |
✅ | 15.0 | adapted: a link fires at its range's preferred rate (else its maximum, else preferredFramesPerSecond), never above the screen's 60 Hz, skipping frames below it; targetTimestamp follows that rate, duration is the display's frame. Tested (HelloQuartzCoreObjC: a 30 Hz link beside a 60 Hz one) |
CAFrameRateRange (init(minimum:maximum:preferred:), .default, isEqual(to:); CAFrameRateRangeMake, CAFrameRateRangeDefault, CAFrameRateRangeIsEqualToRange) |
✅ | 15.0 | passthrough of Apple's struct; tested (HelloQuartzCoreObjC, HelloCoreAnimation) |
CATiledLayer (tileSize, levelsOfDetail, levelsOfDetailBias, fadeDuration) |
✅ | ≤17 | adapted: drawInContext: / the delegate's drawLayer:inContext: runs once per tile that intersects the visible area, the context clipped to the tile; tiles are tileSize pixels at the level of detail nearest the drawing scale (powers of two within levelsOfDetail and the bias). Core Animation draws tiles on background threads and fades them in; isim draws them on the main thread when the layer is rendered, without the fade. Tested (HelloQuartzCoreObjC: four tiles, HelloCoreAnimation) |
QuartzCore/QuartzCore.h and the per-class headers (CALayer.h, CADisplayLink.h, CATransaction.h, …), -framework QuartzCore |
✅ | ≤17 | adapted: the headers forward to UIKit's declarations, and QuartzCore.framework re-exports UIKit and the Swift overlay, so Objective-C code links -framework QuartzCore alone. Tested (HelloQuartzCoreObjC: layers, transforms, a transaction, an animation, a display link drawing a ring) |
CATransform3D |
✅ | ≤17 | full 4x4 math (make/translate/scale/rotate/concat/invert/isAffine/affine conversions), NSValue boxing and Swift bridging. Tested |
CAValueFunction, filters/compositingFilter, shouldRasterize |
✅ | ≤17 | value functions (rotate / scale / translate, per axis or 3-vector) in basic, spring and keyframe animations of a transform: the numbers are interpolated, then made into the transform. shouldRasterize: the layer (with its shadow and sublayers) drawn into a bitmap of rasterizationScale pixels per point, opacity applied to the bitmap. filters, backgroundFilters, compositingFilter: stored, not applied, like iOS ("not supported on layers in iOS"). Tested (HelloCoreAnimation -layers) |
CAMetalLayer (device, pixelFormat, framebufferOnly, drawableSize, nextDrawable(), maximumDrawableCount, allowsNextDrawableTimeout, colorspace), CAMetalDrawable (texture, layer, present, presented handlers) |
✅ | ≤17 | adapted: the drawables' textures are rendered by isim's Metal on the CPU; presenting one (when its command buffer completes) copies BGRA8 / RGBA8 (and their sRGB forms), RGBA16Float or 10-bit pixels into the layer's contents; up to maximumDrawableCount drawables in flight, nextDrawable() waits up to a second for one. Tested (HelloMetalKit, test_metalkit) |
CAMetalDisplayLink, CAMetalDisplayLink.Update, CAMetalDisplayLinkDelegate |
✅ | 17.0 | adapted: a CADisplayLink hands the delegate the layer's next drawable each frame, with target and presentation timestamps (preferredFrameLatency frames ahead); preferredFrameRateRange, isPaused. Tested (HelloMetalKit, test_metalkit) |
| Types not yet in isim (iOS 17 and earlier) | ❌ | ≤17 | not implemented, found by the 2026-10 sweep: CAEDRMetadata, CARenderer (2 types; with their members under "Not yet in isim") |
| Types not yet in isim (iOS 18) | ❌ | 18.0 | not implemented, found by the 2026-10 sweep: CALayer.ToneMapMode (1 type; with its members under "Not yet in isim") |
55 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
var CA_WARN_DEPRECATED: Int32var animationEvents: [SCNAnimationEvent]?var fadeInDuration: CGFloatvar fadeOutDuration: CGFloatinit(SCNAnimation: SCNAnimation)var usesSceneTimeBase: BoolCAEDRMetadataclass func hdr10(displayInfo: Data?, contentInfo: Data?, opticalOutputScale: Float) -> CAEDRMetadataclass func hdr10(minLuminance: Float, maxLuminance: Float, opticalOutputScale: Float) -> CAEDRMetadataclass var hlg: CAEDRMetadataclass func hlg(ambientViewingEnvironment: Data) -> CAEDRMetadatainit?(coder: NSCoder)class var isAvailable: Boolclass func defaultValue(forKey: String) -> Any?func shouldArchiveValue(forKey: String) -> Boolfunc contentsAreFlipped() -> Boolvar contentsHeadroom: CGFloatclass func cornerCurveExpansionFactor(CALayerCornerCurve) -> CGFloatCALayer.DynamicRangestatic let automatic: CALayer.DynamicRangestatic let constrainedHigh: CALayer.DynamicRangestatic let high: CALayer.DynamicRangeinit(rawValue: String)static let standard: CALayer.DynamicRangeinit(remoteClientId: UInt32)var preferredDynamicRange: CALayer.DynamicRangefunc setNeedsDisplay(CGRect)var toneMapMode: CALayer.ToneMapModeCALayer.ToneMapModestatic let automatic: CALayer.ToneMapModestatic let ifSupported: CALayer.ToneMapModeinit(rawValue: String)static let never: CALayer.ToneMapModestatic let automatic: CALayerContentsFormatstatic let gray8Uint: CALayerContentsFormatstatic let RGBA16Float: CALayerContentsFormatvar developerHUDProperties: [AnyHashable : Any]?var edrMetadata: CAEDRMetadata?var residencySet: any MTLResidencySetCARendererfunc addUpdate(CGRect)func beginFrame(atTime: CFTimeInterval, timeStamp: UnsafeMutablePointer<CVTimeStamp>?)var bounds: CGRectfunc endFrame()init(mtlTexture: any MTLTexture, options: [AnyHashable : Any]?)init(MTLTexture: any MTLTexture, options: [AnyHashable : Any]?)var layer: CALayer?func nextFrameTime() -> CFTimeIntervalfunc render()func setDestination(any MTLTexture)func updateBounds() -> CGRectlet kCAOnOrderIn: Stringlet kCAOnOrderOut: Stringlet kCARendererColorSpace: Stringlet kCARendererMetalCommandQueue: String