Skip to content

Commit

Permalink
[1.3.2]
Browse files Browse the repository at this point in the history
  • Loading branch information
EnesKaraosman committed Dec 19, 2020
2 parents 00408ae + 4e3d62d commit 7115b61
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## [1.3.2](https://github.com/EnesKaraosman/SwiftyChat/releases/tag/1.3.2)
Released on 2020-12-19.

#### Fixed
- Performance improvements
- [Issue #4](https://github.com/EnesKaraosman/SwiftyChat/issues/4).
- Some access modifiers changed to internal for optimization.


## [1.3.0](https://github.com/EnesKaraosman/SwiftyChat/releases/tag/1.3.0)
Released on 2020-11-16.

#### Added
- Video ChatMessageKind support added.
- View `ChatMessageKind.video(VideoItem)` for detail.

## [1.2.0](https://github.com/EnesKaraosman/SwiftyChat/releases/tag/1.2.0)
Released on 2020-10-21.

Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/EnesKaraosman/SwiftUIEKtensions.git",
"state": {
"branch": null,
"revision": "5cabe80e7dea78c2123803e9d5e0b31222515235",
"version": "0.1.5"
"revision": "f6b2c34ff920b0c0fd8bb279322f534b98d76049",
"version": "0.1.7"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
dependencies: [
// Image downloading library
.package(url: "https://github.com/onevcat/Kingfisher.git", from: "5.15.8"),
.package(url: "https://github.com/EnesKaraosman/SwiftUIEKtensions.git", from: "0.1.5"),
.package(url: "https://github.com/EnesKaraosman/SwiftUIEKtensions.git", from: "0.1.7"),
.package(url: "https://github.com/wxxsw/VideoPlayer.git", from: "1.1.6")
],
targets: [
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Version](https://img.shields.io/badge/version-1.3.1-blue)
![Version](https://img.shields.io/badge/version-1.3.2-blue)
![Swift 5.3](https://img.shields.io/badge/Swift-5.3-orange.svg)

# SwiftyChat
Expand Down Expand Up @@ -34,7 +34,7 @@ Fully written in pure SwiftUI.
<img src="../master/Sources/SwiftyChat/Demo/Preview/swiftyChatGIF.gif" height="240"/>

<details>
<summary>Basic Example</summary>
<summary>Basic Example Preview</summary>

| Text (Light) | Text (Dark) |
:-------------------------:|:-------------------------:|
Expand All @@ -44,7 +44,7 @@ Fully written in pure SwiftUI.
</details>

<details>
<summary>Advanced Example</summary>
<summary>Advanced Example Preview</summary>

| Contact, QuickReply, Text, Carousel | Map, Image | ContextMenu |
:-------------------------:|:-------------------------:|:-------------------------:
Expand Down
10 changes: 6 additions & 4 deletions Sources/SwiftyChat/MessageCells/TextCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ internal struct TextCell<Message: ChatMessage>: View {
}

@ViewBuilder public var body: some View {
if AttributeDetective(
text: text,
enabledDetectors: enabledDetectors
).doesContain() || text.containsHtml() {
if text.containsHtml() ||
AttributeDetective(
text: text,
enabledDetectors: enabledDetectors
).doesContain()
{
attributedText
} else {
defaultText
Expand Down

0 comments on commit 7115b61

Please sign in to comment.