Skip to content

heysaik/Apple-Logo-Canvas-SwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUI Demo Banner

Drawing and Animating the Apple Logo

A fun project playing around with TimelineView and Canvas in SwiftUI 3.0.

Demo Tweet

Usage

  1. Build and run 😄

How it Works

The Apple logo is drawn in the appleLogo function with the help of the Path structure from SwiftUI.

This function is then called inside the new Canvas view that is used to draw the graphic. This view is then wrapped around a TimelineView to animate the color changing of the logo.

Future

I won't be working on this but if you're interested, you can play around with the current color animation to make it change colors much more smoothly. I'll merge your PR if it works.

Copyright

SwiftUI, Xcode, and the Apple Logo are trademarks of Apple Inc., registered in the U.S. and other countries.

About

A fun project playing around with TimelineView and Canvas in SwiftUI 3.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages