https://github.com/zunda-pixel/chatbubble
ChatBubble SwiftUI
https://github.com/zunda-pixel/chatbubble
swift swift-package-manager swiftui
Last synced: 7 months ago
JSON representation
ChatBubble SwiftUI
- Host: GitHub
- URL: https://github.com/zunda-pixel/chatbubble
- Owner: zunda-pixel
- License: apache-2.0
- Created: 2022-11-14T15:19:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T16:09:09.000Z (over 1 year ago)
- Last Synced: 2025-05-11T16:17:56.960Z (about 1 year ago)
- Topics: swift, swift-package-manager, swiftui
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChatBubble
[](https://swiftpackageindex.com/zunda-pixel/ChatBubble)
[](https://swiftpackageindex.com/zunda-pixel/ChatBubble)


```swift
Text("Stanford Video Steve Jobs’ 2005 Stanford Commencement Address I am honored to be with you today at your commencement from one of the finest universities in the world.")
.fixedSize(horizontal: false, vertical: true)
.chatBubble(
direction: .leadingTop,
cornerRadius: 18,
color: .blue.opacity(0.5)
)
```
```swift
ChatBubble(cornerRadius: 18)
.frame(width: 300, height: 100)
.foregroundColor(.cyan)
```
```swift
Text("Sample Text.")
.fixedSize(horizontal: false, vertical: true)
.padding(9)
.background {
ChatBubble(cornerRadius: 18)
.rotateChatBubble(position: .trailingBottom)
.foregroundColor(.red.opacity(0.5))
}
```