Compare commits

...
58 Commits
Author SHA1 Message Date
neon443 4f7898cf47 no i acc want to die now 2026-04-08 15:30:16 +01:00
neon443 8b0e2a73d8 swift 6 makes me wanna kms 2026-04-08 15:19:10 +01:00
neon443 b7f357fd2e added loading and error state for gifview (stickerpreview) with animations
redid stickerpreview logic cos it was messy
made gifFrom throwing
faster sticker.image when it doesnt exist
fix swift6 warning in hoarder downloaded stickers
added better padding to welcome view and disabled interactive dismiss
2026-04-08 14:27:22 +01:00
neon443 e5850d9ea4 fix closure compilation error 2026-04-08 13:20:09 +01:00
neon443 bb32c9e5bf adding emojis to emojipacks works
proper emojipack manager view with an add button
new emojipack function
fixed scrolling on emojipack editor add sticker
2026-04-08 13:18:37 +01:00
neon443 1c86d89a6b more stuff for emoji pack editor:
edit mode has red - buttons to remove it
also has a plus button to add more but it currently doesnt add
modified searchview to add a variant for the pack editor
2026-04-07 18:43:33 +01:00
neon443 ec6893b945 working on emoji pack stuff
making emojipackview actually look good and setting up edit functionality
2026-04-07 16:52:31 +01:00
neon443 359dc378cf build downloaded gifs on launch 2026-04-06 13:24:27 +01:00
neon443 18ee2267c9 implemented buildDownloadedStickers into basehoarder
and download/delete stickers
2026-04-06 13:22:26 +01:00
neon443 1575eae8ce blah 2026-04-05 22:56:50 +01:00
neon443 312f8b7468 added a base hoarder thingy so that its easier to share logic lol 2026-04-05 22:52:50 +01:00
neon443 a3629fe642 masssive changes sob
MUCH faster emojihoarder init, async stuff yaya
faster trie building
and downloaded sticker building
loading spinners if trie.dict is empty
put slack emojis in library/slack and giphy in /giphy
added a lil info thingy to stickerpicker and  a button to open stickerslack if no stickers downloaded
update file.contains to have a . when searching for fule name extensions
more logging for nil stuff in sticker data source
moved picker on browseview out of the overlay
fixed the contentinsets for uikit emoji list
haptic when u click the confetti thingy for having all the emojis lol
consolidated the continue button, added stickerslack icon to welcome view
2026-04-05 22:15:13 +01:00
neon443 18e7956037 fix search
nice overlayed picker gotta clean up tho
and gotta fix slow dl view
2026-04-05 02:05:19 +01:00
neon443 5e605fe1b8 okay cleanup:
a lot faster app loading
other stuff i forgor
2026-04-05 01:45:33 +01:00
neon443 1221724383 fix all warnings yay 2026-04-05 00:54:55 +01:00
neon443 5257c03f49 migrated datasource to tableviewcontroller, disabled selecting cells, set insetgrouped stype
ts lowk mostly works yay
2026-04-05 00:38:45 +01:00
neon443 1f937db771 use uikit in browseview
fix downloading gifs
remove some random test
2026-04-04 00:53:23 +01:00
neon443 cff99ac34c fix search not working after backspacing it all
put downloaded glyph below sticker type icon
2026-04-03 23:05:40 +01:00
neon443 d0d8b05035 YESSSSSSSSSSSSS
stickerpicker is optimised as FUCK
    calculations of how many stickers should be displayed occurs once, and is much faster as it just reads the files on disk to determine downloaded emojis instead of calling isLocal on each emoji
2026-04-03 22:19:26 +01:00
neon443 91edcb6441 redid how downloaded emojis are made, abolished isLocal cos its too slow lmao
adding name to each filename so its easier to make a list of downloaded thingeis
fix using absolutestring instead of path
ts lowk fried im optimising th out of ts
2026-04-03 21:36:04 +01:00
neon443 208f97b102 added clear logos for giphy stickers 2026-04-03 12:58:18 +01:00
neon443 7b91de576a upped the limit 2026-04-03 02:02:08 +01:00
neon443 077f6cd4c3 giphyImages in Gif
stickerrow use giphy preview instead of original sob
stickerRow argument is now sticker instead of emoji
2026-04-03 01:32:34 +01:00
Nihaal Sharma d49c5c1398 extract test structures to their own file 2026-03-22 19:12:03 +00:00
neon443 5f091b2b2e Merge remote-tracking branch 'refs/remotes/origin/main' 2026-03-21 11:07:14 +00:00
neon443 78477eec6a update tests 2026-03-21 11:07:06 +00:00
Nihaal Sharma 668382cbfd Merge remote-tracking branch 'refs/remotes/origin/main' 2026-03-21 11:06:03 +00:00
Nihaal Sharma 6e5cc2d845 fix searching again 2026-03-21 11:05:45 +00:00
Nihaal Sharma 0c216bb800 updated search algorithm to use previous search result to speed up when typing things out, eg
before
        "a": 47k -> 25k emojis
        "ab": 47k -> ~850
    after
        "a": 47k -> 25k
        "ab" 25k -> ~850
