You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while I would love this little gem of a framework to work, I can't get it to work with the smallest example.
I created a new project (Xcode 11, basic singe view app for iOS) added a second view controller and followed the instructions found in the lightning talk https://www.youtube.com/watch?v=mtBBlml759k.
Unfortunately I will end with
Unexpectedly found nil while implicitly unwrapping an Optional value
in the second view controller (line #26 outputLabel.text = input).
It seems to me that the second view controller is not fully instantiated. I tried with a xib file to no avail.
Any hints what I'm doing wrong? Am I missing something?
A small example would work wonders. Thanks for the novel approach.
MainViewController.swift
import UIKit
import StoryFlow
classViewController:UIViewController,OutputProducing{typealiasOutputType=String@IBOutlet weak varinputTextField:UITextField!overridefunc viewDidLoad(){
super.viewDidLoad()
// Do any additional setup after loading the view.
}@IBActionfunc buttonTapped(_ sender:Any){produce(inputTextField.text ??"")}}
SecondViewController.swift
import UIKit
import StoryFlow
classSecondViewController:UIViewController,InputRequiring{typealiasInputType=String@IBOutlet weak varoutputLabel:UILabel!overridefunc viewDidLoad(){
super.viewDidLoad()
// Do any additional setup after loading the view.
}overridefunc viewDidAppear(_ animated:Bool){
super.viewDidAppear(animated)
outputLabel.text = input
}}
Both view controller are within the default storyboard. Verified class for the second.
The text was updated successfully, but these errors were encountered:
Hi there,
while I would love this little gem of a framework to work, I can't get it to work with the smallest example.
I created a new project (Xcode 11, basic singe view app for iOS) added a second view controller and followed the instructions found in the lightning talk https://www.youtube.com/watch?v=mtBBlml759k.
Unfortunately I will end with
Unexpectedly found nil while implicitly unwrapping an Optional value
in the second view controller (line #26
outputLabel.text = input
).It seems to me that the second view controller is not fully instantiated. I tried with a xib file to no avail.
Any hints what I'm doing wrong? Am I missing something?
A small example would work wonders. Thanks for the novel approach.
MainViewController.swift
SecondViewController.swift
Both view controller are within the default storyboard. Verified class for the second.
The text was updated successfully, but these errors were encountered: