【发布时间】:2021-10-22 07:12:15
【问题描述】:
我在调试模式下没有得到这个,但是当我将运行模式切换到释放模式时,我的手机在以下行崩溃:
self.podcasts = PodcastsView(play: { audio in
self.videoPlayerView.pause()
self.showVideoPlayer = false
self.audioPlayerView.play(audio: audio)
self.audioCurrentlyPlaying = audio
self.showAudioPlayer = true
self.playBarShowing = true
}, indentBottom: Binding(get: {
self.playBarShowing
}, set: {
self.playBarShowing = $0
}))
错误:Thread 1: EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff0)
这是被调用的初始化器:
init(play: @escaping (_ audio: KHKAudio) -> Void, indentBottom: Binding<Bool>) {
self.play = play
self.model = PodcastsViewModel()
self.indentBottom = indentBottom
}
【问题讨论】:
标签: swift debugging swiftui runtime release