File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bk2ch16p678mediaQuery/ch29p946mediaQuery Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class ViewController: UIViewController {
96
96
guard let result = query. collections else { return } //
97
97
// prove we've performed the query, by logging the album titles
98
98
for album in result {
99
- print ( album. representativeItem? . albumTitle) //
99
+ print ( album. representativeItem! . albumTitle! ) //
100
100
}
101
101
return ; // testing
102
102
// cloud item values are 0 and 1, meaning false and true
@@ -115,7 +115,7 @@ class ViewController: UIViewController {
115
115
query. addFilterPredicate ( hasBeethoven)
116
116
guard let result = query. collections else { return } //
117
117
for album in result {
118
- print ( album. representativeItem? . albumTitle) //
118
+ print ( album. representativeItem! . albumTitle! ) //
119
119
}
120
120
}
121
121
@@ -132,12 +132,12 @@ class ViewController: UIViewController {
132
132
133
133
guard let result = query. collections else { return } //
134
134
for album in result {
135
- print ( album. representativeItem? . albumTitle)
135
+ print ( album. representativeItem! . albumTitle! )
136
136
}
137
137
// and here are the songs in the first of those albums
138
138
let album = result [ 0 ]
139
139
for song in album. items { //
140
- print ( song. title)
140
+ print ( song. title! )
141
141
}
142
142
}
143
143
You can’t perform that action at this time.
0 commit comments