Skip to content
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

Merged
merged 12 commits into from Nov 12, 2020
Merged

Bld 41686 #23

merged 12 commits into from Nov 12, 2020

Conversation

OmerRahmany
Copy link
Contributor

No description provided.

override func viewDidLoad() {
super.viewDidLoad()

if let formField = self.formInfo.form.formFields[0] as? BCFormField{
Copy link
Contributor

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
Copy link
Contributor

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 {
Copy link
Contributor

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

Copy link
Contributor Author

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?

@OmerRahmany OmerRahmany merged commit 19e5783 into master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants