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
2a84e42d
Commit
2a84e42d
authored
Dec 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
8646ed96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
YHAIServiceListViewController.swift
...I/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
+10
-2
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
View file @
2a84e42d
...
@@ -33,6 +33,7 @@ class YHAIServiceListViewController: YHBaseViewController {
...
@@ -33,6 +33,7 @@ class YHAIServiceListViewController: YHBaseViewController {
collectView
.
dataSource
=
self
collectView
.
dataSource
=
self
collectView
.
register
(
YHAIProductCell
.
self
,
forCellWithReuseIdentifier
:
YHAIProductCell
.
cellReuseIdentifier
)
collectView
.
register
(
YHAIProductCell
.
self
,
forCellWithReuseIdentifier
:
YHAIProductCell
.
cellReuseIdentifier
)
collectView
.
register
(
YHAIGreetCollectionReusableView
.
self
,
forSupplementaryViewOfKind
:
UICollectionView
.
elementKindSectionHeader
,
withReuseIdentifier
:
YHAIGreetCollectionReusableView
.
reuseIdentifier
)
collectView
.
register
(
YHAIGreetCollectionReusableView
.
self
,
forSupplementaryViewOfKind
:
UICollectionView
.
elementKindSectionHeader
,
withReuseIdentifier
:
YHAIGreetCollectionReusableView
.
reuseIdentifier
)
collectView
.
register
(
UICollectionReusableView
.
self
,
forSupplementaryViewOfKind
:
UICollectionView
.
elementKindSectionFooter
,
withReuseIdentifier
:
"UICollectionReusableView"
)
collectView
.
contentInset
=
.
zero
collectView
.
contentInset
=
.
zero
collectView
.
showsVerticalScrollIndicator
=
false
collectView
.
showsVerticalScrollIndicator
=
false
return
collectView
return
collectView
...
@@ -207,14 +208,21 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
...
@@ -207,14 +208,21 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
headerView
.
updateGreetingText
()
headerView
.
updateGreetingText
()
return
headerView
return
headerView
}
}
let
footerView
:
UICollectionReusableView
=
collectionView
.
dequeueReusableSupplementaryView
(
ofKind
:
UICollectionView
.
elementKindSectionFooter
,
withReuseIdentifier
:
"UICollectionReusableView"
,
for
:
indexPath
)
return
footerView
return
UICollectionReusableView
(
frame
:
CGRectMake
(
0
,
0
,
KScreenWidth
,
42.0
))
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
referenceSizeForHeaderInSection
:
Int
)
->
CGSize
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
referenceSizeForHeaderInSection
:
Int
)
->
CGSize
{
return
CGSize
(
width
:
KScreenWidth
,
height
:
177
)
return
CGSize
(
width
:
KScreenWidth
,
height
:
177
)
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
referenceSizeForFooterInSection
:
Int
)
->
CGSize
{
return
CGSize
(
width
:
KScreenWidth
,
height
:
42.0
)
}
}
}
extension
YHAIServiceListViewController
:
JXSegmentedListContainerViewListDelegate
{
extension
YHAIServiceListViewController
:
JXSegmentedListContainerViewListDelegate
{
...
...
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