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
20c65868
Commit
20c65868
authored
May 15, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试高斯模糊
parent
17f34b80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Podfile
galaxy/Podfile
+1
-0
YHHomeBannerCollectionViewCell.swift
...s/Modules/Home(首页)/V/YHHomeBannerCollectionViewCell.swift
+4
-5
No files found.
galaxy/Podfile
View file @
20c65868
...
...
@@ -79,6 +79,7 @@ target 'galaxy' do
pod
'WechatOpenSDK'
,
'2.0.2'
#视频播放器
pod
'BMPlayer'
,
'1.3.0'
#高斯模糊
pod
'VisualEffectView'
,
'4.1.5'
end
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerCollectionViewCell.swift
View file @
20c65868
...
...
@@ -46,6 +46,7 @@ class YHHomeBannerCollectionViewCell: FSPagerViewCell {
updateUI
()
}
}
let
visualEffectView
=
VisualEffectView
()
}
private
extension
YHHomeBannerCollectionViewCell
{
...
...
@@ -56,10 +57,8 @@ private extension YHHomeBannerCollectionViewCell {
make
.
edges
.
equalToSuperview
()
}
let
visualEffectView
=
VisualEffectView
()
// Configure the view with tint color, blur radius, etc
visualEffectView
.
colorTint
=
UIColor
(
hex
:
0xffffff
)
visualEffectView
.
colorTintAlpha
=
0.08
visualEffectView
.
colorTint
=
UIColor
(
hex
:
0xAFAFAF
)
.
withAlphaComponent
(
0.15
)
visualEffectView
.
blurRadius
=
16
visualEffectView
.
scale
=
1
contentView
.
addSubview
(
visualEffectView
)
...
...
@@ -82,12 +81,12 @@ private extension YHHomeBannerCollectionViewCell {
if
model
.
isLocalItemFlag
{
bannerTitleLable
.
isHidden
=
true
// effectV
.isHidden = true
visualEffectView
.
isHidden
=
true
bannerImagV
.
image
=
UIImage
(
named
:
model
.
img_url
)
}
else
{
bannerTitleLable
.
isHidden
=
false
// effectV
.isHidden = false
visualEffectView
.
isHidden
=
false
if
let
url
=
URL
(
string
:
model
.
img_url
)
{
bannerImagV
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
...
...
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