Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
3a49c711
Commit
3a49c711
authored
Aug 13, 2018
by
Soomin Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistModel: Add creation method
parent
20714bce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
SharedSources/MediaLibraryModel/PlaylistModel.swift
SharedSources/MediaLibraryModel/PlaylistModel.swift
+6
-0
No files found.
SharedSources/MediaLibraryModel/PlaylistModel.swift
View file @
3a49c711
...
...
@@ -34,6 +34,12 @@ class PlaylistModel: MLBaseModel {
}
files
.
append
(
item
)
}
// Creates a VLCMLPlaylist appending it and updates linked view
func
create
(
name
:
String
)
{
append
(
medialibrary
.
createPlaylist
(
with
:
name
))
updateView
?()
}
}
extension
PlaylistModel
:
MediaLibraryObserver
{
...
...
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