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
6cae0b25
Commit
6cae0b25
authored
Apr 08, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、删除 不使用的代码
2、UI调整
parent
2e0e4b0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
YHHomeHeadView.swift
...xy/galaxy/Classes/Modules/Home(首页)/V/YHHomeHeadView.swift
+10
-5
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeHeadView.swift
View file @
6cae0b25
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
YHHomeHeadView
:
UIView
{
static
let
viewH
:
CGFloat
=
(
20
+
YHHomeBannerView
.
viewH
)
+
(
20
+
YHHkLifeAndIdView
.
viewH
)
+
(
20
+
YHHomeKingKongBlockView
.
viewH
)
+
31
static
let
viewH
:
CGFloat
=
(
20
+
YHHomeBannerView
.
viewH
)
+
(
20
+
YHHkLifeAndIdView
.
viewH
)
+
(
20
+
YHHomeKingKongBlockView
.
viewH
)
+
31
+
31
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
...
...
@@ -49,15 +49,12 @@ private extension YHHomeHeadView {
make
.
height
.
equalTo
(
YHHomeBannerView
.
viewH
)
}
// homeBannerView.backgroundColor = .red
addSubview
(
homeHkLife
)
homeHkLife
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
homeBannerView
.
snp
.
bottom
)
.
offset
(
20
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHHkLifeAndIdView
.
viewH
)
}
// homeHkLife.backgroundColor = .yellow
addSubview
(
homeKingKongBlock
)
homeKingKongBlock
.
snp
.
makeConstraints
{
make
in
...
...
@@ -65,6 +62,14 @@ private extension YHHomeHeadView {
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHHomeKingKongBlockView
.
viewH
)
}
// homeKingKongBlock.backgroundColor = .purple
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
hex
:
0xF0F3F7
,
alpha
:
1.0
)
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
homeKingKongBlock
.
snp
.
bottom
)
.
offset
(
31
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
1
)
}
}
}
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