Skip to content

Commit

Permalink
IOS-3200 Change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mgolovko committed Aug 5, 2024
1 parent 9b203ff commit 378a312
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
1 change: 1 addition & 0 deletions Anytype/Generated/ImageAssets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Send Message.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
}
Expand Down

0 comments on commit 378a312

Please sign in to comment.