Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fddf7b06db | |||
| 553795344f | |||
| 32107e4811 | |||
| c45d1ed621 | |||
| c7218c1bef | |||
| f3c710d779 | |||
| c0dab3ca85 | |||
| ade17943e2 | |||
| 653893188b | |||
| c92c919bdb | |||
| 2b916886f1 | |||
| 9f0f7b618b | |||
| da4b2201c9 | |||
| fd58978949 | |||
| 850feca6ae | |||
| 82854e07f4 | |||
| 1607c81038 | |||
| 56d00e8b48 | |||
| 6c1b15badc | |||
| 4f834e166b | |||
| 5a05a1ca18 | |||
| 3c4f90e656 | |||
| 84f8a31c7f | |||
| 78d39f29d8 | |||
| a26cca9afe | |||
| 7aed670b37 |
@@ -14,4 +14,4 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: xcodebuild
|
||||
run: xcodebuild -project Streamoji.xcodeproj CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
|
||||
|
||||
@@ -2,52 +2,53 @@
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
"scale" : "2x",
|
||||
"size" : "20x20"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "3x"
|
||||
"scale" : "3x",
|
||||
"size" : "20x20"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
"scale" : "2x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "3x"
|
||||
"scale" : "3x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
"scale" : "2x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "3x"
|
||||
"scale" : "3x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "2x"
|
||||
"scale" : "2x",
|
||||
"size" : "60x60"
|
||||
},
|
||||
{
|
||||
"filename" : "Untitled 2.png",
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "3x"
|
||||
"scale" : "3x",
|
||||
"size" : "60x60"
|
||||
},
|
||||
{
|
||||
"idiom" : "ios-marketing",
|
||||
"size" : "1024x1024",
|
||||
"scale" : "1x"
|
||||
"scale" : "1x",
|
||||
"size" : "1024x1024"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "baby-yoda.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -36,7 +36,7 @@ class ViewController: UIViewController {
|
||||
|
||||
textView.isEditable = true
|
||||
textView.textAlignment = .center
|
||||
textView.font = .systemFont(ofSize: 24)
|
||||
textView.font = .systemFont(ofSize: 32)
|
||||
view.addSubview(textView)
|
||||
|
||||
textView.frame = view.frame
|
||||
|
||||
@@ -7,9 +7,16 @@
|
||||
[](https://github.com/GetStream/Streamoji/actions?query=workflow%3ASwift)
|
||||
[](https://cocoapods.org/pods/Streamoji)
|
||||

|
||||

|
||||
[](/LICENSE)
|
||||
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FGetStream%2FStreamoji)
|
||||
[](https://twitter.com/intent/follow?screen_name=getstream_io)
|
||||
|
||||
### :warning: This project has a new home :house: https://github.com/cardoso/Streamoji
|
||||
|
||||
Custom emojis are a fun way to bring more life and customizability to your apps. They're available in some of the most popular apps, such as Slack, Discord, and Twitch. However, iOS SDK doesn't provide straight forward support for custom emojis out of the box. Now, you're a couple code lines away from adding them to your own app with this library.
|
||||
|
||||
Streamoji is a custom emoji rendering library for iOS. It supports GIF <img src="https://github.com/GetStream/Streamoji/blob/main/meta/emojis/carlton.gif?raw=true" width="24" />, images <img src="https://github.com/GetStream/Streamoji/blob/main/meta/emojis/doge.png?raw=true" width="24"/>, and unicode 🦊. It loads from URLs or local assets. Caching is taken care of and performance is ⚡️ fast! Made with 💘 by the folks @ [Stream](https://getstream.io).
|
||||
|
||||
<img align="right" src="https://github.com/GetStream/Streamoji/raw/main/meta/images/demo.gif" width="33%" />
|
||||
|
||||
@@ -58,7 +65,7 @@ textView.attributedText = NSAttributedString(string:
|
||||
textView.configureEmojis(exampleEmojis, rendering: .highestQuality)
|
||||
```
|
||||
|
||||
You can also tweak a couple (for now) rendering options: `quality` and `scale`.
|
||||
You can also tweak a couple (for now) rendering options: quality and scale in relation to the surrounding text.
|
||||
|
||||
## Example
|
||||
|
||||
@@ -75,7 +82,7 @@ pod 'Streamoji'
|
||||
|
||||
## Author
|
||||
|
||||
cardoso, matheus@gestream.io
|
||||
[@cardoso](https://github.com/cardoso), matheus@getstream.io
|
||||
|
||||
## License
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'Streamoji'
|
||||
s.version = '0.1.5'
|
||||
s.version = '0.1.7'
|
||||
s.summary = 'Custom emoji rendering library for iOS apps with support for GIF & images.'
|
||||
|
||||
s.swift_version = '5.2'
|
||||
|
||||
@@ -81,6 +81,8 @@ internal final class EmojiView: UIView {
|
||||
|
||||
private func commonInit() {
|
||||
imageView.contentMode = .scaleAspectFit
|
||||
label.font = .systemFont(ofSize: frame.width/1.1)
|
||||
label.numberOfLines = 0
|
||||
addSubview(imageView)
|
||||
addSubview(label)
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 910 KiB After Width: | Height: | Size: 733 KiB |
Reference in New Issue
Block a user