Skip to content

Commit

Permalink
Merge pull request #44 from AgoraIO-Community/no-buttons
Browse files Browse the repository at this point in the history
Hide button bar if no buttons to show (bugfix)
  • Loading branch information
maxxfrazer authored Oct 5, 2021
2 parents 14a05d7 + a41ad95 commit e763cad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AgoraUIKit_iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AgoraUIKit_macOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/Agora-UIKit/AgoraUIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions Sources/Agora-UIKit/AgoraVideoViewer+Buttons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e763cad

Please sign in to comment.