Skip to content

Commit

Permalink
Demo: Using '!' is not allowed here; perhaps '?' was intended?
Browse files Browse the repository at this point in the history
  • Loading branch information
ykws committed Jan 18, 2022
1 parent 083e419 commit 2b562b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AKImageCropperViewExample/ImagesTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension ImagesTableViewController {
// Configure the cell...

cell.textLabel!.text = name.components(separatedBy: "-").joined(separator: " ")
cell.detailTextLabel?.text = String(format: "Size %0.1f x %0.1f", image?.size.width as CGFloat!, image?.size.height as CGFloat!)
cell.detailTextLabel?.text = String(format: "Size %0.1f x %0.1f", image?.size.width as CGFloat?, image?.size.height as CGFloat?)

return cell
}
Expand Down

0 comments on commit 2b562b8

Please sign in to comment.