Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
096be299
Commit
096be299
authored
Aug 16, 2018
by
Soomin Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCEditController: Disable editToolbar
parent
42392120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Sources/VLCEditController.swift
Sources/VLCEditController.swift
+10
-10
No files found.
Sources/VLCEditController.swift
View file @
096be299
...
...
@@ -18,21 +18,21 @@ class VLCEditController: NSObject {
private
let
collectionView
:
UICollectionView
private
let
category
:
MediaLibraryBaseModel
private
lazy
var
editToolbar
:
VLCEditToolbar
=
{
let
editToolbar
=
VLCEditToolbar
(
frame
:
CGRect
(
x
:
0
,
y
:
55
0
,
width
:
collectionView
.
frame
.
width
,
height
:
50
))
editToolbar
.
isHidden
=
true
editToolbar
.
delegate
=
self
return
editToolbar
}()
//
private lazy var editToolbar: VLCEditToolbar = {
//
let editToolbar = VLCEditToolbar(frame: CGRect(x: 0, y:
40
0,
//
width: collectionView.frame.width, height: 50))
//
editToolbar.isHidden = true
//
editToolbar.delegate = self
//
return editToolbar
//
}()
init
(
collectionView
:
UICollectionView
,
category
:
MediaLibraryBaseModel
)
{
self
.
collectionView
=
collectionView
self
.
category
=
category
super
.
init
()
collectionView
.
addSubview
(
editToolbar
)
collectionView
.
bringSubview
(
toFront
:
editToolbar
)
//
collectionView.addSubview(editToolbar)
//
collectionView.bringSubview(toFront: editToolbar)
}
}
...
...
@@ -97,7 +97,7 @@ private extension VLCEditController {
extension
VLCEditController
:
VLCEditControllerDataSource
{
func
toolbarNeedsUpdate
(
editing
:
Bool
)
{
editToolbar
.
isHidden
=
!
editing
//
editToolbar.isHidden = !editing
if
!
editing
{
// not in editing mode anymore should reset
selectedCellIndexPaths
.
removeAll
(
keepingCapacity
:
false
)
...
...
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