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
7b1e46ad
Commit
7b1e46ad
authored
Nov 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// tab
parent
cde005b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
5 deletions
+52
-5
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+8
-5
YHAITabBarItemContentView.swift
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
+40
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
7b1e46ad
...
...
@@ -465,6 +465,7 @@
045EEF232B9F171A0022A143
/* YHItemView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EEE762B9F171A0022A143
/* YHItemView.swift */
;
};
045EEF242B9F171A0022A143
/* YHStepView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EEE772B9F171A0022A143
/* YHStepView.swift */
;
};
045EEF252B9F171A0022A143
/* YHMainInformationCardTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EEE782B9F171A0022A143
/* YHMainInformationCardTableViewCell.swift */
;
};
045F28402CF5ED3400520F19
/* YHAITabBarItemContentView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045F283F2CF5ED3400520F19
/* YHAITabBarItemContentView.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4262B495A5400CFB916
/* YHPickPhoneAddressViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4252B495A5400CFB916
/* YHPickPhoneAddressViewController.swift */
;
};
0468D4282B50D4AF00CFB916
/* YHPrivacyAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4272B50D4AF00CFB916
/* YHPrivacyAlertView.swift */
;
};
...
...
@@ -1504,6 +1505,7 @@
045EEE762B9F171A0022A143
/* YHItemView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHItemView.swift
;
sourceTree
=
"<group>"
;
};
045EEE772B9F171A0022A143
/* YHStepView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHStepView.swift
;
sourceTree
=
"<group>"
;
};
045EEE782B9F171A0022A143
/* YHMainInformationCardTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMainInformationCardTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
045F283F2CF5ED3400520F19
/* YHAITabBarItemContentView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAITabBarItemContentView.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4252B495A5400CFB916
/* YHPickPhoneAddressViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPickPhoneAddressViewController.swift
;
sourceTree
=
"<group>"
;
};
0468D4272B50D4AF00CFB916
/* YHPrivacyAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrivacyAlertView.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -5281,6 +5283,7 @@
04F243622C9D4C9700DF2C74
/* YHBaseCornerRadiusBorderView.swift */
,
04F2432E2C94704200DF2C74
/* YHPaddedLabel.swift */
,
04395F892CEDB26500D3005C
/* YHAutoTextView.swift */
,
045F283F2CF5ED3400520F19
/* YHAITabBarItemContentView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -6612,6 +6615,7 @@
047AA3E42C4A6ADC009C4554
/* YHLifeHeadView.swift in Sources */
,
A58A8C942BA6C7C600632765
/* YHCertificateEntryModel.swift in Sources */
,
044F39242CB50FB4007CA277
/* YHResignDocumentUploadActionCell.swift in Sources */
,
045F28402CF5ED3400520F19
/* YHAITabBarItemContentView.swift in Sources */
,
045EEEB82B9F171A0022A143
/* YHWorkExampleMessageView.swift in Sources */
,
04256E142C75BD2700A37BA4
/* YHPayMemberItemsView.swift in Sources */
,
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
,
...
...
galaxy/galaxy/AppDelegate.swift
View file @
7b1e46ad
...
...
@@ -212,18 +212,21 @@ extension AppDelegate {
tabBarController
.
delegate
=
homeVC
let
v0
=
YHNavigationController
(
rootVC
:
homeVC
)
let
v1
=
YHNavigationController
(
rootVC
:
YHServiceCenterViewController
())
let
v2
=
YHNavigationController
(
rootVC
:
YHCommunityViewController
())
let
v3
=
YHNavigationController
(
rootVC
:
YHMyViewController
())
let
v2
=
YHNavigationController
(
rootVC
:
YHAIViewController
())
let
v3
=
YHNavigationController
(
rootVC
:
YHCommunityViewController
())
let
v4
=
YHNavigationController
(
rootVC
:
YHMyViewController
())
v0
.
tabBarItem
=
ESTabBarItem
.
init
(
YHHomeLottieAnimateContentView
(),
title
:
"首页"
,
image
:
UIImage
(
named
:
"home"
),
selectedImage
:
UIImage
(
named
:
"home_1"
))
v1
.
tabBarItem
=
ESTabBarItem
.
init
(
YHServiceLottieAnimateContentView
(),
title
:
"服务"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service_1"
))
v2
.
tabBarItem
=
ESTabBarItem
.
init
(
YH
CommunityLottieAnimateContentView
(),
title
:
"朋友"
,
image
:
UIImage
(
named
:
"msg"
),
selectedImage
:
UIImage
(
named
:
"msg
_1"
))
v2
.
tabBarItem
=
ESTabBarItem
.
init
(
YH
AITabBarItemContentView
(),
title
:
"AI"
,
image
:
UIImage
(
named
:
"service"
),
selectedImage
:
UIImage
(
named
:
"service
_1"
))
v3
.
tabBarItem
=
ESTabBarItem
.
init
(
YH
MyLottieAnimateContentView
(),
title
:
"我的"
,
image
:
UIImage
(
named
:
"me"
),
selectedImage
:
UIImage
(
named
:
"me
_1"
))
v3
.
tabBarItem
=
ESTabBarItem
.
init
(
YH
CommunityLottieAnimateContentView
(),
title
:
"朋友"
,
image
:
UIImage
(
named
:
"msg"
),
selectedImage
:
UIImage
(
named
:
"msg
_1"
))
tabBarController
.
viewControllers
=
[
v0
,
v1
,
v2
,
v3
]
v4
.
tabBarItem
=
ESTabBarItem
.
init
(
YHMyLottieAnimateContentView
(),
title
:
"我的"
,
image
:
UIImage
(
named
:
"me"
),
selectedImage
:
UIImage
(
named
:
"me_1"
))
tabBarController
.
viewControllers
=
[
v0
,
v1
,
v2
,
v3
,
v4
]
tabBarController
.
tabBar
.
backgroundColor
=
.
white
window
=
UIWindow
(
frame
:
UIScreen
.
main
.
bounds
)
...
...
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
0 → 100644
View file @
7b1e46ad
//
// YHAITabBarItem.swift
// galaxy
//
// Created by Dufet on 2024/11/26.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
ESTabBarController_swift
class
YHAITabBarItemContentView
:
ESTabBarItemContentView
{
lazy
var
iconImgView
:
UIImageView
=
{
let
v
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
v
.
backgroundColor
=
.
red
v
.
layer
.
cornerRadius
=
37.0
v
.
clipsToBounds
=
true
return
v
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
self
.
removeSubviews
()
self
.
addSubview
(
iconImgView
)
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
74.0
)
make
.
bottom
.
equalTo
(
0
)
make
.
centerX
.
equalToSuperview
()
}
}
public
required
init
?(
coder
aDecoder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
override
func
updateLayout
()
{
super
.
updateLayout
()
}
}
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