Horje
Expression of type 'UIViewController?' is unused warning when pop view controller in swift 3.0 Code Example
Expression of type 'UIViewController?' is unused warning when pop view controller in swift 3.0
@IBAction func goBackToIntroView(_ sender: UIButton) {
     
        self.navigationController?.popViewController(animated: true)
    }
//  popViewController(animated:) returnsUIViewController?
// , and the compiler is giving that warning since you aren't capturing the value. The solution is to assign it to an underscore:
// Answer

_ = navigationController?.popViewController(animated: true)




Swift

Related
let values = [3.0,6.0,9.0,1.0] let squares = values.map {$0 * $0} print(squares) Code Example let values = [3.0,6.0,9.0,1.0] let squares = values.map {$0 * $0} print(squares) Code Example
how request prefix of string in swift Code Example how request prefix of string in swift Code Example
fullscreencover swiftui Code Example fullscreencover swiftui Code Example
Compare AnyObjects en Swift Code Example Compare AnyObjects en Swift Code Example
bold world in text swift Code Example bold world in text swift Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7