New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bld 41686 #23
Bld 41686 #23
Conversation
Bld 38223
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
if let formField = self.formInfo.form.formFields[0] as? BCFormField{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why using [0] instead of .first it can cause crash
} | ||
|
||
@IBAction func submitTapped(_ sender: Any) { | ||
(self.formInfo.form.formFields[0] as? BCFormField)?.label = self.formTitle.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same as above
|
||
|
||
|
||
extension BoldFormViewController: BoldForm { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of using formInfo and formDelegate we can use the form and delegate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it will work.
This solution is taken from the documentation we currently have. (https://github.com/Logmein-Bold-Mobile/bold360-mobile-docs-ios/blob/master/PresentFormsIOS.md)
Don't you think it's there on purpose?
No description provided.