1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Mac/Components/Browser/Album Detail/AlbumDetailSongTitleView.swift

25 lines
496 B
Swift

//
// AlbumDetailSongTitleView.swift
// Persephone
//
// Created by Nemo157 on 20200619...
// Copyright © 2020 Dan Barber. All rights reserved.
//
import AppKit
class AlbumDetailSongTitleView: NSTableCellView {
@IBOutlet var songTitle: NSTextField!
@IBOutlet var songArtist: NSTextField!
func setShowArtist(_ show: Bool) {
songArtist.isHidden = !show
}
func setSong(_ song: Song) {
songTitle?.stringValue = song.title
songArtist?.stringValue = song.artist
}
}