Swift Class Its Empty veriable :   
[It's empty][1]

How can I keep the name in class?
I will assign a variable value to the function I want to use and then I will use that variable in the load screen


     import UIKit
        
        class userInfo{
            var name : String
            
            init(name : String) {
                self.name = name
            }
            
        }
        class userLoginViewController: UIViewController {
            
            @IBOutlet weak var lblSurucuAdi: UILabel!
            
            var userInfoClass :userInfo?
            
            override func viewDidLoad() {
                super.viewDidLoad()
        
                   userGet() 
        

> But it is empty here

                print(userInfoClass?.name)
        
            func userGet()
            {
             

> I make the username "emrekacan"

              self.userInfoClass = userInfo(name: "emrekacan")
            }
          }

  [1]: https://i.stack.imgur.com/saHln.png