diff --git a/to-live-photo/to-live-photo/Views/ResultView.swift b/to-live-photo/to-live-photo/Views/ResultView.swift index 3e002ae..c317927 100644 --- a/to-live-photo/to-live-photo/Views/ResultView.swift +++ b/to-live-photo/to-live-photo/Views/ResultView.swift @@ -83,13 +83,16 @@ struct ResultView: View { let photoSize = livePhoto.size let ratio = photoSize.width / max(photoSize.height, 1) SoftCard(padding: DesignTokens.Spacing.md) { - LivePhotoPreviewView(livePhoto: livePhoto) + // PHLivePhotoView 无 intrinsic size,用 Color.clear 撑出正确比例 + Color.clear .aspectRatio(ratio, contentMode: .fit) .frame(maxHeight: 360) + .overlay { + LivePhotoPreviewView(livePhoto: livePhoto) + } .clipShape(RoundedRectangle(cornerRadius: DesignTokens.Radius.lg)) .accessibilityLabel(String(localized: "result.livePhotoPreview.accessibilityLabel")) } - .frame(maxWidth: .infinity) } Text(String(localized: "result.livePhotoPreview.hint"))