Explicit asset property
This commit is contained in:
@@ -39,7 +39,7 @@ struct FileContentView: View {
|
||||
.font(.title)
|
||||
}
|
||||
.foregroundStyle(.secondary)
|
||||
case .text, .code, .asset:
|
||||
case .text, .code:
|
||||
TextFileContentView(file: file)
|
||||
.id(file.id)
|
||||
case .video:
|
||||
|
@@ -99,6 +99,11 @@ struct FileDetailView: View {
|
||||
text: $file.customOutputPath,
|
||||
footer: "A custom path where the file is stored in the output folder")
|
||||
|
||||
BoolPropertyView(
|
||||
title: "Asset",
|
||||
value: $file.isAsset,
|
||||
footer: "Indicate that this file should be treated as an asset")
|
||||
|
||||
if let imageDimensions = file.imageDimensions {
|
||||
GenericPropertyView(title: "Image dimensions") {
|
||||
Text("\(Int(imageDimensions.width)) x \(Int(imageDimensions.height)) (\(file.aspectRatio))")
|
||||
|
Reference in New Issue
Block a user