Skip to content

This demo project demonstrates different use cases for matched geometry effect in SwiftUI.

Notifications You must be signed in to change notification settings

gahntpo/MatchedGeometryExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Examples for MatchedGeometryEffect

This demo project demonstrates different use cases for matched geometry effect in SwiftUI.

matchedGeometryEffect(id:in:properties:anchor :isSource:)

Important:

  • only use one view with isSource is true (for the same id)
  • does not work with NavigationView (transition to detail) or sheets, popover etc.

Youtube tutorials

This is the sample project that I develope during a mini-series on Youtube. You can learn how to write this code at:

animation of layout changes

example: switch between HStack and VStack depending on device orientation in AdaptiveCatView

Hero animation

in CatCollectionView

Pickers with one selected element

Files:

Pickers with multiple selected elements

in EmojiPicker: multiple items selected with Hero Animation

About

This demo project demonstrates different use cases for matched geometry effect in SwiftUI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages