From a41ad95cdaadc2236571f7c19e596cc37d001570 Mon Sep 17 00:00:00 2001 From: Max Cobb Date: Mon, 4 Oct 2021 17:18:07 +0100 Subject: [PATCH] no button bar appears if no buttons to display. updated versions to 1.6.8 --- AgoraUIKit_iOS.podspec | 2 +- AgoraUIKit_macOS.podspec | 2 +- Sources/Agora-UIKit/AgoraUIKit.swift | 2 +- Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/AgoraUIKit_iOS.podspec b/AgoraUIKit_iOS.podspec index 1238dab3..edca6a50 100644 --- a/AgoraUIKit_iOS.podspec +++ b/AgoraUIKit_iOS.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'AgoraUIKit_iOS' - s.version = '1.6.7' + s.version = '1.6.8' s.summary = 'Agora video session UIKit template.' s.description = <<-DESC diff --git a/AgoraUIKit_macOS.podspec b/AgoraUIKit_macOS.podspec index 2e412d0c..3a7e975b 100644 --- a/AgoraUIKit_macOS.podspec +++ b/AgoraUIKit_macOS.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'AgoraUIKit_macOS' - s.version = '1.6.7' + s.version = '1.6.8' s.summary = 'Agora video session AppKit template.' s.description = <<-DESC diff --git a/Sources/Agora-UIKit/AgoraUIKit.swift b/Sources/Agora-UIKit/AgoraUIKit.swift index b487ae45..c9a824d2 100644 --- a/Sources/Agora-UIKit/AgoraUIKit.swift +++ b/Sources/Agora-UIKit/AgoraUIKit.swift @@ -22,7 +22,7 @@ public struct AgoraUIKit: Codable { /// Framework type of UIKit. "native", "flutter", "reactnative" fileprivate(set) var framework: String /// Version of UIKit being used - static let version = "1.6.7" + static let version = "1.6.8" /// Framework type of UIKit. "native", "flutter", "reactnative" static let framework = "native" #if os(iOS) diff --git a/Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift b/Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift index ac5b4034..c63e2279 100644 --- a/Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift +++ b/Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift @@ -48,6 +48,9 @@ extension AgoraVideoViewer { let buttonSize = self.agoraSettings.buttonSize let buttonMargin = self.agoraSettings.buttonMargin + if builtinButtons.isEmpty { + return + } buttons.enumerated().forEach({ (elem) in let button = elem.element #if os(iOS)