Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Akamu
Game Client iOS
Commits
62f556e3
Commit
62f556e3
authored
Jul 19, 2020
by
Maurice Kraus
Committed by
Maurice Kraus
Jul 19, 2020
Browse files
refactor(viewlayer): this deletes an unused variable
parent
e1deed4e
Pipeline
#1889
passed with stages
in 13 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Akamu_iOS/Sources/ViewLayer/ViewControllers/AvatarSelectionViewController.swift
View file @
62f556e3
...
...
@@ -21,8 +21,6 @@ class AvatarSelectionViewController: UIViewController, UICollectionViewDelegate
private
var
dataSource
:
RxCollectionViewSectionedAnimatedDataSource
<
AvatarSection
>!
private
let
disposeBag
=
DisposeBag
()
var
onAvatarPress
:
Action
<
Int
,
Void
>
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
collectionView
.
register
(
cellType
:
AvatarCollectionViewCell
.
self
)
...
...
@@ -50,7 +48,6 @@ class AvatarSelectionViewController: UIViewController, UICollectionViewDelegate
collectionView
.
rx
.
itemSelected
.
do
(
onNext
:
{
[
unowned
self
]
indexPath
in
self
.
collectionView
.
deselectItem
(
at
:
indexPath
,
animated
:
true
)
})
.
map
{
[
unowned
self
]
indexPath
->
Int
in
let
model
=
try
self
.
dataSource
.
model
(
at
:
indexPath
)
as!
Avatar
return
model
.
id
...
...
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