Blink/Views/Info/Debug.swift
- 503 bytes
- View raw
1import SwiftUI
2import Photos
4/// Show some debug information; the asset identifier.
5struct Debug: View {
6 var asset: PHAsset
7 var focusedAssetIndex: Int
9 var body: some View {
10 Text("\(asset.localIdentifier) / asset \(focusedAssetIndex)")
11 .font(.title)
12 .padding(10)
13 .foregroundColor(.white)
14 .background(.black.opacity(0.7))
15 .cornerRadius(7.0)
16 .shadow(radius: 2.0)
17 .textSelection(.enabled)
18 }
19}