also sort search results
using a Task again
added a ui thingy for no downloaded emojis
2026-03-20 18:08:26 +00:00
neon443 046ede9475 m,lkk 2026-03-19 22:32:25 +00:00
neon443 a79bdd3e40 new test gif
made some things optional in gifobject
2026-03-19 20:11:35 +00:00
Nihaal Sharma d64ca5cd42 about 15% faster trie building not much but eh
also stopped using a Task for searching
2026-03-19 10:18:13 +00:00
Nihaal Sharma 4bd3442cf4 fix 2026-03-19 10:03:35 +00:00
neon443 1e72658f38 fix downloading gifs and improved search by making it interactive and fix the mamory leak hopefully 2026-03-19 09:26:21 +00:00
Nihaal Sharma ca30343e79 improve search 2026-03-18 09:13:17 +00:00
Nihaal Sharma 2cac7933b2 sadkjf 2026-03-18 08:50:36 +00:00
Nihaal Sharma 0588fcd677 add api key cos fuck ts 2026-03-18 08:49:32 +00:00
Nihaal Sharma 04f676f0b3 add api key cos fuck ts 2026-03-18 08:48:37 +00:00
neon443 9ac29b16f0 Merge remote-tracking branch 'refs/remotes/origin/main' 2026-03-18 08:47:07 +00:00
neon443 3b5ef084ce fix stuff update things to use hoarder and gifhoarder properly 2026-03-18 08:46:14 +00:00
Nihaal Sharma e22bba74c8 Update README.md 2026-03-18 08:44:43 +00:00
Nihaal Sharma d99b5ac145 Update README.md 2026-03-18 08:44:10 +00:00
Nihaal Sharma 1dcec2e329 starting to fix memory leak when searching
rename emojirow to stickerrow
2026-03-17 17:43:36 +00:00
Nihaal Sharma 8dd8169aae major refactor, now im going to use generics and "any StickerProtocol" to have more shared logic
changed id on stickerprotocol to string cos of giphy
downloadedemojis > downloadedStickers
removed hoarder from emojipreview cos its not used
added toGif in GifObject
2026-03-17 10:09:24 +00:00
neon443 e88ab60e2a secrets 2026-03-17 00:52:07 +00:00
neon443 21a67416a1 fix emojirow 2026-03-16 21:13:26 +00:00
neon443 d3a134575c messed up the emojirow thing again :br: 2026-03-16 19:17:06 +00:00
Nihaal Sharma 204bc10a07 fix api data decoding 2026-03-16 17:44:14 +00:00
Nihaal Sharma 1feb27c721 updated gifhoarder
added giphy api models
2026-03-16 14:21:19 +00:00
neon443 224269a849 fixed giphy api call 2026-03-15 21:35:44 +00:00
neon443 dfb21ddc3a minor changes; working on gphy 2026-03-15 03:32:18 +00:00
neon443 983fe9caba minor changes 2026-03-15 03:21:06 +00:00
neon443 c02462ad42 add one search only to search testing view 2026-03-15 03:18:55 +00:00
neon443 6f33783009 fix wordlist duplicating every reindex
fix long name emojirow
made only one search allowed at one time
2026-03-15 03:16:26 +00:00
neon443 06e15db8db new seach algorithm in search, might remove trie :br:
remove searcterm from hoarder
move emojipackmanager
2026-03-15 02:24:04 +00:00
neon443 9e2bb928ee faster new contains search
added a wordlist to the trie, containing an array of all the words
2026-03-15 01:28:02 +00:00
neon443 9dac5f6939 minor ui updates 2026-03-14 23:13:10 +00:00
neon443 02fe170563 new contains searching algo
also fix animations on list
2026-03-14 23:11:38 +00:00
58 changed files with 2148 additions and 703 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
Resources/giphy_api_key.txt
+1 -1
View File
@@ -5,7 +5,7 @@
// Created by neon443 on 02/11/2025.
//
VERSION = 1.0
VERSION = 2.0
BUILD = 1
// Configuration settings file format documentation can be found at:
-24
View File
@@ -1,24 +0,0 @@
//
// EmojiPackManager.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
struct EmojiPackManager: View {
@ObservedObject var hoarder: EmojiHoarder
var body: some View {
ForEach(hoarder.emojiPacks) { pack in
EmojiPackView(hoarder: hoarder, pack: pack)
}
}
}
#Preview {
EmojiPackManager(
hoarder: EmojiHoarder(localOnly: true, skipIndex: true)
)
}
+3 -3
View File
@@ -3,7 +3,7 @@
<div align="center">
<br/>
<p>
<img src="https://files.catbox.moe/d8go4n.png" title="icon" alt="icon" width="100" />
<img src="https://github.com/neon443/StickerSlack/blob/main/Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png?raw=true" title="icon" alt="icon" width="100" />
</p>
<p>
every slack emoji as an iMessage sticker
@@ -13,8 +13,8 @@
</a>
</p>
<p>
<a href="https://testflight.apple.com/join/JWTN897S">
testflight
<a href="https://apps.apple.com/us/app/stickerslack/id6754695612">
appstore
</a>
</p>
<br/>
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "giphy black.png",
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "giphy.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -0,0 +1,12 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"symbols" : [
{
"filename" : "square.and.arrow.up.svg",
"idiom" : "universal"
}
]
}
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Pixelmator Pro 3.7.1 -->
<svg width="3300" height="2200" viewBox="0 0 3300 2200" xmlns="http://www.w3.org/2000/svg">
<g id="Notes">
<path id="artboard" fill="#ffffff" stroke="none" d="M 0 0 L 3300 0 L 3300 2200 L 0 2200 Z"/>
<path id="Path" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 292 L 3036 292"/>
<text id="WeightScale-Variations" xml:space="preserve" x="262" y="324" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Weight/Scale Variations</text>
<text id="Ultralight" xml:space="preserve" x="532.352295" y="324" font-family="Helvetica" font-size="13" fill="#000000">Ultralight</text>
<text id="Thin" xml:space="preserve" x="841.355469" y="324" font-family="Helvetica" font-size="13" fill="#000000">Thin</text>
<text id="Light" xml:space="preserve" x="1137.405029" y="324" font-family="Helvetica" font-size="13" fill="#000000">Light</text>
<text id="Regular" xml:space="preserve" x="1425.237305" y="324" font-family="Helvetica" font-size="13" fill="#000000">Regular</text>
<text id="Medium" xml:space="preserve" x="1721.381836" y="324" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Semibold" xml:space="preserve" x="2014.401855" y="324" font-family="Helvetica" font-size="13" fill="#000000">Semibold</text>
<text id="Bold" xml:space="preserve" x="2324.490479" y="324" font-family="Helvetica" font-size="13" fill="#000000">Bold</text>
<text id="Heavy" xml:space="preserve" x="2616.075928" y="324" font-family="Helvetica" font-size="13" fill="#000000">Heavy</text>
<text id="Black" xml:space="preserve" x="2915.105469" y="324" font-family="Helvetica" font-size="13" fill="#000000">Black</text>
<path id="path1" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 1903 L 3036 1903"/>
<g id="Group">
<path id="path2" fill="#000000" stroke="none" d="M 272.248047 1933.830078 C 276.603516 1933.830078 280.138672 1930.304688 280.138672 1925.949219 C 280.138672 1921.59375 276.603516 1918.068359 272.248047 1918.068359 C 267.902344 1918.068359 264.367188 1921.59375 264.367188 1925.949219 C 264.367188 1930.304688 267.902344 1933.830078 272.248047 1933.830078 Z M 272.248047 1932.345703 C 268.712891 1932.345703 265.861328 1929.484375 265.861328 1925.949219 C 265.861328 1922.414063 268.712891 1919.552734 272.248047 1919.552734 C 275.783203 1919.552734 278.644531 1922.414063 278.644531 1925.949219 C 278.644531 1929.484375 275.783203 1932.345703 272.248047 1932.345703 Z M 272.970703 1928.791016 L 272.970703 1923.097656 C 272.970703 1922.648438 272.677734 1922.345703 272.228516 1922.345703 C 271.798828 1922.345703 271.505859 1922.648438 271.505859 1923.097656 L 271.505859 1928.791016 C 271.505859 1929.230469 271.798828 1929.533203 272.228516 1929.533203 C 272.677734 1929.533203 272.970703 1929.230469 272.970703 1928.791016 Z M 269.40625 1926.671875 L 275.089844 1926.671875 C 275.529297 1926.671875 275.832031 1926.378906 275.832031 1925.949219 C 275.832031 1925.509766 275.529297 1925.207031 275.089844 1925.207031 L 269.40625 1925.207031 C 268.957031 1925.207031 268.654297 1925.509766 268.654297 1925.949219 C 268.654297 1926.378906 268.957031 1926.671875 269.40625 1926.671875 Z"/>
</g>
<g id="g1">
<path id="path3" fill="#000000" stroke="none" d="M 293.214966 1935.910156 C 298.713013 1935.910156 303.175934 1931.447266 303.175934 1925.949219 C 303.175934 1920.451172 298.713013 1915.988281 293.214966 1915.988281 C 287.716949 1915.988281 283.254028 1920.451172 283.254028 1925.949219 C 283.254028 1931.447266 287.716949 1935.910156 293.214966 1935.910156 Z M 293.214966 1934.25 C 288.625153 1934.25 284.914215 1930.539063 284.914215 1925.949219 C 284.914215 1921.359375 288.625153 1917.648438 293.214966 1917.648438 C 297.80481 1917.648438 301.515747 1921.359375 301.515747 1925.949219 C 301.515747 1930.539063 297.80481 1934.25 293.214966 1934.25 Z M 294.025513 1929.630859 L 294.025513 1922.248047 C 294.025513 1921.75 293.683716 1921.408203 293.195435 1921.408203 C 292.716919 1921.408203 292.384888 1921.75 292.384888 1922.248047 L 292.384888 1929.630859 C 292.384888 1930.119141 292.716919 1930.460938 293.195435 1930.460938 C 293.683716 1930.460938 294.025513 1930.128906 294.025513 1929.630859 Z M 289.513794 1926.75 L 296.906372 1926.75 C 297.394653 1926.75 297.73645 1926.427734 297.73645 1925.949219 C 297.73645 1925.460938 297.394653 1925.119141 296.906372 1925.119141 L 289.513794 1925.119141 C 289.015747 1925.119141 288.683716 1925.460938 288.683716 1925.949219 C 288.683716 1926.427734 289.015747 1926.75 289.513794 1926.75 Z"/>
</g>
<g id="g2">
<path id="path4" fill="#000000" stroke="none" d="M 319.894714 1938.664063 C 326.916168 1938.664063 332.619293 1932.970703 332.619293 1925.949219 C 332.619293 1918.927734 326.916168 1913.224609 319.894714 1913.224609 C 312.87323 1913.224609 307.179871 1918.927734 307.179871 1925.949219 C 307.179871 1932.970703 312.87323 1938.664063 319.894714 1938.664063 Z M 319.894714 1936.847656 C 313.869293 1936.847656 308.996246 1931.974609 308.996246 1925.949219 C 308.996246 1919.923828 313.869293 1915.050781 319.894714 1915.050781 C 325.920105 1915.050781 330.793152 1919.923828 330.793152 1925.949219 C 330.793152 1931.974609 325.920105 1936.847656 319.894714 1936.847656 Z M 320.783386 1930.783203 L 320.783386 1921.085938 C 320.783386 1920.539063 320.412292 1920.158203 319.875153 1920.158203 C 319.357605 1920.158203 318.986481 1920.539063 318.986481 1921.085938 L 318.986481 1930.783203 C 318.986481 1931.320313 319.357605 1931.701172 319.875153 1931.701172 C 320.412292 1931.701172 320.783386 1931.330078 320.783386 1930.783203 Z M 315.041199 1926.828125 L 324.738464 1926.828125 C 325.275574 1926.828125 325.656433 1926.466797 325.656433 1925.949219 C 325.656433 1925.402344 325.285339 1925.03125 324.738464 1925.03125 L 315.041199 1925.03125 C 314.494324 1925.03125 314.12323 1925.402344 314.12323 1925.949219 C 314.12323 1926.466797 314.494324 1926.828125 315.041199 1926.828125 Z"/>
</g>
<text id="Design-Variations" xml:space="preserve" x="262" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Design Variations</text>
<text id="Symbols-are-supported-in" xml:space="preserve" x="262" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Symbols are supported in up to nine weights and three scales.</text>
<text id="For-optimal-layout-with" xml:space="preserve" x="262" y="1991" font-family="Helvetica" font-size="13" fill="#000000">For optimal layout with text and other symbols, vertically align</text>
<text id="symbols-with-the-adjacent" xml:space="preserve" x="262" y="2009" font-family="Helvetica" font-size="13" fill="#000000">symbols with the adjacent text.</text>
<path id="path5" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 776 1919 L 776 1933"/>
<g id="g3">
<path id="path6" fill="#000000" stroke="none" d="M 779.310547 1933.15625 C 779.828125 1933.15625 780.082031 1932.960938 780.267578 1932.414063 L 784.378906 1920.910156 L 784.427734 1920.910156 L 788.548828 1932.414063 C 788.734375 1932.960938 788.988281 1933.15625 789.496094 1933.15625 C 790.013672 1933.15625 790.345703 1932.84375 790.345703 1932.355469 C 790.345703 1932.189453 790.316406 1932.033203 790.238281 1931.828125 L 785.658203 1919.630859 C 785.433594 1919.035156 785.033203 1918.732422 784.408203 1918.732422 C 783.802734 1918.732422 783.392578 1919.025391 783.177734 1919.621094 L 778.597656 1931.837891 C 778.519531 1932.042969 778.490234 1932.199219 778.490234 1932.365234 C 778.490234 1932.853516 778.802734 1933.15625 779.310547 1933.15625 Z M 781.351563 1928.966797 L 787.484375 1928.966797 C 787.884766 1928.966797 788.216797 1928.634766 788.216797 1928.234375 C 788.216797 1927.824219 787.884766 1927.501953 787.484375 1927.501953 L 781.351563 1927.501953 C 780.951172 1927.501953 780.619141 1927.824219 780.619141 1928.234375 C 780.619141 1928.634766 780.951172 1928.966797 781.351563 1928.966797 Z"/>
</g>
<path id="path7" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 792.835999 1919 L 792.835999 1933"/>
<text id="Margins" xml:space="preserve" x="775" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Margins</text>
<text id="Leading-and-trailing-margins" xml:space="preserve" x="775" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Leading and trailing margins on the left and right side of each symbol</text>
<text id="can-be-adjusted-by" xml:space="preserve" x="775" y="1991" font-family="Helvetica" font-size="13" fill="#000000">can be adjusted by modifying the x-location of the margin guidelines.</text>
<text id="Modifications-are-automatically-applied" xml:space="preserve" x="775" y="2009" font-family="Helvetica" font-size="13" fill="#000000">Modifications are automatically applied proportionally to all</text>
<text id="scales-and-weights" xml:space="preserve" x="775" y="2027" font-family="Helvetica" font-size="13" fill="#000000">scales and weights.</text>
<g id="g4">
<path id="path8" fill="#000000" stroke="none" d="M 1291.841797 1935.626953 L 1293.414063 1937.199219 C 1294.273438 1938.078125 1295.279297 1938.019531 1296.1875 1936.994141 L 1308.326172 1923.351563 L 1307.349609 1922.375 L 1295.298828 1935.910156 C 1294.9375 1936.300781 1294.605469 1936.398438 1294.136719 1935.929688 L 1293.101563 1934.904297 C 1292.642578 1934.445313 1292.740234 1934.113281 1293.140625 1933.742188 L 1306.636719 1921.310547 L 1305.660156 1920.34375 L 1292.046875 1932.863281 C 1291.050781 1933.78125 1290.982422 1934.757813 1291.841797 1935.626953 Z M 1300.816406 1916.134766 C 1300.40625 1916.535156 1300.367188 1917.111328 1300.601563 1917.492188 C 1300.826172 1917.853516 1301.294922 1918.097656 1301.919922 1917.941406 C 1303.091797 1917.609375 1304.439453 1917.462891 1305.699219 1918.126953 L 1305.162109 1919.552734 C 1304.839844 1920.353516 1305.015625 1920.929688 1305.503906 1921.4375 L 1307.554688 1923.498047 C 1308.023438 1923.976563 1308.462891 1923.986328 1308.970703 1923.888672 L 1309.859375 1923.742188 L 1310.376953 1924.25 L 1310.337891 1924.699219 C 1310.318359 1925.158203 1310.445313 1925.558594 1310.894531 1925.998047 L 1311.568359 1926.662109 C 1312.027344 1927.121094 1312.671875 1927.160156 1313.130859 1926.701172 L 1315.728516 1924.09375 C 1316.1875 1923.625 1316.158203 1923.019531 1315.689453 1922.560547 L 1315.005859 1921.876953 C 1314.566406 1921.4375 1314.195313 1921.271484 1313.736328 1921.300781 L 1313.267578 1921.349609 L 1312.779297 1920.861328 L 1312.984375 1919.923828 C 1313.111328 1919.376953 1312.935547 1918.927734 1312.408203 1918.400391 L 1310.152344 1916.164063 C 1307.564453 1913.595703 1303.033203 1913.957031 1300.816406 1916.134766 Z M 1302.232422 1916.544922 C 1303.990234 1915.265625 1307.427734 1915.412109 1308.970703 1916.935547 L 1311.431641 1919.376953 C 1311.636719 1919.582031 1311.675781 1919.738281 1311.617188 1920.041016 L 1311.324219 1921.369141 L 1312.671875 1922.707031 L 1313.550781 1922.658203 C 1313.775391 1922.648438 1313.853516 1922.667969 1314.019531 1922.833984 L 1314.527344 1923.332031 L 1312.359375 1925.5 L 1311.861328 1925.001953 C 1311.695313 1924.826172 1311.666016 1924.757813 1311.675781 1924.523438 L 1311.734375 1923.654297 L 1310.396484 1922.306641 L 1309.029297 1922.541016 C 1308.746094 1922.599609 1308.619141 1922.580078 1308.394531 1922.365234 L 1306.607422 1920.587891 C 1306.392578 1920.382813 1306.373047 1920.246094 1306.509766 1919.914063 L 1307.427734 1917.619141 C 1306.207031 1916.349609 1304.019531 1916.115234 1302.310547 1916.701172 C 1302.173828 1916.75 1302.125 1916.623047 1302.232422 1916.544922 Z"/>
</g>
<text id="Exporting" xml:space="preserve" x="1288" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Exporting</text>
<text id="Symbols-should-be-outlined" xml:space="preserve" x="1288" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Symbols should be outlined when exporting to ensure the</text>
<text id="design-is-preserved-when" xml:space="preserve" x="1288" y="1991" font-family="Helvetica" font-size="13" fill="#000000">design is preserved when submitting to Xcode.</text>
<text id="template-version" xml:space="preserve" x="2949.414063" y="1935" font-family="Helvetica" font-size="13" fill="#000000">Template v.7.0</text>
<text id="Requires-Xcode-26-or" xml:space="preserve" x="2862.45752" y="1953" font-family="Helvetica" font-size="13" fill="#000000">Requires Xcode 26 or greater</text>
<text id="Generated-from-squareandarrowup" xml:space="preserve" x="2819.813965" y="1971" font-family="Helvetica" font-size="13" fill="#000000">Generated from square.and.arrow.up</text>
<text id="Typeset-at-1000-points" xml:space="preserve" x="2898.569336" y="1989" font-family="Helvetica" font-size="13" fill="#000000">Typeset at 100.0 points</text>
<text id="Small" xml:space="preserve" x="262" y="728" font-family="Helvetica" font-size="13" fill="#000000">Small</text>
<text id="text1" xml:space="preserve" x="262" y="1158" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Large" xml:space="preserve" x="262" y="1588" font-family="Helvetica" font-size="13" fill="#000000">Large</text>
</g>
<g id="Guides">
<g id="H-reference">
<path id="path9" fill="#27aae1" stroke="none" d="M 341.993652 696 L 344.637756 696 L 370.328094 628.867676 L 371.030304 628.867676 L 371.030304 625.541016 L 369.122589 625.541016 Z M 352.688507 671.520142 L 387.981506 671.520142 L 387.231506 669.271484 L 353.438507 669.271484 Z M 396.119598 696 L 398.763702 696 L 371.638214 625.541016 L 370.432587 625.541016 L 370.432587 628.867676 Z"/>
</g>
<path id="Baseline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 696 L 3038 696"/>
<path id="Capline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 625.541016 L 3038 625.541016"/>
<g id="g5">
<path id="path10" fill="#27aae1" stroke="none" d="M 341.993652 1126 L 344.637756 1126 L 370.328094 1058.867676 L 371.030304 1058.867676 L 371.030304 1055.541016 L 369.122589 1055.541016 Z M 352.688507 1101.520142 L 387.981506 1101.520142 L 387.231506 1099.271484 L 353.438507 1099.271484 Z M 396.119598 1126 L 398.763702 1126 L 371.638214 1055.541016 L 370.432587 1055.541016 L 370.432587 1058.867676 Z"/>
</g>
<path id="Baseline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1126 L 3038 1126"/>
<path id="Capline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1055.540039 L 3038 1055.540039"/>
<g id="g6">
<path id="path11" fill="#27aae1" stroke="none" d="M 341.993652 1556 L 344.637756 1556 L 370.328094 1488.867676 L 371.030304 1488.867676 L 371.030304 1485.541016 L 369.122589 1485.541016 Z M 352.688507 1531.52002 L 387.981506 1531.52002 L 387.231506 1529.271484 L 353.438507 1529.271484 Z M 396.119598 1556 L 398.763702 1556 L 371.638214 1485.541016 L 370.432587 1485.541016 L 370.432587 1488.867676 Z"/>
</g>
<path id="Baseline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1556 L 3038 1556"/>
<path id="Capline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1485.540039 L 3038 1485.540039"/>
<path id="right-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2982.810059 600.784912 L 2982.810059 720.120972"/>
<path id="left-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2887.98999 600.784912 L 2887.98999 720.120972"/>
<path id="right-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1495.959961 600.784912 L 1495.959961 720.120972"/>
<path id="left-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1407.72998 600.784912 L 1407.72998 720.120972"/>
<path id="right-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 603.625 600.784912 L 603.625 720.120972"/>
<path id="left-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 519.796997 600.784912 L 519.796997 720.120972"/>
</g>
<g id="Symbols">
<g id="Black-S">
<g id="Ultralight-S">
<g id="g7">
<path id="path12" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 2893.119385 679.30481 C 2899.030518 679.288818 2903.817383 674.498779 2903.829346 668.587524 L 2903.829346 657.877563 L 2893.119385 657.877563 C 2887.210938 657.889526 2882.422119 662.671997 2882.4021 668.580322 C 2882.409424 674.489014 2887.203369 679.282959 2893.112061 679.290283 Z M 2919.945313 657.870239 C 2914.03418 657.886353 2909.247314 662.676392 2909.235352 668.587524 L 2909.235352 695.420898 C 2909.25 701.32959 2914.043945 706.116333 2919.945313 706.130859 C 2925.85376 706.114868 2930.639404 701.329224 2930.655273 695.420898 L 2930.655273 668.580322 C 2930.639404 662.671997 2925.85376 657.886353 2919.945313 657.870239 Z"/>
<path id="path13" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 2909.235352 614.848145 C 2909.242676 620.756836 2914.036621 625.550903 2919.945313 625.558105 L 2930.655273 625.558105 L 2930.655273 614.848145 C 2930.643311 608.939819 2925.861084 604.150879 2919.952637 604.130859 C 2914.044434 604.146851 2909.258789 608.932495 2909.242676 614.84082 Z M 2930.655273 641.674194 C 2930.639404 635.765869 2925.85376 630.980103 2919.945313 630.964111 L 2893.112061 630.964111 C 2887.203857 630.980103 2882.418213 635.765869 2882.4021 641.674194 C 2882.416748 647.590088 2887.210693 652.376831 2893.112061 652.384155 L 2919.952637 652.384155 C 2925.861084 652.368164 2930.646729 647.58252 2930.662598 641.674194 Z"/>
<path id="path14" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 2946.858887 652.391479 C 2952.76709 652.375366 2957.552734 647.589722 2957.568848 641.681396 L 2957.568848 614.84082 C 2957.552734 608.935425 2952.771484 604.150879 2946.866211 604.130859 C 2940.957764 604.146851 2936.172119 608.932495 2936.156006 614.84082 L 2936.156006 641.681396 C 2936.170654 647.582886 2940.957275 652.376831 2946.866211 652.391479 Z M 2973.684814 630.964111 C 2967.776611 630.980103 2962.990723 635.765869 2962.974854 641.674194 L 2962.974854 652.384155 L 2973.684814 652.384155 C 2979.593262 652.372192 2984.38208 647.589722 2984.4021 641.681396 C 2984.385986 635.773071 2979.600342 630.987427 2973.692139 630.971436 Z"/>
<path id="path15" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 2936.148926 668.587524 C 2936.16333 674.496338 2940.950195 679.290283 2946.858887 679.297607 L 2973.692139 679.297607 C 2979.597656 679.281616 2984.38208 674.500366 2984.4021 668.594849 C 2984.385986 662.686523 2979.600342 657.900879 2973.692139 657.884888 L 2946.858887 657.884888 C 2940.950439 657.900879 2936.164795 662.686523 2936.148926 668.594849 Z M 2957.568848 695.413574 C 2957.552734 689.505249 2952.76709 684.719604 2946.858887 684.703613 L 2936.148926 684.703613 L 2936.148926 695.413574 C 2936.16333 701.32959 2940.950195 706.116333 2946.858887 706.123535 C 2952.76709 706.107544 2957.552734 701.321899 2957.568848 695.413574 Z"/>
</g>
</g>
</g>
<g id="Regular-S">
<g id="g8">
<g id="g9">
<path id="path16" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 1413.117798 676.024414 C 1418.507446 676.009766 1422.871826 671.642334 1422.882813 666.252808 L 1422.882813 656.487793 L 1413.117798 656.487793 C 1407.730835 656.498657 1403.364502 660.859131 1403.346191 666.246094 C 1403.352783 671.633423 1407.723877 676.004517 1413.111206 676.011108 Z M 1437.576782 656.481079 C 1432.187256 656.495728 1427.822754 660.863159 1427.81189 666.252808 L 1427.81189 690.718384 C 1427.825073 696.105713 1432.196167 700.470093 1437.576782 700.483398 C 1442.963867 700.46875 1447.327271 696.105347 1447.341797 690.718384 L 1447.341797 666.246094 C 1447.327271 660.859131 1442.963867 656.495728 1437.576782 656.481079 Z"/>
<path id="path17" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 1427.81189 617.255005 C 1427.818481 622.642456 1432.189453 627.013428 1437.576782 627.02002 L 1447.341797 627.02002 L 1447.341797 617.255005 C 1447.330933 611.868042 1442.970459 607.501709 1437.583496 607.483398 C 1432.196533 607.498047 1427.83313 611.86145 1427.818481 617.248413 Z M 1447.341797 641.713989 C 1447.327271 636.327026 1442.963867 631.963623 1437.576782 631.949097 L 1413.111206 631.949097 C 1407.724243 631.963623 1403.36084 636.327026 1403.346191 641.713989 C 1403.359497 647.108032 1407.730469 651.472412 1413.111206 651.479004 L 1437.583496 651.479004 C 1442.970459 651.464478 1447.333862 647.101074 1447.348511 641.713989 Z"/>
<path id="path18" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 1462.115601 651.485718 C 1467.502563 651.471069 1471.865967 647.107666 1471.880493 641.720703 L 1471.880493 617.248413 C 1471.865967 611.864014 1467.506592 607.501587 1462.122192 607.483398 C 1456.735229 607.498047 1452.371826 611.86145 1452.357178 617.248413 L 1452.357178 641.720703 C 1452.370483 647.10144 1456.734863 651.472412 1462.122192 651.485718 Z M 1486.574585 631.949097 C 1481.1875 631.963623 1476.824097 636.327026 1476.80957 641.713989 L 1476.80957 651.479004 L 1486.574585 651.479004 C 1491.961548 651.46814 1496.327881 647.107666 1496.346191 641.720703 C 1496.331543 636.333618 1491.96814 631.970337 1486.581177 631.955688 Z"/>
<path id="path19" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 1452.350586 666.252808 C 1452.363892 671.640137 1456.728149 676.011108 1462.115601 676.0177 L 1486.581177 676.0177 C 1491.965576 676.003174 1496.328003 671.643799 1496.346191 666.259399 C 1496.331543 660.872437 1491.96814 656.509033 1486.581177 656.494385 L 1462.115601 656.494385 C 1456.728516 656.509033 1452.365112 660.872437 1452.350586 666.259399 Z M 1471.880493 690.711792 C 1471.865967 685.324707 1467.502563 680.961304 1462.115601 680.946777 L 1452.350586 680.946777 L 1452.350586 690.711792 C 1452.363892 696.105713 1456.728149 700.470093 1462.115601 700.476807 C 1467.502563 700.462158 1471.865967 696.098755 1471.880493 690.711792 Z"/>
</g>
</g>
</g>
<g id="g10">
<g id="g11">
<g id="g12">
<path id="path20" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 525.352051 675.601318 C 530.393921 675.587646 534.476807 671.502075 534.487061 666.460205 L 534.487061 657.325195 L 525.352051 657.325195 C 520.312561 657.335327 516.227905 661.414429 516.210815 666.453979 C 516.217041 671.493774 520.30603 675.582764 525.345825 675.588989 Z M 548.233032 657.31897 C 543.191162 657.332642 539.108276 661.418213 539.098022 666.460205 L 539.098022 689.347412 C 539.110474 694.387085 543.199463 698.469971 548.233032 698.4823 C 553.272461 698.46875 557.35437 694.386841 557.368042 689.347412 L 557.368042 666.453979 C 557.35437 661.414429 553.272461 657.332642 548.233032 657.31897 Z"/>
<path id="path21" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 539.098022 620.623535 C 539.104248 625.66333 543.193237 629.752319 548.233032 629.758545 L 557.368042 629.758545 L 557.368042 620.623535 C 557.357788 615.584106 553.278687 611.49939 548.239258 611.482422 C 543.199768 611.495972 539.11792 615.577881 539.104248 620.61731 Z M 557.368042 643.504517 C 557.35437 638.465088 553.272461 634.383179 548.233032 634.369629 L 525.345825 634.369629 C 520.306335 634.383179 516.224487 638.465088 516.210815 643.504517 C 516.223267 648.550537 520.312256 652.633301 525.345825 652.639526 L 548.239258 652.639526 C 553.278687 652.625977 557.360596 648.544067 557.374268 643.504517 Z"/>
<path id="path22" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 571.188599 652.645752 C 576.228027 652.63208 580.309937 648.550293 580.323608 643.510742 L 580.323608 620.61731 C 580.309937 615.580322 576.231812 611.49939 571.194824 611.482422 C 566.155334 611.495972 562.073486 615.577881 562.059814 620.61731 L 562.059814 643.510742 C 562.072266 648.544312 566.155029 652.633301 571.194824 652.645752 Z M 594.06958 634.369629 C 589.030151 634.383179 584.948242 638.465088 584.934631 643.504517 L 584.934631 652.639526 L 594.06958 652.639526 C 599.10907 652.629395 603.193726 648.550293 603.210815 643.510742 C 603.197144 638.471313 599.115295 634.389404 594.075806 634.375732 Z"/>
<path id="path23" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 562.053589 666.460205 C 562.06604 671.499878 566.148804 675.588989 571.188599 675.595093 L 594.075806 675.595093 C 599.112854 675.581543 603.193726 671.503418 603.210815 666.466309 C 603.197144 661.42688 599.115295 657.344971 594.075806 657.331421 L 571.188599 657.331421 C 566.14917 657.344971 562.067261 661.42688 562.053589 666.466309 Z M 580.323608 689.341187 C 580.309937 684.301636 576.228027 680.219849 571.188599 680.206177 L 562.053589 680.206177 L 562.053589 689.341187 C 562.06604 694.387085 566.148804 698.469971 571.188599 698.476196 C 576.228027 698.462524 580.309937 694.380615 580.323608 689.341187 Z"/>
</g>
</g>
</g>
</g>
<g id="Data">
<g id="Black-S-draw-attachment-data"/>
<g id="Regular-S-draw-attachment-data"/>
<g id="Ultralight-S-draw-attachment-data"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.
Binary file not shown.
+115
View File
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Pixelmator Pro 3.7.1 -->
<svg width="3300" height="2200" viewBox="0 0 3300 2200" xmlns="http://www.w3.org/2000/svg">
<g id="Notes">
<path id="artboard" fill="#ffffff" stroke="none" d="M 0 0 L 3300 0 L 3300 2200 L 0 2200 Z"/>
<path id="Path" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 292 L 3036 292"/>
<text id="WeightScale-Variations" xml:space="preserve" x="262" y="324" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Weight/Scale Variations</text>
<text id="Ultralight" xml:space="preserve" x="532.352295" y="324" font-family="Helvetica" font-size="13" fill="#000000">Ultralight</text>
<text id="Thin" xml:space="preserve" x="841.355469" y="324" font-family="Helvetica" font-size="13" fill="#000000">Thin</text>
<text id="Light" xml:space="preserve" x="1137.405029" y="324" font-family="Helvetica" font-size="13" fill="#000000">Light</text>
<text id="Regular" xml:space="preserve" x="1425.237305" y="324" font-family="Helvetica" font-size="13" fill="#000000">Regular</text>
<text id="Medium" xml:space="preserve" x="1721.381836" y="324" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Semibold" xml:space="preserve" x="2014.401855" y="324" font-family="Helvetica" font-size="13" fill="#000000">Semibold</text>
<text id="Bold" xml:space="preserve" x="2324.490479" y="324" font-family="Helvetica" font-size="13" fill="#000000">Bold</text>
<text id="Heavy" xml:space="preserve" x="2616.075928" y="324" font-family="Helvetica" font-size="13" fill="#000000">Heavy</text>
<text id="Black" xml:space="preserve" x="2915.105469" y="324" font-family="Helvetica" font-size="13" fill="#000000">Black</text>
<path id="path1" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 1903 L 3036 1903"/>
<g id="Group">
<path id="path2" fill="#000000" stroke="none" d="M 272.248047 1933.830078 C 276.603516 1933.830078 280.138672 1930.304688 280.138672 1925.949219 C 280.138672 1921.59375 276.603516 1918.068359 272.248047 1918.068359 C 267.902344 1918.068359 264.367188 1921.59375 264.367188 1925.949219 C 264.367188 1930.304688 267.902344 1933.830078 272.248047 1933.830078 Z M 272.248047 1932.345703 C 268.712891 1932.345703 265.861328 1929.484375 265.861328 1925.949219 C 265.861328 1922.414063 268.712891 1919.552734 272.248047 1919.552734 C 275.783203 1919.552734 278.644531 1922.414063 278.644531 1925.949219 C 278.644531 1929.484375 275.783203 1932.345703 272.248047 1932.345703 Z M 272.970703 1928.791016 L 272.970703 1923.097656 C 272.970703 1922.648438 272.677734 1922.345703 272.228516 1922.345703 C 271.798828 1922.345703 271.505859 1922.648438 271.505859 1923.097656 L 271.505859 1928.791016 C 271.505859 1929.230469 271.798828 1929.533203 272.228516 1929.533203 C 272.677734 1929.533203 272.970703 1929.230469 272.970703 1928.791016 Z M 269.40625 1926.671875 L 275.089844 1926.671875 C 275.529297 1926.671875 275.832031 1926.378906 275.832031 1925.949219 C 275.832031 1925.509766 275.529297 1925.207031 275.089844 1925.207031 L 269.40625 1925.207031 C 268.957031 1925.207031 268.654297 1925.509766 268.654297 1925.949219 C 268.654297 1926.378906 268.957031 1926.671875 269.40625 1926.671875 Z"/>
</g>
<g id="g1">
<path id="path3" fill="#000000" stroke="none" d="M 293.214966 1935.910156 C 298.713013 1935.910156 303.175934 1931.447266 303.175934 1925.949219 C 303.175934 1920.451172 298.713013 1915.988281 293.214966 1915.988281 C 287.716949 1915.988281 283.254028 1920.451172 283.254028 1925.949219 C 283.254028 1931.447266 287.716949 1935.910156 293.214966 1935.910156 Z M 293.214966 1934.25 C 288.625153 1934.25 284.914215 1930.539063 284.914215 1925.949219 C 284.914215 1921.359375 288.625153 1917.648438 293.214966 1917.648438 C 297.80481 1917.648438 301.515747 1921.359375 301.515747 1925.949219 C 301.515747 1930.539063 297.80481 1934.25 293.214966 1934.25 Z M 294.025513 1929.630859 L 294.025513 1922.248047 C 294.025513 1921.75 293.683716 1921.408203 293.195435 1921.408203 C 292.716919 1921.408203 292.384888 1921.75 292.384888 1922.248047 L 292.384888 1929.630859 C 292.384888 1930.119141 292.716919 1930.460938 293.195435 1930.460938 C 293.683716 1930.460938 294.025513 1930.128906 294.025513 1929.630859 Z M 289.513794 1926.75 L 296.906372 1926.75 C 297.394653 1926.75 297.73645 1926.427734 297.73645 1925.949219 C 297.73645 1925.460938 297.394653 1925.119141 296.906372 1925.119141 L 289.513794 1925.119141 C 289.015747 1925.119141 288.683716 1925.460938 288.683716 1925.949219 C 288.683716 1926.427734 289.015747 1926.75 289.513794 1926.75 Z"/>
</g>
<g id="g2">
<path id="path4" fill="#000000" stroke="none" d="M 319.894714 1938.664063 C 326.916168 1938.664063 332.619293 1932.970703 332.619293 1925.949219 C 332.619293 1918.927734 326.916168 1913.224609 319.894714 1913.224609 C 312.87323 1913.224609 307.179871 1918.927734 307.179871 1925.949219 C 307.179871 1932.970703 312.87323 1938.664063 319.894714 1938.664063 Z M 319.894714 1936.847656 C 313.869293 1936.847656 308.996246 1931.974609 308.996246 1925.949219 C 308.996246 1919.923828 313.869293 1915.050781 319.894714 1915.050781 C 325.920105 1915.050781 330.793152 1919.923828 330.793152 1925.949219 C 330.793152 1931.974609 325.920105 1936.847656 319.894714 1936.847656 Z M 320.783386 1930.783203 L 320.783386 1921.085938 C 320.783386 1920.539063 320.412292 1920.158203 319.875153 1920.158203 C 319.357605 1920.158203 318.986481 1920.539063 318.986481 1921.085938 L 318.986481 1930.783203 C 318.986481 1931.320313 319.357605 1931.701172 319.875153 1931.701172 C 320.412292 1931.701172 320.783386 1931.330078 320.783386 1930.783203 Z M 315.041199 1926.828125 L 324.738464 1926.828125 C 325.275574 1926.828125 325.656433 1926.466797 325.656433 1925.949219 C 325.656433 1925.402344 325.285339 1925.03125 324.738464 1925.03125 L 315.041199 1925.03125 C 314.494324 1925.03125 314.12323 1925.402344 314.12323 1925.949219 C 314.12323 1926.466797 314.494324 1926.828125 315.041199 1926.828125 Z"/>
</g>
<text id="Design-Variations" xml:space="preserve" x="262" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Design Variations</text>
<text id="Symbols-are-supported-in" xml:space="preserve" x="262" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Symbols are supported in up to nine weights and three scales.</text>
<text id="For-optimal-layout-with" xml:space="preserve" x="262" y="1991" font-family="Helvetica" font-size="13" fill="#000000">For optimal layout with text and other symbols, vertically align</text>
<text id="symbols-with-the-adjacent" xml:space="preserve" x="262" y="2009" font-family="Helvetica" font-size="13" fill="#000000">symbols with the adjacent text.</text>
<path id="path5" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 776 1919 L 776 1933"/>
<g id="g3">
<path id="path6" fill="#000000" stroke="none" d="M 779.310547 1933.15625 C 779.828125 1933.15625 780.082031 1932.960938 780.267578 1932.414063 L 784.378906 1920.910156 L 784.427734 1920.910156 L 788.548828 1932.414063 C 788.734375 1932.960938 788.988281 1933.15625 789.496094 1933.15625 C 790.013672 1933.15625 790.345703 1932.84375 790.345703 1932.355469 C 790.345703 1932.189453 790.316406 1932.033203 790.238281 1931.828125 L 785.658203 1919.630859 C 785.433594 1919.035156 785.033203 1918.732422 784.408203 1918.732422 C 783.802734 1918.732422 783.392578 1919.025391 783.177734 1919.621094 L 778.597656 1931.837891 C 778.519531 1932.042969 778.490234 1932.199219 778.490234 1932.365234 C 778.490234 1932.853516 778.802734 1933.15625 779.310547 1933.15625 Z M 781.351563 1928.966797 L 787.484375 1928.966797 C 787.884766 1928.966797 788.216797 1928.634766 788.216797 1928.234375 C 788.216797 1927.824219 787.884766 1927.501953 787.484375 1927.501953 L 781.351563 1927.501953 C 780.951172 1927.501953 780.619141 1927.824219 780.619141 1928.234375 C 780.619141 1928.634766 780.951172 1928.966797 781.351563 1928.966797 Z"/>
</g>
<path id="path7" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 792.835999 1919 L 792.835999 1933"/>
<text id="Margins" xml:space="preserve" x="775" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Margins</text>
<text id="Leading-and-trailing-margins" xml:space="preserve" x="775" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Leading and trailing margins on the left and right side of each symbol</text>
<text id="can-be-adjusted-by" xml:space="preserve" x="775" y="1991" font-family="Helvetica" font-size="13" fill="#000000">can be adjusted by modifying the x-location of the margin guidelines.</text>
<text id="Modifications-are-automatically-applied" xml:space="preserve" x="775" y="2009" font-family="Helvetica" font-size="13" fill="#000000">Modifications are automatically applied proportionally to all</text>
<text id="scales-and-weights" xml:space="preserve" x="775" y="2027" font-family="Helvetica" font-size="13" fill="#000000">scales and weights.</text>
<g id="g4">
<path id="path8" fill="#000000" stroke="none" d="M 1291.841797 1935.626953 L 1293.414063 1937.199219 C 1294.273438 1938.078125 1295.279297 1938.019531 1296.1875 1936.994141 L 1308.326172 1923.351563 L 1307.349609 1922.375 L 1295.298828 1935.910156 C 1294.9375 1936.300781 1294.605469 1936.398438 1294.136719 1935.929688 L 1293.101563 1934.904297 C 1292.642578 1934.445313 1292.740234 1934.113281 1293.140625 1933.742188 L 1306.636719 1921.310547 L 1305.660156 1920.34375 L 1292.046875 1932.863281 C 1291.050781 1933.78125 1290.982422 1934.757813 1291.841797 1935.626953 Z M 1300.816406 1916.134766 C 1300.40625 1916.535156 1300.367188 1917.111328 1300.601563 1917.492188 C 1300.826172 1917.853516 1301.294922 1918.097656 1301.919922 1917.941406 C 1303.091797 1917.609375 1304.439453 1917.462891 1305.699219 1918.126953 L 1305.162109 1919.552734 C 1304.839844 1920.353516 1305.015625 1920.929688 1305.503906 1921.4375 L 1307.554688 1923.498047 C 1308.023438 1923.976563 1308.462891 1923.986328 1308.970703 1923.888672 L 1309.859375 1923.742188 L 1310.376953 1924.25 L 1310.337891 1924.699219 C 1310.318359 1925.158203 1310.445313 1925.558594 1310.894531 1925.998047 L 1311.568359 1926.662109 C 1312.027344 1927.121094 1312.671875 1927.160156 1313.130859 1926.701172 L 1315.728516 1924.09375 C 1316.1875 1923.625 1316.158203 1923.019531 1315.689453 1922.560547 L 1315.005859 1921.876953 C 1314.566406 1921.4375 1314.195313 1921.271484 1313.736328 1921.300781 L 1313.267578 1921.349609 L 1312.779297 1920.861328 L 1312.984375 1919.923828 C 1313.111328 1919.376953 1312.935547 1918.927734 1312.408203 1918.400391 L 1310.152344 1916.164063 C 1307.564453 1913.595703 1303.033203 1913.957031 1300.816406 1916.134766 Z M 1302.232422 1916.544922 C 1303.990234 1915.265625 1307.427734 1915.412109 1308.970703 1916.935547 L 1311.431641 1919.376953 C 1311.636719 1919.582031 1311.675781 1919.738281 1311.617188 1920.041016 L 1311.324219 1921.369141 L 1312.671875 1922.707031 L 1313.550781 1922.658203 C 1313.775391 1922.648438 1313.853516 1922.667969 1314.019531 1922.833984 L 1314.527344 1923.332031 L 1312.359375 1925.5 L 1311.861328 1925.001953 C 1311.695313 1924.826172 1311.666016 1924.757813 1311.675781 1924.523438 L 1311.734375 1923.654297 L 1310.396484 1922.306641 L 1309.029297 1922.541016 C 1308.746094 1922.599609 1308.619141 1922.580078 1308.394531 1922.365234 L 1306.607422 1920.587891 C 1306.392578 1920.382813 1306.373047 1920.246094 1306.509766 1919.914063 L 1307.427734 1917.619141 C 1306.207031 1916.349609 1304.019531 1916.115234 1302.310547 1916.701172 C 1302.173828 1916.75 1302.125 1916.623047 1302.232422 1916.544922 Z"/>
</g>
<text id="Exporting" xml:space="preserve" x="1288" y="1955" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Exporting</text>
<text id="Symbols-should-be-outlined" xml:space="preserve" x="1288" y="1973" font-family="Helvetica" font-size="13" fill="#000000">Symbols should be outlined when exporting to ensure the</text>
<text id="design-is-preserved-when" xml:space="preserve" x="1288" y="1991" font-family="Helvetica" font-size="13" fill="#000000">design is preserved when submitting to Xcode.</text>
<text id="template-version" xml:space="preserve" x="2949.414063" y="1935" font-family="Helvetica" font-size="13" fill="#000000">Template v.7.0</text>
<text id="Requires-Xcode-26-or" xml:space="preserve" x="2862.45752" y="1953" font-family="Helvetica" font-size="13" fill="#000000">Requires Xcode 26 or greater</text>
<text id="Generated-from-squareandarrowup" xml:space="preserve" x="2819.813965" y="1971" font-family="Helvetica" font-size="13" fill="#000000">Generated from square.and.arrow.up</text>
<text id="Typeset-at-1000-points" xml:space="preserve" x="2898.569336" y="1989" font-family="Helvetica" font-size="13" fill="#000000">Typeset at 100.0 points</text>
<text id="Small" xml:space="preserve" x="262" y="728" font-family="Helvetica" font-size="13" fill="#000000">Small</text>
<text id="text1" xml:space="preserve" x="262" y="1158" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Large" xml:space="preserve" x="262" y="1588" font-family="Helvetica" font-size="13" fill="#000000">Large</text>
</g>
<g id="Guides">
<g id="H-reference">
<path id="path9" fill="#27aae1" stroke="none" d="M 341.993652 696 L 344.637756 696 L 370.328094 628.867676 L 371.030304 628.867676 L 371.030304 625.541016 L 369.122589 625.541016 Z M 352.688507 671.520142 L 387.981506 671.520142 L 387.231506 669.271484 L 353.438507 669.271484 Z M 396.119598 696 L 398.763702 696 L 371.638214 625.541016 L 370.432587 625.541016 L 370.432587 628.867676 Z"/>
</g>
<path id="Baseline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 696 L 3038 696"/>
<path id="Capline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 625.541016 L 3038 625.541016"/>
<g id="g5">
<path id="path10" fill="#27aae1" stroke="none" d="M 341.993652 1126 L 344.637756 1126 L 370.328094 1058.867676 L 371.030304 1058.867676 L 371.030304 1055.541016 L 369.122589 1055.541016 Z M 352.688507 1101.520142 L 387.981506 1101.520142 L 387.231506 1099.271484 L 353.438507 1099.271484 Z M 396.119598 1126 L 398.763702 1126 L 371.638214 1055.541016 L 370.432587 1055.541016 L 370.432587 1058.867676 Z"/>
</g>
<path id="Baseline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1126 L 3038 1126"/>
<path id="Capline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1055.540039 L 3038 1055.540039"/>
<g id="g6">
<path id="path11" fill="#27aae1" stroke="none" d="M 341.993652 1556 L 344.637756 1556 L 370.328094 1488.867676 L 371.030304 1488.867676 L 371.030304 1485.541016 L 369.122589 1485.541016 Z M 352.688507 1531.52002 L 387.981506 1531.52002 L 387.231506 1529.271484 L 353.438507 1529.271484 Z M 396.119598 1556 L 398.763702 1556 L 371.638214 1485.541016 L 370.432587 1485.541016 L 370.432587 1488.867676 Z"/>
</g>
<path id="Baseline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1556 L 3038 1556"/>
<path id="Capline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 265 1485.540039 L 3038 1485.540039"/>
<path id="right-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2982.810059 600.784912 L 2982.810059 720.120972"/>
<path id="left-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2887.98999 600.784912 L 2887.98999 720.120972"/>
<path id="right-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1495.959961 600.784912 L 1495.959961 720.120972"/>
<path id="left-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1407.72998 600.784912 L 1407.72998 720.120972"/>
<path id="right-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 603.625 600.784912 L 603.625 720.120972"/>
<path id="left-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 519.796997 600.784912 L 519.796997 720.120972"/>
</g>
<g id="Symbols">
<g id="Black-S">
<g id="Ultralight-S">
<g id="g7">
<path id="path12" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 2893.119385 679.30481 C 2899.030518 679.288818 2903.817383 674.498779 2903.829346 668.587524 L 2903.829346 657.877563 L 2893.119385 657.877563 C 2887.210938 657.889526 2882.422119 662.671997 2882.4021 668.580322 C 2882.409424 674.489014 2887.203369 679.282959 2893.112061 679.290283 Z M 2919.945313 657.870239 C 2914.03418 657.886353 2909.247314 662.676392 2909.235352 668.587524 L 2909.235352 695.420898 C 2909.25 701.32959 2914.043945 706.116333 2919.945313 706.130859 C 2925.85376 706.114868 2930.639404 701.329224 2930.655273 695.420898 L 2930.655273 668.580322 C 2930.639404 662.671997 2925.85376 657.886353 2919.945313 657.870239 Z"/>
<path id="path13" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 2909.235352 614.848145 C 2909.242676 620.756836 2914.036621 625.550903 2919.945313 625.558105 L 2930.655273 625.558105 L 2930.655273 614.848145 C 2930.643311 608.939819 2925.861084 604.150879 2919.952637 604.130859 C 2914.044434 604.146851 2909.258789 608.932495 2909.242676 614.84082 Z M 2930.655273 641.674194 C 2930.639404 635.765869 2925.85376 630.980103 2919.945313 630.964111 L 2893.112061 630.964111 C 2887.203857 630.980103 2882.418213 635.765869 2882.4021 641.674194 C 2882.416748 647.590088 2887.210693 652.376831 2893.112061 652.384155 L 2919.952637 652.384155 C 2925.861084 652.368164 2930.646729 647.58252 2930.662598 641.674194 Z"/>
<path id="path14" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 2946.858887 652.391479 C 2952.76709 652.375366 2957.552734 647.589722 2957.568848 641.681396 L 2957.568848 614.84082 C 2957.552734 608.935425 2952.771484 604.150879 2946.866211 604.130859 C 2940.957764 604.146851 2936.172119 608.932495 2936.156006 614.84082 L 2936.156006 641.681396 C 2936.170654 647.582886 2940.957275 652.376831 2946.866211 652.391479 Z M 2973.684814 630.964111 C 2967.776611 630.980103 2962.990723 635.765869 2962.974854 641.674194 L 2962.974854 652.384155 L 2973.684814 652.384155 C 2979.593262 652.372192 2984.38208 647.589722 2984.4021 641.681396 C 2984.385986 635.773071 2979.600342 630.987427 2973.692139 630.971436 Z"/>
<path id="path15" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 2936.148926 668.587524 C 2936.16333 674.496338 2940.950195 679.290283 2946.858887 679.297607 L 2973.692139 679.297607 C 2979.597656 679.281616 2984.38208 674.500366 2984.4021 668.594849 C 2984.385986 662.686523 2979.600342 657.900879 2973.692139 657.884888 L 2946.858887 657.884888 C 2940.950439 657.900879 2936.164795 662.686523 2936.148926 668.594849 Z M 2957.568848 695.413574 C 2957.552734 689.505249 2952.76709 684.719604 2946.858887 684.703613 L 2936.148926 684.703613 L 2936.148926 695.413574 C 2936.16333 701.32959 2940.950195 706.116333 2946.858887 706.123535 C 2952.76709 706.107544 2957.552734 701.321899 2957.568848 695.413574 Z"/>
</g>
</g>
</g>
<g id="Regular-S">
<g id="g8">
<g id="g9">
<path id="path16" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 1413.117798 676.024414 C 1418.507446 676.009766 1422.871826 671.642334 1422.882813 666.252808 L 1422.882813 656.487793 L 1413.117798 656.487793 C 1407.730835 656.498657 1403.364502 660.859131 1403.346191 666.246094 C 1403.352783 671.633423 1407.723877 676.004517 1413.111206 676.011108 Z M 1437.576782 656.481079 C 1432.187256 656.495728 1427.822754 660.863159 1427.81189 666.252808 L 1427.81189 690.718384 C 1427.825073 696.105713 1432.196167 700.470093 1437.576782 700.483398 C 1442.963867 700.46875 1447.327271 696.105347 1447.341797 690.718384 L 1447.341797 666.246094 C 1447.327271 660.859131 1442.963867 656.495728 1437.576782 656.481079 Z"/>
<path id="path17" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 1427.81189 617.255005 C 1427.818481 622.642456 1432.189453 627.013428 1437.576782 627.02002 L 1447.341797 627.02002 L 1447.341797 617.255005 C 1447.330933 611.868042 1442.970459 607.501709 1437.583496 607.483398 C 1432.196533 607.498047 1427.83313 611.86145 1427.818481 617.248413 Z M 1447.341797 641.713989 C 1447.327271 636.327026 1442.963867 631.963623 1437.576782 631.949097 L 1413.111206 631.949097 C 1407.724243 631.963623 1403.36084 636.327026 1403.346191 641.713989 C 1403.359497 647.108032 1407.730469 651.472412 1413.111206 651.479004 L 1437.583496 651.479004 C 1442.970459 651.464478 1447.333862 647.101074 1447.348511 641.713989 Z"/>
<path id="path18" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 1462.115601 651.485718 C 1467.502563 651.471069 1471.865967 647.107666 1471.880493 641.720703 L 1471.880493 617.248413 C 1471.865967 611.864014 1467.506592 607.501587 1462.122192 607.483398 C 1456.735229 607.498047 1452.371826 611.86145 1452.357178 617.248413 L 1452.357178 641.720703 C 1452.370483 647.10144 1456.734863 651.472412 1462.122192 651.485718 Z M 1486.574585 631.949097 C 1481.1875 631.963623 1476.824097 636.327026 1476.80957 641.713989 L 1476.80957 651.479004 L 1486.574585 651.479004 C 1491.961548 651.46814 1496.327881 647.107666 1496.346191 641.720703 C 1496.331543 636.333618 1491.96814 631.970337 1486.581177 631.955688 Z"/>
<path id="path19" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 1452.350586 666.252808 C 1452.363892 671.640137 1456.728149 676.011108 1462.115601 676.0177 L 1486.581177 676.0177 C 1491.965576 676.003174 1496.328003 671.643799 1496.346191 666.259399 C 1496.331543 660.872437 1491.96814 656.509033 1486.581177 656.494385 L 1462.115601 656.494385 C 1456.728516 656.509033 1452.365112 660.872437 1452.350586 666.259399 Z M 1471.880493 690.711792 C 1471.865967 685.324707 1467.502563 680.961304 1462.115601 680.946777 L 1452.350586 680.946777 L 1452.350586 690.711792 C 1452.363892 696.105713 1456.728149 700.470093 1462.115601 700.476807 C 1467.502563 700.462158 1471.865967 696.098755 1471.880493 690.711792 Z"/>
</g>
</g>
</g>
<g id="g10">
<g id="g11">
<g id="g12">
<path id="path20" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 525.352051 675.601318 C 530.393921 675.587646 534.476807 671.502075 534.487061 666.460205 L 534.487061 657.325195 L 525.352051 657.325195 C 520.312561 657.335327 516.227905 661.414429 516.210815 666.453979 C 516.217041 671.493774 520.30603 675.582764 525.345825 675.588989 Z M 548.233032 657.31897 C 543.191162 657.332642 539.108276 661.418213 539.098022 666.460205 L 539.098022 689.347412 C 539.110474 694.387085 543.199463 698.469971 548.233032 698.4823 C 553.272461 698.46875 557.35437 694.386841 557.368042 689.347412 L 557.368042 666.453979 C 557.35437 661.414429 553.272461 657.332642 548.233032 657.31897 Z"/>
<path id="path21" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 539.098022 620.623535 C 539.104248 625.66333 543.193237 629.752319 548.233032 629.758545 L 557.368042 629.758545 L 557.368042 620.623535 C 557.357788 615.584106 553.278687 611.49939 548.239258 611.482422 C 543.199768 611.495972 539.11792 615.577881 539.104248 620.61731 Z M 557.368042 643.504517 C 557.35437 638.465088 553.272461 634.383179 548.233032 634.369629 L 525.345825 634.369629 C 520.306335 634.383179 516.224487 638.465088 516.210815 643.504517 C 516.223267 648.550537 520.312256 652.633301 525.345825 652.639526 L 548.239258 652.639526 C 553.278687 652.625977 557.360596 648.544067 557.374268 643.504517 Z"/>
<path id="path22" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 571.188599 652.645752 C 576.228027 652.63208 580.309937 648.550293 580.323608 643.510742 L 580.323608 620.61731 C 580.309937 615.580322 576.231812 611.49939 571.194824 611.482422 C 566.155334 611.495972 562.073486 615.577881 562.059814 620.61731 L 562.059814 643.510742 C 562.072266 648.544312 566.155029 652.633301 571.194824 652.645752 Z M 594.06958 634.369629 C 589.030151 634.383179 584.948242 638.465088 584.934631 643.504517 L 584.934631 652.639526 L 594.06958 652.639526 C 599.10907 652.629395 603.193726 648.550293 603.210815 643.510742 C 603.197144 638.471313 599.115295 634.389404 594.075806 634.375732 Z"/>
<path id="path23" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 562.053589 666.460205 C 562.06604 671.499878 566.148804 675.588989 571.188599 675.595093 L 594.075806 675.595093 C 599.112854 675.581543 603.193726 671.503418 603.210815 666.466309 C 603.197144 661.42688 599.115295 657.344971 594.075806 657.331421 L 571.188599 657.331421 C 566.14917 657.344971 562.067261 661.42688 562.053589 666.466309 Z M 580.323608 689.341187 C 580.309937 684.301636 576.228027 680.219849 571.188599 680.206177 L 562.053589 680.206177 L 562.053589 689.341187 C 562.06604 694.387085 566.148804 698.469971 571.188599 698.476196 C 576.228027 698.462524 580.309937 694.380615 580.323608 689.341187 Z"/>
</g>
</g>
</g>
</g>
<g id="Data">
<g id="Black-S-draw-attachment-data"/>
<g id="Regular-S-draw-attachment-data"/>
<g id="Ultralight-S-draw-attachment-data"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 25 KiB

