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
f41f5ff0
Commit
f41f5ff0
authored
Dec 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
74fe5f06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
YHAutoTextView.swift
galaxy/galaxy/Classes/Base/V/YHAutoTextView.swift
+1
-1
YHAIChatBannerItemCell.swift
...dules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerItemCell.swift
+13
-13
No files found.
galaxy/galaxy/Classes/Base/V/YHAutoTextView.swift
View file @
f41f5ff0
...
...
@@ -25,7 +25,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
var
realHeight
=
self
.
calculateHeight
if
self
.
calculateHeight
>
maxHeight
{
h
eight
=
maxHeight
realH
eight
=
maxHeight
self
.
snp
.
updateConstraints
{
make
in
make
.
top
.
equalTo
(
11
)
make
.
height
.
equalTo
(
realHeight
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerItemCell.swift
View file @
f41f5ff0
...
...
@@ -21,14 +21,14 @@ class YHAIChatBannerItemCell: FSPagerViewCell {
static
let
cellReuseIdentifier
=
"YHAIChatBannerItemCell"
lazy
var
effectView
:
VisualEffectView
=
{
let
visualEffectView
=
VisualEffectView
()
visualEffectView
.
colorTint
=
UIColor
(
hex
:
0xAFAFAF
)
.
withAlphaComponent
(
0.15
)
visualEffectView
.
blurRadius
=
16
visualEffectView
.
scale
=
1
visualEffectView
.
isHidden
=
true
return
visualEffectView
}()
//
lazy var effectView:VisualEffectView = {
//
let visualEffectView = VisualEffectView()
//
visualEffectView.colorTint = UIColor(hex: 0xAFAFAF).withAlphaComponent(0.15)
//
visualEffectView.blurRadius = 16
//
visualEffectView.scale = 1
//
visualEffectView.isHidden = true
//
return visualEffectView
//
}()
lazy
var
titleLabel
:
UILabel
=
{
let
lable
=
UILabel
()
...
...
@@ -62,11 +62,11 @@ class YHAIChatBannerItemCell: FSPagerViewCell {
contentView
.
layer
.
shadowOpacity
=
0
contentView
.
layer
.
shadowOffset
=
.
zero
contentView
.
addSubview
(
effectView
)
effectView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
95
)
}
//
contentView.addSubview(effectView)
//
effectView.snp.makeConstraints { make in
//
make.bottom.left.right.equalToSuperview()
//
make.height.equalTo(95)
//
}
contentView
.
addSubview
(
subtitleLabel
)
subtitleLabel
.
snp
.
makeConstraints
{
make
in
...
...
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