text field passing data
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let secondController = segue.destination as! TwoViewController
secondController.theLabel = textField.text!
}
@IBAction func buttonEnterTap(_ sender: Any) {
if textField.text != "" {
performSegue(withIdentifier: "segueOne", sender: self)
}
}
Also in Swift:
- show alert swiftui
- swift change navigation bar color
- add buton border swift
- swift quit app
- swift has Top Notch
- convert string to base64 swift
- swift xcode debug cannot see code backtrace
- swift change background color
- ui alert swift yes no
- swift assign tuple to variables
- get icloud doc swift
- tellraw minecraft
- go to view controller programmatically swift
- swift uiview add tap gesture
- hide status bar in tableview cell in swift
- show back button in navbar swift
- text field passing data
- Left side of mutating operator isn't mutable: 'self' is immutable
- guard let swift
- add border to button swiftui
- rtl ios swift
- swift swipe gesture
- ShareSheet: UIViewControllerRepresentable swiftui
- shadow color swiftui