File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Example/DropboxClientExampleApp Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,18 @@ struct ExampleView: View {
161161 Text ( entry. pathLower)
162162 }
163163
164- VStack ( alignment: . leading) {
165- Text ( " Client modified " ) . font ( . caption) . foregroundColor ( . secondary)
166- Text ( entry. clientModified. formatted ( date: . complete, time: . complete) )
164+ if let date = entry. clientModified {
165+ VStack ( alignment: . leading) {
166+ Text ( " Client modified " ) . font ( . caption) . foregroundColor ( . secondary)
167+ Text ( date. formatted ( date: . complete, time: . complete) )
168+ }
167169 }
168170
169- VStack ( alignment: . leading) {
170- Text ( " Server modified " ) . font ( . caption) . foregroundColor ( . secondary)
171- Text ( entry. serverModified. formatted ( date: . complete, time: . complete) )
171+ if let date = entry. serverModified {
172+ VStack ( alignment: . leading) {
173+ Text ( " Server modified " ) . font ( . caption) . foregroundColor ( . secondary)
174+ Text ( date. formatted ( date: . complete, time: . complete) )
175+ }
172176 }
173177 }
174178
You can’t perform that action at this time.
0 commit comments