diff --git a/Anytype/Generated/ImageAssets.swift b/Anytype/Generated/ImageAssets.swift index c9f351d53a..47f20b8655 100644 --- a/Anytype/Generated/ImageAssets.swift +++ b/Anytype/Generated/ImageAssets.swift @@ -262,6 +262,7 @@ internal extension ImageAsset { static let replace = ImageAsset.bundle(name: "x32/Replace") static let restore = ImageAsset.bundle(name: "x32/Restore") static let search = ImageAsset.bundle(name: "x32/Search") + static let sendMessage = ImageAsset.bundle(name: "x32/Send Message") static let slashMenu = ImageAsset.bundle(name: "x32/Slash Menu") static let sort = ImageAsset.bundle(name: "x32/Sort") static let style = ImageAsset.bundle(name: "x32/Style") diff --git a/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json new file mode 100644 index 0000000000..ff442f589b --- /dev/null +++ b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "Send Message.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} diff --git a/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf new file mode 100644 index 0000000000..5369f7a2d4 Binary files /dev/null and b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf differ diff --git a/Anytype/Sources/PresentationLayer/Modules/Discussion/Subviews/Input/DiscusionInput.swift b/Anytype/Sources/PresentationLayer/Modules/Discussion/Subviews/Input/DiscusionInput.swift index d73bb95bf4..775359ba0e 100644 --- a/Anytype/Sources/PresentationLayer/Modules/Discussion/Subviews/Input/DiscusionInput.swift +++ b/Anytype/Sources/PresentationLayer/Modules/Discussion/Subviews/Input/DiscusionInput.swift @@ -9,12 +9,14 @@ struct DiscusionInput: View { let onTapSend: () -> Void var body: some View { - HStack { + HStack(alignment: .bottom, spacing: 8) { Button { onTapAddObject() } label: { Image(asset: .X32.plus) + .foregroundColor(Color.Button.active) } + .frame(height: 56) ZStack(alignment: .topLeading) { DiscussionTextView(text: $text, editing: $editing, minHeight: 56, maxHeight: 212) if text.isEmpty { @@ -27,14 +29,18 @@ struct DiscusionInput: View { .lineLimit(1) } } - Button { - onTapSend() - } label: { - IconView(asset: .X32.moveTo) - } - .disabled(text.isEmpty) + if !text.isEmpty { + Button { + onTapSend() + } label: { + Image(asset: .X32.sendMessage) + .foregroundColor(Color.Button.button) + } + .frame(height: 56) + } } + .padding(.horizontal, 8) .background(Color.Background.primary) } }