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
ec2bcde0
Commit
ec2bcde0
authored
Dec 03, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
dedb5827
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
YHAutoTextView.swift
galaxy/galaxy/Classes/Base/V/YHAutoTextView.swift
+2
-2
YHAIChatInputShadowView.swift
...ules/AI/AI-Dialogue(AI对话)/V/YHAIChatInputShadowView.swift
+1
-1
YHAITextInputView.swift
...es/Modules/AI/AI-Dialogue(AI对话)/V/YHAITextInputView.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Base/V/YHAutoTextView.swift
View file @
ec2bcde0
...
@@ -31,7 +31,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
...
@@ -31,7 +31,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
let
placeholderLabel
:
UILabel
=
{
let
placeholderLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
translatesAutoresizingMaskIntoConstraints
=
false
label
.
translatesAutoresizingMaskIntoConstraints
=
false
label
.
textColor
=
UIColor
.
lightGray
label
.
textColor
=
UIColor
.
init
(
hex
:
0xB3C8E9
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
return
label
return
label
}()
}()
...
@@ -43,7 +43,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
...
@@ -43,7 +43,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
isScrollEnabled
=
false
// 禁止滚动
isScrollEnabled
=
false
// 禁止滚动
self
.
addSubview
(
placeholderLabel
)
self
.
addSubview
(
placeholderLabel
)
placeholderLabel
.
snp
.
makeConstraints
{
make
in
placeholderLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
5
)
make
.
center
.
equalToSuperview
(
)
make
.
left
.
equalTo
(
5
)
make
.
left
.
equalTo
(
5
)
make
.
right
.
equalTo
(
-
5
)
make
.
right
.
equalTo
(
-
5
)
}
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatInputShadowView.swift
View file @
ec2bcde0
...
@@ -26,7 +26,7 @@ class YHAIChatInputShadowView: UIView {
...
@@ -26,7 +26,7 @@ class YHAIChatInputShadowView: UIView {
let
shadowPath
=
UIBezierPath
(
roundedRect
:
bounds
,
cornerRadius
:
12
)
let
shadowPath
=
UIBezierPath
(
roundedRect
:
bounds
,
cornerRadius
:
12
)
layer
.
shadowPath
=
shadowPath
.
cgPath
layer
.
shadowPath
=
shadowPath
.
cgPath
layer
.
shadowColor
=
UIColor
(
red
:
0
,
green
:
0
,
blue
:
0
,
alpha
:
0.1
6
)
.
cgColor
layer
.
shadowColor
=
UIColor
(
red
:
0
,
green
:
0
,
blue
:
0
,
alpha
:
0.1
2
)
.
cgColor
layer
.
shadowOpacity
=
1
layer
.
shadowOpacity
=
1
layer
.
shadowRadius
=
6
layer
.
shadowRadius
=
6
layer
.
shadowOffset
=
CGSize
(
width
:
0
,
height
:
0
)
layer
.
shadowOffset
=
CGSize
(
width
:
0
,
height
:
0
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAITextInputView.swift
View file @
ec2bcde0
...
@@ -101,6 +101,7 @@ class YHAITextInputView: UIView {
...
@@ -101,6 +101,7 @@ class YHAITextInputView: UIView {
let
v
=
YHAutoTextView
()
let
v
=
YHAutoTextView
()
v
.
backgroundColor
=
.
clear
v
.
backgroundColor
=
.
clear
v
.
font
=
.
PFSC_R
(
ofSize
:
14
)
v
.
font
=
.
PFSC_R
(
ofSize
:
14
)
v
.
placeHolder
=
"有什么问题尽管问我"
v
.
textChange
=
{
v
.
textChange
=
{
[
weak
self
]
text
in
[
weak
self
]
text
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
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