• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language Objective-C++
  • Created over 12 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pie Chart built using CAShapeLayers, a CADisplayLink and custom layer properties

Core Animation Pie Chart

Created by Brian Coyner (2011, 2012, 2013, 2017)

This demo was created to help support one of my CocoaConf talks. The demo shows various techniques for building an interactive, animatable pie chart using Core Animation (CAShapeLayer, CATextLayer, CADisplayLink, etc.) At the root of the solution is using a dynamic CALayer property to control the custom animations. The same technique can be applied to other solutions.

Requirements/ Features

  • Xcode 8.3, iOS 10.3

The pie chart contains theses features:

  • add new slices (animated)
  • remove selected slice (animated)
  • update existing pie values (animated)
  • interactive slice selection (tap and/ or move your finger)

The view uses a data source (number of slices, slice value) and delegate (selection tracking).

More Repositories

1

Core-Animation-Fun-House

Core Animation Examples (Basics, Replicator, Reflection, Wiggle Jiggle, Lissajous Curve, Sine Wave, etc.)
Objective-C
252
star
2

Visual-Effects-Shadow

Add a drop shadow to a UIVisualEffectView using a 9-part UIImage.
Swift
58
star
3

Log4FIX-J

FIX (Financial Information Exchange) Message Parser/ Viewer (Java)
Java
26
star
4

Embracing-XCUnit

Various XCUnit testing techniques (parameterized tests, concurrency testing with GCD, etc.)
Objective-C
17
star
5

interactive-grid

Demo project showing a technique for building a reorderable `UICollectionView` using compositional layout and other stock UIKit APIs.
Swift
15
star
6

MagicFingers

Multi-touch, Core Animation (CAReplicatorLayer) iPad app.
Objective-C
12
star
7

Circular-Progress

Techniques for building circular progress views using Core Animation.
Swift
9
star
8

AsyncWorkflow

Techniques for building "async workflows" using `NSOperation` and `NSOperationQueue`.
Swift
7
star
9

SwiftUI-Fun-House

SwiftUI Fun House (Progress Views, `AnimatableData`, etc)
Swift
4
star
10

Parameterized-Unit-Test

Creating XCUnit Parameterized Tests In Swift (with NSInvocation)
Swift
3
star
11

SmallWorld

Sample project demonstrating iOS MapKit Clustering Bugs
Swift
3
star
12

AdaptiveLayout

The demo attempts to mimic how the iOS Files app adapts the "Filter" actions toolbar to horizontal size class changes.
Swift
3
star
13

FiddleYard

Building Lionel "Toy Train" Commands
Swift
2
star
14

MarkerAnnotationView

MKMarkerAnnotationView Center Y-Offset Bug
Swift
2
star
15

hollywood

The Hollywood library provides a simple API for tracking the state of asynchronous Swift Structured Concurrency workflows.
Swift
2
star
16

hollywood-demos

The Hollywood Demos repo contains demo apps showcasing how to build and integrate asynchronous app workflows using the Hollywood library.
Swift
2
star
17

Development-AppleScripts

Resizes all Xcode windows to a location and size that I like.
2
star
18

MKOverlayRendererBug

`MKOverlayRenderer.setNeedsDisplay` causes `MKTileOverlayRenderer` to re-render tiles
Swift
1
star
19

CocoaHeads-Embrace-The-Brackets

West St. Louis CocoaHeads Kick-off Presentation
1
star
20

TouchPreview

Display touches on iOS devices and iOS Simulators.
Swift
1
star