+159 -45
View File
@@ -44,7 +44,7 @@
A957C17E2ECFAA1100EA3EE9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C17D2ECFAA1100EA3EE9 /* GifView.swift */; };
A957C17F2ECFAA1100EA3EE9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C17D2ECFAA1100EA3EE9 /* GifView.swift */; };
A957C1802ECFAA1100EA3EE9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C17D2ECFAA1100EA3EE9 /* GifView.swift */; };
A9773C2F2EA54AF000F3B753 /* EmojiPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */; };
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */; };
A986A6AE2EB658DF00B6E0FA /* Messages.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A969D6932EA3E86500399C05 /* Messages.framework */; };
A986A6BA2EB658E100B6E0FA /* StickerSlackiMessageApp.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A986A6AD2EB658DF00B6E0FA /* StickerSlackiMessageApp.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
A986A6C12EB6595F00B6E0FA /* EmojiHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F72EA04F2300215164 /* EmojiHoarder.swift */; };
@@ -58,6 +58,31 @@
A99589AF2F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
A99589B02F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
A99589B12F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
A995D95B2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */ = {isa = PBXBuildFile; fileRef = A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */; };
A995D95C2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */ = {isa = PBXBuildFile; fileRef = A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */; };
A9A7A43F2F6835F800BB84C6 /* Trending.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A43E2F6835F800BB84C6 /* Trending.swift */; };
A9A7A4402F6835F800BB84C6 /* Trending.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A43E2F6835F800BB84C6 /* Trending.swift */; };
A9A7A4422F68360200BB84C6 /* GifObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4412F68360200BB84C6 /* GifObject.swift */; };
A9A7A4432F68360200BB84C6 /* GifObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4412F68360200BB84C6 /* GifObject.swift */; };
A9A7A4452F68360900BB84C6 /* Pagination.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4442F68360900BB84C6 /* Pagination.swift */; };
A9A7A4462F68360900BB84C6 /* Pagination.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4442F68360900BB84C6 /* Pagination.swift */; };
A9A7A4482F68361200BB84C6 /* Meta.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4472F68361200BB84C6 /* Meta.swift */; };
A9A7A4492F68361200BB84C6 /* Meta.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4472F68361200BB84C6 /* Meta.swift */; };
A9A7A44B2F6837A800BB84C6 /* GiphyUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44A2F6837A800BB84C6 /* GiphyUser.swift */; };
A9A7A44C2F6837A800BB84C6 /* GiphyUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44A2F6837A800BB84C6 /* GiphyUser.swift */; };
A9A7A44E2F68383900BB84C6 /* GiphyImages.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44D2F68383900BB84C6 /* GiphyImages.swift */; };
A9A7A44F2F68383900BB84C6 /* GiphyImages.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44D2F68383900BB84C6 /* GiphyImages.swift */; };
A9A7A4572F69568700BB84C6 /* GifHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EE2F5B004800A57668 /* GifHoarder.swift */; };
A9A7A4582F69569100BB84C6 /* Trending.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A43E2F6835F800BB84C6 /* Trending.swift */; };
A9A7A4592F69569100BB84C6 /* Pagination.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4442F68360900BB84C6 /* Pagination.swift */; };
A9A7A45A2F69569100BB84C6 /* Meta.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4472F68361200BB84C6 /* Meta.swift */; };
A9A7A45B2F69569100BB84C6 /* GifObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4412F68360200BB84C6 /* GifObject.swift */; };
A9A7A45C2F69569100BB84C6 /* GiphyImages.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44D2F68383900BB84C6 /* GiphyImages.swift */; };
A9A7A45D2F69569100BB84C6 /* GiphyUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A44A2F6837A800BB84C6 /* GiphyUser.swift */; };
A9A7A45E2F6956B700BB84C6 /* StickerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */; };
A9A7A45F2F69570200BB84C6 /* Gif.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F12F5B004E00A57668 /* Gif.swift */; };
A9A7A4682F6AA17C00BB84C6 /* Int.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4672F6AA17C00BB84C6 /* Int.swift */; };
A9A7A4692F6AA17C00BB84C6 /* Int.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4672F6AA17C00BB84C6 /* Int.swift */; };
A9B9A82E2EB2CCBE004C9245 /* StickerSlackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9B9A82C2EB2CCBE004C9245 /* StickerSlackTests.swift */; };
A9B9A82F2EB2CCED004C9245 /* EmojiHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F72EA04F2300215164 /* EmojiHoarder.swift */; };
A9B9A8302EB2CD0B004C9245 /* Emoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A924C3712EA9127200F20781 /* Emoji.swift */; };
@@ -66,6 +91,9 @@
A9BBC5182EB8FA4500FFE82F /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */; };
A9BBC5192EB8FA4500FFE82F /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */; };
A9BBC51A2EB8FA4500FFE82F /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */; };
A9BDEADE2F82BC93002798DF /* NoStickersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BDEADD2F82BC93002798DF /* NoStickersView.swift */; };
A9BDEADF2F82BC93002798DF /* NoStickersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BDEADD2F82BC93002798DF /* NoStickersView.swift */; };
A9BDEAE02F82BCB4002798DF /* NoStickersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BDEADD2F82BC93002798DF /* NoStickersView.swift */; };
A9BE30EC2F5AFE1E00A57668 /* StickerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */; };
A9BE30EF2F5B004800A57668 /* GifHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EE2F5B004800A57668 /* GifHoarder.swift */; };
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EE2F5B004800A57668 /* GifHoarder.swift */; };
@@ -81,21 +109,24 @@
A9BE30FF2F5FA78E00A57668 /* Hoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30FD2F5FA47100A57668 /* Hoarder.swift */; };
A9C172DC2EB8C9AC008A7885 /* Trie.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C172DB2EB8C9AC008A7885 /* Trie.swift */; };
A9C172DD2EB8C9AC008A7885 /* Trie.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C172DB2EB8C9AC008A7885 /* Trie.swift */; };
A9CD6C352EDDE22800B7F421 /* EmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */; };
A9CD6C362EDDE22800B7F421 /* EmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */; };
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C382EDDE37500B7F421 /* EmojiPackManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */; };
A9CD6C392EDDE37500B7F421 /* EmojiPackManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */; };
A9CD6C3A2EDDE6B500B7F421 /* EmojiPack.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D15B892EB1142C00404792 /* EmojiPack.swift */; };
A9CD6C3B2EDDE6B500B7F421 /* EmojiPack.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D15B892EB1142C00404792 /* EmojiPack.swift */; };
A9D15B8B2EB1142C00404792 /* EmojiPack.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D15B892EB1142C00404792 /* EmojiPack.swift */; };
A9EB72392EB93FDB00658CEB /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */; };
A9EB72472EB948C400658CEB /* EmojiRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* EmojiRow.swift */; };
A9EB72492EB948C400658CEB /* EmojiRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* EmojiRow.swift */; };
A9EB724A2EB948E000658CEB /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */; };
A9D6A8212F7014AE00F198FB /* TestStructures.swift in Sources */ = {isa = PBXBuildFile; fileRef = A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */; };
A9EB72392EB93FDB00658CEB /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiTableView.swift */; };
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* StickerRow.swift */; };
A9EB72492EB948C400658CEB /* StickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* StickerRow.swift */; };
A9EB724A2EB948E000658CEB /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiTableView.swift */; };
A9EB724B2EB94A5700658CEB /* Trie.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C172DB2EB8C9AC008A7885 /* Trie.swift */; };
A9EB724D2EB94A6B00658CEB /* TrieTestingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB724C2EB94A6B00658CEB /* TrieTestingView.swift */; };
A9EB724F2EB94A6B00658CEB /* TrieTestingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB724C2EB94A6B00658CEB /* TrieTestingView.swift */; };
A9EB72502EB94FAD00658CEB /* EmojiPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */; };
A9EB72502EB94FAD00658CEB /* StickerPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */; };
A9EC46AD2F6D9E4600E066E6 /* Hoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30FD2F5FA47100A57668 /* Hoarder.swift */; };
A9EC46AE2F6D9E5800E066E6 /* StickerType.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -154,7 +185,7 @@
A957C1792ECE542D00EA3EE9 /* GifManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifManager.swift; sourceTree = "<group>"; };
A957C17D2ECFAA1100EA3EE9 /* GifView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifView.swift; sourceTree = "<group>"; };
A969D6932EA3E86500399C05 /* Messages.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Messages.framework; path = Library/Frameworks/Messages.framework; sourceTree = DEVELOPER_DIR; };
A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPreview.swift; sourceTree = "<group>"; };
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerPreview.swift; sourceTree = "<group>"; };
A986A6AD2EB658DF00B6E0FA /* StickerSlackiMessageApp.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = StickerSlackiMessageApp.appex; sourceTree = BUILT_PRODUCTS_DIR; };
A986A6C62EB659E000B6E0FA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A986A6C72EB659E000B6E0FA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -162,9 +193,19 @@
A986A6CA2EB659E000B6E0FA /* MessagesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesViewController.swift; sourceTree = "<group>"; };
A986A6CB2EB659E000B6E0FA /* StickerBrowserDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerBrowserDataSource.swift; sourceTree = "<group>"; };
A99589AE2F5E0D83003A4A8C /* image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image.png; sourceTree = "<group>"; };
A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestStructures.swift; sourceTree = "<group>"; };
A9A7A43E2F6835F800BB84C6 /* Trending.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Trending.swift; sourceTree = "<group>"; };
A9A7A4412F68360200BB84C6 /* GifObject.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifObject.swift; sourceTree = "<group>"; };
A9A7A4442F68360900BB84C6 /* Pagination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Pagination.swift; sourceTree = "<group>"; };
A9A7A4472F68361200BB84C6 /* Meta.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Meta.swift; sourceTree = "<group>"; };
A9A7A44A2F6837A800BB84C6 /* GiphyUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GiphyUser.swift; sourceTree = "<group>"; };
A9A7A44D2F68383900BB84C6 /* GiphyImages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GiphyImages.swift; sourceTree = "<group>"; };
A9A7A4672F6AA17C00BB84C6 /* Int.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Int.swift; sourceTree = "<group>"; };
A9B9A8232EB2CCB5004C9245 /* StickerSlackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StickerSlackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
A9B9A82C2EB2CCBE004C9245 /* StickerSlackTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerSlackTests.swift; sourceTree = "<group>"; };
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModifiers.swift; sourceTree = "<group>"; };
A9BDEADD2F82BC93002798DF /* NoStickersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoStickersView.swift; sourceTree = "<group>"; };
A9BDEAE12F82BFF8002798DF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerType.swift; sourceTree = "<group>"; };
A9BE30EE2F5B004800A57668 /* GifHoarder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifHoarder.swift; sourceTree = "<group>"; };
A9BE30F12F5B004E00A57668 /* Gif.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Gif.swift; sourceTree = "<group>"; };
@@ -172,12 +213,12 @@
A9BE30F92F5B03F400A57668 /* Sticker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sticker.swift; sourceTree = "<group>"; };
A9BE30FD2F5FA47100A57668 /* Hoarder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Hoarder.swift; sourceTree = "<group>"; };
A9C172DB2EB8C9AC008A7885 /* Trie.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Trie.swift; sourceTree = "<group>"; };
A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackView.swift; sourceTree = "<group>"; };
A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackDetailView.swift; sourceTree = "<group>"; };
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackManager.swift; sourceTree = "<group>"; };
A9D15B892EB1142C00404792 /* EmojiPack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPack.swift; sourceTree = "<group>"; };
A9E2ECD72EB74CE00038B2D6 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.swift; sourceTree = "<group>"; };
A9EB72462EB948C400658CEB /* EmojiRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiRow.swift; sourceTree = "<group>"; };
A9EB72382EB93FDB00658CEB /* EmojiTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableView.swift; sourceTree = "<group>"; };
A9EB72462EB948C400658CEB /* StickerRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerRow.swift; sourceTree = "<group>"; };
A9EB724C2EB94A6B00658CEB /* TrieTestingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrieTestingView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -226,6 +267,8 @@
children = (
A9104C7D2EB4022500D160EA /* MSSticker.swift */,
A957C1762ECD008E00EA3EE9 /* Bundle.swift */,
A9A7A4672F6AA17C00BB84C6 /* Int.swift */,
A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */,
);
path = Extensions;
sourceTree = "<group>";
@@ -239,18 +282,11 @@
path = Trie;
sourceTree = "<group>";
};
A91C098A2EBBD77B00210C34 /* API */ = {
isa = PBXGroup;
children = (
A949B1FA2EA0518800215164 /* SlackResponse.swift */,
);
path = API;
sourceTree = "<group>";
};
A91C098B2EBBD78700210C34 /* Categorisation */ = {
isa = PBXGroup;
children = (
A9D15B892EB1142C00404792 /* EmojiPack.swift */,
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */,
);
path = Categorisation;
@@ -259,9 +295,7 @@
A91C098C2EBBD7AB00210C34 /* Emoji */ = {
isa = PBXGroup;
children = (
A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */,
A9EB72462EB948C400658CEB /* EmojiRow.swift */,
A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */,
A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */,
);
path = Emoji;
sourceTree = "<group>";
@@ -269,15 +303,19 @@
A91C098D2EBBD7C100210C34 /* SwiftUI */ = {
isa = PBXGroup;
children = (
A9A7A4602F69597000BB84C6 /* Gifs */,
A949B1F02EA04E8200215164 /* ContentView.swift */,
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */,
A91C098C2EBBD7AB00210C34 /* Emoji */,
A955B3EC2EC22C4A00E1732D /* DownloadedView.swift */,
A955B3F02EC22E9700E1732D /* BrowseView.swift */,
A955B3F42EC22EE900E1732D /* SearchView.swift */,
A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */,
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */,
A921C2E12ED071C900E57B1A /* ListRow.swift */,
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */,
A9EB72462EB948C400658CEB /* StickerRow.swift */,
A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */,
A955B3F42EC22EE900E1732D /* SearchView.swift */,
A955B3F02EC22E9700E1732D /* BrowseView.swift */,
A9BDEADD2F82BC93002798DF /* NoStickersView.swift */,
A955B3EC2EC22C4A00E1732D /* DownloadedView.swift */,
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */,
);
path = SwiftUI;
sourceTree = "<group>";
@@ -285,7 +323,7 @@
A91C098E2EBBD7C700210C34 /* UIKit */ = {
isa = PBXGroup;
children = (
A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */,
A9EB72382EB93FDB00658CEB /* EmojiTableView.swift */,
);
path = UIKit;
sourceTree = "<group>";
@@ -293,7 +331,6 @@
A949B1D62EA04C0B00215164 = {
isa = PBXGroup;
children = (
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
A9E2ECD72EB74CE00038B2D6 /* Config.xcconfig */,
A949B1F22EA04E8200215164 /* StickerSlack */,
A9104C742EB3AE4700D160EA /* Resources */,
@@ -317,6 +354,8 @@
A949B1F22EA04E8200215164 /* StickerSlack */ = {
isa = PBXGroup;
children = (
A9BDEAE12F82BFF8002798DF /* Info.plist */,
A9A7A4502F68447F00BB84C6 /* Models */,
A924C3742EA9134C00F20781 /* StickerSlack.entitlements */,
A949B1F12EA04E8200215164 /* StickerSlackApp.swift */,
A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */,
@@ -338,7 +377,6 @@
A924C3712EA9127200F20781 /* Emoji.swift */,
A949B1F72EA04F2300215164 /* EmojiHoarder.swift */,
A91C098B2EBBD78700210C34 /* Categorisation */,
A91C098A2EBBD77B00210C34 /* API */,
A957C1792ECE542D00EA3EE9 /* GifManager.swift */,
A957C17D2ECFAA1100EA3EE9 /* GifView.swift */,
);
@@ -366,6 +404,43 @@
path = StickerSlackiMessageApp;
sourceTree = "<group>";
};
A9A7A4502F68447F00BB84C6 /* Models */ = {
isa = PBXGroup;
children = (
A9A7A4522F68448A00BB84C6 /* Cachet */,
A9A7A4512F68448500BB84C6 /* Giphy */,
);
path = Models;
sourceTree = "<group>";
};
A9A7A4512F68448500BB84C6 /* Giphy */ = {
isa = PBXGroup;
children = (
A9A7A43E2F6835F800BB84C6 /* Trending.swift */,
A9A7A4412F68360200BB84C6 /* GifObject.swift */,
A9A7A4442F68360900BB84C6 /* Pagination.swift */,
A9A7A4472F68361200BB84C6 /* Meta.swift */,
A9A7A44A2F6837A800BB84C6 /* GiphyUser.swift */,
A9A7A44D2F68383900BB84C6 /* GiphyImages.swift */,
);
path = Giphy;
sourceTree = "<group>";
};
A9A7A4522F68448A00BB84C6 /* Cachet */ = {
isa = PBXGroup;
children = (
A949B1FA2EA0518800215164 /* SlackResponse.swift */,
);
path = Cachet;
sourceTree = "<group>";
};
A9A7A4602F69597000BB84C6 /* Gifs */ = {
isa = PBXGroup;
children = (
);
path = Gifs;
sourceTree = "<group>";
};
A9B9A82D2EB2CCBE004C9245 /* StickerSlackTests */ = {
isa = PBXGroup;
children = (
@@ -548,19 +623,26 @@
A949B1F42EA04E8200215164 /* ContentView.swift in Sources */,
A9CD6C382EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
A949B1F52EA04E8200215164 /* StickerSlackApp.swift in Sources */,
A9A7A4452F68360900BB84C6 /* Pagination.swift in Sources */,
A9104C802EB4022500D160EA /* MSSticker.swift in Sources */,
A9A7A43F2F6835F800BB84C6 /* Trending.swift in Sources */,
A9A7A4422F68360200BB84C6 /* GifObject.swift in Sources */,
A957C1772ECD008E00EA3EE9 /* Bundle.swift in Sources */,
A957C17F2ECFAA1100EA3EE9 /* GifView.swift in Sources */,
A957C1742ECCE2CE00EA3EE9 /* SettingsView.swift in Sources */,
A9EB72392EB93FDB00658CEB /* EmojiCollectionView.swift in Sources */,
A9A7A44B2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
A9EB72392EB93FDB00658CEB /* EmojiTableView.swift in Sources */,
A955B3EE2EC22C4A00E1732D /* DownloadedView.swift in Sources */,
A949B1FB2EA0518800215164 /* SlackResponse.swift in Sources */,
A957C17A2ECE542D00EA3EE9 /* GifManager.swift in Sources */,
A9BDEADE2F82BC93002798DF /* NoStickersView.swift in Sources */,
A955B3F52EC22EE900E1732D /* SearchView.swift in Sources */,
A935437B2EB2A3C800BB80A4 /* FilterCategory.swift in Sources */,
A9CD6C352EDDE22800B7F421 /* EmojiPackView.swift in Sources */,
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
A9A7A44E2F68383900BB84C6 /* GiphyImages.swift in Sources */,
A9C172DD2EB8C9AC008A7885 /* Trie.swift in Sources */,
A955B3F22EC22E9700E1732D /* BrowseView.swift in Sources */,
A9A7A4692F6AA17C00BB84C6 /* Int.swift in Sources */,
A9EB724F2EB94A6B00658CEB /* TrieTestingView.swift in Sources */,
A924C3732EA9127200F20781 /* Emoji.swift in Sources */,
A9D15B8B2EB1142C00404792 /* EmojiPack.swift in Sources */,
@@ -569,12 +651,14 @@
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */,
A949B1F82EA04F2300215164 /* EmojiHoarder.swift in Sources */,
A9BBC5182EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A9EB72492EB948C400658CEB /* EmojiRow.swift in Sources */,
A9EB72492EB948C400658CEB /* StickerRow.swift in Sources */,
A921C2E22ED071C900E57B1A /* ListRow.swift in Sources */,
A9773C2F2EA54AF000F3B753 /* EmojiPreview.swift in Sources */,
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */,
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */,
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */,
A9BE30EC2F5AFE1E00A57668 /* StickerType.swift in Sources */,
A9A7A4482F68361200BB84C6 /* Meta.swift in Sources */,
A995D95C2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
A9BE30FE2F5FA47100A57668 /* Hoarder.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -588,11 +672,22 @@
A986A6C32EB6598100B6E0FA /* FilterCategory.swift in Sources */,
A9CD6C3A2EDDE6B500B7F421 /* EmojiPack.swift in Sources */,
A9EB724B2EB94A5700658CEB /* Trie.swift in Sources */,
A9BDEAE02F82BCB4002798DF /* NoStickersView.swift in Sources */,
A9BE30FA2F5B03F400A57668 /* Sticker.swift in Sources */,
A986A6CD2EB659E000B6E0FA /* MessagesViewController.swift in Sources */,
A9A7A4572F69568700BB84C6 /* GifHoarder.swift in Sources */,
A9BE30FF2F5FA78E00A57668 /* Hoarder.swift in Sources */,
A9A7A4582F69569100BB84C6 /* Trending.swift in Sources */,
A9A7A4592F69569100BB84C6 /* Pagination.swift in Sources */,
A9A7A45A2F69569100BB84C6 /* Meta.swift in Sources */,
A9A7A45B2F69569100BB84C6 /* GifObject.swift in Sources */,
A9A7A45C2F69569100BB84C6 /* GiphyImages.swift in Sources */,
A9A7A45D2F69569100BB84C6 /* GiphyUser.swift in Sources */,
A986A6CE2EB659E000B6E0FA /* StickerBrowserDataSource.swift in Sources */,
A957C17E2ECFAA1100EA3EE9 /* GifView.swift in Sources */,
A9A7A45F2F69570200BB84C6 /* Gif.swift in Sources */,
A9A7A45E2F6956B700BB84C6 /* StickerType.swift in Sources */,
A9D6A8212F7014AE00F198FB /* TestStructures.swift in Sources */,
A9BBC5192EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A986A6C42EB6598500B6E0FA /* SlackResponse.swift in Sources */,
A986A6C22EB6597600B6E0FA /* Emoji.swift in Sources */,
@@ -604,34 +699,45 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A9A7A4462F68360900BB84C6 /* Pagination.swift in Sources */,
A957C17C2ECE542D00EA3EE9 /* GifManager.swift in Sources */,
A9104C7F2EB4022500D160EA /* MSSticker.swift in Sources */,
A9B9A8302EB2CD0B004C9245 /* Emoji.swift in Sources */,
A955B3F12EC22E9700E1732D /* BrowseView.swift in Sources */,
A9A7A4402F6835F800BB84C6 /* Trending.swift in Sources */,
A9BE30F72F5B011A00A57668 /* StickerProtocol.swift in Sources */,
A9BE30FC2F5B03F400A57668 /* Sticker.swift in Sources */,
A9EC46AE2F6D9E5800E066E6 /* StickerType.swift in Sources */,
A9B9A82F2EB2CCED004C9245 /* EmojiHoarder.swift in Sources */,
A9CD6C3B2EDDE6B500B7F421 /* EmojiPack.swift in Sources */,
A921C2E32ED071C900E57B1A /* ListRow.swift in Sources */,
A9BE30EF2F5B004800A57668 /* GifHoarder.swift in Sources */,
A9EB724A2EB948E000658CEB /* EmojiCollectionView.swift in Sources */,
A9A7A4492F68361200BB84C6 /* Meta.swift in Sources */,
A9EB724A2EB948E000658CEB /* EmojiTableView.swift in Sources */,
A9EB724D2EB94A6B00658CEB /* TrieTestingView.swift in Sources */,
A9BBC51A2EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A995D95B2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
A955B3ED2EC22C4A00E1732D /* DownloadedView.swift in Sources */,
A9EC46AD2F6D9E4600E066E6 /* Hoarder.swift in Sources */,
A9A7A4682F6AA17C00BB84C6 /* Int.swift in Sources */,
A9C172DC2EB8C9AC008A7885 /* Trie.swift in Sources */,
A957C1752ECCE2CE00EA3EE9 /* SettingsView.swift in Sources */,
A9CD6C362EDDE22800B7F421 /* EmojiPackView.swift in Sources */,
A9EB72472EB948C400658CEB /* EmojiRow.swift in Sources */,
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */,
A9CD6C392EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
A955B3F62EC22EE900E1732D /* SearchView.swift in Sources */,
A9BDEADF2F82BC93002798DF /* NoStickersView.swift in Sources */,
A9B9A8322EB2CD29004C9245 /* SlackResponse.swift in Sources */,
A957C1782ECD008E00EA3EE9 /* Bundle.swift in Sources */,
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */,
A9B9A82E2EB2CCBE004C9245 /* StickerSlackTests.swift in Sources */,
A9A7A44F2F68383900BB84C6 /* GiphyImages.swift in Sources */,
A9BE30F32F5B004E00A57668 /* Gif.swift in Sources */,
A9A7A44C2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
A9B9A8312EB2CD14004C9245 /* FilterCategory.swift in Sources */,
A957C1802ECFAA1100EA3EE9 /* GifView.swift in Sources */,
A9EB72502EB94FAD00658CEB /* EmojiPreview.swift in Sources */,
A9EB72502EB94FAD00658CEB /* StickerPreview.swift in Sources */,
A9A7A4432F68360200BB84C6 /* GifObject.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -791,9 +897,11 @@
DEVELOPMENT_TEAM = 8JGND254B7;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_ON_DEMAND_RESOURCES = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = StickerSlack/Info.plist;
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
@@ -810,6 +918,8 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13;
MARKETING_VERSION = "$(VERSION)";
ON_DEMAND_RESOURCES_INITIAL_INSTALL_TAGS = "";
ON_DEMAND_RESOURCES_PREFETCH_ORDER = "";
PRODUCT_BUNDLE_IDENTIFIER = com.neon443.StickerSlack;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
@@ -822,7 +932,7 @@
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2,7";
XROS_DEPLOYMENT_TARGET = 1;
};
@@ -839,9 +949,11 @@
DEVELOPMENT_TEAM = 8JGND254B7;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_ON_DEMAND_RESOURCES = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = StickerSlack/Info.plist;
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
@@ -858,6 +970,8 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13;
MARKETING_VERSION = "$(VERSION)";
ON_DEMAND_RESOURCES_INITIAL_INSTALL_TAGS = "";
ON_DEMAND_RESOURCES_PREFETCH_ORDER = "";
PRODUCT_BUNDLE_IDENTIFIER = com.neon443.StickerSlack;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
@@ -870,7 +984,7 @@
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2,7";
XROS_DEPLOYMENT_TARGET = 1;
};
@@ -903,7 +1017,7 @@
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -935,7 +1049,7 @@
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
@@ -958,7 +1072,7 @@
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StickerSlack.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/StickerSlack";
};
@@ -981,7 +1095,7 @@
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StickerSlack.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/StickerSlack";
VALIDATE_PRODUCT = YES;
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2630"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A986A6AC2EB658DF00B6E0FA"
BuildableName = "StickerSlackiMessageApp.appex"
BlueprintName = "StickerSlackiMessageApp"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A949B1DE2EA04C0B00215164"
BuildableName = "StickerSlack.app"
BlueprintName = "StickerSlack"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A949B1DE2EA04C0B00215164"
BuildableName = "StickerSlack.app"
BlueprintName = "StickerSlack"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A949B1DE2EA04C0B00215164"
BuildableName = "StickerSlack.app"
BlueprintName = "StickerSlack"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -12,22 +12,15 @@ struct EmojiPack: Identifiable, Codable {
var name: String
var description: String
var emojiNames: [String]
}
static var test: EmojiPack {
extension EmojiPack {
static func new() -> EmojiPack {
EmojiPack(
id: UUID(),
name: "test pack",
description: "neon443's debug emoji pack",
emojiNames: [
"pf",
"heavysob",
"yay",
"skulk",
"loll",
"bleh",
"uhh",
"communist"
]
name: "New Pack",
description: "Emoji Pack at \(Date().formatted())",
emojiNames: []
)
}
}
@@ -0,0 +1,61 @@
//
// EmojiPackManager.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
struct EmojiPackManager: View {
@ObservedObject var hoarder: EmojiHoarder
var body: some View {
NavigationStack {
List {
ForEach($hoarder.emojiPacks) { $pack in
NavigationLink {
EmojiPackDetailView(hoarder: hoarder, pack: $pack)
} label: {
Text(pack.name)
}
.swipeActions(edge: .trailing) {
Button {
withAnimation {
hoarder.emojiPacks.removeAll { $0.id == pack.id }
}
} label: {
Label("Delete", systemImage: "trash")
}
.tint(.red)
}
}
NavigationLink {
EmojiPackDetailView(hoarder: hoarder, pack: .constant(.test))
} label: {
Text("test")
}
}
.navigationTitle("Emoji Packs")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem {
Button {
hoarder.emojiPacks.append(.new())
} label: {
Image(systemName: "plus")
}
.tint(.accentColor)
.modifier(glassButtonIfAv())
}
}
}
Divider()
}
}
#Preview {
EmojiPackManager(
hoarder: EmojiHoarder(localOnly: true, skipIndex: true)
)
}
+5 -14
View File
@@ -11,15 +11,11 @@ import SwiftUI
import Messages
import UniformTypeIdentifiers
@MainActor
struct Emoji: StickerProtocol {
var id: UUID
var id: String
var name: String
var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last ?? "png")"
return EmojiHoarder.container.absoluteString+id.uuidString+fileExtension
}
var typeGlyph: String = "slack.logo"
var remoteImageURL: URL
enum CodingKeys: String, CodingKey {
@@ -30,7 +26,7 @@ struct Emoji: StickerProtocol {
init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.id = try container.decode(UUID.self, forKey: .id)
self.id = try container.decode(String.self, forKey: .id)
self.name = try container.decode(String.self, forKey: .name)
self.remoteImageURL = try container.decode(URL.self, forKey: .remoteImageURL)
}
@@ -38,15 +34,10 @@ struct Emoji: StickerProtocol {
init(
name: String,
url: URL,
id: UUID = UUID()
id: String = UUID().uuidString
) {
self.id = id
self.name = name
self.remoteImageURL = url
}
static var test: Emoji = Emoji(
name: "a test slack emoji",
url: Bundle.main.url(forResource: "image", withExtension: "png")!
)
}
+69 -94
View File
@@ -11,20 +11,18 @@ import Combine
import UniformTypeIdentifiers
import Haptics
class EmojiHoarder: Hoarder, ObservableObject {
static let container: URL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.neon443.StickerSlack")!.appendingPathComponent("Library", conformingTo: .directory)
nonisolated static let localEmojiDB: URL = EmojiHoarder.container.appendingPathComponent("_localEmojiDB.json", conformingTo: .fileURL)
nonisolated static let localTrie: URL = EmojiHoarder.container.appendingPathComponent("_localTrie.json", conformingTo: .fileURL)
nonisolated static let localTrieDict: URL = EmojiHoarder.container.appendingPathComponent("_localTrieDict.json", conformingTo: .fileURL)
class EmojiHoarder: BaseHoarder {
nonisolated static let container: URL = library.appendingPathComponent("Emojis", conformingTo: .directory)
nonisolated static let localEmojiDB: URL = EmojiHoarder.library.appendingPathComponent("_____localEmojiDB.json", conformingTo: .fileURL)
nonisolated static let localTrieDict: URL = EmojiHoarder.library.appendingPathComponent("_____localTrieDict.json", conformingTo: .fileURL)
let endpoint: URL = URL(string: "https://cachet.dunkirk.sh/emojis")!
@Published var emojis: [Emoji] = []
@Published var emojiPacks: [EmojiPack] = []
@Published var emojiPacks: [EmojiPack] = [.test]
@Published var trie: Trie = Trie()
@Published var downloadedEmojis: Set<String> = []
@Published var downloadedEmojisArr: [String] = []
@Published var searchTerm: String = ""
// @Published var downloadedStickers: Set<String> = []
var downloadedStickersArr: [String] = []
@Published var letterStats: [EmojiHoarder.LetterStat] = []
@Published var letterStatsSorting: EmojiHoarder.LetterStatSorting = .init(by: .letter, ascending: true)
@@ -32,18 +30,29 @@ class EmojiHoarder: Hoarder, ObservableObject {
@Published var showWelcome: Bool = false
init(localOnly: Bool = false, skipIndex: Bool = false) {
super.init()
self.showWelcome = !UserDefaults.standard.bool(forKey: "showWelcome")
let localDB = loadLocalDB()
withAnimation(.snappy) { self.emojis = localDB }
if !FileManager.default.fileExists(atPath: EmojiHoarder.container.path()) {
try! FileManager.default.createDirectory(at: EmojiHoarder.container, withIntermediateDirectories: true)
}
self.emojis = loadLocalDB()
loadTrie()
if !skipIndex { buildTrie() }
startLoading(localOnly: localOnly, skipIndex: skipIndex)
}
func startLoading(localOnly: Bool, skipIndex: Bool) {
Task.detached {
if !skipIndex { await self.buildTrie() }
guard !localOnly else { return }
Task {
print("start loading remote db")
await self.loadRemoteDB()
print("end")
if !skipIndex {
await self.buildTrie()
}
@@ -53,9 +62,6 @@ class EmojiHoarder: Hoarder, ObservableObject {
@MainActor
func downloadAllStickers() async {
let start: Date = .now
downloadedEmojisArr = []
let cores = ProcessInfo.processInfo.processorCount-1
var ranges: [Range<Int>] = []
for i in 0..<cores {
@@ -72,11 +78,10 @@ class EmojiHoarder: Hoarder, ObservableObject {
for range in ranges {
group.addTask {
for i in range {
await MainActor.run { self.downloadedEmojisArr.append(self.emojis[i].name) }
guard !self.downloadedEmojis.contains(await self.emojis[i].name) else { continue }
Task { await self.download(emoji: self.emojis[i], skipStoreIndex: true) }
await MainActor.run { self.downloadedEmojis.insert(self.emojis[i].name) }
if i == self.emojis.count {
guard await !self.downloadedStickers.contains(await self.emojis[i].name) else { continue }
await self.download(emoji: self.emojis[i], skipStoreIndex: true)
let _ = await MainActor.run { self.downloadedStickers.insert(self.emojis[i].name) }
if await i == self.emojis.count {
Task { @MainActor in
self.storeDownloadedIndexes()
}
@@ -92,18 +97,13 @@ class EmojiHoarder: Hoarder, ObservableObject {
@MainActor
func deleteAllStickers() {
for i in emojis.indices {
guard downloadedEmojis.contains(emojis[i].name) else { continue }
guard downloadedStickers.contains(emojis[i].name) else { continue }
delete(emoji: emojis[i], skipStoreIndex: true)
}
downloadedEmojis = []
downloadedEmojisArr = []
downloadedStickers = []
storeDownloadedIndexes()
}
private func storeDB() {
try! encoder.encode(emojis).write(to: EmojiHoarder.localEmojiDB)
}
private func storeDB(data: Data) {
try! data.write(to: EmojiHoarder.localEmojiDB)
}
@@ -111,24 +111,16 @@ class EmojiHoarder: Hoarder, ObservableObject {
func resetAllIndexes() {
trie.root = TrieNode()
trie.dict = [:]
trie.wordlist = []
try? FileManager.default.removeItem(at: EmojiHoarder.localEmojiDB)
try? FileManager.default.removeItem(at: EmojiHoarder.localTrieDict)
downloadedEmojis = []
downloadedEmojisArr = []
downloadedStickers = []
UserDefaults.standard.removeObject(forKey: "downloadedEmojis")
UserDefaults.standard.removeObject(forKey: "downloadedEmojisArr")
searchTerm = ""
letterStats = []
}
//cl i disabled ts cos its quicker to rebuild it then to load ts
private func saveTrie() {
// return
// guard let data = try? encoder.encode(trie.root) else {
// fatalError("failed to encode trie")
// }
// try! data.write(to: EmojiHoarder.localTrie)
guard let dataDict = try? encoder.encode(trie.dict) else {
fatalError("failed to encode trie dict")
}
@@ -136,15 +128,7 @@ class EmojiHoarder: Hoarder, ObservableObject {
}
private func loadTrie() {
// return
// guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrie.path) else { return }
// guard let data = try? Data(contentsOf: EmojiHoarder.localTrie) else { return }
// guard let decoded = try? decoder.decode(TrieNode.self, from: data) else {
// fatalError("failed to decode trie")
// }
// self.trie.root = decoded
guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrieDict.path) else { return }
guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrieDict.path()) else { return }
guard let dataDict = try? Data(contentsOf: EmojiHoarder.localTrieDict) else { return }
guard let decodedDict = try? decoder.decode([String:Emoji].self, from: dataDict) else {
fatalError("failed to decode dict")
@@ -152,45 +136,34 @@ class EmojiHoarder: Hoarder, ObservableObject {
self.trie.dict = decodedDict
}
func buildTrie() {
nonisolated
func buildTrie() async {
let start = Date().timeIntervalSince1970
for emoji in emojis {
trie.insert(word: emoji.name)
var wordlist = await trie.wordlist
var dict = await trie.dict
for emoji in await emojis {
// trie.insert(word: emoji.name)
wordlist.insert(emoji.name)
dict[emoji.name] = emoji
}
buildTrieDict()
saveTrie()
generateLetterStats()
await trie.wordlist = wordlist
await trie.dict = dict
await buildDownloadedStickers()
await saveTrie()
print("done building trie in", Date().timeIntervalSince1970-start)
}
private func buildTrieDict() {
for emoji in emojis {
trie.dict[emoji.name] = emoji
}
buildDownloadedEmojis()
}
private func buildDownloadedEmojis() {
downloadedEmojis = []
downloadedEmojisArr = []
downloadedEmojisArr = (try? decoder.decode([String].self, from: UserDefaults.standard.data(forKey: "downloadedEmojisArr") ?? Data())) ?? []
downloadedEmojis = (try? decoder.decode(Set<String>.self, from: UserDefaults.standard.data(forKey: "downloadedEmojis") ?? Data())) ?? []
if downloadedEmojis.isEmpty || downloadedEmojisArr.isEmpty {
for emoji in emojis {
guard emoji.isLocal else { continue }
downloadedEmojis.insert(emoji.name)
downloadedEmojisArr.append(emoji.name)
}
}
override func buildDownloadedStickers(for stickerType: String = "Emojis") async {
await super.buildDownloadedStickers(for: stickerType)
downloadedStickersArr = Array(downloadedStickers).sorted()
}
func storeDownloadedIndexes() {
UserDefaults.standard.set(try! encoder.encode(downloadedEmojis), forKey: "downloadedEmojis")
UserDefaults.standard.set(try! encoder.encode(downloadedEmojisArr), forKey: "downloadedEmojisArr")
UserDefaults.standard.set(try! encoder.encode(downloadedStickers), forKey: "downloadedEmojis")
}
nonisolated
// nonisolated
private func loadLocalDB() -> [Emoji] {
if let localEmojiDB = try? Data(contentsOf: EmojiHoarder.localEmojiDB) {
let decoded = try! decoder.decode([Emoji].self, from: localEmojiDB)
@@ -199,19 +172,21 @@ class EmojiHoarder: Hoarder, ObservableObject {
return []
}
nonisolated
private func loadRemoteDB() async {
async let fetched = self.fetchRemoteDB()
if let fetched = await fetched {
await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched }
}
}
}
nonisolated
private func fetchRemoteDB() async -> [Emoji]? {
do {
async let (data, _) = try URLSession.shared.data(from: endpoint)
decoder.dateDecodingStrategy = .iso8601
let decoded: [SlackResponse] = try decoder.decode([SlackResponse].self, from: await data)
let decoded: [SlackResponse] = try await decoder.decode([SlackResponse].self, from: await data)
try await storeDB(data: await data)
return await SlackResponse.toEmojis(from: decoded)
} catch {
@@ -225,41 +200,41 @@ class EmojiHoarder: Hoarder, ObservableObject {
let local = loadLocalDB()
await MainActor.run {
emojis = local
buildTrie()
}
await buildTrie()
return
}
await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched }
buildTrie()
}
await buildTrie()
}
nonisolated func download(emoji: Emoji, skipStoreIndex: Bool = false) async {
try? await emoji.downloadImage()
override nonisolated func download(emoji: any StickerProtocol, skipStoreIndex: Bool = false) async {
await super.download(emoji: emoji, skipStoreIndex: skipStoreIndex)
// try? await emoji.downloadImage()
await MainActor.run {
if !skipStoreIndex {
withAnimation(.snappy) {
self.downloadedEmojis.insert(emoji.name)
self.downloadedEmojisArr.append(emoji.name)
let _ = withAnimation(.snappy) {
self.downloadedStickers.insert(emoji.name)
self.downloadedStickersArr.append(emoji.name)
}
self.storeDownloadedIndexes()
}
if !skipStoreIndex { Haptic.success.trigger() }
}
}
@MainActor
func delete(emoji: Emoji, skipStoreIndex: Bool = false) {
emoji.deleteImage()
override func delete(emoji: any StickerProtocol, skipStoreIndex: Bool = false) {
super.delete(emoji: emoji, skipStoreIndex: skipStoreIndex)
// emoji.deleteImage()
if !skipStoreIndex {
withAnimation(.snappy) {
downloadedEmojis.remove(emoji.name)
downloadedEmojisArr.removeAll(where: { $0 == emoji.name })
let _ = withAnimation(.snappy) {
downloadedStickers.remove(emoji.name)
downloadedStickersArr.removeAll(where: { $0 == emoji.name })
}
storeDownloadedIndexes()
}
if !skipStoreIndex { Haptic.heavy.trigger() }
}
func setShowWelcome(to newValue: Bool) {
+2 -3
View File
@@ -12,9 +12,8 @@ class GifManager {
//from clock-run, 12 frames one second
static let defaultDuration: Double = 0.083333333333333329
static func gifFrom(url: URL) async -> [(frame: CGImage, showFor: Double)] {
guard let (data, _) = try? await URLSession.shared.data(from: url) else { return [] }
static func gifFrom(url: URL) async throws -> [(frame: CGImage, showFor: Double)] {
let (data, _) = try await URLSession.shared.data(from: url)
return gifFrom(data: data)
}
+52 -18
View File
@@ -16,25 +16,24 @@ struct GifView: View {
@State var currentI: Int = 0
@State var timer: Timer?
@State var error: Error?
@State var failed: Bool = false
var body: some View {
// /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Hello, world!@*/Text("Hello, world!")/*@END_MENU_TOKEN@*/
TimelineView(.animation) { tl in
VStack {
if currentI < gif.count {
let image = Image(uiImage: .init(cgImage: gif[currentI].frame))
image
.resizable().scaledToFit()
}
}
}
.onDisappear {
timer?.invalidate()
timer = nil
}
.task {
func run() async {
do {
if gif.isEmpty {
self.gif = await GifManager.gifFrom(url: url)
let frames = try await GifManager.gifFrom(url: url)
withAnimation(.spring) {
self.gif = frames
}
}
} catch {
self.error = error
}
guard self.error == nil && !self.gif.isEmpty else {
print("falied loading or empty gif")
withAnimation(.spring) { self.failed = true }
return
}
guard gif.count > 0 else { return }
@@ -52,11 +51,46 @@ struct GifView: View {
}
RunLoop.main.add(timer!, forMode: .common)
}
var body: some View {
// /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Hello, world!@*/Text("Hello, world!")/*@END_MENU_TOKEN@*/
TimelineView(.animation) { tl in
VStack {
if gif.isEmpty && error == nil {
ProgressView()
.controlSize(.large)
.frame(maxWidth: .infinity, maxHeight: .infinity)
} else if failed {
Image(systemName: "xmark")
.resizable().scaledToFit()
.padding()
.padding()
.background(.red)
} else {
if currentI < gif.count {
let image = Image(uiImage: .init(cgImage: gif[currentI].frame))
image
.resizable().scaledToFit()
}
}
}
.transition(.scale)
}
.onDisappear {
timer?.invalidate()
timer = nil
}
.task {
await run()
}
}
}
#Preview {
GifView(
url: URL(string: "https://emoji.slack-edge.com/T0266FRGM/clockrun/ec33c513d30a6ed8.gif")!
url: URL(string: "https://emoji.slack-edge.com/T09V59WQY1E/clockrun/f6641714fa6748ac.gif")!
)
GifView(url: Emoji.test.remoteImageURL)
GifView(url: Emoji.testLongName.localImageURL)
GifView(url: Gif.test.remoteImageURL)
}
+14
View File
@@ -0,0 +1,14 @@
//
// Int.swift
// StickerSlack
//
// Created by neon443 on 18/03/2026.
//
import Foundation
extension Int {
var plural: String {
return self == 1 ? "" : "s"
}
}
@@ -0,0 +1,144 @@
//
// TestStructures.swift
// StickerSlack
//
// Created by neon443 on 21/03/2026.
//
import Foundation
@MainActor
extension Emoji {
static var test: Emoji = Emoji(
name: "a test slack emoji",
url: Bundle.main.url(forResource: "image", withExtension: "png")!
)
static var testLongName: Emoji = Emoji(
name: "ForEach<Array<String>, String, EmojiRow>: the ID jarjarbinks occurs multiple times within the collection, this will give undefined results!",
url: Bundle.main.url(forResource: "image", withExtension: "png")!
)
}
@MainActor
extension Gif {
static var test: Gif = GifObject(
type: "gif",
id: "XAeEGyCbp8UehBPkSA",
slug: "know-does-he-XAeEGyCbp8UehBPkSA",
url: "https://giphy.com/gifs/know-does-he-XAeEGyCbp8UehBPkSA",
bitly_url: "https://gph.is/g/4AKMQlV",
embed_url: "https://giphy.com/embed/XAeEGyCbp8UehBPkSA",
username: "Ommarbisafool",
source: "",
rating: "g",
source_tld: "",
source_post_url: "",
import_datetime: "2025-11-06 15:48:02",
images: GiphyImages(
fixed_height: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200.gif&ct=g",
width: "270",
height: "200",
size: "74672",
mp4: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200.mp4?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200.mp4&ct=g",
mp4_size: "11433",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200.webp&ct=g",
webp_size: "10962"
),
fixed_height_still: nil,
fixed_height_downsampled: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200_d.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200_d.gif&ct=g",
width: "270",
height: "200",
size: "51332",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200_d.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200_d.webp&ct=g",
webp_size: "44850"
),
fixed_height_small: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100.gif&ct=g",
width: "134",
height: "100",
size: "16461",
mp4: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100.mp4?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100.mp4&ct=g",
mp4_size: "5340",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100.webp&ct=g",
webp_size: "3142"
),
fixed_height_small_still: nil,
fixed_width: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200w.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200w.gif&ct=g",
width: "200",
height: "148",
size: "42579",
mp4: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200w.mp4?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200w.mp4&ct=g",
mp4_size: "8158",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200w.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200w.webp&ct=g",
webp_size: "4458"
),
fixed_width_still: nil,
fixed_width_downsampled: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200w_d.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200w_d.gif&ct=g",
width: "200",
height: "148",
size: "23483",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/200w_d.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=200w_d.webp&ct=g",
webp_size: "22586"
),
fixed_width_small: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100w.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100w.gif&ct=g",
width: "100",
height: "74",
size: "8150",
mp4: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100w.mp4?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100w.mp4&ct=g",
mp4_size: "4103",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/100w.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=100w.webp&ct=g",
webp_size: "1814"
),
fixed_width_small_still: nil,
downsized: nil,
downsized_still: nil,
downsized_large: nil,
downsized_medium: nil,
downsized_small: nil,
original: .init(
url: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/giphy.gif?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=giphy.gif&ct=g",
width: "480",
height: "356",
size: "245829",
mp4: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/giphy.mp4?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=giphy.mp4&ct=g",
mp4_size: "23259",
webp: "https://media2.giphy.com/media/XAeEGyCbp8UehBPkSA/giphy.webp?cid=acd65332fv0sn3gzwa5vi4jw834l2hhwmfm6d90329p1590n&ep=v1_gifs_search&rid=giphy.webp&ct=g",
webp_size: "26984"
),
original_still: nil,
// looping: nil,
preview: nil,
preview_gif: nil
),
title: "Know GIF",
alt_text: "",
is_low_contrast: false
).toGif
}
@MainActor
extension EmojiPack {
static var test: EmojiPack {
EmojiPack(
id: UUID(),
name: "test pack",
description: "neon443's debug emoji pack",
emojiNames: [
"pf",
"heavysob",
"yay",
"skulk",
"loll",
"bleh",
"uhh",
"communist"
]
)
}
}
+8 -33
View File
@@ -9,18 +9,15 @@ import Foundation
import SwiftUI
import UniformTypeIdentifiers
@MainActor
struct Gif: StickerProtocol {
var id: UUID
var id: String
var name: String
var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last ?? "png")"
return EmojiHoarder.container.appendingPathComponent("gifs", conformingTo: .directory).absoluteString+id.uuidString+fileExtension
}
var typeGlyph: String = "giphy.logo"
var remoteImageURL: URL
var giphyImages: GiphyImages?
// enum CodingKeys: String, CodingKey {
//
// }
@@ -28,34 +25,12 @@ struct Gif: StickerProtocol {
init(
name: String,
url: URL,
id: UUID = UUID()
giphyImages: GiphyImages?,
id: String = UUID().uuidString
) {
self.id = id
self.name = name
self.giphyImages = giphyImages
self.remoteImageURL = url
}
func downloadImage() async throws {
if let data = try? Data(contentsOf: localImageURL),
let _ = UIImage(data: data) {
return
}
var (data, _) = try await URLSession.shared.data(from: remoteImageURL)
if let uiImage = UIImage(data: data),
let cgImage = uiImage.cgImage,
!self.localImageURLString.contains(".gif"),
cgImage.width < 300 || cgImage.height < 300 {
data = resize(image: uiImage, to: CGSize(width: 300, height: 300)).pngData()!
}
try! data.write(to: localImageURL)
return
}
static var test: Gif = Gif(
name: "doesheknow",
url: URL(string: "https://media1.tenor.com/m/FN9udnZmQU8AAAAd/does-he-know-batman.gif")!
)
}
+46 -18
View File
@@ -10,35 +10,63 @@ import SwiftUI
import UniformTypeIdentifiers
import Combine
class GifHoarder: Hoarder, ObservableObject {
static let container: URL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.neon443.StickerSlack")!.appendingPathComponent("Library", conformingTo: .directory)
class GifHoarder: BaseHoarder {
nonisolated static let container: URL = library.appendingPathComponent("Gifs", conformingTo: .directory)
var endpoint: URL = URL(string: "api.giphy.com/v1/gifs/trending")!
var endpointSearch: URL = URL(string: "api.giphy.com/v1/gifs/search")!
static var apiKey: String = "a2mFsDTpX5blodY8ltkG6Q1xy5NgFSbc"
var endpoint: URL = URL(string: "https://api.giphy.com/v1/gifs/trending")!
var endpointSearch: URL = URL(string: "https://api.giphy.com/v1/gifs/search")!
@Published var searchTerm: String = ""
@Published var trendingGifs: [Gif] = []
// @Published override var downloadedStickers: Set<String> = []
func download(emoji: Emoji, skipStoreIndex: Bool) {
// <#code#>
init(localOnly: Bool = false) {
super.init()
if !FileManager.default.fileExists(atPath: GifHoarder.container.path()) {
try! FileManager.default.createDirectory(at: GifHoarder.container, withIntermediateDirectories: true)
}
startLoadingTrending()
}
func delete(emoji: Emoji, skipStoreIndex: Bool) {
// <#code#>
}
func startLoadingTrending() {
var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)
components?.queryItems = [
URLQueryItem(name: "api_key", value: GifHoarder.apiKey),
URLQueryItem(name: "limit", value: "500")
]
guard let finalURL = components?.url else { fatalError("invalid URL for request for trending gifs") }
init() {
var request = URLRequest(url: endpoint)
request.setValue("", forHTTPHeaderField: "api_key")
request.setValue("100", forHTTPHeaderField: "limit")
Task {
do {
async let (data, _) = try URLSession.shared.data(from: endpoint)
// let decoded: [String: Any] = decoder.decode([String: Any].self, from: await data)
dump(await data)
print()
let (data, _) = try await URLSession.shared.data(from: finalURL)
let object: Trending = try JSONDecoder().decode(Trending.self, from: data)
guard object.meta.status == 200 else {
fatalError("non ok status code")
}
trendingGifs = object.data.map { $0.toGif }
} catch {
print(error)
}
await buildDownloadedStickers()
}
}
override func download(emoji: any StickerProtocol, skipStoreIndex: Bool = false) async {
await super.download(emoji: emoji, skipStoreIndex: skipStoreIndex)
let _ = withAnimation(.snappy) {
downloadedStickers.insert(emoji.name)
}
}
override func delete(emoji: any StickerProtocol, skipStoreIndex: Bool = false) {
super.delete(emoji: emoji, skipStoreIndex: skipStoreIndex)
let _ = withAnimation(.snappy) {
downloadedStickers.remove(emoji.name)
}
}
override func buildDownloadedStickers(for stickerType: String = "Gifs") async {
await super.buildDownloadedStickers(for: stickerType)
}
}
+51 -9
View File
@@ -9,19 +9,61 @@ import Foundation
import SwiftUI
import Combine
import UniformTypeIdentifiers
import Haptics
protocol Hoarder {
static var container: URL { get }
var endpoint: URL { get }
protocol Hoarder: ObservableObject {
static var library: URL { get }
var downloadedStickers: Set<String> { get set }
var encoder: JSONEncoder { get }
var decoder: JSONDecoder { get }
var searchTerm: String { get set }
func download(emoji: Emoji, skipStoreIndex: Bool) async
func delete(emoji: Emoji, skipStoreIndex: Bool)
func download(emoji: any StickerProtocol, skipStoreIndex: Bool) async
func delete(emoji: any StickerProtocol, skipStoreIndex: Bool)
}
extension Hoarder {
var encoder: JSONEncoder { JSONEncoder() }
var decoder: JSONDecoder { JSONDecoder() }
class BaseHoarder: Hoarder {
nonisolated static let library: URL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.neon443.StickerSlack")!.appendingPathComponent("Library", conformingTo: .directory)
@Published var downloadedStickers: Set<String> = []
var encoder: JSONEncoder = JSONEncoder()
var decoder: JSONDecoder = JSONDecoder()
func download(emoji: any StickerProtocol, skipStoreIndex: Bool) async {
try? await emoji.downloadImage()
await MainActor.run {
Haptic.success.trigger()
}
}
func delete(emoji: any StickerProtocol, skipStoreIndex: Bool) {
emoji.deleteImage()
}
nonisolated func buildDownloadedStickers(for stickerType: String) async {
if let data = UserDefaults.standard.data(forKey: "downloaded\(stickerType)"),
let decoded = try? await decoder.decode(Set<String>.self, from: data) {
await MainActor.run {
downloadedStickers = decoded
}
} else {
var newSet: Set<String> = []
let url = BaseHoarder.library.appendingPathComponent(stickerType, conformingTo: .directory)
if let files = try? FileManager.default.contentsOfDirectory(atPath: url.path()) {
for file in files {
let name = String(file.split(separator: ".")[0])
newSet.insert(name)
}
}
newSet.remove("DS_Store")
let immutable = newSet
await MainActor.run {
self.downloadedStickers = []
self.downloadedStickers = immutable
}
return
}
}
init() { }
}
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLName</key>
<string>com.neon443.stickerslack</string>
<key>CFBundleURLSchemes</key>
<array>
<string>stickerslack</string>
</array>
</dict>
</array>
</dict>
</plist>
@@ -7,9 +7,10 @@
import Foundation
@MainActor
struct SlackResponse: Identifiable, Codable {
var type: String
var id: UUID
var id: String
var name: String
var imageUrl: String
var alias: String?
+42
View File
@@ -0,0 +1,42 @@
//
// GifObject.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
@MainActor
struct GifObject: Codable, Identifiable {
var type: String
var id: String
var slug: String
var url: String
var bitly_url: String
var embed_url: String
var username: String
var source: String
var rating: String
var content_url: String?
var user: GiphyUser?
var source_tld: String
var source_post_url: String
var update_datetime: String?
var create_datetime: String?
var import_datetime: String
var trending_datetime: String?
var images: GiphyImages
var title: String
var alt_text: String
var is_low_contrast: Bool
var toGif: Gif {
return Gif(
name: self.title,
url: URL(string: self.images.fixed_width.url)!,
giphyImages: images,
id: self.id
)
}
}
@@ -0,0 +1,95 @@
//
// GiphyImages.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
struct GiphyImages: Codable, Equatable, Hashable {
//fixed height of 200px
var fixed_height: motion
//fixed height of 200px still
var fixed_height_still: still?
//fixed height 200px with 6 frames
var fixed_height_downsampled: downsampled
//fixed height of 100px
var fixed_height_small: motion
//fixed height of 100px still
var fixed_height_small_still: still?
//fixed width of 200px
var fixed_width: motion
//fixed width of 200px
var fixed_width_still: still?
//fixed width 200px with 6 frames
var fixed_width_downsampled: downsampled
//fixed width of 100px
var fixed_width_small: motion
//fixed width of 100px still
var fixed_width_small_still: still?
//under 2mb
var downsized: downsized?
//downsized still
var downsized_still: still?
//under 8mb
var downsized_large: downsized?
//under 5mb
var downsized_medium: downsized?
//under 200kb
var downsized_small: video?
var original: motion
var original_still: still?
//15s looping version
// var looping: looping?
//mp4 format 50kb, first 1-2s of the gif
var preview: video?
//50kb first 1-2s of the gif
var preview_gif: still?
struct motion: Codable, Equatable, Hashable {
var url: String
var width: String
var height: String
var size: String
var mp4: String
var mp4_size: String
var webp: String
var webp_size: String
}
struct still: Codable, Equatable, Hashable {
var url: String
var width: String
var height: String
}
struct downsampled: Codable, Equatable, Hashable {
var url: String
var width: String
var height: String
var size: String
var webp: String
var webp_size: String
}
struct downsized: Codable, Equatable, Hashable {
var url: String
var width: String
var height: String
var size: String
}
struct looping: Codable, Equatable, Hashable {
var mp4: String
}
struct video: Codable, Equatable, Hashable {
var mp4: String
var mp4_size: String
var width: String
var height: String
}
}
+16
View File
@@ -0,0 +1,16 @@
//
// GiphyUser.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
struct GiphyUser: Codable {
var avatar_url: String
var banner_url: String
var profile_url: String
var username: String
var display_name: String
}
+19
View File
@@ -0,0 +1,19 @@
//
// Meta.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
struct Meta: Codable, Identifiable {
var msg: String
var status: Int
var response_id: String
var id: String { response_id }
static var example: Meta {
Meta(msg: "OK", status: 200, response_id: "57eea03c72381f86e05c35d2")
}
}
@@ -0,0 +1,18 @@
//
// Pagination.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
struct Pagination: Codable {
var offset: Int
var total_count: Int?
var count: Int
static var example: Pagination {
Pagination(offset: 2591, total_count: 250, count: 25)
}
}
+14
View File
@@ -0,0 +1,14 @@
//
// Trending.swift
// StickerSlack
//
// Created by neon443 on 16/03/2026.
//
import Foundation
struct Trending: Codable {
var data: [GifObject]
var pagination: Pagination
var meta: Meta
}
+3 -3
View File
@@ -9,7 +9,7 @@ import Foundation
enum StickerType: CustomStringConvertible, CaseIterable, Identifiable {
case slackEmoji
case giphyGif
case giphyGifs
var id: String { self.description }
@@ -17,8 +17,8 @@ enum StickerType: CustomStringConvertible, CaseIterable, Identifiable {
switch self {
case .slackEmoji:
return "Slack Emoji"
case .giphyGif:
return "Giphy GIF"
case .giphyGifs:
return "Giphy GIFs"
}
}
}
+34 -24
View File
@@ -8,34 +8,23 @@
import Foundation
import Messages
nonisolated
extension StickerProtocol {
var localImageURL: URL {
return URL(string: localImageURLString)!
nonisolated var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last ?? "png")"
return GifHoarder.container.path()+name+"."+id+fileExtension
}
var isLocal: Bool {
return (try? Data(contentsOf: localImageURL)) != nil
}
var msSticker: MSSticker? {
guard isLocal else {
return nil
}
return try? MSSticker(contentsOfFileURL: localImageURL, localizedDescription: name)
}
var image: UIImage? {
if let data = try? Data(contentsOf: localImageURL),
let img = UIImage(data: data) {
return img
} else {
return nil
}
nonisolated var localImageURL: URL {
return URL(filePath: localImageURLString)
}
nonisolated
func downloadImage() async throws {
if let data = try? await Data(contentsOf: localImageURL),
if let data = try? Data(contentsOf: localImageURL),
let _ = UIImage(data: data) {
return
}
@@ -44,19 +33,23 @@ extension StickerProtocol {
if let uiImage = UIImage(data: data),
let cgImage = uiImage.cgImage,
await !self.localImageURLString.contains(".gif"),
!self.localImageURLString.contains(".gif"),
cgImage.width < 300 || cgImage.height < 300 {
data = await resize(image: uiImage, to: CGSize(width: 300, height: 300)).pngData()!
data = resize(image: uiImage, to: CGSize(width: 300, height: 300)).pngData()!
}
try! await data.write(to: localImageURL)
try! data.write(to: localImageURL)
return
}
nonisolated
func deleteImage() {
try? FileManager.default.removeItem(at: localImageURL)
return
}
}
@MainActor
extension StickerProtocol {
func resize(image: UIImage, to targetSize: CGSize) -> UIImage {
let oldSize = image.size
let ratio: (x: CGFloat, y: CGFloat)
@@ -87,4 +80,21 @@ extension StickerProtocol {
image.draw(in: rect)
return UIGraphicsGetImageFromCurrentImageContext() ?? UIImage()
}
/*nonisolated*/ var msSticker: MSSticker? {
guard FileManager.default.fileExists(atPath: localImageURLString) else {
return nil
}
return try? MSSticker(contentsOfFileURL: localImageURL, localizedDescription: name)
}
/*nonisolated*/ var image: UIImage? {
if FileManager.default.fileExists(atPath: localImageURLString),
let data = try? Data(contentsOf: localImageURL),
let img = UIImage(data: data) {
return img
} else {
return nil
}
}
}
+13 -12
View File
@@ -8,21 +8,22 @@
import Foundation
import Messages
nonisolated
protocol StickerProtocol: Codable, Identifiable, Hashable {
var id: UUID { get set }
var name: String { get set }
nonisolated var id: String { get set }
nonisolated var name: String { get set }
var localImageURL: URL { get }
var localImageURLString: String { get }
var remoteImageURL: URL { get set }
nonisolated var typeGlyph: String { get }
var isLocal: Bool { get }
nonisolated var localImageURL: URL { get }
nonisolated var localImageURLString: String { get }
nonisolated var remoteImageURL: URL { get set }
var msSticker: MSSticker? { get }
var image: UIImage? { get }
nonisolated var msSticker: MSSticker? { get }
nonisolated var image: UIImage? { get }
func downloadImage() async throws
func deleteImage()
func resize(image: UIImage, to targetSize: CGSize) -> UIImage
static var test: Self { get }
nonisolated func downloadImage() async throws
nonisolated func deleteImage()
nonisolated func resize(image: UIImage, to targetSize: CGSize) -> UIImage
nonisolated static var test: Self { get }
}
+24 -9
View File
@@ -9,28 +9,43 @@ import SwiftUI
struct BrowseView: View {
@State private var browseWhat: StickerType = .slackEmoji
@ObservedObject var hoarder: EmojiHoarder
@ObservedObject var emojiHoarder: EmojiHoarder
@ObservedObject var gifHoarder: GifHoarder
var body: some View {
List {
VStack {
Picker("", selection: $browseWhat) {
ForEach(StickerType.allCases, id: \.self) { type in
Text(type.description)
ForEach(StickerType.allCases) { type in
Text(type.description).tag(type)
}
}
.pickerStyle(.segmented)
.padding(.horizontal)
Group {
switch browseWhat {
case .slackEmoji:
ForEach(hoarder.emojis, id: \.self) { emoji in
EmojiRow(hoarder: hoarder, emoji: emoji)
EmojiTableView(
hoarder: emojiHoarder,
items: emojiHoarder.emojis.map { $0.name }
)
.ignoresSafeArea(.container, edges: .bottom)
.id(emojiHoarder.emojis)
case .giphyGifs:
ScrollView {
ForEach(gifHoarder.trendingGifs) { gif in
StickerRow(hoarder: gifHoarder, sticker: gif)
.listRowSeparator(.hidden)
}
}
}
case .giphyGif:
Text("hi")
}
}
}
}
#Preview {
BrowseView(hoarder: EmojiHoarder(localOnly: true))
BrowseView(
emojiHoarder: EmojiHoarder(localOnly: true),
gifHoarder: GifHoarder(localOnly: true)
)
}
+20 -12
View File
@@ -9,7 +9,7 @@ import SwiftUI
import Haptics
struct ContentView: View {
@ObservedObject var hoarder: EmojiHoarder = EmojiHoarder()
@ObservedObject var emojiHoarder: EmojiHoarder = EmojiHoarder()
@ObservedObject var gifhoarder: GifHoarder = GifHoarder()
var body: some View {
@@ -17,44 +17,52 @@ struct ContentView: View {
if #available(iOS 18, *) {
TabView {
Tab("Browse", systemImage: "square.grid.2x2.fill") {
BrowseView(hoarder: hoarder)
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
}
Tab("Packs", systemImage: "square.stack.3d.up.fill") {
EmojiPackManager(hoarder: emojiHoarder)
}
Tab("Downloaded", systemImage: "arrow.down.circle.fill") {
DownloadedView(hoarder: hoarder)
DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
}
Tab("Settings", systemImage: "gear") {
SettingsView(hoarder: hoarder)
SettingsView(hoarder: emojiHoarder)
}
Tab(role: .search) {
SearchView(hoarder: hoarder)
SearchView(hoarder: emojiHoarder)
}
}
} else {
TabView {
BrowseView(hoarder: hoarder)
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
.tabItem {
Label("Browse", systemImage: "square.grid.2x2.fill")
}
DownloadedView(hoarder: hoarder)
EmojiPackManager(hoarder: emojiHoarder)
.tabItem {
Label("Packs", systemImage: "square.stack.3d.up.fill")
}
DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
.tabItem {
Label("Downloaded", systemImage: "arrow.down.circle.fill")
}
SettingsView(hoarder: hoarder)
SettingsView(hoarder: emojiHoarder)
.tabItem {
Label("Setings", systemImage: "gear")
}
SearchView(hoarder: hoarder)
SearchView(hoarder: emojiHoarder)
.tabItem {
Label("Search", systemImage: "magnifyingglass")
}
}
}
}
.sheet(isPresented: $hoarder.showWelcome) {
hoarder.setShowWelcome(to: false)
.sheet(isPresented: $emojiHoarder.showWelcome) {
emojiHoarder.setShowWelcome(to: false)
} content: {
WelcomeView()
}
@@ -63,5 +71,5 @@ struct ContentView: View {
}
#Preview {
ContentView(hoarder: EmojiHoarder(localOnly: true))
ContentView(emojiHoarder: EmojiHoarder(localOnly: false))
}
+22 -6
View File
@@ -8,10 +8,12 @@
import SwiftUI
struct DownloadedView: View {
@ObservedObject var hoarder: EmojiHoarder
@ObservedObject var emojiHoarder: EmojiHoarder
@ObservedObject var gifHoarder: GifHoarder
@Environment(\.colorScheme) var colorScheme
var isDark: Bool { colorScheme == .dark }
@State var browseWhat: StickerType = .slackEmoji
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 5 }
@@ -24,17 +26,28 @@ struct DownloadedView: View {
}
var body: some View {
Picker("", selection: $browseWhat) {
ForEach(StickerType.allCases) { type in
Text(type.description)
.tag(type)
}
}
.pickerStyle(.segmented)
if emojiHoarder.downloadedStickers.isEmpty && gifHoarder.downloadedStickers.isEmpty {
NoStickersView()
.padding()
}
GeometryReader { geo in
ScrollView {
let columns: Int = max(1, Int((geo.size.width - 2*spacing) / (minColWidth + spacing)))
let layout = Array(repeating: col, count: columns)
LazyVGrid(columns: layout, spacing: spacing) {
ForEach(hoarder.downloadedEmojisArr, id: \.self) { name in
if let emoji = hoarder.trie.dict[name] {
ForEach(emojiHoarder.downloadedStickersArr, id: \.self) { name in
if let emoji = emojiHoarder.trie.dict[name] {
ZStack {
Rectangle()
.foregroundStyle(isDark ? .black : .white)
EmojiPreview(hoarder: hoarder, emoji: emoji)
StickerPreview(sticker: emoji)
RoundedRectangle(cornerRadius: 15)
.stroke(.gray, lineWidth: 1)
}
@@ -52,7 +65,7 @@ struct DownloadedView: View {
ShareLink("Share", item: emoji.remoteImageURL, subject: nil, message: nil)
Divider()
Button("Delete", systemImage: "trash.fill", role: .destructive) {
hoarder.delete(emoji: emoji)
emojiHoarder.delete(emoji: emoji)
}
}
}
@@ -65,5 +78,8 @@ struct DownloadedView: View {
}
#Preview {
DownloadedView(hoarder: EmojiHoarder(localOnly: true))
DownloadedView(
emojiHoarder: EmojiHoarder(localOnly: true),
gifHoarder: GifHoarder(localOnly: true)
)
}
@@ -0,0 +1,153 @@
//
// EmojiPackView.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
struct EmojiPackDetailView: View {
@ObservedObject var hoarder: EmojiHoarder
@Binding var pack: EmojiPack
@State var edit: Bool = false
@State var editName: Bool = false
@State var editDescription: Bool = false
@State var showAdder: Bool = false
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 10 }
var col: GridItem {
GridItem(
.flexible(minimum: minColWidth, maximum: 100),
spacing: spacing,
alignment: .center
)
}
@Environment(\.dismiss) var dismiss
var body: some View {
NavigationStack {
GeometryReader { geo in
VStack {
Button() {
editName.toggle()
} label: {
Text(pack.name)
.bold()
.foregroundStyle(edit ? .blue : .primary)
.font(.title)
}
.disabled(!edit)
.alert("Edit Name", isPresented: $editName) {
TextField("", text: $pack.name)
}
Button() {
editDescription.toggle()
} label: {
Text(pack.description)
.foregroundStyle(edit ? .blue : .primary)
}
.disabled(!edit)
.alert("Edit Description", isPresented: $editDescription) {
TextField("", text: $pack.description)
}
let columns: Int = max(1, Int((geo.size.width - 2*spacing) / (minColWidth + spacing)))
let layout = Array(repeating: col, count: columns)
LazyVGrid(columns: layout, spacing: spacing) {
ForEach(pack.emojiNames, id: \.self) { name in
let emoji = hoarder.trie.dict[name] ?? .test
VStack {
StickerPreview(sticker: emoji)
Text(emoji.name)
.multilineTextAlignment(.center)
.font(.caption)
Spacer()
}
.overlay(alignment: .topLeading) {
if edit {
Button(role: .destructive) {
withAnimation {
pack.emojiNames.removeAll { $0 == name }
}
} label: {
Image(systemName: "minus.circle.fill")
.resizable().scaledToFit()
}
.frame(maxWidth: 25)
.padding(-10)
}
}
}
if edit {
Button() {
showAdder.toggle()
} label: {
VStack {
Image(systemName: "plus.square.dashed")
.resizable().scaledToFit()
.foregroundStyle(.green.opacity(0.5))
Text("Add")
.multilineTextAlignment(.center)
.font(.caption)
.foregroundStyle(.green.opacity(0.5))
Spacer()
}
}
.sheet(isPresented: $showAdder) {
SearchView(hoarder: hoarder, fromPackEditor: true) { selection in
print(selection)
withAnimation {
pack.emojiNames.append(selection)
}
}
}
}
}
.padding(.vertical)
Text("\(pack.emojiNames.count) Emoji\(pack.emojiNames.count.plural)")
.bold()
.multilineTextAlignment(.center)
}
.padding()
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem() {
Button(
"",
systemImage: edit ? "checkmark" : "pencil"
) {
withAnimation { edit.toggle() }
}
.modifier(glassButtonIfAv(edit))
.tint(edit ? .blue : .primary)
}
if #available(iOS 19, *) {
ToolbarSpacer()
}
ToolbarItem() {
ShareLink(item: URL(string: "stickerslack://")!) {
Image(systemName: "square.and.arrow.up")
}
}
}
.onDisappear {
print("disappear")
}
}
}
}
}
@available(iOS 17, *)
#Preview {
@Previewable @State var pack: EmojiPack = .test
EmojiPackDetailView(
hoarder: EmojiHoarder(localOnly: true, skipIndex: false),
pack: $pack
)
}
@@ -1,30 +0,0 @@
//
// EmojiPackView.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
struct EmojiPackView: View {
@ObservedObject var hoarder: EmojiHoarder
@State var pack: EmojiPack
var body: some View {
Text(pack.name)
.bold()
Text(pack.description)
.foregroundStyle(.gray)
ForEach(pack.emojiNames, id: \.self) { name in
EmojiPreview(hoarder: hoarder, emoji: hoarder.trie.dict[name] ?? .test)
}
}
}
#Preview {
EmojiPackView(
hoarder: EmojiHoarder(localOnly: true, skipIndex: true),
pack: .test
)
}
@@ -1,41 +0,0 @@
//
// EmojiPreview.swift
// StickerSlack
//
// Created by neon443 on 19/10/2025.
//
import SwiftUI
import Haptics
struct EmojiPreview: View {
@ObservedObject var hoarder: EmojiHoarder
@State var emoji: Emoji
@State var gifImage: Image?
var body: some View {
if let image = emoji.image {
GifView(url: emoji.localImageURL)
} else {
GifView(url: emoji.remoteImageURL)
}
}
}
struct ImageErrorView: View {
var body: some View {
Image(systemName: "xmark.app.fill")
.resizable().scaledToFit()
.padding()
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.red)
}
}
#Preview {
EmojiPreview(
hoarder: EmojiHoarder(localOnly: true),
emoji: Emoji.test
)
}
-74
View File
@@ -1,74 +0,0 @@
//
// EmojiRow.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import SwiftUI
import Haptics
struct EmojiRow: View {
@ObservedObject var hoarder: EmojiHoarder
@State var emoji: Emoji
var body: some View {
HStack {
EmojiPreview(hoarder: hoarder, emoji: emoji)
.frame(width: 100, height: 100)
.padding(.trailing, 10)
VStack(alignment: .leading, spacing: 5) {
ZStack {
RoundedRectangle(cornerRadius: 5)
.foregroundStyle(.gray.opacity(0.1))
Text(emoji.name)
.font(.caption)
.bold(hoarder.downloadedEmojis.contains(emoji.name))
.foregroundColor(hoarder.downloadedEmojis.contains(emoji.name) ? .green : .primary)
.padding(3)
}
.fixedSize()
if hoarder.downloadedEmojis.contains(emoji.name) {
Image(systemName: "arrow.down.circle.fill")
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.gray)
.transition(.scale)
}
}
Spacer()
if hoarder.downloadedEmojis.contains(emoji.name) {
Button("", systemImage: "trash") {
hoarder.delete(emoji: emoji)
}
.buttonStyle(.plain)
.transition(.scale)
} else {
Button("", systemImage: "arrow.down.circle") {
Task {
await hoarder.download(emoji: emoji)
}
}
.buttonStyle(.plain)
.transition(.scale)
}
}
}
}
#Preview {
List {
EmojiRow(
hoarder: EmojiHoarder(localOnly: true),
emoji: Emoji.test
)
EmojiRow(
hoarder: EmojiHoarder(localOnly: true),
emoji: Emoji.test
)
}
}
+28
View File
@@ -0,0 +1,28 @@
//
// NoStickersView.swift
// StickerSlack
//
// Created by neon443 on 05/04/2026.
//
import SwiftUI
struct NoStickersView: View {
var body: some View {
VStack(alignment: .center) {
Image(systemName: "questionmark.app.dashed")
.resizable().scaledToFit()
.frame(width: 75, height: 75)
Text("No Downloaded Stickers")
.font(.title)
.bold()
Text("Download some Slack Emojis or GIFs to use in iMessage!")
.foregroundStyle(.gray)
.multilineTextAlignment(.center)
}
}
}
#Preview {
NoStickersView()
}
+81 -7
View File
@@ -10,21 +10,95 @@ import SwiftUI
struct SearchView: View {
@ObservedObject var hoarder: EmojiHoarder
@State var filterResult: [String] = []
@State private var currentSearch: Task<Void, Never>?
@State var searchTerm: String = ""
@State var previousSearches: [String] = []
@State var searchResult: [String] = []
@State var stickerType: StickerType = .slackEmoji
@State var fromPackEditor: Bool = false
@State var callback: ((String) -> Void) = { _ in }
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 10 }
var col: GridItem {
GridItem(
.flexible(minimum: minColWidth, maximum: 100),
spacing: spacing,
alignment: .center
)
}
@Environment(\.dismiss) var dismiss
var body: some View {
NavigationStack {
List(filterResult, id: \.self) { name in
EmojiRow(hoarder: hoarder, emoji: hoarder.trie.dict[name]!)
if fromPackEditor {
GeometryReader { geo in
let columns: Int = max(1, Int((geo.size.width - 2*spacing) / (minColWidth + spacing)))
let layout = Array(repeating: col, count: columns)
ScrollView {
LazyVGrid(columns: layout, spacing: spacing) {
ForEach(searchResult, id: \.self) { name in
let emoji = hoarder.trie.dict[name] ?? .test
StickerPreview(sticker: emoji)
.onTapGesture {
callback(emoji.name)
dismiss()
}
.onChange(of: hoarder.searchTerm) { _ in
withAnimation(.snappy) { filterResult = hoarder.trie.search(prefix: hoarder.searchTerm) }
}
}
.padding()
}
}
} else {
Picker("", selection: $stickerType) {
ForEach(StickerType.allCases) { type in
Text(type.description).tag(type)
}
}
.pickerStyle(.segmented)
switch stickerType {
case .slackEmoji:
EmojiTableView(hoarder: hoarder, items: searchResult)
.id(searchResult)
.ignoresSafeArea(edges: .bottom)
case .giphyGifs:
Text("uhh")
}
}
}
.searchable(text: $searchTerm)
.onChange(of: searchTerm) { new in
if currentSearch != nil { currentSearch?.cancel() }
guard !searchTerm.isEmpty else {
currentSearch?.cancel()
searchResult = []
previousSearches = []
return
}
currentSearch = Task.detached {
let result = await hoarder.trie.search(
for: searchTerm,
previousQuery: previousSearches.last,
previousResult: Set(searchResult)
)
await MainActor.run {
withAnimation(.snappy) {
searchResult = result
previousSearches.append(searchTerm)
}
}
}
}
.searchable(text: $hoarder.searchTerm)
}
}
#Preview {
SearchView(hoarder: EmojiHoarder(localOnly: true))
SearchView(
hoarder: EmojiHoarder(localOnly: true),
fromPackEditor: true
) {
print($0)
}
}
+48 -38
View File
@@ -6,6 +6,7 @@
//
import SwiftUI
import Haptics
struct SettingsView: View {
@ObservedObject var hoarder: EmojiHoarder
@@ -24,7 +25,8 @@ struct SettingsView: View {
.frame(width: 100, height: 100)
.clipShape(RoundedRectangle(cornerRadius: 24))
.foregroundStyle(.purple)
.shadow(color: isDark ? .white : .purple, radius: 2)
.shadow(color: isDark ? .black : .purple, radius: 5)
.padding(.leading, -1)
.padding(.trailing, 10)
VStack(alignment: .leading) {
Text("StickerSlack")
@@ -45,45 +47,51 @@ struct SettingsView: View {
Section("Stats") {
Text("\(hoarder.emojis.count) total Emoji")
Text("\(hoarder.downloadedEmojis.count) downloaded Emoji")
if hoarder.downloadedEmojis.count == hoarder.emojis.count {
Text("\(hoarder.downloadedStickers.count) downloaded Emoji")
if hoarder.downloadedStickers.count == hoarder.emojis.count {
Text("🎉")
.font(.largeTitle)
}
NavigationLink {
List {
Picker(selection: $hoarder.letterStatsSorting.by) {
ForEach(EmojiHoarder.SortLetterStatsBy.allCases, id: \.self) { sortType in
Text(sortType.rawValue).tag(sortType)
}
} label: {
Label("Sort by", systemImage: "arrow.up.arrow.down")
}
.onChange(of: hoarder.letterStatsSorting.by) { _ in
hoarder.sortLetterStats(by: hoarder.letterStatsSorting)
}
Picker(selection: $hoarder.letterStatsSorting.ascending) {
Text("Ascending").tag(true)
Text("Descending").tag(false)
} label: {
Label("Order", systemImage: "greaterthan")
}
.onChange(of: hoarder.letterStatsSorting.ascending) { _ in
hoarder.sortLetterStats(by: hoarder.letterStatsSorting)
}
ForEach(hoarder.letterStats, id: \.self) { stat in
HStack {
Text("\(stat.char)")
Spacer()
Text("\(stat.count)")
.onTapGesture {
Haptic.rigid.trigger()
}
}
}
} label: {
Label("Letter Stats", systemImage: "textformat")
}
// NavigationLink {
// List {
// Picker(selection: $hoarder.letterStatsSorting.by) {
// ForEach(EmojiHoarder.SortLetterStatsBy.allCases, id: \.self) { sortType in
// Text(sortType.rawValue).tag(sortType)
// }
// } label: {
// Label("Sort by", systemImage: "arrow.up.arrow.down")
// }
// .onChange(of: hoarder.letterStatsSorting.by) { _ in
// hoarder.sortLetterStats(by: hoarder.letterStatsSorting)
// }
//
// Picker(selection: $hoarder.letterStatsSorting.ascending) {
// Text("Ascending").tag(true)
// Text("Descending").tag(false)
// } label: {
// Label("Order", systemImage: "greaterthan")
// }
// .onChange(of: hoarder.letterStatsSorting.ascending) { _ in
// hoarder.sortLetterStats(by: hoarder.letterStatsSorting)
// }
//
// ForEach(hoarder.letterStats, id: \.self) { stat in
// HStack {
// Text("\(stat.char)")
// Spacer()
// Text("\(stat.count)")
// }
// }
// }
// .onAppear {
// hoarder.generateLetterStats()
// }
// } label: {
// Label("Letter Stats", systemImage: "textformat")
// }
}
Button("Show Welcome", systemImage: "arrow.trianglehead.clockwise") {
@@ -107,7 +115,7 @@ struct SettingsView: View {
NavigationLink {
TrieTestingView(hoarder: hoarder)
} label: {
Label("Tree", systemImage: "tree")
Label("search testing", systemImage: "magnifyingglass")
}
NavigationLink {
@@ -118,7 +126,9 @@ struct SettingsView: View {
Button("Reindex", systemImage: "list.bullet.clipboard", role: .destructive) {
hoarder.resetAllIndexes()
hoarder.buildTrie()
Task {
await hoarder.buildTrie()
}
}
.foregroundStyle(.red)
}
+74
View File
@@ -0,0 +1,74 @@
//
// EmojiPreview.swift
// StickerSlack
//
// Created by neon443 on 19/10/2025.
//
import SwiftUI
import Haptics
struct StickerPreview: View {
@State var sticker: any StickerProtocol
@State var gifImage: Image?
var type: StickerType {
let type = Swift.type(of: sticker)
if type == Emoji.self {
return .slackEmoji
} else if type == Gif.self {
return .giphyGifs
} else {
fatalError()
}
}
var body: some View {
if sticker.image != nil {
//local
GifView(url: sticker.localImageURL)
} else {
//remote
if type == .slackEmoji {
GifView(url: sticker.remoteImageURL)
} else {
let gif = sticker as! Gif
if let giphyImages = gif.giphyImages,
let preview_gif = giphyImages.preview_gif,
let url = URL(string: preview_gif.url) {
GifView(url: url)
} else {
GifView(url: gif.remoteImageURL)
.overlay {
Image(systemName:
"square.arrowtriangle.4.outward")
.resizable().scaledToFit()
.foregroundStyle(.red)
.background(.black)
.padding()
}
}
}
}
}
}
struct ImageErrorView: View {
var body: some View {
Image(systemName: "xmark.app.fill")
.resizable().scaledToFit()
.padding()
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.red)
}
}
#Preview {
VStack {
StickerPreview(
sticker: Emoji.test
)
StickerPreview(
sticker: Gif.test
)
}
}
+102
View File
@@ -0,0 +1,102 @@
//
// EmojiRow.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import SwiftUI
import Haptics
struct StickerRow<T: Hoarder>: View {
@ObservedObject var hoarder: T
@State var sticker: any StickerProtocol
@State var showTooltip: Bool = false
var isDownloaded: Bool {
return hoarder.downloadedStickers.contains(sticker.name)
}
var body: some View {
HStack {
StickerPreview(sticker: sticker)
.frame(width: 100, height: 100)
.transition(.scale)
VStack(alignment: .leading, spacing: 5) {
Text(sticker.name)
.font(.caption)
.bold(isDownloaded)
.foregroundColor(isDownloaded ? .green : .primary)
.lineLimit(nil)
.multilineTextAlignment(.leading)
VStack(alignment: .leading, spacing: 5) {
Button {
showTooltip.toggle()
} label: {
Image(sticker.typeGlyph)
.resizable().scaledToFit()
.frame(maxHeight: 20)
.foregroundStyle(.gray)
}
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
Button("Done") {}
}
if isDownloaded {
Image(systemName: "arrow.down.circle.fill")
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.symbolRenderingMode(.hierarchical)
.foregroundStyle(.gray)
.transition(.scale)
}
}
}
.padding(5)
.background(
RoundedRectangle(cornerRadius: 15)
.foregroundStyle(.gray.opacity(0.2))
)
Spacer()
if isDownloaded {
Button("", systemImage: "trash") {
hoarder.delete(emoji: sticker, skipStoreIndex: false)
}
.buttonStyle(.plain)
.transition(.scale)
} else {
Button("", systemImage: "arrow.down.circle") {
Task.detached {
await hoarder.download(emoji: sticker, skipStoreIndex: false)
}
}
.buttonStyle(.plain)
.transition(.scale)
}
}
.padding(.leading, -1)
.padding(.trailing, -9)
}
}
@available(iOS 17, *)
#Preview {
@Previewable var hoarder = EmojiHoarder(localOnly: true)
List {
StickerRow(hoarder: hoarder, sticker: Emoji.test)
StickerRow(hoarder: hoarder, sticker: Emoji.testLongName)
StickerRow(hoarder: hoarder, sticker: Gif.test)
StickerRow(hoarder: hoarder, sticker: Emoji(name: "a", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "ab", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abc", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abcd", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abcde", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abcdef", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abcdefg", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, sticker: Emoji(name: "abcdefgh", url: Emoji.test.remoteImageURL))
}
.listStyle(.plain)
}
+20
View File
@@ -27,3 +27,23 @@ struct tabViewActivationSearchActivation: ViewModifier {
}
}
}
struct glassButtonIfAv: ViewModifier {
var enabled: Bool
init(_ enabled: Bool = true) {
self.enabled = enabled
}
func body(content: Content) -> some View {
if enabled {
if #available(iOS 19, *) {
content.buttonStyle(.glassProminent)
} else {
content.buttonStyle(.borderedProminent)
}
} else {
content
}
}
}
+30 -11
View File
@@ -9,14 +9,26 @@ import SwiftUI
struct WelcomeView: View {
@Environment(\.dismiss) var dismiss
@Environment(\.colorScheme) var colourScheme
var isDark: Bool {
return colourScheme == .dark
}
var body: some View {
VStack {
VStack(spacing: 0) {
HStack {
Image("icon\(isDark ? "-dark" : "")")
.resizable().scaledToFit()
.frame(maxWidth: 75)
Spacer()
Text("StickerSlack")
.bold()
.font(.largeTitle)
.monospaced()
.padding()
Spacer()
}
.padding(.vertical, 20)
.padding(.leading, 20)
List {
Section("How to use") {
ListRow(number: 1, text: "Browse or search for an emoji")
@@ -29,29 +41,36 @@ struct WelcomeView: View {
}
.scrollContentBackground(.hidden)
Spacer()
Group {
if #available(iOS 19, *) {
Button() {
dismiss()
} label: {
Text("Continue")
.font(.title)
.bold()
ContinueButtonView()
}
.buttonStyle(.glassProminent)
.padding(.bottom)
} else {
Button() {
dismiss()
} label: {
ContinueButtonView()
}
.buttonStyle(.borderedProminent)
}
}
.padding(.bottom)
.tint(.purple)
.interactiveDismissDisabled()
}
}
}
fileprivate struct ContinueButtonView: View {
var body: some View {
Text("Continue")
.font(.title)
.bold()
}
.buttonStyle(.borderedProminent)
.padding(.bottom)
}
}
}
}
#Preview {
+20 -1
View File
@@ -9,17 +9,23 @@ import Foundation
import SwiftUI
import Combine
nonisolated
class TrieNode: Codable {
var children: [String: TrieNode] = [:]
var isEndOfWord: Bool = false
}
//nonisolated
class Trie: ObservableObject {
var root: TrieNode = TrieNode()
var dict: [String:Emoji] = [:]
var wordlist: Set<String> = []
// var previousSearchTerm
func insert(word: String) {
let word = word.lowercased()
wordlist.insert(word)
var currentNode = root
let indices = word.indices
let last = indices.last
@@ -38,7 +44,20 @@ class Trie: ObservableObject {
}
}
func search(for query: String) -> Bool {
func search(for query: String, previousQuery: String?, previousResult: Set<String>?) -> [String] {
var result: Set<String> = wordlist
if let previousQuery,
let previousResult,
query.hasPrefix(previousQuery) {
result = previousResult
}
for word in query.split(separator: " ") {
result = result.filter { $0.localizedCaseInsensitiveContains(word) }
}
return Array(result).sorted()
}
func search(exactly query: String) -> Bool {
var currentNode = root
for char in query.lowercased() {
+35 -30
View File
@@ -10,10 +10,10 @@ import SwiftUI
struct TrieTestingView: View {
@ObservedObject var hoarder: EmojiHoarder
@State var searchStatus: Bool? = nil
@State var filterTerm: String = ""
@State var filterResult: [String] = []
@State private var searchTask: Task<Void, Never>?
@State var searchTerm: String = ""
@State var searchResults: [String] = []
@State var exactSearchResult: Bool? = nil
@State var uikit: Bool = false
@@ -25,31 +25,35 @@ struct TrieTestingView: View {
}
private func runSearch() {
filterResult = []
searchStatus = nil
guard !filterTerm.isEmpty else { return }
searchResults = []
exactSearchResult = nil
guard !searchTerm.isEmpty else { return }
switch searchType {
case .trie:
withAnimation(.snappy) {
filterResult = hoarder.trie.search(prefix: filterTerm)
searchResults = hoarder.trie.search(prefix: searchTerm)
}
print("testing: trie search")
print("testing: trie search complete")
case .contains:
withAnimation(.snappy) {
filterResult = hoarder.emojis.filter({ $0.name.localizedCaseInsensitiveContains(filterTerm) }).map({ $0.name })
if searchTask != nil { searchTask?.cancel() }
searchTask = Task.detached {
let result = await hoarder.trie.search(for: searchTerm, previousQuery: nil, previousResult: nil)
await MainActor.run {
withAnimation(.snappy) { searchResults = result }
print("testing: contains search complete")
}
}
print("testing: contains search")
case .exact:
withAnimation(.snappy) {
searchStatus = hoarder.trie.search(for: filterTerm)
exactSearchResult = hoarder.trie.search(exactly: searchTerm)
}
print("testing: exact search")
print("testing: exact search complete")
}
}
var body: some View {
VStack {
Toggle("uikit!!", isOn: $uikit)
Toggle("uikit list!!", isOn: $uikit)
.foregroundStyle(.blue)
HStack {
@@ -58,7 +62,9 @@ struct TrieTestingView: View {
}
Spacer()
Button("add emojis!") {
hoarder.buildTrie()
Task {
await hoarder.buildTrie()
}
}
.buttonStyle(.borderedProminent)
}
@@ -69,22 +75,19 @@ struct TrieTestingView: View {
}
}
.pickerStyle(.segmented)
.onChange(of: searchType) { _ in
runSearch()
}
.onChange(of: filterTerm) { _ in
.onChange(of: searchType.rawValue+searchTerm) { _ in
runSearch()
}
if searchType == .exact {
HStack {
TextField("", text: $filterTerm)
TextField("", text: $searchTerm)
.textFieldStyle(.roundedBorder)
.border(.orange)
if let searchStatus {
if let exactSearchResult {
Circle()
.frame(width: 20, height: 20)
.foregroundStyle(searchStatus ? .green : .red)
.foregroundStyle(exactSearchResult ? .green : .red)
} else {
Text("?")
.frame(width: 20, height: 20)
@@ -94,30 +97,32 @@ struct TrieTestingView: View {
if searchType == .trie {
HStack {
TextField("", text: $filterTerm)
TextField("", text: $searchTerm)
.textFieldStyle(.roundedBorder)
.border(.orange)
Text("\(filterResult.count)")
Text("\(searchResults.count)")
.modifier(numericTextCompat())
}
}
if searchType == .contains {
HStack {
TextField("", text: $filterTerm)
TextField("", text: $searchTerm)
.textFieldStyle(.roundedBorder)
.border(.orange)
Text("\(filterResult.count)")
Text("\(searchResults.count)")
.modifier(numericTextCompat())
}
}
if uikit {
EmojiCollectionView(hoarder: hoarder, items: filterResult)
EmojiTableView(hoarder: hoarder, items: searchResults)
.animation(.snappy, value: searchResults)
} else {
List(filterResult, id: \.self) { item in
EmojiRow(hoarder: hoarder, emoji: hoarder.trie.dict[item]!)
List(searchResults, id: \.self) { item in
StickerRow(hoarder: hoarder, sticker: hoarder.trie.dict[item]!)
}
.animation(.snappy, value: searchResults)
}
Text("\(hoarder.trie.root.children.count)")
@@ -1,71 +0,0 @@
//
// EmojiCollectionView.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import Foundation
import UIKit
import SwiftUI
import Haptics
struct EmojiCollectionView: UIViewRepresentable {
let hoarder: EmojiHoarder
let items: [String]
func makeUIView(context: Context) -> UITableView {
let tableView = UITableView()
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
tableView.dataSource = context.coordinator
return tableView
}
func updateUIView(_ uiView: UITableView, context: Context) {
context.coordinator.hoarder = hoarder
context.coordinator.items = items
uiView.reloadData()
}
func makeCoordinator() -> Coordinator {
Coordinator(hoarder: hoarder, items: items)
}
final class Coordinator: NSObject, UITableViewDataSource {
var hoarder: EmojiHoarder
var items: [String]
init(hoarder: EmojiHoarder, items: [String]) {
self.hoarder = hoarder
self.items = items
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return items.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let emojiName = items[indexPath.row]
let emoji = hoarder.trie.dict[emojiName]!
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
cell.contentConfiguration = UIHostingConfiguration {
EmojiRow(hoarder: hoarder, emoji: emoji)
.id(emoji)
}
return cell
}
}
}
//
//class EmojiCell: UITableViewCell {
// override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
// let l = UILabel()
// l.text = "ifosa"
// self.view = l
// }
//
// required init?(coder: NSCoder) {
// fatalError("init(coder:) has not been implemented")
// }
//}
+103
View File
@@ -0,0 +1,103 @@
//
// EmojiTableView.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import Foundation
import UIKit
import SwiftUI
import Haptics
struct EmojiTableView: UIViewRepresentable {
let hoarder: EmojiHoarder
let items: [String]
func makeUIView(context: Context) -> UITableView {
let tableView = context.coordinator as UITableViewController
tableView.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
tableView.tableView.dataSource = context.coordinator
tableView.tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 50, right: 0)
tableView.tableView.separatorStyle = .none
return tableView.tableView
}
func updateUIView(_ uiView: UITableView, context: Context) {
context.coordinator.hoarder = hoarder
context.coordinator.items = items
uiView.reloadData()
}
func makeCoordinator() -> Coordinator {
Coordinator(hoarder: hoarder, items: items)
}
final class Coordinator: UITableViewController {
var hoarder: EmojiHoarder
var items: [String]
init(hoarder: EmojiHoarder, items: [String]) {
self.hoarder = hoarder
self.items = items
super.init(style: .insetGrouped)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return items.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard !hoarder.trie.dict.isEmpty else {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
let spinner = UIActivityIndicatorView()
spinner.startAnimating()
spinner.style = .large
spinner.frame = cell.frame
spinner.autoresizingMask = .flexibleWidth
cell.addSubview(spinner)
tableView.reloadData()
return cell
}
let emojiName = items[indexPath.row]
let emoji = hoarder.trie.dict[emojiName]!
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
cell.selectedBackgroundView = nil
cell.selectionStyle = .none
cell.contentConfiguration = UIHostingConfiguration {
StickerRow(hoarder: hoarder, sticker: emoji)
.id(emoji)
}
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// <#code#>
}
override func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
// <#code#>
}
override func tableView(_ tableView: UITableView, shouldBeginMultipleSelectionInteractionAt indexPath: IndexPath) -> Bool {
return true
}
}
}
//
//class EmojiCell: UITableViewCell {
// override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
// let l = UILabel()
// l.text = "ifosa"
// self.view = l
// }
//
// required init?(coder: NSCoder) {
// fatalError("init(coder:) has not been implemented")
// }
//}
+2 -1
View File
@@ -24,7 +24,8 @@
{
"name" : "PerformanceTests",
"testFunctions" : [
"downloadAll()"
"downloadAll()",
"fakeDownloadAllStickers()"
]
}
]
+58 -49
View File
@@ -14,27 +14,21 @@ struct StickerSlackTests {
@Test func MSStickerValidation() async throws {
let goodEmoji = Emoji(
name: "name",
url: URL(string: "https://neon443.github.io/images/fav.ico")!,
id: UUID(uuidString: "0c48f4c3-1c63-41ed-96db-909e50e35dfc")!
url: URL(string: "https://neon443.xyz/images/fav.ico")!,
id: "0c48f4c3-1c63-41ed-96db-909e50e35dfc"
)
try! await goodEmoji.downloadImage()
#expect(goodEmoji.sticker!.validate(), "should be true")
#expect(goodEmoji.msSticker!.validate(), "should be true")
let badEmoji = Emoji(
name: "160chars:shttps://emoji.slack-edge.com/T0266FRGM/100906/ddeb22d813b83b0f.pngs,sexpirationfds2025-10-28T08:00:02.011Zs},{gtypeh:jemojieeeidggg9cab2003-ad74-492a-",
url: URL(string: "https://files.catbox.moe/ifh710.png")!,
id: UUID(uuidString: "0c48f4c3-1c63-41ed-96db-909e50e35dfc")!
id: "0c48f4c3-1c63-41ed-96db-909e50e35dfc"
)
try! await badEmoji.downloadImage()
#expect(goodEmoji.sticker!.validate(), "should be true")
#expect(goodEmoji.msSticker!.validate(), "should be true")
badEmoji.deleteImage()
}
@Test func deleteAllEmojis() async throws {
let performanceTests = PerformanceTests(hoarder: .shared)
try! await performanceTests.fakeDownloadAllStickers()
await hoarder.deleteAllStickers()
}
}
struct PerformanceTests {
@@ -43,7 +37,7 @@ struct PerformanceTests {
@Test func stickerConversion() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
for emoji in hoarder.emojis {
let _ = emoji.sticker
let _ = emoji.msSticker
}
}
@@ -53,16 +47,7 @@ struct PerformanceTests {
}
}
@Test func filteringEmojis() async throws {
let searchQueries = ["heavysob", "yay", "afsdjk", "afhjskf", "g4", "aqua-osx", "neotunes", "", "", ""]
for query in searchQueries {
print(query)
hoarder.filteredEmojis = []
hoarder.filterEmojis(by: query)
print(hoarder.filteredEmojis.count)
}
}
/*
@Test func downloadAll() async throws {
let downloadedEmojisBefore = hoarder.emojis.filter { $0.isLocal }.map { $0.id }
@@ -99,13 +84,14 @@ struct PerformanceTests {
}
}
}
*/
func doThing(on emoji: Emoji, i: inout Int) async throws {
do {
guard !emoji.isLocal else { return }
async let (data, _) = try URLSession.shared.data(from: emoji.remoteImageURL)
try! await data.write(to: emoji.localImageURL)
let _ = emoji.sticker?.validate()
let _ = emoji.msSticker?.validate()
i+=1
print("\(i)/\(hoarder.emojis.count) \(emoji.name)")
} catch {
@@ -113,43 +99,66 @@ struct PerformanceTests {
}
}
@Test func fakeDownloadAllStickers() async throws {
await withDiscardingTaskGroup { group in
for emoji in hoarder.emojis {
group.addTask {
try! Data().write(to: emoji.localImageURL)
}
}
}
}
// @Test func fakeDownloadAllStickers() async throws {
// await withDiscardingTaskGroup { group in
// for emoji in hoarder.emojis {
// group.addTask {
// try! Data().write(to: emoji.localImageURL)
// }
// }
// }
// }
@Test func deleteAllImages() async throws {
try! await fakeDownloadAllStickers()
// try! await fakeDownloadAllStickers()
await hoarder.deleteAllStickers()
}
@Test func buildTrie() async throws {
hoarder.resetTrie()
hoarder.resetAllIndexes()
hoarder.buildTrie()
}
@Test func testSearching() async throws {
try! await buildTrie()
let terms = ["h", "j", "s", "2", "heavysob", "hs", "asjasdklf", "a", "w", "t", "h", "z", "b", "c", "m", "n"]
for term in terms {
let _ = hoarder.trie.search(prefix: term)
}
}
@Test func testIsLocal() async throws {
for emoji in hoarder.emojis {
let x = emoji.isLocal
}
}
@Test func testDownloadedEmojis() async throws {
for emoji in hoarder.emojis {
let x = hoarder.downloadedEmojis.contains(emoji.name)
let x = hoarder.downloadedStickers.contains(emoji.name)
}
}
@Test func testSearching() async throws {
try await testSearchingExactly()
try await testSearchingFor()
try await testSearchingPrefixes()
}
@Test func testSearchingFor() async throws {
let queries = hoarder.emojis.choose(10_000).map { $0.name }
for query in queries {
let _ = hoarder.trie.search(for: query, previousQuery: nil, previousResult: nil)
}
}
@Test func testSearchingExactly() async throws {
let queries = hoarder.emojis.choose(10_000).map { $0.name }
for query in queries {
let _ = hoarder.trie.search(exactly: query)
}
}
@Test func testSearchingPrefixes() async throws {
let queries = hoarder.emojis.choose(10_000).map { $0.name }
for query in queries {
let _ = hoarder.trie.search(prefix: query)
}
}
}
extension Array {
func choose(_ x: Int) -> Self {
var x = x
var result: Self = []
while x != 0 {
guard let randElement = self.randomElement() else { continue }
result.append(randElement)
x-=1
}
return result
}
}
@@ -7,6 +7,7 @@
import UIKit
import Messages
import SwiftUI
class MessagesViewController: MSMessagesAppViewController {
let dataSource: StickerBrowserDataSource = StickerBrowserDataSource()
@@ -24,6 +25,37 @@ class MessagesViewController: MSMessagesAppViewController {
stickerBrowser.frame = CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height)
stickerBrowser.dataSource = dataSource
stickerBrowser.autoresizingMask = [.flexibleWidth]
guard stickerBrowser.dataSource?.numberOfStickers(in: stickerBrowser) != 0 else {
let swiftUIView = NoStickersView()
let hostingController = UIHostingController(rootView: swiftUIView)
addChild(hostingController)
hostingController.view.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(hostingController.view)
hostingController.didMove(toParent: self)
let link = UIButton()
link.setTitle("Open StickerSlack", for: .normal)
link.setImage(UIImage(systemName: "arrow.up.right.square"), for: .normal)
link.setTitleColor(.systemBlue, for: .normal)
link.frame = view.frame
link.translatesAutoresizingMaskIntoConstraints = false
link.addTarget(self, action: #selector(openStickerSlack), for: .touchUpInside)
view.addSubview(link)
NSLayoutConstraint.activate([
hostingController.view.centerXAnchor.constraint(equalTo: view.centerXAnchor),
hostingController.view.centerYAnchor.constraint(equalTo: view.centerYAnchor),
hostingController.view.widthAnchor.constraint(equalTo: view.widthAnchor),
hostingController.view.heightAnchor.constraint(equalTo: view.heightAnchor),
link.centerXAnchor.constraint(equalTo: view.centerXAnchor),
link.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
link.heightAnchor.constraint(equalToConstant: 50)
])
return
}
view.addSubview(stickerBrowser)
stickerBrowser.reloadData()
view.bringSubviewToFront(stickerBrowser)
@@ -73,4 +105,12 @@ class MessagesViewController: MSMessagesAppViewController {
// Use this method to finalize any behaviors associated with the change in presentation style.
}
@objc
func openStickerSlack() {
if let url = URL(string: "stickerslack://") {
self.extensionContext?.open(url) { success in
print("open url: \(success)")
}
}
}
}
@@ -11,18 +11,40 @@ import Messages
class StickerBrowserDataSource: NSObject, MSStickerBrowserViewDataSource {
var hoarder: EmojiHoarder = EmojiHoarder(localOnly: true, skipIndex: true)
var emojis: [MSSticker] = []
var msStickers: [MSSticker] = []
var emojis: [Emoji] = []
override init() {
super.init()
msStickers = []
guard let files = try? FileManager.default.contentsOfDirectory(atPath: EmojiHoarder.container.path()) else { return }
for file in files {
guard file.contains(".png") ||
file.contains(".jpg") ||
file.contains(".gif") else { continue }
let name = String(file.split(separator: ".")[0])
if let emoji = hoarder.trie.dict[name],
let msSticker = emoji.msSticker {
msStickers.append(msSticker)
} else {
print(
"name, emoji has value, mssticker has value:",
name,
hoarder.trie.dict[name] != nil,
hoarder.trie.dict[name]?.msSticker != nil
)
}
}
print(msStickers.count, "init")
}
func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
guard emojis.isEmpty else { return emojis.count }
for emoji in hoarder.emojis {
guard let sticker = emoji.msSticker else { continue }
emojis.append(sticker)
}
return emojis.count
print(msStickers.count, "numberofstickers")
return msStickers.count
}
func stickerBrowserView(_ stickerBrowserView: MSStickerBrowserView, stickerAt index: Int) -> MSSticker {
return emojis[index]
return msStickers[index]
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.