Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6931d5e3
Unverified
Commit
6931d5e3
authored
Oct 29, 2019
by
gaaclarke
Committed by
GitHub
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed usage of optional types in swift. (#43461)
parent
e778686e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ViewController.swift
...ration_tests/ios_host_app_swift/Host/ViewController.swift
+6
-5
No files found.
dev/integration_tests/ios_host_app_swift/Host/ViewController.swift
View file @
6931d5e3
...
...
@@ -4,7 +4,7 @@ import FlutterPluginRegistrant
class
ViewController
:
UIViewController
{
var
flutterEngine
:
FlutterEngine
?;
// Boiler-plate add-to-app demo. Not integration tested anywhere.
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -18,10 +18,11 @@ class ViewController: UIViewController {
}
@objc
func
handleButtonAction
()
{
let
flutterEngine
=
self
.
flutterEngine
;
GeneratedPluginRegistrant
.
register
(
with
:
flutterEngine
);
if
let
flutterEngine
=
flutterEngine
as?
FlutterEngine
{
GeneratedPluginRegistrant
.
register
(
with
:
flutterEngine
);
let
flutterViewController
=
FlutterViewController
(
engine
:
flutterEngine
,
nibName
:
nil
,
bundle
:
nil
)
!
;
self
.
present
(
flutterViewController
,
animated
:
false
,
completion
:
nil
)
let
flutterViewController
=
FlutterViewController
(
engine
:
flutterEngine
,
nibName
:
nil
,
bundle
:
nil
);
self
.
present
(
flutterViewController
,
animated
:
false
,
completion
:
nil
)
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment