26 Commits

Author SHA1 Message Date
Nuno Vieira fddf7b06db Update README.md 2022-10-07 11:50:58 +01:00
cardoso 553795344f new images 2020-08-06 15:15:54 -03:00
Matheus Cardoso 32107e4811 Update README.md 2020-07-22 19:04:08 -03:00
Matheus Cardoso c45d1ed621 Update README.md 2020-07-20 11:42:32 -03:00
Matheus Cardoso c7218c1bef Update README.md 2020-07-17 23:10:18 -03:00
Matheus Cardoso f3c710d779 Update README.md 2020-07-17 16:21:46 -03:00
Matheus Cardoso c0dab3ca85 Update README.md 2020-07-17 16:19:46 -03:00
Matheus Cardoso ade17943e2 Update README.md 2020-07-17 15:15:09 -03:00
Matheus Cardoso 653893188b Update README.md 2020-07-17 15:14:35 -03:00
cardoso c92c919bdb Bump version 2020-07-17 12:03:47 -03:00
Matheus Cardoso 2b916886f1 Update README.md 2020-07-17 00:15:55 -03:00
Matheus Cardoso 9f0f7b618b Update README.md 2020-07-17 00:15:26 -03:00
Matheus Cardoso da4b2201c9 Update README.md 2020-07-17 00:14:30 -03:00
Matheus Cardoso fd58978949 Update README.md 2020-07-17 00:12:48 -03:00
Matheus Cardoso 850feca6ae Update README.md 2020-07-17 00:11:51 -03:00
Matheus Cardoso 82854e07f4 Update README.md 2020-07-17 00:11:21 -03:00
Matheus Cardoso 1607c81038 Add files via upload 2020-07-17 00:03:01 -03:00
cardoso 56d00e8b48 Bump v0.1.6 2020-07-16 23:52:28 -03:00
cardoso 6c1b15badc Update demo gif 2020-07-16 23:51:34 -03:00
cardoso 4f834e166b Merge branch 'main' of github.com:GetStream/Streamoji into main 2020-07-16 23:51:24 -03:00
cardoso 5a05a1ca18 Adjust unicode emoji size 2020-07-16 23:51:13 -03:00
cardoso 3c4f90e656 Increase demo font size 2020-07-16 23:50:16 -03:00
Matheus Cardoso 84f8a31c7f Update README.md 2020-07-16 22:30:39 -03:00
Matheus Cardoso 78d39f29d8 Update README.md 2020-07-16 22:20:16 -03:00
Matheus Cardoso a26cca9afe Update swift.yml 2020-07-16 22:14:46 -03:00
Matheus Cardoso 7aed670b37 Update swift.yml 2020-07-16 22:10:12 -03:00
12 changed files with 56 additions and 25 deletions
+1 -1
View File
@@ -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

+1 -1
View File
@@ -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
+9 -2
View File
@@ -7,9 +7,16 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/getstream/streamoji/Swift)](https://github.com/GetStream/Streamoji/actions?query=workflow%3ASwift)
[![Cocoapods](https://img.shields.io/cocoapods/v/Streamoji)](https://cocoapods.org/pods/Streamoji)
![Cocoapods platforms](https://img.shields.io/cocoapods/p/Streamoji)
![SPM & Carthage compatible](https://img.shields.io/badge/SPM%20%26%20Carthage-compatible-green)
[![License](https://img.shields.io/github/license/getstream/streamoji)](/LICENSE)
[![Twitter](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2FGetStream%2FStreamoji)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FGetStream%2FStreamoji)
[![Twitter Follow](https://img.shields.io/twitter/follow/getstream_io?style=social)](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
View File
@@ -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'
+2
View File
@@ -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