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
225eaa98
Commit
225eaa98
authored
Dec 03, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
416518c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
7 deletions
+42
-7
YHAITabBarItemContentView.swift
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
+19
-6
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+1
-1
Contents.json
.../Res/Assets.xcassets/tabBar/tab_AI.imageset/Contents.json
+22
-0
柔和渐变+拟人.png
...xy/Res/Assets.xcassets/tabBar/tab_AI.imageset/柔和渐变+拟人.png
+0
-0
柔和渐变+拟人@3x.png
...Res/Assets.xcassets/tabBar/tab_AI.imageset/柔和渐变+拟人@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
View file @
225eaa98
...
@@ -10,11 +10,17 @@ import ESTabBarController_swift
...
@@ -10,11 +10,17 @@ import ESTabBarController_swift
class
YHAITabBarItemContentView
:
ESTabBarItemContentView
{
class
YHAITabBarItemContentView
:
ESTabBarItemContentView
{
lazy
var
bottomTitleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
10
)
label
.
text
=
"港小宝"
return
label
}()
lazy
var
iconImgView
:
UIImageView
=
{
lazy
var
iconImgView
:
UIImageView
=
{
let
v
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
let
v
=
UIImageView
(
image
:
UIImage
(
named
:
"tab_AI"
))
v
.
backgroundColor
=
.
red
v
.
layer
.
cornerRadius
=
37.0
v
.
clipsToBounds
=
true
return
v
return
v
}()
}()
...
@@ -22,10 +28,17 @@ class YHAITabBarItemContentView: ESTabBarItemContentView {
...
@@ -22,10 +28,17 @@ class YHAITabBarItemContentView: ESTabBarItemContentView {
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
self
.
removeSubviews
()
self
.
removeSubviews
()
self
.
addSubview
(
iconImgView
)
self
.
addSubview
(
iconImgView
)
self
.
addSubview
(
bottomTitleLabel
)
bottomTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
14
)
}
iconImgView
.
snp
.
makeConstraints
{
make
in
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
74
.0
)
make
.
width
.
height
.
equalTo
(
48
.0
)
make
.
bottom
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
bottomTitleLabel
.
snp
.
top
)
make
.
centerX
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
225eaa98
...
@@ -195,7 +195,7 @@ func configTabBarController() -> YHTabBarViewController {
...
@@ -195,7 +195,7 @@ func configTabBarController() -> YHTabBarViewController {
v1
.
tabBarItem
=
ESTabBarItem
.
init
(
YHServiceLottieAnimateContentView
(),
title
:
"服务"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service_1"
))
v1
.
tabBarItem
=
ESTabBarItem
.
init
(
YHServiceLottieAnimateContentView
(),
title
:
"服务"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service_1"
))
v2
.
tabBarItem
=
ESTabBarItem
.
init
(
YHAITabBarItemContentView
(),
title
:
"
AI
"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service_1"
))
v2
.
tabBarItem
=
ESTabBarItem
.
init
(
YHAITabBarItemContentView
(),
title
:
"
港小宝
"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service_1"
))
v3
.
tabBarItem
=
ESTabBarItem
.
init
(
YHCommunityLottieAnimateContentView
(),
title
:
"朋友"
,
image
:
UIImage
(
named
:
"msg"
),
selectedImage
:
UIImage
(
named
:
"msg_1"
))
v3
.
tabBarItem
=
ESTabBarItem
.
init
(
YHCommunityLottieAnimateContentView
(),
title
:
"朋友"
,
image
:
UIImage
(
named
:
"msg"
),
selectedImage
:
UIImage
(
named
:
"msg_1"
))
...
...
galaxy/galaxy/Res/Assets.xcassets/tabBar/tab_AI.imageset/Contents.json
0 → 100644
View file @
225eaa98
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"柔和渐变+拟人.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"柔和渐变+拟人@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/tabBar/tab_AI.imageset/柔和渐变+拟人.png
0 → 100644
View file @
225eaa98
11.9 KB
galaxy/galaxy/Res/Assets.xcassets/tabBar/tab_AI.imageset/柔和渐变+拟人@3x.png
0 → 100644
View file @
225eaa98
22.8 KB
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