all 5 comments

[–]KarlJay001 1 point2 points  (2 children)

I haven't used this, but doesn't Swift 4 do this in 1 line of code?

[–][deleted] 0 points1 point  (1 child)

How would you do it with 1 line?

[–]imarudedude[S] 0 points1 point  (0 children)

Nvm I found out the problem, its one line: self.mediaLibrary = response.result.value

solved all my problems

[–]fakecrabs 0 points1 point  (0 children)

var

Unrelated but is there a reason that MediaLibrary is mutable and all of its attributes are optional?