Skip to content

Commit aa7771b

Browse files
authored
Merge pull request #4008 from anyproto/ios-5196-update-order-of-actions-in-plus-menu-in-chat
IOS-5196 Chat Input | reorder plus menu
2 parents 39152e2 + 31e92d3 commit aa7771b

File tree

1 file changed

+12
-14
lines changed
  • Anytype/Sources/PresentationLayer/Modules/Chat/Subviews/InputPanel/Input

1 file changed

+12
-14
lines changed

Anytype/Sources/PresentationLayer/Modules/Chat/Subviews/InputPanel/Input/ChatInput.swift

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ struct ChatInput: View {
3939
Label(Loc.photos, systemImage: "photo")
4040
}
4141

42+
Button { onTapCamera() } label: {
43+
Label(Loc.camera, systemImage: "camera")
44+
}
45+
46+
Button { onTapAddFiles() } label: {
47+
Label(Loc.files, systemImage: "doc")
48+
}
49+
50+
Button { onTapAddObject() } label: {
51+
Label(Loc.attachObject, systemImage: "link")
52+
}
53+
4254
if let objectType = mainObjectTypeToCreate() {
4355
Button {
4456
onTapCreateObject(objectType)
@@ -47,23 +59,9 @@ struct ChatInput: View {
4759
}
4860
}
4961

50-
Button { onTapAddObject() } label: {
51-
Label(Loc.attachObject, systemImage: "link")
52-
}
53-
5462
Divider()
5563

5664
Menu {
57-
Button { onTapCamera() } label: {
58-
Label(Loc.camera, systemImage: "camera")
59-
}
60-
61-
Button { onTapAddFiles() } label: {
62-
Label(Loc.files, systemImage: "doc")
63-
}
64-
65-
Divider()
66-
6765
ForEach(moreObjectTypesToCreate()) { type in
6866
Button {
6967
onTapCreateObject(type)

0 commit comments

Comments
 (0)