SwiftUI 3.0 - Custom Tab Bar With Hero Animation Effect - Matched Geometry - Xcode 13 - WWDC 2021
🕑 Added 2021-07-18 20:56:15 +0000 UTCSource Code For SwiftUI 3.0 - Custom Tab Bar With Hero Animation Effect - Matched Geometry - Xcode 13 - WWDC 2021.
Download Code π
Comments
Kraig Kistler
How would you Code to get unique Data for each Card List? ScrollView(.vertical, showsIndicators: false) { VStack(alignment: .leading, spacing: 15) { Text(card.title) .font(.title2.bold()) .matchedGeometryEffect(id: "\(card.id)TITLE", in: animation) ForEach(1...20,id: \.self){index in HStack(spacing: 12){ Image(systemName: "swift") .padding() .background(.thinMaterial,in: RoundedRectangle(cornerRadius: 10)) .shadow(radius: 2) Text("Day \(index) of SwiftUI") .fontWeight(.semibold) Spacer() Image(systemName: "play.fill") .font(.title2) .foregroundColor(Color("C12")) } .padding(.vertical,8) .padding(.horizontal) .background(.ultraThinMaterial,in: RoundedRectangle(cornerRadius: 10)) } .opacity(showData ? 1 : 0) } .padding() .padding(.top) }
Nogster
This is great but i can't get that card background colour to display screen width on different size devices. The detailed view also getting overlapped on iPads if sidemenu is used.
Mr Tek
Itβs cus heβs using the beta version of Xcode, youβre probably using the current version. You can download the Xcode 13 beta from apples website
The Dime Series
I cannot seem to open the Xcode project at all. I receive this error... The project at '/Users/joepolizzi/Desktop/CustomTabBarWithEffect.xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.
Greg Moore
Xcode > Product > Scheme > Custom Tab Bar (IOS)
jose ayoze san
Imporesionante
Kavsoft
Please check whether the target is iOS It will be right next to play button It may be macOS if so change that to iOS and build the app
Greg Moore
This won't compile [mac min : Xcode 13 beta] I get an erro that "Cannot find 'CustomTabBar' in scope. However, i see that is there and not getting any compile errors.
Andrej
Awesome... thank you