@@ -13,6 +13,7 @@ public struct ComposerConfig {
1313 public var inputViewCornerRadius : CGFloat
1414 public var inputFont : UIFont
1515 public var gallerySupportedTypes : GallerySupportedTypes
16+ public var maxGalleryAssetsCount : Int ?
1617 public var inputPaddingsConfig : PaddingsConfig
1718 public var adjustMessageOnSend : ( String ) -> ( String )
1819 public var adjustMessageOnRead : ( String ) -> ( String )
@@ -33,6 +34,7 @@ public struct ComposerConfig {
3334 inputViewCornerRadius: CGFloat = 20 ,
3435 inputFont: UIFont = UIFont . preferredFont ( forTextStyle: . body) ,
3536 gallerySupportedTypes: GallerySupportedTypes = . imagesAndVideo,
37+ maxGalleryAssetsCount: Int ? = nil ,
3638 inputPaddingsConfig: PaddingsConfig = . composerInput,
3739 adjustMessageOnSend: @escaping ( String ) -> ( String ) = { $0 } ,
3840 adjustMessageOnRead: @escaping ( String ) -> ( String ) = { $0 } ,
@@ -47,6 +49,7 @@ public struct ComposerConfig {
4749 self . adjustMessageOnRead = adjustMessageOnRead
4850 self . attachmentPayloadConverter = attachmentPayloadConverter
4951 self . gallerySupportedTypes = gallerySupportedTypes
52+ self . maxGalleryAssetsCount = maxGalleryAssetsCount
5053 self . inputPaddingsConfig = inputPaddingsConfig
5154 self . isVoiceRecordingEnabled = isVoiceRecordingEnabled
5255 }
0 commit comments