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
bc7153dc
Commit
bc7153dc
authored
May 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
金刚区 比例
parent
2464bb3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
YHHomeKingKongBlockItem.swift
.../Classes/Modules/Home(首页)/V/YHHomeKingKongBlockItem.swift
+4
-2
YHHomeKingKongBlockView.swift
.../Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeKingKongBlockItem.swift
View file @
bc7153dc
...
...
@@ -39,6 +39,8 @@ class YHHomeKingKongBlockItem: UIView {
updateUI
()
}
}
let
radio
:
CGFloat
=
YHHomeKingKongBlockView
.
viewH
/
71.0
}
private
extension
YHHomeKingKongBlockItem
{
...
...
@@ -49,7 +51,7 @@ private extension YHHomeKingKongBlockItem {
iconV
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
width
.
height
.
equalTo
(
31
)
make
.
top
.
equalTo
(
10
)
make
.
top
.
equalTo
(
10
*
radio
)
}
addSubview
(
subtitleLable
)
...
...
@@ -58,7 +60,7 @@ private extension YHHomeKingKongBlockItem {
make
.
left
.
equalTo
(
4
)
make
.
right
.
equalTo
(
-
4
)
make
.
height
.
equalTo
(
17
)
make
.
bottom
.
equalTo
(
-
8
)
make
.
bottom
.
equalTo
(
-
8
*
radio
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeKingKongBlockView.swift
View file @
bc7153dc
...
...
@@ -9,7 +9,7 @@
import
UIKit
class
YHHomeKingKongBlockView
:
UIView
{
static
let
viewH
:
CGFloat
=
71
.0
static
let
viewH
:
CGFloat
=
(
KScreenWidth
-
20.0
*
2
-
17.0
*
3
)
/
4
.0
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
initView
()
...
...
@@ -29,7 +29,7 @@ class YHHomeKingKongBlockView: UIView {
private
extension
YHHomeKingKongBlockView
{
func
initView
()
{
let
itemGap
:
CGFloat
=
(
KScreenWidth
-
20.0
*
2
-
YHHomeKingKongBlockView
.
viewH
*
4.0
)
/
3
.0
let
itemGap
:
CGFloat
=
17
.0
var
offsetX
:
CGFloat
=
0
for
(
index
,
item
)
in
arrData
.
enumerated
()
{
let
view
=
YHHomeKingKongBlockItem
()
...
...
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