-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1008 from haoxiuwen/iosui
Add Updates to iOS UIKit
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+118 KB
.../images/uikit/chatuikit/ios/configurationitem/chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
.../images/uikit/chatuikit/ios/configurationitem/chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+141 KB
...images/uikit/chatuikit/ios/configurationitem/chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+175 KB
...images/uikit/chatuikit/ios/configurationitem/chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,30 @@ | |
|
||
### 设置附件消息 | ||
|
||
#### 设置类似微信样式 | ||
|
||
若实现发送附件消息时弹出类似微信样式的弹窗,可进行如下设置: | ||
|
||
```Swift | ||
Appearance.chat.messageAttachmentMenuStyle = .followInput | ||
``` | ||
|
||
效果图如下所示: | ||
|
||
![img](/images/uikit/chatuikit/ios/configurationitem/chat/[email protected]) | ||
|
||
#### 设置仿系统 UIActionSheet 样式 | ||
|
||
若实现消息长按后弹出仿系统 `UIActionSheet` 样式的弹窗,可进行如下设置: | ||
|
||
```Swift | ||
Appearance.chat.messageAttachmentMenuStyle = .actionSheet | ||
``` | ||
|
||
![img](/images/uikit/chatuikit/ios/configurationitem/chat/[email protected]) | ||
|
||
#### 设置附件消息相关的配置项 | ||
|
||
- 设置语音消息录制的最大时长 | ||
|
||
你可以通过 `Appearance.chat.audioDuration = value` 设置聊天页面语音消息录制的最大时长,默认为 60 秒。 | ||
|
@@ -117,7 +141,7 @@ | |
- `Appearance.chat.imagePlaceHolder = value`:聊天页面图片消息占位图。 | ||
|
||
- `Appearance.chat.videoPlaceHolder = value`:聊天页面视频消息占位图。 | ||
|
||
### 设置消息撤回时间 | ||
|
||
你可以通过 `Appearance.chat.recallExpiredTime = value` 设置聊天页面消息撤回的有效时间,默认为 120 秒。 | ||
|
@@ -161,6 +185,30 @@ override func filterMessageActions(message: MessageEntity) -> [ActionSheetItemPr | |
|
||
![img](/images/uikit/chatuikit/ios/configurationitem/chat/Appearance_chat_messageLongPressedActions.png) | ||
|
||
#### 设置类似微信样式 | ||
|
||
若实现消息长按后弹出类似微信样式的弹窗,可进行如下设置: | ||
|
||
```Swift | ||
Appearance.chat.messageLongPressMenuStyle = .withArrow | ||
``` | ||
|
||
效果图如下所示: | ||
|
||
![img](/images/uikit/chatuikit/ios/configurationitem/chat/[email protected]) | ||
|
||
#### 设置仿系统 UIActionSheet 样式 | ||
|
||
若实现消息长按后弹出仿系统 `UIActionSheet` 样式的弹窗,可进行如下设置: | ||
|
||
```Swift | ||
Appearance.chat.messageLongPressMenuStyle = .actionSheet | ||
``` | ||
|
||
效果图如下所示: | ||
|
||
![img](/images/uikit/chatuikit/ios/configurationitem/chat/[email protected]) | ||
|
||
## 设置聊天页面输入框 | ||
|
||
- `Appearance.chat.maxInputHeight = value`:聊天页面输入框最大输入高度。 | ||
|