Lately I have been working on a new app and I'm struggling to pass data between view controllers.
I use a view controller which holds a container view in which I use google maps. As some of you know it's impossible to put a button on google maps as it overlays everything (that why I put it as a container view). Now I got a problem that I can't make an action button that can performSegue
and I also failed to pass an object with the NotificationCenter
. I made a model called Song and I want to pass a song List
to other controller (a table view).
class Song {
var sid: String
var songName: String
var artistId: String
var length: String
var songImage: String?
var album: String
var lastUpdate:Date?
}
Any ideas or suggestions to move this list between VCs? There is no real connection between those views though, the mainVC is holding them both as containers.