Use Swift 5.7 if-let style

This commit is contained in:
Arkadiusz Fal
2022-09-28 16:27:01 +02:00
parent 8f96a7c5e0
commit a086a0f440
50 changed files with 114 additions and 114 deletions

View File

@@ -143,7 +143,7 @@ struct VideoDetails: View {
var publishedDateSection: some View {
Group {
if let video = video {
if let video {
HStack(spacing: 4) {
if let published = video.publishedDate {
Text(published)
@@ -227,7 +227,7 @@ struct VideoDetails: View {
var detailsPage: some View {
VStack(alignment: .leading, spacing: 0) {
if let video = video {
if let video {
VStack(spacing: 6) {
videoProperties