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
1520a182
Commit
1520a182
authored
Jul 23, 2024
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabbar上分享按钮的 隐藏场景 完善
parent
81610e5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+14
-11
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+7
-0
No files found.
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
1520a182
...
@@ -89,18 +89,21 @@ extension YHTabBarViewController {
...
@@ -89,18 +89,21 @@ extension YHTabBarViewController {
if
let
model
=
notification
.
object
as?
TabBarShareModel
{
if
let
model
=
notification
.
object
as?
TabBarShareModel
{
shareModel
=
model
shareModel
=
model
if
model
.
showFlag
{
if
model
.
showFlag
{
self
.
shareView
.
isHidden
=
false
if
self
.
shareView
.
isHidden
{
self
.
shareView
.
layer
.
opacity
=
0.0
self
.
shareView
.
isHidden
=
false
UIView
.
animate
(
withDuration
:
0.25
,
delay
:
0
,
options
:
[
.
curveEaseIn
])
{
self
.
shareView
.
layer
.
opacity
=
1.0
}
completion
:
{
finish
in
}
}
else
{
shareView
.
layer
.
opacity
=
1.0
UIView
.
animate
(
withDuration
:
0.25
,
delay
:
0
,
options
:
[
.
curveEaseOut
])
{
self
.
shareView
.
layer
.
opacity
=
0.0
self
.
shareView
.
layer
.
opacity
=
0.0
}
completion
:
{
finish
in
UIView
.
animate
(
withDuration
:
0.25
,
delay
:
0
,
options
:
[
.
curveEaseIn
])
{
self
.
shareView
.
isHidden
=
true
self
.
shareView
.
layer
.
opacity
=
1.0
}
completion
:
{
finish
in
}
}
}
else
{
if
self
.
shareView
.
isHidden
==
false
{
shareView
.
layer
.
opacity
=
1.0
UIView
.
animate
(
withDuration
:
0.25
,
delay
:
0
,
options
:
[
.
curveEaseOut
])
{
self
.
shareView
.
layer
.
opacity
=
0.0
}
completion
:
{
finish
in
self
.
shareView
.
isHidden
=
true
}
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
1520a182
...
@@ -283,6 +283,13 @@ extension YHHomeHoldViewPageViewController {
...
@@ -283,6 +283,13 @@ extension YHHomeHoldViewPageViewController {
extension
YHHomeHoldViewPageViewController
:
JXSegmentedViewDelegate
{
extension
YHHomeHoldViewPageViewController
:
JXSegmentedViewDelegate
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
segmentedView
.
selectedIndex
==
0
)
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
segmentedView
.
selectedIndex
==
0
)
if
segmentedView
.
selectedIndex
!=
1
{
var
model
=
TabBarShareModel
()
model
.
showFlag
=
false
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
changeShareViewStatusOnTabBarNotifiction
,
object
:
model
)
}
self
.
segmentedView
.
reloadDataWithoutListContainer
()
self
.
segmentedView
.
reloadDataWithoutListContainer
()
}
}
}
}
...
...
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