Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
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
mobile-group
galaxy-iOS
Commits
843fe315
Commit
843fe315
authored
Jun 20, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 匹配动画
parent
959025f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
23 deletions
+11
-23
YHPeopleViewController.swift
...sses/Modules/Community(社区)/C/YHPeopleViewController.swift
+11
-23
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHPeopleViewController.swift
View file @
843fe315
...
...
@@ -34,6 +34,7 @@ class YHPeopleViewController: YHBaseViewController {
lazy
var
headLottieView
:
LottieAnimationView
=
{
let
view
=
LottieAnimationView
(
name
:
"people_head"
)
view
.
loopMode
=
.
loop
return
view
}()
...
...
@@ -92,6 +93,7 @@ class YHPeopleViewController: YHBaseViewController {
self
.
view
.
addSubview
(
launchLottieView
)
self
.
view
.
addSubview
(
rotateLottieView
)
self
.
view
.
addSubview
(
headLottieView
)
self
.
headLottieView
.
play
()
launchLottieView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
KScreenWidth
)
...
...
@@ -147,23 +149,17 @@ class YHPeopleViewController: YHBaseViewController {
@objc
func
didMatchBtnClicked
()
{
if
true
{
self
.
headLottieView
.
loopMode
=
.
playOnce
self
.
headLottieView
.
play
{
self
.
headLottieView
.
isHidden
=
true
self
.
launchLottieView
.
loopMode
=
.
playOnce
self
.
launchLottieView
.
play
{
[
weak
self
]
completed
in
guard
let
self
=
self
else
{
return
}
self
.
headLottieView
.
isHidden
=
true
self
.
launchLottieView
.
loopMode
=
.
playOnce
self
.
launchLottieView
.
play
{
[
weak
self
]
completed
in
guard
let
self
=
self
else
{
return
}
self
.
launchLottieView
.
isHidden
=
true
self
.
rotateLottieView
.
isHidden
=
false
self
.
rotateLottieView
.
loopMode
=
.
playOnce
self
.
rotateLottieView
.
play
{
completed
in
let
vc
=
YHMatchPeopleViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
self
.
launchLottieView
.
isHidden
=
true
self
.
rotateLottieView
.
isHidden
=
false
self
.
rotateLottieView
.
loopMode
=
.
playOnce
self
.
rotateLottieView
.
play
{
completed
in
let
vc
=
YHMatchPeopleViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
return
...
...
@@ -172,17 +168,9 @@ class YHPeopleViewController: YHBaseViewController {
let
view
=
YHPeopleSuccessView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
//
// let view = YHNameCardInfoView.createCardView()
// view.show()
// let vc = YHMyGoodFriendsVC()
// self.navigationController?.pushViewController(vc)
}
func
resetAnimation
()
{
self
.
headLottieView
.
stop
()
self
.
launchLottieView
.
stop
()
self
.
rotateLottieView
.
stop
()
self
.
headLottieView
.
isHidden
=
false
...
...
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