将数组传输到另一个视图中的数组(Segue)

Transferring an array to an array in another view (Segue)

当我想将数据发送到其他视图时出现此错误:

类型 'SecondViewController' 的值没有成员 'passingData'

但是它有!

第二个视图控制器:

import UIKit
var passingData : [String] = []
class SecondViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    

}
import UIKit

class SecondViewController: UIViewController {
    var passingData : [String] = []

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
}