Add lead workflows, PDF signing, AR projects and photo gallery integration
This commit is contained in:
23
GasTankAR/Views/Leads/Overview/LeadCardFlightView.swift
Normal file
23
GasTankAR/Views/Leads/Overview/LeadCardFlightView.swift
Normal file
@ -0,0 +1,23 @@
|
||||
import SwiftUI
|
||||
|
||||
struct LeadCardFlight {
|
||||
let lead: Lead
|
||||
}
|
||||
|
||||
/// The moving copy lives above the List so row layout and clipping cannot interrupt its path.
|
||||
struct LeadCardFlightView: View {
|
||||
let lead: Lead
|
||||
let showsBookmark: Bool
|
||||
|
||||
var body: some View {
|
||||
var unbookmarkedLead = lead
|
||||
unbookmarkedLead.isBookmarked = false
|
||||
return ZStack(alignment: .top) {
|
||||
LeadCardView(lead: unbookmarkedLead, isBusy: false, onOpen: {}, onBookmark: {})
|
||||
.opacity(showsBookmark ? 0 : 1)
|
||||
BookmarkedLeadCardView(lead: lead, isBusy: false, onOpen: {}, onBookmark: {})
|
||||
.opacity(showsBookmark ? 1 : 0)
|
||||
}
|
||||
.shadow(color: .black.opacity(0.12), radius: 14, y: 8)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user