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 {
9696        guard  let  result =  query. collections else  { return }  //
9797        // prove we've performed the query, by logging the album titles
9898        for  album  in  result { 
99-             print ( album. representativeItem? . albumTitle)  //
99+             print ( album. representativeItem! . albumTitle! )  //
100100        } 
101101        return ; // testing
102102        // cloud item values are 0 and 1, meaning false and true
@@ -115,7 +115,7 @@ class ViewController: UIViewController {
115115        query. addFilterPredicate ( hasBeethoven) 
116116        guard  let  result =  query. collections else  { return }  //
117117        for  album  in  result { 
118-             print ( album. representativeItem? . albumTitle)  //
118+             print ( album. representativeItem! . albumTitle! )  //
119119        } 
120120    } 
121121
@@ -132,12 +132,12 @@ class ViewController: UIViewController {
132132
133133        guard  let  result =  query. collections else  { return }  //
134134        for  album  in  result { 
135-             print ( album. representativeItem? . albumTitle) 
135+             print ( album. representativeItem! . albumTitle! ) 
136136        } 
137137        // and here are the songs in the first of those albums
138138        let  album  =  result [ 0 ] 
139139        for  song  in  album. items {  //
140-             print ( song. title) 
140+             print ( song. title! ) 
141141        } 
142142    } 
143143
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments