Compare commits

..
0 Commits
121 changed files with 1484 additions and 6125 deletions

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
// Created by neon443 on 02/11/2025.
//
VERSION = 2.1
VERSION = 2.0
BUILD = 1
// Configuration settings file format documentation can be found at:
+3 -11
View File
@@ -23,19 +23,11 @@
StickerSlack is an iOS App that lets you use any Slack emoji as an iMessage sticker!
## Features
- Fast Search and responsive UI
- Emoji packs
- Share packs with friends
- GIF support
- Fast Search
## How to use
- Search for emojis and download them
- All downloaded emojis can be used in iMessage
- You can also create packs and share them with friends
- To use one, open an iMessage chat and tap the plus icon next to the message bar
- Find StickerSlack and tap an emoji to send!
## How to
## Installing StickerSlack (TestFlight)
# Installing StickerSlack (TestFlight)
1. Install the [TestFlight](https://apps.apple.com/us/app/testflight/id899247664) app
2. Join the TestFlight using [this link](https://testflight.apple.com/join/JWTN897S)!
3. Browse for stickers and download ones you like
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

@@ -1,21 +0,0 @@
{
"images" : [
{
"filename" : "BrowseOrSearch.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,23 +1,6 @@
{
"colors" : [
{
"color" : {
"platform" : "ios",
"reference" : "systemPurpleColor"
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"platform" : "ios",
"reference" : "systemPurpleColor"
},
"idiom" : "universal"
}
],
@@ -0,0 +1,85 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,38 +0,0 @@
{
"images" : [
{
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"filename" : "StickerSlack-iOS-Default-1024x1024@1x 1.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 KiB

@@ -1,22 +0,0 @@
{
"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.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

@@ -1,21 +0,0 @@
{
"images" : [
{
"filename" : "rectIcon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 KiB

@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "StickersIcon.png",
"filename" : "StickerSlack-iOS-Dark-1024x1024@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

-31
View File
@@ -5,42 +5,11 @@
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "3x"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

@@ -1,38 +0,0 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.000",
"green" : "0.000",
"red" : "0.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -5,7 +5,7 @@
},
"symbols" : [
{
"filename" : "slack.logo.svg",
"filename" : "square.and.arrow.up.svg",
"idiom" : "universal"
}
]
@@ -1,117 +0,0 @@
<?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 10 L 3300 10 L 3300 2210 L 0 2210 Z"/>
<path id="Path" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 302 L 3036 302"/>
<text id="WeightScale-Variations" xml:space="preserve" x="261" y="336" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Weight/Scale Variations</text>
<text id="Ultralight" xml:space="preserve" x="531" y="336" font-family="Helvetica" font-size="13" fill="#000000">Ultralight</text>
<text id="Thin" xml:space="preserve" x="840" y="336" font-family="Helvetica" font-size="13" fill="#000000">Thin</text>
<text id="Light" xml:space="preserve" x="1136" y="336" font-family="Helvetica" font-size="13" fill="#000000">Light</text>
<text id="Regular" xml:space="preserve" x="1424" y="336" font-family="Helvetica" font-size="13" fill="#000000">Regular</text>
<text id="Medium" xml:space="preserve" x="1720" y="336" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Semibold" xml:space="preserve" x="2013" y="336" font-family="Helvetica" font-size="13" fill="#000000">Semibold</text>
<text id="Bold" xml:space="preserve" x="2323" y="336" font-family="Helvetica" font-size="13" fill="#000000">Bold</text>
<text id="Heavy" xml:space="preserve" x="2615" y="336" font-family="Helvetica" font-size="13" fill="#000000">Heavy</text>
<text id="Black" xml:space="preserve" x="2914" y="336" font-family="Helvetica" font-size="13" fill="#000000">Black</text>
<path id="path1" fill="none" stroke="#000000" stroke-width="0.5" d="M 263 1913 L 3036 1913"/>
<g id="Group">
<path id="path2" fill="#000000" stroke="none" d="M 272.248047 1943.830078 C 276.603516 1943.830078 280.138672 1940.304688 280.138672 1935.949219 C 280.138672 1931.59375 276.603516 1928.068359 272.248047 1928.068359 C 267.902344 1928.068359 264.367188 1931.59375 264.367188 1935.949219 C 264.367188 1940.304688 267.902344 1943.830078 272.248047 1943.830078 Z M 272.248047 1942.345703 C 268.712891 1942.345703 265.861328 1939.484375 265.861328 1935.949219 C 265.861328 1932.414063 268.712891 1929.552734 272.248047 1929.552734 C 275.783203 1929.552734 278.644531 1932.414063 278.644531 1935.949219 C 278.644531 1939.484375 275.783203 1942.345703 272.248047 1942.345703 Z M 272.970703 1938.791016 L 272.970703 1933.097656 C 272.970703 1932.648438 272.677734 1932.345703 272.228516 1932.345703 C 271.798828 1932.345703 271.505859 1932.648438 271.505859 1933.097656 L 271.505859 1938.791016 C 271.505859 1939.230469 271.798828 1939.533203 272.228516 1939.533203 C 272.677734 1939.533203 272.970703 1939.230469 272.970703 1938.791016 Z M 269.40625 1936.671875 L 275.089844 1936.671875 C 275.529297 1936.671875 275.832031 1936.378906 275.832031 1935.949219 C 275.832031 1935.509766 275.529297 1935.207031 275.089844 1935.207031 L 269.40625 1935.207031 C 268.957031 1935.207031 268.654297 1935.509766 268.654297 1935.949219 C 268.654297 1936.378906 268.957031 1936.671875 269.40625 1936.671875 Z"/>
</g>
<g id="g1">
<path id="path3" fill="#000000" stroke="none" d="M 293.214966 1945.910156 C 298.713013 1945.910156 303.175934 1941.447266 303.175934 1935.949219 C 303.175934 1930.451172 298.713013 1925.988281 293.214966 1925.988281 C 287.716949 1925.988281 283.254028 1930.451172 283.254028 1935.949219 C 283.254028 1941.447266 287.716949 1945.910156 293.214966 1945.910156 Z M 293.214966 1944.25 C 288.625153 1944.25 284.914215 1940.539063 284.914215 1935.949219 C 284.914215 1931.359375 288.625153 1927.648438 293.214966 1927.648438 C 297.80481 1927.648438 301.515747 1931.359375 301.515747 1935.949219 C 301.515747 1940.539063 297.80481 1944.25 293.214966 1944.25 Z M 294.025513 1939.630859 L 294.025513 1932.248047 C 294.025513 1931.75 293.683716 1931.408203 293.195435 1931.408203 C 292.716919 1931.408203 292.384888 1931.75 292.384888 1932.248047 L 292.384888 1939.630859 C 292.384888 1940.119141 292.716919 1940.460938 293.195435 1940.460938 C 293.683716 1940.460938 294.025513 1940.128906 294.025513 1939.630859 Z M 289.513794 1936.75 L 296.906372 1936.75 C 297.394653 1936.75 297.73645 1936.427734 297.73645 1935.949219 C 297.73645 1935.460938 297.394653 1935.119141 296.906372 1935.119141 L 289.513794 1935.119141 C 289.015747 1935.119141 288.683716 1935.460938 288.683716 1935.949219 C 288.683716 1936.427734 289.015747 1936.75 289.513794 1936.75 Z"/>
</g>
<g id="g2">
<path id="path4" fill="#000000" stroke="none" d="M 319.894714 1948.664063 C 326.916168 1948.664063 332.619293 1942.970703 332.619293 1935.949219 C 332.619293 1928.927734 326.916168 1923.224609 319.894714 1923.224609 C 312.87323 1923.224609 307.179871 1928.927734 307.179871 1935.949219 C 307.179871 1942.970703 312.87323 1948.664063 319.894714 1948.664063 Z M 319.894714 1946.847656 C 313.869293 1946.847656 308.996246 1941.974609 308.996246 1935.949219 C 308.996246 1929.923828 313.869293 1925.050781 319.894714 1925.050781 C 325.920105 1925.050781 330.793152 1929.923828 330.793152 1935.949219 C 330.793152 1941.974609 325.920105 1946.847656 319.894714 1946.847656 Z M 320.783386 1940.783203 L 320.783386 1931.085938 C 320.783386 1930.539063 320.412292 1930.158203 319.875153 1930.158203 C 319.357605 1930.158203 318.986481 1930.539063 318.986481 1931.085938 L 318.986481 1940.783203 C 318.986481 1941.320313 319.357605 1941.701172 319.875153 1941.701172 C 320.412292 1941.701172 320.783386 1941.330078 320.783386 1940.783203 Z M 315.041199 1936.828125 L 324.738464 1936.828125 C 325.275574 1936.828125 325.656433 1936.466797 325.656433 1935.949219 C 325.656433 1935.402344 325.285339 1935.03125 324.738464 1935.03125 L 315.041199 1935.03125 C 314.494324 1935.03125 314.12323 1935.402344 314.12323 1935.949219 C 314.12323 1936.466797 314.494324 1936.828125 315.041199 1936.828125 Z"/>
</g>
<text id="Design-Variations" xml:space="preserve" x="261" y="1967" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Design Variations</text>
<text id="Symbols-are-supported-in" xml:space="preserve" x="261" y="1985" 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="261" y="2003" 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="261" y="2021" 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 1929 L 776 1943"/>
<g id="g3">
<path id="path6" fill="#000000" stroke="none" d="M 779.310547 1943.15625 C 779.828125 1943.15625 780.082031 1942.960938 780.267578 1942.414063 L 784.378906 1930.910156 L 784.427734 1930.910156 L 788.548828 1942.414063 C 788.734375 1942.960938 788.988281 1943.15625 789.496094 1943.15625 C 790.013672 1943.15625 790.345703 1942.84375 790.345703 1942.355469 C 790.345703 1942.189453 790.316406 1942.033203 790.238281 1941.828125 L 785.658203 1929.630859 C 785.433594 1929.035156 785.033203 1928.732422 784.408203 1928.732422 C 783.802734 1928.732422 783.392578 1929.025391 783.177734 1929.621094 L 778.597656 1941.837891 C 778.519531 1942.042969 778.490234 1942.199219 778.490234 1942.365234 C 778.490234 1942.853516 778.802734 1943.15625 779.310547 1943.15625 Z M 781.351563 1938.966797 L 787.484375 1938.966797 C 787.884766 1938.966797 788.216797 1938.634766 788.216797 1938.234375 C 788.216797 1937.824219 787.884766 1937.501953 787.484375 1937.501953 L 781.351563 1937.501953 C 780.951172 1937.501953 780.619141 1937.824219 780.619141 1938.234375 C 780.619141 1938.634766 780.951172 1938.966797 781.351563 1938.966797 Z"/>
</g>
<path id="path7" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 792.835999 1929 L 792.835999 1943"/>
<text id="Margins" xml:space="preserve" x="774" y="1967" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Margins</text>
<text id="Leading-and-trailing-margins" xml:space="preserve" x="774" y="1985" 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="774" y="2003" 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="774" y="2021" 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="774" y="2039" 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 1945.626953 L 1293.414063 1947.199219 C 1294.273438 1948.078125 1295.279297 1948.019531 1296.1875 1946.994141 L 1308.326172 1933.351563 L 1307.349609 1932.375 L 1295.298828 1945.910156 C 1294.9375 1946.300781 1294.605469 1946.398438 1294.136719 1945.929688 L 1293.101563 1944.904297 C 1292.642578 1944.445313 1292.740234 1944.113281 1293.140625 1943.742188 L 1306.636719 1931.310547 L 1305.660156 1930.34375 L 1292.046875 1942.863281 C 1291.050781 1943.78125 1290.982422 1944.757813 1291.841797 1945.626953 Z M 1300.816406 1926.134766 C 1300.40625 1926.535156 1300.367188 1927.111328 1300.601563 1927.492188 C 1300.826172 1927.853516 1301.294922 1928.097656 1301.919922 1927.941406 C 1303.091797 1927.609375 1304.439453 1927.462891 1305.699219 1928.126953 L 1305.162109 1929.552734 C 1304.839844 1930.353516 1305.015625 1930.929688 1305.503906 1931.4375 L 1307.554688 1933.498047 C 1308.023438 1933.976563 1308.462891 1933.986328 1308.970703 1933.888672 L 1309.859375 1933.742188 L 1310.376953 1934.25 L 1310.337891 1934.699219 C 1310.318359 1935.158203 1310.445313 1935.558594 1310.894531 1935.998047 L 1311.568359 1936.662109 C 1312.027344 1937.121094 1312.671875 1937.160156 1313.130859 1936.701172 L 1315.728516 1934.09375 C 1316.1875 1933.625 1316.158203 1933.019531 1315.689453 1932.560547 L 1315.005859 1931.876953 C 1314.566406 1931.4375 1314.195313 1931.271484 1313.736328 1931.300781 L 1313.267578 1931.349609 L 1312.779297 1930.861328 L 1312.984375 1929.923828 C 1313.111328 1929.376953 1312.935547 1928.927734 1312.408203 1928.400391 L 1310.152344 1926.164063 C 1307.564453 1923.595703 1303.033203 1923.957031 1300.816406 1926.134766 Z M 1302.232422 1926.544922 C 1303.990234 1925.265625 1307.427734 1925.412109 1308.970703 1926.935547 L 1311.431641 1929.376953 C 1311.636719 1929.582031 1311.675781 1929.738281 1311.617188 1930.041016 L 1311.324219 1931.369141 L 1312.671875 1932.707031 L 1313.550781 1932.658203 C 1313.775391 1932.648438 1313.853516 1932.667969 1314.019531 1932.833984 L 1314.527344 1933.332031 L 1312.359375 1935.5 L 1311.861328 1935.001953 C 1311.695313 1934.826172 1311.666016 1934.757813 1311.675781 1934.523438 L 1311.734375 1933.654297 L 1310.396484 1932.306641 L 1309.029297 1932.541016 C 1308.746094 1932.599609 1308.619141 1932.580078 1308.394531 1932.365234 L 1306.607422 1930.587891 C 1306.392578 1930.382813 1306.373047 1930.246094 1306.509766 1929.914063 L 1307.427734 1927.619141 C 1306.207031 1926.349609 1304.019531 1926.115234 1302.310547 1926.701172 C 1302.173828 1926.75 1302.125 1926.623047 1302.232422 1926.544922 Z"/>
</g>
<text id="Exporting" xml:space="preserve" x="1287" y="1967" font-family="Helvetica" font-size="13" font-weight="700" fill="#000000">Exporting</text>
<text id="Symbols-should-be-outlined" xml:space="preserve" x="1287" y="1985" 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="1287" y="2003" font-family="Helvetica" font-size="13" fill="#000000">design is preserved when submitting to Xcode.</text>
<text id="template-version" xml:space="preserve" x="2948" y="1947" font-family="Helvetica" font-size="13" fill="#000000">Template v.4.0</text>
<text id="Requires-Xcode-14-or" xml:space="preserve" x="2861" y="1965" font-family="Helvetica" font-size="13" fill="#000000">Requires Xcode 14 or greater</text>
<text id="Generated-from-squareandarrowup" xml:space="preserve" x="2819" y="1983" 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" y="2001" font-family="Helvetica" font-size="13" fill="#000000">Typeset at 100.0 points</text>
<text id="Small" xml:space="preserve" x="261" y="740" font-family="Helvetica" font-size="13" fill="#000000">Small</text>
<text id="text1" xml:space="preserve" x="261" y="1170" font-family="Helvetica" font-size="13" fill="#000000">Medium</text>
<text id="Large" xml:space="preserve" x="261" y="1600" 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 339.993652 696 L 342.637756 696 L 368.328094 628.867676 L 369.030304 628.867676 L 369.030304 625.541016 L 367.122589 625.541016 Z M 350.688507 671.520142 L 385.981506 671.520142 L 385.231506 669.271484 L 351.438507 669.271484 Z M 394.119598 696 L 396.763702 696 L 369.638214 625.541016 L 368.432587 625.541016 L 368.432587 628.867676 Z"/>
</g>
<path id="Baseline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 696 L 3036 696"/>
<path id="Capline-S" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 625.541016 L 3036 625.541016"/>
<g id="g5">
<path id="path10" fill="#27aae1" stroke="none" d="M 339.993652 1126 L 342.637756 1126 L 368.328094 1058.867676 L 369.030304 1058.867676 L 369.030304 1055.541016 L 367.122589 1055.541016 Z M 350.688507 1101.520142 L 385.981506 1101.520142 L 385.231506 1099.271484 L 351.438507 1099.271484 Z M 394.119598 1126 L 396.763702 1126 L 369.638214 1055.541016 L 368.432587 1055.541016 L 368.432587 1058.867676 Z"/>
</g>
<path id="Baseline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 1126 L 3036 1126"/>
<path id="Capline-M" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 1055.540039 L 3036 1055.540039"/>
<g id="g6">
<path id="path11" fill="#27aae1" stroke="none" d="M 339.993652 1556 L 342.637756 1556 L 368.328094 1488.867676 L 369.030304 1488.867676 L 369.030304 1485.541016 L 367.122589 1485.541016 Z M 350.688507 1531.52002 L 385.981506 1531.52002 L 385.231506 1529.271484 L 351.438507 1529.271484 Z M 394.119598 1556 L 396.763702 1556 L 369.638214 1485.541016 L 368.432587 1485.541016 L 368.432587 1488.867676 Z"/>
</g>
<path id="Baseline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 1556 L 3036 1556"/>
<path id="Capline-L" fill="none" stroke="#27aae1" stroke-width="0.5" d="M 263 1485.540039 L 3036 1485.540039"/>
<path id="right-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2980.810059 600.784912 L 2980.810059 720.120972"/>
<path id="left-margin-Black-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 2885.98999 600.784912 L 2885.98999 720.120972"/>
<path id="right-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1493.959961 600.784912 L 1493.959961 720.120972"/>
<path id="left-margin-Regular-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 1405.72998 600.784912 L 1405.72998 720.120972"/>
<path id="right-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 601.625 600.784912 L 601.625 720.120972"/>
<path id="left-margin-Ultralight-S" fill="none" stroke="#00aeef" stroke-width="0.5" d="M 517.796997 600.784912 L 517.796997 720.120972"/>
</g>
<g id="Symbols">
<g id="g7">
<g id="Black-S">
<g id="Ultralight-S">
<g id="g8">
<path id="path12" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 2896.876709 677.110718 C 2902.323975 677.095825 2906.735596 672.641602 2906.746582 667.144531 L 2906.746582 657.185181 L 2896.876709 657.185181 C 2891.431641 657.196289 2887.018555 661.643555 2887 667.137817 C 2887.006836 672.632446 2891.424561 677.090454 2896.869873 677.097168 Z M 2921.598389 657.178223 C 2916.151123 657.193237 2911.739502 661.647583 2911.728516 667.144531 L 2911.728516 692.097534 C 2911.741943 697.592041 2916.160156 702.043457 2921.598389 702.056885 C 2927.043701 702.042114 2931.453857 697.591675 2931.468506 692.097534 L 2931.468506 667.137817 C 2931.453857 661.643555 2927.043701 657.193237 2921.598389 657.178223 Z"/>
<path id="path13" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 2911.728516 617.171143 C 2911.735352 622.665649 2916.15332 627.123779 2921.598389 627.130493 L 2931.468506 627.130493 L 2931.468506 617.171143 C 2931.45752 611.676758 2927.050293 607.223511 2921.605225 607.204834 C 2916.160645 607.219604 2911.750244 611.670044 2911.735352 617.164185 Z M 2931.468506 642.117188 C 2931.453857 636.622925 2927.043701 632.172485 2921.598389 632.157593 L 2896.869873 632.157593 C 2891.425049 632.172485 2887.014893 636.622925 2887 642.117188 C 2887.013428 647.61853 2891.431396 652.069824 2896.869873 652.076538 L 2921.605225 652.076538 C 2927.050293 652.061768 2931.460693 647.611572 2931.475098 642.117188 Z"/>
<path id="path14" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 2946.401367 652.083496 C 2951.846191 652.068481 2956.256348 647.618164 2956.27124 642.123901 L 2956.27124 617.164185 C 2956.256348 611.672729 2951.850098 607.223511 2946.407959 607.204834 C 2940.962891 607.219604 2936.552734 611.670044 2936.537842 617.164185 L 2936.537842 642.123901 C 2936.55127 647.611816 2940.962402 652.069824 2946.407959 652.083496 Z M 2971.123291 632.157593 C 2965.678467 632.172485 2961.267822 636.622925 2961.253174 642.117188 L 2961.253174 652.076538 L 2971.123291 652.076538 C 2976.568115 652.06543 2980.981445 647.618164 2981 642.123901 C 2980.985107 636.629639 2976.574707 632.179321 2971.130127 632.164551 Z"/>
<path id="path15" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 2936.53125 667.144531 C 2936.544678 672.63916 2940.956055 677.097168 2946.401367 677.104126 L 2971.130127 677.104126 C 2976.572266 677.089233 2980.981445 672.643066 2981 667.151245 C 2980.985107 661.657104 2976.574707 657.206665 2971.130127 657.191895 L 2946.401367 657.191895 C 2940.956055 657.206665 2936.545898 661.657104 2936.53125 667.151245 Z M 2956.27124 692.090576 C 2956.256348 686.596436 2951.846191 682.145996 2946.401367 682.131226 L 2936.53125 682.131226 L 2936.53125 692.090576 C 2936.544678 697.592041 2940.956055 702.043457 2946.401367 702.050049 C 2951.846191 702.035156 2956.256348 697.584961 2956.27124 692.090576 Z"/>
</g>
</g>
</g>
<g id="Regular-S">
<g id="g9">
<g id="g10">
<path id="path16" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 1416.210449 674.435669 C 1421.290527 674.421753 1425.404297 670.267822 1425.414673 665.141724 L 1425.414673 655.854126 L 1416.210449 655.854126 C 1411.132813 655.864502 1407.017212 660.011719 1407 665.135376 C 1407.006226 670.259277 1411.126221 674.416748 1416.204224 674.423096 Z M 1439.264893 655.847656 C 1434.184814 655.861694 1430.070923 660.015503 1430.060669 665.141724 L 1430.060669 688.411377 C 1430.07312 693.5354 1434.193115 697.686401 1439.264893 697.698975 C 1444.342529 697.685059 1448.455322 693.535034 1448.468994 688.411377 L 1448.468994 665.135376 C 1448.455322 660.011719 1444.342529 655.861694 1439.264893 655.847656 Z"/>
<path id="path17" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 1430.060669 618.539185 C 1430.066895 623.66333 1434.18689 627.820557 1439.264893 627.826782 L 1448.468994 627.826782 L 1448.468994 618.539185 C 1448.45874 613.415527 1444.348755 609.262695 1439.27124 609.245239 C 1434.193481 609.259155 1430.080688 613.409302 1430.066895 618.532959 Z M 1448.468994 641.80249 C 1448.455322 636.678955 1444.342529 632.528687 1439.264893 632.514893 L 1416.204224 632.514893 C 1411.126587 632.528687 1407.013794 636.678955 1407 641.80249 C 1407.012573 646.932861 1411.132446 651.083862 1416.204224 651.09021 L 1439.27124 651.09021 C 1444.348755 651.076416 1448.461548 646.92627 1448.475342 641.80249 Z"/>
<path id="path18" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 1462.394409 651.096558 C 1467.472046 651.082642 1471.584839 646.932617 1471.598633 641.80896 L 1471.598633 618.532959 C 1471.584839 613.411743 1467.47583 609.262573 1462.400635 609.245239 C 1457.32312 609.259155 1453.210205 613.409302 1453.196411 618.532959 L 1453.196411 641.80896 C 1453.208862 646.926636 1457.322754 651.083862 1462.400635 651.096558 Z M 1485.448853 632.514893 C 1480.370972 632.528687 1476.258179 636.678955 1476.244507 641.80249 L 1476.244507 651.09021 L 1485.448853 651.09021 C 1490.526367 651.079834 1494.641968 646.932617 1494.65918 641.80896 C 1494.645386 636.685059 1490.532593 632.535156 1485.455078 632.52124 Z"/>
<path id="path19" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 1453.190186 665.141724 C 1453.202637 670.265747 1457.316406 674.423096 1462.394409 674.429321 L 1485.455078 674.429321 C 1490.530151 674.415527 1494.64209 670.269165 1494.65918 665.148071 C 1494.645386 660.024414 1490.532593 655.87439 1485.455078 655.860474 L 1462.394409 655.860474 C 1457.316772 655.87439 1453.203857 660.024414 1453.190186 665.148071 Z M 1471.598633 688.405151 C 1471.584839 683.281372 1467.472046 679.131348 1462.394409 679.117432 L 1453.190186 679.117432 L 1453.190186 688.405151 C 1453.202637 693.5354 1457.316406 697.686401 1462.394409 697.692749 C 1467.472046 697.678833 1471.584839 693.528687 1471.598633 688.405151 Z"/>
</g>
</g>
</g>
<g id="g11">
<g id="g12">
<g id="g13">
<path id="path20" fill="#e01e5a" fill-rule="evenodd" stroke="none" d="M 527.720947 674.3302 C 532.531006 674.317017 536.426147 670.383911 536.435913 665.530273 L 536.435913 656.736206 L 527.720947 656.736206 C 522.913147 656.745972 519.016296 660.672852 519 665.524292 C 519.00592 670.375977 522.906921 674.312378 527.715027 674.318237 Z M 549.549866 656.730347 C 544.739868 656.74353 540.844727 660.676514 540.8349 665.530273 L 540.8349 687.56311 C 540.846802 692.414673 544.747803 696.345215 549.549866 696.357056 C 554.357666 696.343994 558.251892 692.414429 558.264893 687.56311 L 558.264893 665.524292 C 558.251892 660.672852 554.357666 656.74353 549.549866 656.730347 Z"/>
<path id="path21" fill="#36c5f0" fill-rule="evenodd" stroke="none" d="M 540.8349 621.404785 C 540.840881 626.256348 544.741821 630.192749 549.549866 630.198608 L 558.264893 630.198608 L 558.264893 621.404785 C 558.255127 616.553345 554.363586 612.621216 549.555908 612.604736 C 544.748047 612.61792 540.853882 616.547363 540.840881 621.398682 Z M 558.264893 643.431519 C 558.251892 638.580322 554.357666 634.650757 549.549866 634.637695 L 527.715027 634.637695 C 522.907227 634.650757 519.013062 638.580322 519 643.431519 C 519.011841 648.289185 522.912842 652.219482 527.715027 652.225586 L 549.555908 652.225586 C 554.363586 652.212524 558.257813 648.282959 558.270874 643.431519 Z"/>
<path id="path22" fill="#2eb67d" fill-rule="evenodd" stroke="none" d="M 571.450073 652.231445 C 576.257813 652.218262 580.152039 648.28894 580.1651 643.4375 L 580.1651 621.398682 C 580.152039 616.549805 576.261414 612.621216 571.455994 612.604736 C 566.648254 612.61792 562.754028 616.547363 562.740967 621.398682 L 562.740967 643.4375 C 562.752869 648.283203 566.647949 652.219482 571.455994 652.231445 Z M 593.279053 634.637695 C 588.471252 634.650757 584.577026 638.580322 584.564087 643.431519 L 584.564087 652.225586 L 593.279053 652.225586 C 598.086792 652.21582 601.983643 648.28894 602 643.4375 C 601.986938 638.586182 598.092712 634.656616 593.284973 634.643555 Z"/>
<path id="path23" fill="#ecb22e" fill-rule="evenodd" stroke="none" d="M 562.735046 665.530273 C 562.746948 670.381836 566.642029 674.318237 571.450073 674.324219 L 593.284973 674.324219 C 598.090393 674.311035 601.983643 670.385254 602 665.536133 C 601.986938 660.684937 598.092712 656.755371 593.284973 656.74231 L 571.450073 656.74231 C 566.642334 656.755371 562.748108 660.684937 562.735046 665.536133 Z M 580.1651 687.557129 C 580.152039 682.705688 576.257813 678.776245 571.450073 678.763184 L 562.735046 678.763184 L 562.735046 687.557129 C 562.746948 692.414673 566.642029 696.345215 571.450073 696.351074 C 576.257813 696.338013 580.152039 692.408447 580.1651 687.557129 Z"/>
</g>
</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>

Before

Width:  |  Height:  |  Size: 25 KiB

@@ -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.
+1 -8
View File
@@ -23,13 +23,7 @@
}
},
{
"blend-mode-specializations" : [
{
"appearance" : "dark",
"value" : "normal"
}
],
"glass" : false,
"glass" : true,
"image-name" : "Group 7.png",
"name" : "Group 7",
"position" : {
@@ -41,7 +35,6 @@
}
},
{
"glass" : true,
"image-name" : "Group 8.png",
"name" : "Group 8",
"position" : {
Binary file not shown.
+162 -364
View File
@@ -7,11 +7,6 @@
objects = {
/* Begin PBXBuildFile section */
A9034532301F42DB00EFFFDF /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9034531301F42DB00EFFFDF /* UIColor.swift */; };
A9034533301F42DB00EFFFDF /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9034531301F42DB00EFFFDF /* UIColor.swift */; };
A9034534301F42DB00EFFFDF /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9034531301F42DB00EFFFDF /* UIColor.swift */; };
A9034536301FC41600EFFFDF /* EmojiPackImporterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9034535301FC41600EFFFDF /* EmojiPackImporterViewController.swift */; };
A9034537301FC41600EFFFDF /* EmojiPackImporterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9034535301FC41600EFFFDF /* EmojiPackImporterViewController.swift */; };
A9104C752EB3AE4700D160EA /* Icon.pxd in Resources */ = {isa = PBXBuildFile; fileRef = A9104C722EB3AE4700D160EA /* Icon.pxd */; };
A9104C762EB3AE4700D160EA /* StickerSlack.icon in Resources */ = {isa = PBXBuildFile; fileRef = A9104C732EB3AE4700D160EA /* StickerSlack.icon */; };
A9104C772EB3AE4700D160EA /* Icon.pxd in Resources */ = {isa = PBXBuildFile; fileRef = A9104C722EB3AE4700D160EA /* Icon.pxd */; };
@@ -19,24 +14,20 @@
A9104C7C2EB3AE6300D160EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A949B1EF2EA04E8200215164 /* Assets.xcassets */; };
A9104C7F2EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
A9104C802EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
A9164993307F8B3F008D1B9D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9164991307F8B3F008D1B9D /* SceneDelegate.swift */; };
A91649953080BA3D008D1B9D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9164991307F8B3F008D1B9D /* SceneDelegate.swift */; };
A91649983080BA69008D1B9D /* StickerSlackApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F12EA04E8200215164 /* StickerSlackApp.swift */; };
A91649CB308113C5008D1B9D /* MessagesToolbarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91649CA308113BF008D1B9D /* MessagesToolbarView.swift */; };
A917BACE2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */; };
A917BACF2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */; };
A917BAD12F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
A917BAD22F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
A921C2E22ED071C900E57B1A /* ListRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2E12ED071C900E57B1A /* ListRow.swift */; };
A921C2E32ED071C900E57B1A /* ListRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2E12ED071C900E57B1A /* ListRow.swift */; };
A924C3732EA9127200F20781 /* Emoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A924C3712EA9127200F20781 /* Emoji.swift */; };
A924C3782EA9225800F20781 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A924C3772EA9225800F20781 /* Haptics */; };
A931D4082EBC9646007BC75B /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A931D4072EBC9646007BC75B /* Haptics */; };
A935437B2EB2A3C800BB80A4 /* FilterCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */; };
A949B1F32EA04E8200215164 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A949B1EF2EA04E8200215164 /* Assets.xcassets */; };
A949B1F42EA04E8200215164 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F02EA04E8200215164 /* ContentView.swift */; };
A949B1F52EA04E8200215164 /* StickerSlackApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F12EA04E8200215164 /* StickerSlackApp.swift */; };
A949B1F82EA04F2300215164 /* EmojiHoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1F72EA04F2300215164 /* EmojiHoarder.swift */; };
A949B1FB2EA0518800215164 /* SlackResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1FA2EA0518800215164 /* SlackResponse.swift */; };
A955B3EB2EC22C0200E1732D /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A9112EAB2EAFFDB0006739E2 /* Haptics */; };
A955B3ED2EC22C4A00E1732D /* DownloadedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A955B3EC2EC22C4A00E1732D /* DownloadedView.swift */; };
A955B3EE2EC22C4A00E1732D /* DownloadedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A955B3EC2EC22C4A00E1732D /* DownloadedView.swift */; };
A955B3F12EC22E9700E1732D /* BrowseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A955B3F02EC22E9700E1732D /* BrowseView.swift */; };
@@ -47,55 +38,47 @@
A957C1752ECCE2CE00EA3EE9 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */; };
A957C1772ECD008E00EA3EE9 /* Bundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1762ECD008E00EA3EE9 /* Bundle.swift */; };
A957C1782ECD008E00EA3EE9 /* Bundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1762ECD008E00EA3EE9 /* Bundle.swift */; };
A96D59963013D6450086948E /* MessagesPackListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A96D59953013D6450086948E /* MessagesPackListView.swift */; };
A96D59973013D6670086948E /* MessagesPackListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A96D59953013D6450086948E /* MessagesPackListView.swift */; };
A96D599A3013DE140086948E /* Int.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A7A4672F6AA17C00BB84C6 /* Int.swift */; };
A96D599C301945240086948E /* MessagesRootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A96D599B301945240086948E /* MessagesRootViewController.swift */; };
A97322A12FA7B9C8004B657D /* JumboMoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97322A02FA7B9C8004B657D /* JumboMoji.swift */; };
A97322A22FA7B9C8004B657D /* JumboMoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97322A02FA7B9C8004B657D /* JumboMoji.swift */; };
A97322A32FA7B9C8004B657D /* JumboMoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97322A02FA7B9C8004B657D /* JumboMoji.swift */; };
A97322A52FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97322A42FA8CA2B004B657D /* JumboMojiTestView.swift */; };
A97322A62FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97322A42FA8CA2B004B657D /* JumboMojiTestView.swift */; };
A975F9192FA38C8D00A5C62E /* EmojiPackGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */; };
A975F91A2FA38C8D00A5C62E /* EmojiPackGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */; };
A975F9202FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
A975F9212FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */; };
A97BFFBF2F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
A97D3E7E2FA5235300BF3273 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A97D3E7D2FA5235300BF3273 /* Haptics */; };
A97D3E802FA5235E00BF3273 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A97D3E7F2FA5235E00BF3273 /* Haptics */; };
A982A14E2FFD2F8000053E26 /* BrowseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A982A14D2FFD2F8000053E26 /* BrowseViewController.swift */; };
A982A14F2FFD2F8000053E26 /* BrowseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A982A14D2FFD2F8000053E26 /* BrowseViewController.swift */; };
A957C17A2ECE542D00EA3EE9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1792ECE542D00EA3EE9 /* GifManager.swift */; };
A957C17B2ECE542D00EA3EE9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1792ECE542D00EA3EE9 /* GifManager.swift */; };
A957C17C2ECE542D00EA3EE9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A957C1792ECE542D00EA3EE9 /* GifManager.swift */; };
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 */; };
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 */; };
A986A6C22EB6597600B6E0FA /* Emoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A924C3712EA9127200F20781 /* Emoji.swift */; };
A986A6C32EB6598100B6E0FA /* FilterCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */; };
A986A6C42EB6598500B6E0FA /* SlackResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949B1FA2EA0518800215164 /* SlackResponse.swift */; };
A986A6CD2EB659E000B6E0FA /* MessagesAppViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A986A6CA2EB659E000B6E0FA /* MessagesAppViewController.swift */; };
A986A6CD2EB659E000B6E0FA /* MessagesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A986A6CA2EB659E000B6E0FA /* MessagesViewController.swift */; };
A986A6CE2EB659E000B6E0FA /* StickerBrowserDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = A986A6CB2EB659E000B6E0FA /* StickerBrowserDataSource.swift */; };
A986A6CF2EB659E000B6E0FA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A986A6C62EB659E000B6E0FA /* Assets.xcassets */; };
A986A6D12EB659E000B6E0FA /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A986A6C92EB659E000B6E0FA /* MainInterface.storyboard */; };
A98BD15C2FF5242700ADC264 /* EmojiPackPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98BD15B2FF5242700ADC264 /* EmojiPackPreview.swift */; };
A98BD15D2FF5242700ADC264 /* EmojiPackPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98BD15B2FF5242700ADC264 /* EmojiPackPreview.swift */; };
A98C51BB301D290D006CB5A9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BA301D290D006CB5A9 /* GifView.swift */; };
A98C51BC301D290D006CB5A9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BA301D290D006CB5A9 /* GifView.swift */; };
A98C51BD301D290D006CB5A9 /* GifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BA301D290D006CB5A9 /* GifView.swift */; };
A98C51BF301D2925006CB5A9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BE301D2925006CB5A9 /* GifManager.swift */; };
A98C51C0301D2925006CB5A9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BE301D2925006CB5A9 /* GifManager.swift */; };
A98C51C1301D2925006CB5A9 /* GifManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C51BE301D2925006CB5A9 /* GifManager.swift */; };
A98FA65B2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
A98FA65C2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
A98FA6612FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */; };
A98FA6622FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */; };
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 */; };
A99C4B8D2FF2E8D30070CBA5 /* TabbedContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A94693D62FEF0A4200E56AC5 /* TabbedContentView.swift */; };
A99C4B8E2FF2E8D30070CBA5 /* TabbedContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A94693D62FEF0A4200E56AC5 /* TabbedContentView.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 */; };
@@ -106,10 +89,11 @@
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 */; };
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F12F5B004E00A57668 /* Gif.swift */; };
A9BE30F32F5B004E00A57668 /* Gif.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F12F5B004E00A57668 /* Gif.swift */; };
A9BE30F62F5B011A00A57668 /* StickerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F52F5B011A00A57668 /* StickerProtocol.swift */; };
A9BE30F72F5B011A00A57668 /* StickerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F52F5B011A00A57668 /* StickerProtocol.swift */; };
A9BE30F82F5B02BF00A57668 /* StickerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30F52F5B011A00A57668 /* StickerProtocol.swift */; };
@@ -120,64 +104,21 @@
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 */; };
A9C52F6B2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9C52F6C2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9C52F6D2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9C52F6F2F89A22000078588 /* Wiggle.metal in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6E2F89A22000078588 /* Wiggle.metal */; };
A9C52F702F89A22000078588 /* Wiggle.metal in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6E2F89A22000078588 /* Wiggle.metal */; };
A9C52F722F89A85F00078588 /* ShareSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F712F89A85F00078588 /* ShareSheet.swift */; };
A9C52F732F89A85F00078588 /* ShareSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F712F89A85F00078588 /* ShareSheet.swift */; };
A9C52F752F89A93D00078588 /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F742F89A93D00078588 /* URL.swift */; };
A9C52F762F89A93D00078588 /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F742F89A93D00078588 /* URL.swift */; };
A9C52F772F89A9BF00078588 /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F742F89A93D00078588 /* URL.swift */; };
A9C52F792F89BB0800078588 /* EmojiTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */; };
A9C52F7A2F89BB0800078588 /* EmojiTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */; };
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C352EDDE22800B7F421 /* EmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */; };
A9CD6C362EDDE22800B7F421 /* EmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackView.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 */; };
A9D53AEA2FFB0272001C1BB9 /* EmojiPackManagerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D53AE92FFB0272001C1BB9 /* EmojiPackManagerController.swift */; };
A9D53AEB2FFB0272001C1BB9 /* EmojiPackManagerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D53AE92FFB0272001C1BB9 /* EmojiPackManagerController.swift */; };
A9D53AED2FFB0E83001C1BB9 /* EmojiPackListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D53AEC2FFB0E83001C1BB9 /* EmojiPackListView.swift */; };
A9D53AEE2FFB0E83001C1BB9 /* EmojiPackListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D53AEC2FFB0E83001C1BB9 /* EmojiPackListView.swift */; };
A9D6A8212F7014AE00F198FB /* TestStructures.swift in Sources */ = {isa = PBXBuildFile; fileRef = A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */; };
A9D97071304440E300453B20 /* DragAndDropDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D97070304440E300453B20 /* DragAndDropDelegate.swift */; };
A9D97072304440E300453B20 /* DragAndDropDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D97070304440E300453B20 /* DragAndDropDelegate.swift */; };
A9DB1DCB303DBAF30007C177 /* CGFloat.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9DB1DCA303DBAF30007C177 /* CGFloat.swift */; };
A9DB1DCC303DBAF30007C177 /* CGFloat.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9DB1DCA303DBAF30007C177 /* CGFloat.swift */; };
A9DB1DCD303DBAF30007C177 /* CGFloat.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9DB1DCA303DBAF30007C177 /* CGFloat.swift */; };
A9E8C78F2FF71D8C009A38B5 /* DownloadedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C78E2FF71D8C009A38B5 /* DownloadedViewController.swift */; };
A9E8C7902FF71D8C009A38B5 /* DownloadedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C78E2FF71D8C009A38B5 /* DownloadedViewController.swift */; };
A9E8C79A2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7992FF7256B009A38B5 /* EmojiHoarder.Packs.swift */; };
A9E8C79B2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7992FF7256B009A38B5 /* EmojiHoarder.Packs.swift */; };
A9E8C79C2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7992FF7256B009A38B5 /* EmojiHoarder.Packs.swift */; };
A9E8C79E2FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C79D2FF726D4009A38B5 /* EmojiHoarder.LetterStats.swift */; };
A9E8C79F2FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C79D2FF726D4009A38B5 /* EmojiHoarder.LetterStats.swift */; };
A9E8C7A02FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C79D2FF726D4009A38B5 /* EmojiHoarder.LetterStats.swift */; };
A9E8C7A22FF7B815009A38B5 /* EmojiPackDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A12FF7B815009A38B5 /* EmojiPackDetailViewController.swift */; };
A9E8C7A32FF7B815009A38B5 /* EmojiPackDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A12FF7B815009A38B5 /* EmojiPackDetailViewController.swift */; };
A9E8C7A52FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A42FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift */; };
A9E8C7A62FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A42FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift */; };
A9E8C7A82FF95FEC009A38B5 /* SearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A72FF95FEC009A38B5 /* SearchViewController.swift */; };
A9E8C7A92FF95FEC009A38B5 /* SearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E8C7A72FF95FEC009A38B5 /* SearchViewController.swift */; };
A9EB72392EB93FDB00658CEB /* EmojiTableViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */; };
A9EB72392EB93FDB00658CEB /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */; };
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* StickerRow.swift */; };
A9EB72492EB948C400658CEB /* StickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72462EB948C400658CEB /* StickerRow.swift */; };
A9EB724A2EB948E000658CEB /* EmojiTableViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */; };
A9EB724A2EB948E000658CEB /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EB72382EB93FDB00658CEB /* EmojiCollectionView.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 /* 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 */; };
A9EF1843301A89B500804A07 /* StickerBrowserViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EF1842301A89B500804A07 /* StickerBrowserViewController.swift */; };
A9F7B3802F8951210071F198 /* EmojiPackImporterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */; };
A9F7B3812F8951210071F198 /* EmojiPackImporterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */; };
A9FB3EE32FA7AB3A00030E2A /* UIKitGifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FB3EE22FA7AB3A00030E2A /* UIKitGifView.swift */; };
A9FB3EE42FA7AB3A00030E2A /* UIKitGifView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FB3EE22FA7AB3A00030E2A /* UIKitGifView.swift */; };
A9EB72502EB94FAD00658CEB /* EmojiPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -212,20 +153,14 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
A9034531301F42DB00EFFFDF /* UIColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIColor.swift; sourceTree = "<group>"; };
A9034535301FC41600EFFFDF /* EmojiPackImporterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackImporterViewController.swift; sourceTree = "<group>"; };
A9104C722EB3AE4700D160EA /* Icon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = Icon.pxd; sourceTree = "<group>"; };
A9104C732EB3AE4700D160EA /* StickerSlack.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = StickerSlack.icon; sourceTree = "<group>"; };
A9104C7D2EB4022500D160EA /* MSSticker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSSticker.swift; sourceTree = "<group>"; };
A9164991307F8B3F008D1B9D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
A91649CA308113BF008D1B9D /* MessagesToolbarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesToolbarView.swift; sourceTree = "<group>"; };
A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionViewRepresentable.swift; sourceTree = "<group>"; };
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlainEmojiCollectionViewCell.swift; sourceTree = "<group>"; };
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };
A921C2E12ED071C900E57B1A /* ListRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListRow.swift; sourceTree = "<group>"; };
A924C3712EA9127200F20781 /* Emoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Emoji.swift; sourceTree = "<group>"; };
A924C3742EA9134C00F20781 /* StickerSlack.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = StickerSlack.entitlements; sourceTree = "<group>"; };
A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterCategory.swift; sourceTree = "<group>"; };
A94693D62FEF0A4200E56AC5 /* TabbedContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabbedContentView.swift; sourceTree = "<group>"; };
A949B1DF2EA04C0B00215164 /* StickerSlack.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StickerSlack.app; sourceTree = BUILT_PRODUCTS_DIR; };
A949B1EF2EA04E8200215164 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A949B1F02EA04E8200215164 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
@@ -239,64 +174,41 @@
A955B3F42EC22EE900E1732D /* SearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchView.swift; sourceTree = "<group>"; };
A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
A957C1762ECD008E00EA3EE9 /* Bundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bundle.swift; sourceTree = "<group>"; };
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; };
A96D59953013D6450086948E /* MessagesPackListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesPackListView.swift; sourceTree = "<group>"; };
A96D599B301945240086948E /* MessagesRootViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesRootViewController.swift; sourceTree = "<group>"; };
A97322A02FA7B9C8004B657D /* JumboMoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JumboMoji.swift; sourceTree = "<group>"; };
A97322A42FA8CA2B004B657D /* JumboMojiTestView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JumboMojiTestView.swift; sourceTree = "<group>"; };
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackGridView.swift; sourceTree = "<group>"; };
A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddToPackMenuView.swift; sourceTree = "<group>"; };
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerPreview.swift; sourceTree = "<group>"; };
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionViewCell.swift; sourceTree = "<group>"; };
A982A14D2FFD2F8000053E26 /* BrowseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowseViewController.swift; sourceTree = "<group>"; };
A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPreview.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>"; };
A986A6C82EB659E000B6E0FA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = "<group>"; };
A986A6CA2EB659E000B6E0FA /* MessagesAppViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesAppViewController.swift; sourceTree = "<group>"; };
A98BD15B2FF5242700ADC264 /* EmojiPackPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackPreview.swift; sourceTree = "<group>"; };
A98C51BA301D290D006CB5A9 /* GifView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifView.swift; sourceTree = "<group>"; };
A98C51BE301D2925006CB5A9 /* GifManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GifManager.swift; sourceTree = "<group>"; };
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableView.swift; sourceTree = "<group>"; };
A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.swift; sourceTree = "<group>"; };
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>"; };
A9BE30F52F5B011A00A57668 /* StickerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerProtocol.swift; sourceTree = "<group>"; };
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>"; };
A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyCollectionView.swift; sourceTree = "<group>"; };
A9C52F6E2F89A22000078588 /* Wiggle.metal */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.metal; path = Wiggle.metal; sourceTree = "<group>"; };
A9C52F712F89A85F00078588 /* ShareSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareSheet.swift; sourceTree = "<group>"; };
A9C52F742F89A93D00078588 /* URL.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URL.swift; sourceTree = "<group>"; };
A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableViewCell.swift; sourceTree = "<group>"; };
A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackDetailView.swift; sourceTree = "<group>"; };
A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackView.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>"; };
A9D53AE92FFB0272001C1BB9 /* EmojiPackManagerController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackManagerController.swift; sourceTree = "<group>"; };
A9D53AEC2FFB0E83001C1BB9 /* EmojiPackListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackListView.swift; sourceTree = "<group>"; };
A9D97070304440E300453B20 /* DragAndDropDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DragAndDropDelegate.swift; sourceTree = "<group>"; };
A9DB1DCA303DBAF30007C177 /* CGFloat.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGFloat.swift; sourceTree = "<group>"; };
A9E2ECD72EB74CE00038B2D6 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
A9E8C78E2FF71D8C009A38B5 /* DownloadedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadedViewController.swift; sourceTree = "<group>"; };
A9E8C7992FF7256B009A38B5 /* EmojiHoarder.Packs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiHoarder.Packs.swift; sourceTree = "<group>"; };
A9E8C79D2FF726D4009A38B5 /* EmojiHoarder.LetterStats.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiHoarder.LetterStats.swift; sourceTree = "<group>"; };
A9E8C7A12FF7B815009A38B5 /* EmojiPackDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackDetailViewController.swift; sourceTree = "<group>"; };
A9E8C7A42FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackDetailViewRepresentable.swift; sourceTree = "<group>"; };
A9E8C7A72FF95FEC009A38B5 /* SearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchViewController.swift; sourceTree = "<group>"; };
A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableViewRepresentable.swift; sourceTree = "<group>"; };
A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.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>"; };
A9EF1842301A89B500804A07 /* StickerBrowserViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerBrowserViewController.swift; sourceTree = "<group>"; };
A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackImporterView.swift; sourceTree = "<group>"; };
A9FB3EE22FA7AB3A00030E2A /* UIKitGifView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIKitGifView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -304,8 +216,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A955B3EB2EC22C0200E1732D /* Haptics in Frameworks */,
A924C3782EA9225800F20781 /* Haptics in Frameworks */,
A97D3E7E2FA5235300BF3273 /* Haptics in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -314,7 +226,7 @@
buildActionMask = 2147483647;
files = (
A986A6AE2EB658DF00B6E0FA /* Messages.framework in Frameworks */,
A97D3E802FA5235E00BF3273 /* Haptics in Frameworks */,
A931D4082EBC9646007BC75B /* Haptics in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -345,11 +257,6 @@
A9104C7D2EB4022500D160EA /* MSSticker.swift */,
A957C1762ECD008E00EA3EE9 /* Bundle.swift */,
A9A7A4672F6AA17C00BB84C6 /* Int.swift */,
A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */,
A9C52F742F89A93D00078588 /* URL.swift */,
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */,
A9034531301F42DB00EFFFDF /* UIColor.swift */,
A9DB1DCA303DBAF30007C177 /* CGFloat.swift */,
);
path = Extensions;
sourceTree = "<group>";
@@ -367,38 +274,35 @@
isa = PBXGroup;
children = (
A9D15B892EB1142C00404792 /* EmojiPack.swift */,
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */,
);
path = Categorisation;
sourceTree = "<group>";
};
A91C098C2EBBD7AB00210C34 /* EmojiPacks */ = {
A91C098C2EBBD7AB00210C34 /* Emoji */ = {
isa = PBXGroup;
children = (
A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */,
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
A98BD15B2FF5242700ADC264 /* EmojiPackPreview.swift */,
A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */,
A9C52F6E2F89A22000078588 /* Wiggle.metal */,
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */,
A9773C2E2EA54AF000F3B753 /* EmojiPreview.swift */,
A9EB72462EB948C400658CEB /* StickerRow.swift */,
A9CD6C342EDDE22800B7F421 /* EmojiPackView.swift */,
);
path = EmojiPacks;
path = Emoji;
sourceTree = "<group>";
};
A91C098D2EBBD7C100210C34 /* SwiftUI */ = {
isa = PBXGroup;
children = (
A9A7A4602F69597000BB84C6 /* Gifs */,
A949B1F02EA04E8200215164 /* ContentView.swift */,
A91C098C2EBBD7AB00210C34 /* EmojiPacks */,
A9F423C32F87229100C0BE3B /* Shared */,
A9F423C42F8722AA00C0BE3B /* Misc */,
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */,
A955B3F02EC22E9700E1732D /* BrowseView.swift */,
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */,
A91C098C2EBBD7AB00210C34 /* Emoji */,
A955B3EC2EC22C4A00E1732D /* DownloadedView.swift */,
A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */,
A955B3F02EC22E9700E1732D /* BrowseView.swift */,
A955B3F42EC22EE900E1732D /* SearchView.swift */,
A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */,
A97322A42FA8CA2B004B657D /* JumboMojiTestView.swift */,
A957C1732ECCE2CE00EA3EE9 /* SettingsView.swift */,
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */,
A921C2E12ED071C900E57B1A /* ListRow.swift */,
);
path = SwiftUI;
sourceTree = "<group>";
@@ -406,15 +310,7 @@
A91C098E2EBBD7C700210C34 /* UIKit */ = {
isa = PBXGroup;
children = (
A94693D62FEF0A4200E56AC5 /* TabbedContentView.swift */,
A9FB3EE22FA7AB3A00030E2A /* UIKitGifView.swift */,
A9C52F712F89A85F00078588 /* ShareSheet.swift */,
A9E8C78E2FF71D8C009A38B5 /* DownloadedViewController.swift */,
A9E8C7A72FF95FEC009A38B5 /* SearchViewController.swift */,
A9B37EAB2FFBD69200531FA1 /* EmojiPacks */,
A94F3E632F9E384D00FA6995 /* TableView */,
A94F3E642F9E385300FA6995 /* CollectionView */,
A982A14D2FFD2F8000053E26 /* BrowseViewController.swift */,
A9EB72382EB93FDB00658CEB /* EmojiCollectionView.swift */,
);
path = UIKit;
sourceTree = "<group>";
@@ -445,21 +341,18 @@
A949B1F22EA04E8200215164 /* StickerSlack */ = {
isa = PBXGroup;
children = (
A9BDEAE12F82BFF8002798DF /* Info.plist */,
A9A7A4502F68447F00BB84C6 /* Models */,
A924C3742EA9134C00F20781 /* StickerSlack.entitlements */,
A949B1F12EA04E8200215164 /* StickerSlackApp.swift */,
A9164991307F8B3F008D1B9D /* SceneDelegate.swift */,
A9BE30EB2F5AFE1E00A57668 /* StickerType.swift */,
A9BE30F42F5B011400A57668 /* Stickers */,
A9E8C7942FF72550009A38B5 /* EmojiHoarder */,
A9BE30ED2F5B003A00A57668 /* Gifs */,
A949B1F92EA0517800215164 /* Emoji */,
A91C09892EBBD75A00210C34 /* Trie */,
A9104C812EB4022E00D160EA /* Extensions */,
A91C098E2EBBD7C700210C34 /* UIKit */,
A91C098D2EBBD7C100210C34 /* SwiftUI */,
A9BE30FD2F5FA47100A57668 /* Hoarder.swift */,
A97322A02FA7B9C8004B657D /* JumboMoji.swift */,
);
path = StickerSlack;
sourceTree = "<group>";
@@ -468,35 +361,14 @@
isa = PBXGroup;
children = (
A924C3712EA9127200F20781 /* Emoji.swift */,
A98C51BA301D290D006CB5A9 /* GifView.swift */,
A98C51BE301D2925006CB5A9 /* GifManager.swift */,
A949B1F72EA04F2300215164 /* EmojiHoarder.swift */,
A91C098B2EBBD78700210C34 /* Categorisation */,
A957C1792ECE542D00EA3EE9 /* GifManager.swift */,
A957C17D2ECFAA1100EA3EE9 /* GifView.swift */,
);
path = Emoji;
sourceTree = "<group>";
};
A94F3E632F9E384D00FA6995 /* TableView */ = {
isa = PBXGroup;
children = (
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */,
A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */,
A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */,
);
path = TableView;
sourceTree = "<group>";
};
A94F3E642F9E385300FA6995 /* CollectionView */ = {
isa = PBXGroup;
children = (
A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */,
A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */,
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */,
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */,
A9D97070304440E300453B20 /* DragAndDropDelegate.swift */,
);
path = CollectionView;
sourceTree = "<group>";
};
A969D6922EA3E86500399C05 /* Frameworks */ = {
isa = PBXGroup;
children = (
@@ -508,15 +380,12 @@
A986A6CC2EB659E000B6E0FA /* StickerSlackiMessageApp */ = {
isa = PBXGroup;
children = (
A91649CA308113BF008D1B9D /* MessagesToolbarView.swift */,
A950E8802EB6C13700A9F873 /* StickerSlackiMessageApp.entitlements */,
A986A6C62EB659E000B6E0FA /* Assets.xcassets */,
A986A6C72EB659E000B6E0FA /* Info.plist */,
A986A6C92EB659E000B6E0FA /* MainInterface.storyboard */,
A986A6CA2EB659E000B6E0FA /* MessagesAppViewController.swift */,
A96D599B301945240086948E /* MessagesRootViewController.swift */,
A9EF1842301A89B500804A07 /* StickerBrowserViewController.swift */,
A96D59953013D6450086948E /* MessagesPackListView.swift */,
A986A6CA2EB659E000B6E0FA /* MessagesViewController.swift */,
A986A6CB2EB659E000B6E0FA /* StickerBrowserDataSource.swift */,
);
path = StickerSlackiMessageApp;
sourceTree = "<group>";
@@ -525,10 +394,24 @@
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 = (
@@ -537,16 +420,11 @@
path = Cachet;
sourceTree = "<group>";
};
A9B37EAB2FFBD69200531FA1 /* EmojiPacks */ = {
A9A7A4602F69597000BB84C6 /* Gifs */ = {
isa = PBXGroup;
children = (
A9D53AE92FFB0272001C1BB9 /* EmojiPackManagerController.swift */,
A9D53AEC2FFB0E83001C1BB9 /* EmojiPackListView.swift */,
A9E8C7A12FF7B815009A38B5 /* EmojiPackDetailViewController.swift */,
A9E8C7A42FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift */,
A9034535301FC41600EFFFDF /* EmojiPackImporterViewController.swift */,
);
path = EmojiPacks;
path = Gifs;
sourceTree = "<group>";
};
A9B9A82D2EB2CCBE004C9245 /* StickerSlackTests */ = {
@@ -558,6 +436,15 @@
path = StickerSlackTests;
sourceTree = "<group>";
};
A9BE30ED2F5B003A00A57668 /* Gifs */ = {
isa = PBXGroup;
children = (
A9BE30F12F5B004E00A57668 /* Gif.swift */,
A9BE30EE2F5B004800A57668 /* GifHoarder.swift */,
);
path = Gifs;
sourceTree = "<group>";
};
A9BE30F42F5B011400A57668 /* Stickers */ = {
isa = PBXGroup;
children = (
@@ -567,34 +454,6 @@
path = Stickers;
sourceTree = "<group>";
};
A9E8C7942FF72550009A38B5 /* EmojiHoarder */ = {
isa = PBXGroup;
children = (
A949B1F72EA04F2300215164 /* EmojiHoarder.swift */,
A9E8C7992FF7256B009A38B5 /* EmojiHoarder.Packs.swift */,
A9E8C79D2FF726D4009A38B5 /* EmojiHoarder.LetterStats.swift */,
);
path = EmojiHoarder;
sourceTree = "<group>";
};
A9F423C32F87229100C0BE3B /* Shared */ = {
isa = PBXGroup;
children = (
A9EB72462EB948C400658CEB /* StickerRow.swift */,
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */,
);
path = Shared;
sourceTree = "<group>";
};
A9F423C42F8722AA00C0BE3B /* Misc */ = {
isa = PBXGroup;
children = (
A9BDEADD2F82BC93002798DF /* NoStickersView.swift */,
A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */,
);
path = Misc;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -615,7 +474,7 @@
name = StickerSlack;
packageProductDependencies = (
A924C3772EA9225800F20781 /* Haptics */,
A97D3E7D2FA5235300BF3273 /* Haptics */,
A9112EAB2EAFFDB0006739E2 /* Haptics */,
);
productName = StickerSlack;
productReference = A949B1DF2EA04C0B00215164 /* StickerSlack.app */;
@@ -635,7 +494,7 @@
);
name = StickerSlackiMessageApp;
packageProductDependencies = (
A97D3E7F2FA5235E00BF3273 /* Haptics */,
A931D4072EBC9646007BC75B /* Haptics */,
);
productName = StickerSlackiMessageApp;
productReference = A986A6AD2EB658DF00B6E0FA /* StickerSlackiMessageApp.appex */;
@@ -668,7 +527,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 2700;
LastSwiftUpdateCheck = 2600;
LastUpgradeCheck = 2600;
TargetAttributes = {
A949B1DE2EA04C0B00215164 = {
@@ -684,7 +543,7 @@
};
};
buildConfigurationList = A949B1DA2EA04C0B00215164 /* Build configuration list for PBXProject "StickerSlack" */;
compatibilityVersion = "Xcode 12.0";
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
@@ -694,7 +553,7 @@
mainGroup = A949B1D62EA04C0B00215164;
minimizedProjectReferenceProxies = 1;
packageReferences = (
A97D3E7C2FA5235300BF3273 /* XCRemoteSwiftPackageReference "Haptics" */,
A9112EAA2EAFFDB0006739E2 /* XCRemoteSwiftPackageReference "Haptics" */,
);
productRefGroup = A949B1E02EA04C0B00215164 /* Products */;
projectDirPath = "";
@@ -749,68 +608,42 @@
files = (
A949B1F42EA04E8200215164 /* ContentView.swift in Sources */,
A9CD6C382EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
A9FB3EE42FA7AB3A00030E2A /* UIKitGifView.swift in Sources */,
A9E8C79E2FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */,
A949B1F52EA04E8200215164 /* StickerSlackApp.swift in Sources */,
A9A7A4452F68360900BB84C6 /* Pagination.swift in Sources */,
A9104C802EB4022500D160EA /* MSSticker.swift in Sources */,
A98FA65C2FF3B29700D50212 /* EmojiTableView.swift in Sources */,
A9E8C79A2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */,
A9E8C7A32FF7B815009A38B5 /* EmojiPackDetailViewController.swift in Sources */,
A97322A62FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
A98C51C1301D2925006CB5A9 /* GifManager.swift in Sources */,
A975F9192FA38C8D00A5C62E /* EmojiPackGridView.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 */,
A9D53AEE2FFB0E83001C1BB9 /* EmojiPackListView.swift in Sources */,
A9E8C7A62FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift in Sources */,
A9EB72392EB93FDB00658CEB /* EmojiTableViewRepresentable.swift in Sources */,
A98BD15D2FF5242700ADC264 /* EmojiPackPreview.swift in Sources */,
A9A7A44B2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
A9EB72392EB93FDB00658CEB /* EmojiCollectionView.swift in Sources */,
A955B3EE2EC22C4A00E1732D /* DownloadedView.swift in Sources */,
A949B1FB2EA0518800215164 /* SlackResponse.swift in Sources */,
A9C52F6F2F89A22000078588 /* Wiggle.metal in Sources */,
A9BDEADE2F82BC93002798DF /* NoStickersView.swift in Sources */,
A9D53AEB2FFB0272001C1BB9 /* EmojiPackManagerController.swift in Sources */,
A957C17A2ECE542D00EA3EE9 /* GifManager.swift in Sources */,
A955B3F52EC22EE900E1732D /* SearchView.swift in Sources */,
A98C51BD301D290D006CB5A9 /* GifView.swift in Sources */,
A935437B2EB2A3C800BB80A4 /* FilterCategory.swift in Sources */,
A917BAD12F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */,
A9C52F6D2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9C52F752F89A93D00078588 /* URL.swift in Sources */,
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
A9F7B3812F8951210071F198 /* EmojiPackImporterView.swift in Sources */,
A99C4B8D2FF2E8D30070CBA5 /* TabbedContentView.swift in Sources */,
A982A14E2FFD2F8000053E26 /* BrowseViewController.swift in Sources */,
A9CD6C352EDDE22800B7F421 /* EmojiPackView.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 */,
A9D97071304440E300453B20 /* DragAndDropDelegate.swift in Sources */,
A924C3732EA9127200F20781 /* Emoji.swift in Sources */,
A9D15B8B2EB1142C00404792 /* EmojiPack.swift in Sources */,
A975F9202FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */,
A9BE30FB2F5B03F400A57668 /* Sticker.swift in Sources */,
A9BE30F62F5B011A00A57668 /* StickerProtocol.swift in Sources */,
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */,
A9034537301FC41600EFFFDF /* EmojiPackImporterViewController.swift in Sources */,
A949B1F82EA04F2300215164 /* EmojiHoarder.swift in Sources */,
A9BBC5182EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A9EB72492EB948C400658CEB /* StickerRow.swift in Sources */,
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */,
A9DB1DCC303DBAF30007C177 /* CGFloat.swift in Sources */,
A917BACF2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */,
A98FA6612FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */,
A9034533301F42DB00EFFFDF /* UIColor.swift in Sources */,
A9E8C78F2FF71D8C009A38B5 /* DownloadedViewController.swift in Sources */,
A921C2E22ED071C900E57B1A /* ListRow.swift in Sources */,
A9773C2F2EA54AF000F3B753 /* EmojiPreview.swift in Sources */,
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */,
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */,
A9BE30EC2F5AFE1E00A57668 /* StickerType.swift in Sources */,
A91649953080BA3D008D1B9D /* SceneDelegate.swift in Sources */,
A995D95C2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
A9E8C7A92FF95FEC009A38B5 /* SearchViewController.swift in Sources */,
A9A7A4482F68361200BB84C6 /* Meta.swift in Sources */,
A9BE30FE2F5FA47100A57668 /* Hoarder.swift in Sources */,
A97322A32FA7B9C8004B657D /* JumboMoji.swift in Sources */,
A96D59973013D6670086948E /* MessagesPackListView.swift in Sources */,
A97BFFBF2F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */,
A9C52F792F89BB0800078588 /* EmojiTableViewCell.swift in Sources */,
A9C52F722F89A85F00078588 /* ShareSheet.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -818,32 +651,27 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A957C17B2ECE542D00EA3EE9 /* GifManager.swift in Sources */,
A9BE30F82F5B02BF00A57668 /* StickerProtocol.swift in Sources */,
A98C51BC301D290D006CB5A9 /* GifView.swift in Sources */,
A97322A12FA7B9C8004B657D /* JumboMoji.swift in Sources */,
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 */,
A98C51C0301D2925006CB5A9 /* GifManager.swift in Sources */,
A9DB1DCD303DBAF30007C177 /* CGFloat.swift in Sources */,
A9034532301F42DB00EFFFDF /* UIColor.swift in Sources */,
A9E8C79B2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */,
A986A6CD2EB659E000B6E0FA /* MessagesAppViewController.swift in Sources */,
A96D59963013D6450086948E /* MessagesPackListView.swift in Sources */,
A91649CB308113C5008D1B9D /* MessagesToolbarView.swift in Sources */,
A986A6CD2EB659E000B6E0FA /* MessagesViewController.swift in Sources */,
A9A7A4572F69568700BB84C6 /* GifHoarder.swift in Sources */,
A9BE30FF2F5FA78E00A57668 /* Hoarder.swift in Sources */,
A9C52F6C2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9C52F772F89A9BF00078588 /* URL.swift in Sources */,
A96D599A3013DE140086948E /* Int.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 */,
A96D599C301945240086948E /* MessagesRootViewController.swift in Sources */,
A9EF1843301A89B500804A07 /* StickerBrowserViewController.swift in Sources */,
A986A6C42EB6598500B6E0FA /* SlackResponse.swift in Sources */,
A9E8C79F2FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */,
A986A6C22EB6597600B6E0FA /* Emoji.swift in Sources */,
A986A6C12EB6595F00B6E0FA /* EmojiHoarder.swift in Sources */,
);
@@ -853,69 +681,41 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A91649983080BA69008D1B9D /* StickerSlackApp.swift in Sources */,
A9DB1DCB303DBAF30007C177 /* CGFloat.swift in Sources */,
A99C4B8E2FF2E8D30070CBA5 /* TabbedContentView.swift in Sources */,
A9034536301FC41600EFFFDF /* EmojiPackImporterViewController.swift in Sources */,
A9D53AEA2FFB0272001C1BB9 /* EmojiPackManagerController.swift in Sources */,
A9A7A4462F68360900BB84C6 /* Pagination.swift in Sources */,
A957C17C2ECE542D00EA3EE9 /* GifManager.swift in Sources */,
A9104C7F2EB4022500D160EA /* MSSticker.swift in Sources */,
A9C52F762F89A93D00078588 /* URL.swift in Sources */,
A9B9A8302EB2CD0B004C9245 /* Emoji.swift in Sources */,
A9C52F702F89A22000078588 /* Wiggle.metal in Sources */,
A9E8C79C2FF7256B009A38B5 /* EmojiHoarder.Packs.swift in Sources */,
A955B3F12EC22E9700E1732D /* BrowseView.swift in Sources */,
A975F9212FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */,
A9F7B3802F8951210071F198 /* EmojiPackImporterView.swift in Sources */,
A9A7A4402F6835F800BB84C6 /* Trending.swift in Sources */,
A9BE30F72F5B011A00A57668 /* StickerProtocol.swift in Sources */,
A9C52F6B2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9BE30FC2F5B03F400A57668 /* Sticker.swift in Sources */,
A9C52F732F89A85F00078588 /* ShareSheet.swift in Sources */,
A9EC46AE2F6D9E5800E066E6 /* StickerType.swift in Sources */,
A98C51BF301D2925006CB5A9 /* GifManager.swift in Sources */,
A9B9A82F2EB2CCED004C9245 /* EmojiHoarder.swift in Sources */,
A9CD6C3B2EDDE6B500B7F421 /* EmojiPack.swift in Sources */,
A9EB724A2EB948E000658CEB /* EmojiTableViewRepresentable.swift in Sources */,
A921C2E32ED071C900E57B1A /* ListRow.swift in Sources */,
A9BE30EF2F5B004800A57668 /* GifHoarder.swift in Sources */,
A9A7A4492F68361200BB84C6 /* Meta.swift in Sources */,
A9EB724A2EB948E000658CEB /* EmojiCollectionView.swift in Sources */,
A9EB724D2EB94A6B00658CEB /* TrieTestingView.swift in Sources */,
A9E8C7A22FF7B815009A38B5 /* EmojiPackDetailViewController.swift in Sources */,
A98BD15C2FF5242700ADC264 /* EmojiPackPreview.swift in Sources */,
A9BBC51A2EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A995D95B2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
A9D53AED2FFB0E83001C1BB9 /* EmojiPackListView.swift in Sources */,
A9E8C7A02FF726DA009A38B5 /* EmojiHoarder.LetterStats.swift in Sources */,
A98C51BB301D290D006CB5A9 /* GifView.swift in Sources */,
A9D97072304440E300453B20 /* DragAndDropDelegate.swift in Sources */,
A955B3ED2EC22C4A00E1732D /* DownloadedView.swift in Sources */,
A9EC46AD2F6D9E4600E066E6 /* Hoarder.swift in Sources */,
A9A7A4682F6AA17C00BB84C6 /* Int.swift in Sources */,
A9164993307F8B3F008D1B9D /* SceneDelegate.swift in Sources */,
A97322A22FA7B9C8004B657D /* JumboMoji.swift in Sources */,
A9C172DC2EB8C9AC008A7885 /* Trie.swift in Sources */,
A98FA65B2FF3B29700D50212 /* EmojiTableView.swift in Sources */,
A9034534301F42DB00EFFFDF /* UIColor.swift in Sources */,
A9FB3EE32FA7AB3A00030E2A /* UIKitGifView.swift in Sources */,
A9C52F7A2F89BB0800078588 /* EmojiTableViewCell.swift in Sources */,
A957C1752ECCE2CE00EA3EE9 /* SettingsView.swift in Sources */,
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
A9E8C7A82FF95FEC009A38B5 /* SearchViewController.swift in Sources */,
A9CD6C362EDDE22800B7F421 /* EmojiPackView.swift in Sources */,
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */,
A9CD6C392EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
A9E8C7902FF71D8C009A38B5 /* DownloadedViewController.swift in Sources */,
A955B3F62EC22EE900E1732D /* SearchView.swift in Sources */,
A9E8C7A52FF7C34A009A38B5 /* EmojiPackDetailViewRepresentable.swift in Sources */,
A97322A52FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
A98FA6622FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */,
A9BDEADF2F82BC93002798DF /* NoStickersView.swift in Sources */,
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */,
A9B9A8322EB2CD29004C9245 /* SlackResponse.swift in Sources */,
A957C1782ECD008E00EA3EE9 /* Bundle.swift in Sources */,
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */,
A9B9A82E2EB2CCBE004C9245 /* StickerSlackTests.swift in Sources */,
A917BACE2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */,
A9A7A44F2F68383900BB84C6 /* GiphyImages.swift in Sources */,
A9BE30F32F5B004E00A57668 /* Gif.swift in Sources */,
A9A7A44C2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
A9B9A8312EB2CD14004C9245 /* FilterCategory.swift in Sources */,
A975F91A2FA38C8D00A5C62E /* EmojiPackGridView.swift in Sources */,
A917BAD22F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */,
A9EB72502EB94FAD00658CEB /* StickerPreview.swift in Sources */,
A982A14F2FFD2F8000053E26 /* BrowseViewController.swift in Sources */,
A957C1802ECFAA1100EA3EE9 /* GifView.swift in Sources */,
A9EB72502EB94FAD00658CEB /* EmojiPreview.swift in Sources */,
A9A7A4432F68360200BB84C6 /* GifObject.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1079,7 +879,6 @@
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;
@@ -1091,7 +890,7 @@
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 15;
IPHONEOS_DEPLOYMENT_TARGET = 16;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13;
@@ -1131,7 +930,6 @@
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;
@@ -1143,7 +941,7 @@
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 15;
IPHONEOS_DEPLOYMENT_TARGET = 16;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13;
@@ -1180,7 +978,7 @@
INFOPLIST_FILE = StickerSlackiMessageApp/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = StickerSlack;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15;
IPHONEOS_DEPLOYMENT_TARGET = 16;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1212,7 +1010,7 @@
INFOPLIST_FILE = StickerSlackiMessageApp/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = StickerSlack;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 15;
IPHONEOS_DEPLOYMENT_TARGET = 16;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1322,7 +1120,7 @@
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
A97D3E7C2FA5235300BF3273 /* XCRemoteSwiftPackageReference "Haptics" */ = {
A9112EAA2EAFFDB0006739E2 /* XCRemoteSwiftPackageReference "Haptics" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/neon443/Haptics";
requirement = {
@@ -1333,18 +1131,18 @@
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
A9112EAB2EAFFDB0006739E2 /* Haptics */ = {
isa = XCSwiftPackageProductDependency;
package = A9112EAA2EAFFDB0006739E2 /* XCRemoteSwiftPackageReference "Haptics" */;
productName = Haptics;
};
A924C3772EA9225800F20781 /* Haptics */ = {
isa = XCSwiftPackageProductDependency;
productName = Haptics;
};
A97D3E7D2FA5235300BF3273 /* Haptics */ = {
A931D4072EBC9646007BC75B /* Haptics */ = {
isa = XCSwiftPackageProductDependency;
package = A97D3E7C2FA5235300BF3273 /* XCRemoteSwiftPackageReference "Haptics" */;
productName = Haptics;
};
A97D3E7F2FA5235E00BF3273 /* Haptics */ = {
isa = XCSwiftPackageProductDependency;
package = A97D3E7C2FA5235300BF3273 /* XCRemoteSwiftPackageReference "Haptics" */;
package = A9112EAA2EAFFDB0006739E2 /* XCRemoteSwiftPackageReference "Haptics" */;
productName = Haptics;
};
/* End XCSwiftPackageProductDependency section */
@@ -7,7 +7,7 @@
"location" : "https://github.com/neon443/Haptics",
"state" : {
"branch" : "main",
"revision" : "30113208bf0b8c1ac01f5780d7c29eee525199d5"
"revision" : "90e080694752c1af657d2f7ac2dce22eaf439391"
}
}
],
@@ -1,9 +0,0 @@
{
"id" : "f788be3f-ea78-49e8-a73f-06a26b2c4e3a",
"targets" : [
{
"id" : "C05654F5-CD40-44E4-80B8-2A14F2CD10BA",
"name" : "StickerSlack"
}
]
}
+16 -158
View File
@@ -6,170 +6,28 @@
//
import Foundation
import SwiftUI
import UniformTypeIdentifiers
struct EmojiPack: Identifiable, Codable, Equatable, Hashable, CustomStringConvertible {
struct EmojiPack: Identifiable, Codable {
var id: UUID
var name: String
var items: [String]
var description: String
var emojiNames: [String]
var description: String {
return "\(items.count) emoji\(items.count.plural)"
}
var downloadedDescription: (EmojiHoarder) -> String {
{ hoarder in
let dlCount = hoarder.downloadedStickers.intersection(items).count
if dlCount != items.count {
return "\(dlCount) / \(items.count) emoji\(items.count.plural)"
} else {
return "\(items.count) emoji\(items.count.plural)"
}
}
}
init(id: UUID, name: String, items: [String]) {
self.id = id
self.name = name
self.items = items
}
init?(fromShareLink url: URL) {
guard url.safeHost == "shared.pack" ||
url.safeHost == "stickerslack.neon443.xyz" ||
url.safeHost == "stickerslack.nihaals.me" else {
return nil
}
guard let created = EmojiPack.createFrom(url: url) else {
return nil
}
self = created
}
static func createFrom(url: URL) -> EmojiPack? {
var pack: EmojiPack = .new()
guard let components = URLComponents(string: url.absoluteString),
let queryItems = components.queryItems else {
print("no query items or components")
return nil
}
for item in queryItems {
guard let value = item.value else { fatalError("nil value for param \(item.name)") }
switch item.name {
case "id":
if let uuid = UUID(uuidString: value) {
pack.id = uuid
}
case "name":
pack.name = value
case "description":
print(value)
case "items":
if let data = Data(base64Encoded: value),
let decoded = try? JSONDecoder().decode([String].self, from: data) {
pack.items = decoded
}
default:
print("unrecognised parameter in share link")
return nil
}
}
return pack
}
enum ShareURLTypes {
case stickerslack
case neon443
case nihaals
}
mutating func add(_ newItem: String) {
guard !items.contains(newItem) else { return }
self.items.append(newItem)
}
mutating func remove(_ itemToRemove: String) {
guard let index = self.items.firstIndex(where: { $0 == itemToRemove }) else {
return
}
self.items.remove(at: index)
}
mutating func addRemove(_ item: String) {
if items.contains(item) {
self.remove(item)
} else {
self.add(item)
}
}
nonisolated func downloadAll(hoarder: EmojiHoarder) async {
let dict = await hoarder.trie.dict
var emojis: [Emoji] = []
for item in items {
if let foundEmoji = dict[item] {
emojis.append(foundEmoji)
}
}
await hoarder.batchDownload(emojis: emojis)
}
nonisolated func deleteAll(hoarder: EmojiHoarder) async {
let dict = await hoarder.trie.dict
var emojis: [Emoji] = []
for item in items {
if let foundEmoji = dict[item] {
emojis.append(foundEmoji)
}
}
await hoarder.batchDelete(emojis: emojis)
}
func shareLink() -> URL {
// var url = URL(string: "stickerslack://shared.pack/")!
var url = URL(string: "https://stickerslack.neon443.xyz/share/")!
let data = try! JSONEncoder().encode(items)
let queries: [URLQueryItem] = [
.init(name: "id", value: id.uuidString),
.init(name: "name", value: name),
.init(name: "items", value: data.base64EncodedString())
]
var components = URLComponents(url: url, resolvingAgainstBaseURL: false)
components!.queryItems = queries
url = components!.url!
return url
}
func allDownloaded(in hoarder: EmojiHoarder) -> Bool {
guard !items.isEmpty else { return false }
return Set(self.items).isSubset(of: hoarder.downloadedStickers)
}
func downloadedFraction(in hoarder: EmojiHoarder) -> Double {
guard !items.isEmpty else { return 0 }
guard !allDownloaded(in: hoarder) else { return 1 }
return Double(downloadCount(in: hoarder))/Double(items.count)
}
func downloadCount(in hoarder: EmojiHoarder) -> Int {
guard !items.isEmpty else { return 0 }
guard !allDownloaded(in: hoarder) else { return self.items.count }
let common = hoarder.downloadedStickers.intersection(items)
return common.count
}
}
extension EmojiPack {
static func new(withItems items: [String] = []) -> EmojiPack {
static var test: EmojiPack {
EmojiPack(
id: UUID(),
name: "New Pack",
items: items
name: "test pack",
description: "neon443's debug emoji pack",
emojiNames: [
"pf",
"heavysob",
"yay",
"skulk",
"loll",
"bleh",
"uhh",
"communist"
]
)
}
}
@@ -0,0 +1,24 @@
//
// 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)
)
}
+15 -4
View File
@@ -14,11 +14,12 @@ import UniformTypeIdentifiers
struct Emoji: StickerProtocol {
var id: String
var name: String
var UIName: String {
get { name }
set { return }
var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last ?? "png")"
return EmojiHoarder.container.absoluteString+id+fileExtension
}
var typeGlyph: String = "slack.logo"
var remoteImageURL: URL
enum CodingKeys: String, CodingKey {
@@ -43,4 +44,14 @@ struct Emoji: StickerProtocol {
self.name = name
self.remoteImageURL = url
}
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")!
)
}
+313
View File
@@ -0,0 +1,313 @@
//
// EmojiHoarder.swift
// StickerSlack
//
// Created by neon443 on 15/10/2025.
//
import Foundation
import SwiftUI
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)
let endpoint: URL = URL(string: "https://cachet.dunkirk.sh/emojis")!
@Published var emojis: [Emoji] = []
@Published var emojiPacks: [EmojiPack] = []
@Published var trie: Trie = Trie()
@Published var downloadedStickers: Set<String> = []
@Published var downloadedEmojisArr: [String] = []
@Published var letterStats: [EmojiHoarder.LetterStat] = []
@Published var letterStatsSorting: EmojiHoarder.LetterStatSorting = .init(by: .letter, ascending: true)
@Published var showWelcome: Bool = false
init(localOnly: Bool = false, skipIndex: Bool = false) {
self.showWelcome = !UserDefaults.standard.bool(forKey: "showWelcome")
let localDB = loadLocalDB()
withAnimation(.snappy) { self.emojis = localDB }
loadTrie()
if !skipIndex { buildTrie() }
guard !localOnly else { return }
Task {
print("start loading remote db")
await self.loadRemoteDB()
print("end")
if !skipIndex {
await self.buildTrie()
}
}
}
@MainActor
func downloadAllStickers() async {
let start: Date = .now
downloadedEmojisArr = []
let cores = ProcessInfo.processInfo.processorCount-1
var ranges: [Range<Int>] = []
for i in 0..<cores {
let onething = emojis.count/cores
ranges.append(onething*i..<onething + (onething*i))
if i == (0..<cores).last {
let last = ranges.last!
ranges.removeLast()
ranges.append(onething*i..<(onething + (onething*i)+emojis.count-last.upperBound))
}
}
await withTaskGroup { group in
for range in ranges {
group.addTask {
for i in range {
await MainActor.run { self.downloadedEmojisArr.append(self.emojis[i].name) }
guard !self.downloadedStickers.contains(await self.emojis[i].name) else { continue }
Task { await self.download(emoji: self.emojis[i], skipStoreIndex: true) }
await MainActor.run { self.downloadedStickers.insert(self.emojis[i].name) }
if i == self.emojis.count {
Task { @MainActor in
self.storeDownloadedIndexes()
}
}
}
}
}
}
print(Date.now.timeIntervalSince(start))
}
@MainActor
func deleteAllStickers() {
for i in emojis.indices {
guard downloadedStickers.contains(emojis[i].name) else { continue }
delete(emoji: emojis[i], skipStoreIndex: true)
}
downloadedStickers = []
downloadedEmojisArr = []
storeDownloadedIndexes()
}
private func storeDB(data: Data) {
try! data.write(to: EmojiHoarder.localEmojiDB)
}
func resetAllIndexes() {
trie.root = TrieNode()
trie.dict = [:]
trie.wordlist = []
try? FileManager.default.removeItem(at: EmojiHoarder.localEmojiDB)
try? FileManager.default.removeItem(at: EmojiHoarder.localTrie)
try? FileManager.default.removeItem(at: EmojiHoarder.localTrieDict)
downloadedStickers = []
downloadedEmojisArr = []
UserDefaults.standard.removeObject(forKey: "downloadedEmojis")
UserDefaults.standard.removeObject(forKey: "downloadedEmojisArr")
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")
}
try! dataDict.write(to: EmojiHoarder.localTrieDict)
}
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 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")
}
self.trie.dict = decodedDict
}
func buildTrie() {
let start = Date().timeIntervalSince1970
for emoji in emojis {
trie.insert(word: emoji.name)
}
buildTrieDict()
saveTrie()
generateLetterStats()
print("done building trie in", Date().timeIntervalSince1970-start)
}
private func buildTrieDict() {
for emoji in emojis {
trie.dict[emoji.name] = emoji
}
buildDownloadedEmojis()
}
private func buildDownloadedEmojis() {
downloadedStickers = []
downloadedEmojisArr = []
downloadedEmojisArr = (try? decoder.decode([String].self, from: UserDefaults.standard.data(forKey: "downloadedEmojisArr") ?? Data())) ?? []
downloadedStickers = (try? decoder.decode(Set<String>.self, from: UserDefaults.standard.data(forKey: "downloadedEmojis") ?? Data())) ?? []
if downloadedStickers.isEmpty || downloadedEmojisArr.isEmpty {
for emoji in emojis {
guard emoji.isLocal else { continue }
downloadedStickers.insert(emoji.name)
downloadedEmojisArr.append(emoji.name)
}
}
}
func storeDownloadedIndexes() {
UserDefaults.standard.set(try! encoder.encode(downloadedStickers), forKey: "downloadedEmojis")
UserDefaults.standard.set(try! encoder.encode(downloadedEmojisArr), forKey: "downloadedEmojisArr")
}
nonisolated
private func loadLocalDB() -> [Emoji] {
if let localEmojiDB = try? Data(contentsOf: EmojiHoarder.localEmojiDB) {
let decoded = try! decoder.decode([Emoji].self, from: localEmojiDB)
return decoded
}
return []
}
private func loadRemoteDB() async {
async let fetched = self.fetchRemoteDB()
if let fetched = await fetched {
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)
try await storeDB(data: await data)
return await SlackResponse.toEmojis(from: decoded)
} catch {
print(error.localizedDescription)
return nil
}
}
private func refreshDB() async {
guard let fetched = await self.fetchRemoteDB() else {
let local = loadLocalDB()
await MainActor.run {
emojis = local
buildTrie()
}
return
}
await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched }
buildTrie()
}
}
nonisolated func download(emoji: StickerProtocol, skipStoreIndex: Bool = false) async {
try? await emoji.downloadImage()
await MainActor.run {
if !skipStoreIndex {
withAnimation(.snappy) {
self.downloadedStickers.insert(emoji.name)
self.downloadedEmojisArr.append(emoji.name)
}
self.storeDownloadedIndexes()
}
if !skipStoreIndex { Haptic.success.trigger() }
}
}
@MainActor
func delete(emoji: StickerProtocol, skipStoreIndex: Bool = false) {
emoji.deleteImage()
if !skipStoreIndex {
withAnimation(.snappy) {
downloadedStickers.remove(emoji.name)
downloadedEmojisArr.removeAll(where: { $0 == emoji.name })
}
storeDownloadedIndexes()
}
if !skipStoreIndex { Haptic.heavy.trigger() }
}
func setShowWelcome(to newValue: Bool) {
UserDefaults.standard.set(!newValue, forKey: "showWelcome")
self.showWelcome = newValue
}
func generateLetterStats() {
var result: [EmojiHoarder.LetterStat] = []
for child in trie.root.children {
let count = trie.collectWords(startingWith: child.key, from: child.value).count
let stat = LetterStat(char: child.key, count: count)
result.append(stat)
}
self.letterStats = result
sortLetterStats(by: self.letterStatsSorting)
}
func sortLetterStats(by: EmojiHoarder.LetterStatSorting) {
self.letterStatsSorting = by
let sortByLetter = letterStatsSorting.by == .letter
switch by.ascending {
case true:
letterStats.sort {
if sortByLetter {
$0.char > $1.char
} else {
$0.count > $1.count
}
}
case false:
letterStats.sort {
if sortByLetter {
$0.char > $1.char
} else {
$0.count < $1.count
}
}
}
}
struct LetterStat: Hashable {
var char: String
var count: Int
}
enum SortLetterStatsBy: String, CaseIterable {
case letter = "Letter"
case count = "Count"
}
struct LetterStatSorting: Hashable, Equatable {
var by: EmojiHoarder.SortLetterStatsBy = .count
var ascending: Bool = true
}
}
+7 -33
View File
@@ -7,21 +7,21 @@
import Foundation
import UIKit
import UniformTypeIdentifiers
class GifManager {
//from clock-run, 12 frames one second
static let defaultDuration: Double = 0.083333333333333329
static func gifFrom(url: URL) async throws -> [(frame: UIImage, showFor: Double)] {
let (data, _) = try await URLSession.shared.data(from: url)
static func gifFrom(url: URL) async -> [(frame: CGImage, showFor: Double)] {
guard let (data, _) = try? await URLSession.shared.data(from: url) else { return [] }
return gifFrom(data: data)
}
static func gifFrom(data: Data) -> [(frame: UIImage, showFor: Double)] {
static func gifFrom(data: Data) -> [(frame: CGImage, showFor: Double)] {
guard let source = CGImageSourceCreateWithData(data as NSData, nil) else { fatalError("couldnt create source") }
let frameCount = CGImageSourceGetCount(source)
var result: [(frame: UIImage, showFor: Double)] = []
var result: [(frame: CGImage, showFor: Double)] = []
for i in 0..<frameCount {
guard let cgImage = CGImageSourceCreateImageAtIndex(source, i, nil) else {
@@ -31,37 +31,11 @@ class GifManager {
if let properties = CGImageSourceCopyPropertiesAtIndex(source, i, nil),
let gifInfo = (properties as NSDictionary)[kCGImagePropertyGIFDictionary as String] as? NSDictionary,
let frameDuration = (gifInfo[kCGImagePropertyGIFDelayTime as String] as? NSNumber) {
result.append((UIImage(cgImage: cgImage), frameDuration.doubleValue))
result.append((cgImage, frameDuration.doubleValue))
} else {
result.append((UIImage(cgImage: cgImage), defaultDuration))
result.append((cgImage, defaultDuration))
}
}
return result
}
nonisolated static func uiImageFrom(data: Data) -> UIImage? {
guard let source = CGImageSourceCreateWithData(data as NSData, nil) else { fatalError("couldnt create source") }
let frameCount = CGImageSourceGetCount(source)
guard frameCount > 1 else { return UIImage(data: data) }
var result: [UIImage] = []
var frameDuration: Double = 0.0833333333
for i in 0..<frameCount {
guard let cgImage = CGImageSourceCreateImageAtIndex(source, i, nil) else {
print("AAAA")
continue
}
if let properties = CGImageSourceCopyPropertiesAtIndex(source, i, nil),
let gifInfo = (properties as NSDictionary)[kCGImagePropertyGIFDictionary as String] as? NSDictionary,
let duration = (gifInfo[kCGImagePropertyGIFDelayTime as String] as? NSNumber) {
result.append(UIImage(cgImage: cgImage))
frameDuration = Double(truncating: duration)
} else {
result.append(UIImage(cgImage: cgImage))
}
}
return UIImage.animatedImage(with: result, duration: frameDuration*Double(frameCount))
}
}
+28 -69
View File
@@ -11,93 +11,52 @@ import SwiftUI
import WebKit
struct GifView: View {
@State var sticker: (any StickerProtocol)?
@State var url: URL
@State var gif: [(frame: UIImage, showFor: Double)] = []
@State var gif: [(frame: CGImage, showFor: Double)] = []
@State var currentI: Int = 0
// @State var animate: Bool
@State var timer: Timer?
// @State var timer: Task<Void, Never>?
nonisolated func run() async {
guard await url.pathExtension == "gif" else {
if let data = try? await URLSession.shared.data(from: url).0,
let uiImage = UIImage(data: data) {
await updateGif([(uiImage, 1)])
}
return
}
do {
if await gif.isEmpty {
let frames = try await GifManager.gifFrom(url: url)
await updateGif(frames)
}
} catch {
print(error)
print(error.localizedDescription)
print("falied loading or empty gif")
return
}
if timer != nil {
timer!.invalidate()
timer = nil
}
await timer = Timer(timeInterval: gif[0].showFor, repeats: true) { timer in
if currentI == (gif.count-1) {
currentI = 0
} else {
currentI += 1
}
}
RunLoop.main.add(await timer!, forMode: .common)
}
@MainActor
func updateGif(_ frames: [(UIImage, Double)]) {
withAnimation(.spring(duration: 0.2)) {
self.gif = frames
}
}
var body: some View {
// /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Hello, world!@*/Text("Hello, world!")/*@END_MENU_TOKEN@*/
Group {
if gif.isEmpty {
ProgressView()
.modifier(fadeIn())
} else if url.pathExtension == "gif" {
TimelineView(.animation) { tl in
VStack {
if currentI < gif.count {
Image(uiImage: gif[currentI].frame)
.resizable().scaledToFit()
.onDisappear {
timer?.invalidate()
timer = nil
}
}
} else {
if let frame = gif.first {
Image(uiImage: frame.frame)
let image = Image(uiImage: .init(cgImage: gif[currentI].frame))
image
.resizable().scaledToFit()
}
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.transition(.scale)
.onAppear {
Task {
await run()
.onDisappear {
timer?.invalidate()
timer = nil
}
.task {
if gif.isEmpty {
self.gif = await GifManager.gifFrom(url: url)
}
guard gif.count > 0 else { return }
if timer != nil {
timer!.invalidate()
timer = nil
}
timer = Timer(timeInterval: gif[0].showFor, repeats: true) { timer in
if currentI == (gif.count-1) {
currentI = 0
} else {
currentI += 1
}
}
RunLoop.main.add(timer!, forMode: .common)
}
}
}
#Preview {
GifView(
url: URL(string: "https://emoji.slack-edge.com/T09V59WQY1E/clockrun/f6641714fa6748ac.gif")!,
url: URL(string: "https://emoji.slack-edge.com/T0266FRGM/clockrun/ec33c513d30a6ed8.gif")!
)
GifView(url: Emoji.test.remoteImageURL)
GifView(url: Emoji.testLongName.localImageURL)
}
@@ -1,57 +0,0 @@
//
// EmojiHoarder.LetterStats.swift
// StickerSlack
//
// Created by neon443 on 03/07/2026.
//
import Foundation
extension EmojiHoarder {
func generateLetterStats() {
var result: [EmojiHoarder.LetterStat] = []
for child in trie.root.children {
let count = trie.collectWords(startingWith: child.key, from: child.value).count
let stat = LetterStat(char: child.key, count: count)
result.append(stat)
}
self.letterStats = result
sortLetterStats(by: self.letterStatsSorting)
}
func sortLetterStats(by: EmojiHoarder.LetterStatSorting) {
self.letterStatsSorting = by
let sortByLetter = letterStatsSorting.by == .letter
switch by.ascending {
case true:
letterStats.sort {
if sortByLetter {
$0.char > $1.char
} else {
$0.count > $1.count
}
}
case false:
letterStats.sort {
if sortByLetter {
$0.char > $1.char
} else {
$0.count < $1.count
}
}
}
}
struct LetterStat: Hashable {
var char: String
var count: Int
}
enum SortLetterStatsBy: String, CaseIterable {
case letter = "Letter"
case count = "Count"
}
struct LetterStatSorting: Hashable, Equatable {
var by: EmojiHoarder.SortLetterStatsBy = .count
var ascending: Bool = true
}
}
@@ -1,78 +0,0 @@
//
// EmojiHoarder.Packs.swift
// StickerSlack
//
// Created by neon443 on 03/07/2026.
//
import Foundation
import SwiftUI
extension EmojiHoarder {
func loadEmojiPacks() {
guard let data = try? Data(contentsOf: Self.packStore),
let decoded = try? decoder.decode([URL].self, from: data) else { return }
self.emojiPacks = decoded.map {
EmojiPack(fromShareLink: $0) ?? .new()
}
}
func saveEmojiPacks() {
var toStore: [URL] = []
for pack in emojiPacks {
toStore.append(pack.shareLink())
}
guard let encoded = try? encoder.encode(toStore) else { return }
try? encoded.write(to: Self.packStore)
}
func newEmojiPack(withItems items: [String] = []) {
addEmojiPack(.new(withItems: items))
}
func addEmojiPack(_ packToAdd: EmojiPack) {
var packToAdd = packToAdd
if emojiPacks.contains(where: { $0.id == packToAdd.id }) {
packToAdd.id = UUID()
}
withAnimation {
emojiPacks.append(packToAdd)
}
saveEmojiPacks()
}
func removeEmojiPack(_ packToRemove: EmojiPack) {
withAnimation {
emojiPacks.removeAll { $0.id == packToRemove.id }
}
saveEmojiPacks()
}
func removeEmojiPack(atOffsets offset: IndexSet) {
withAnimation {
emojiPacks.remove(atOffsets: offset)
}
saveEmojiPacks()
}
func updateEmojiPack(_ updatedPack: EmojiPack) {
guard let index = self.emojiPacks.firstIndex(where: { $0.id == updatedPack.id }) else { return }
withAnimation {
self.emojiPacks[index] = updatedPack
}
saveEmojiPacks()
}
func moveEmojiPacks(fromOffsets: IndexSet, toOffset: Int) {
withAnimation {
emojiPacks.move(fromOffsets: fromOffsets, toOffset: toOffset)
}
saveEmojiPacks()
}
func moveEmojiPack(from: IndexPath, to: IndexPath) {
let removed = emojiPacks.remove(at: from.row)
emojiPacks.insert(removed, at: to.row)
saveEmojiPacks()
}
}
@@ -1,301 +0,0 @@
//
// EmojiHoarder.swift
// StickerSlack
//
// Created by neon443 on 15/10/2025.
//
import Foundation
import SwiftUI
import Combine
import UniformTypeIdentifiers
import Haptics
class EmojiHoarder: BaseHoarder {
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)
nonisolated static let packStore: URL = EmojiHoarder.library.appendingPathComponent("packStore.json", conformingTo: .fileURL)
let endpoint: URL = URL(string: "https://cachet.dunkirk.sh/emojis")!
@Published var emojis: [Emoji] = []
@Published var emojiPacks: [EmojiPack] = []
var trie: Trie = Trie()
@Published var downloadedStickersArr: [String] = []
@Published var letterStats: [EmojiHoarder.LetterStat] = []
@Published var letterStatsSorting: EmojiHoarder.LetterStatSorting = .init(by: .letter, ascending: true)
@Published var showWelcome: Bool = false
init(localOnly: Bool = false, skipIndex: Bool = false) {
super.init()
self.showWelcome = !UserDefaults.standard.bool(forKey: "showWelcome")
if !FileManager.default.fileExists(atPath: EmojiHoarder.container.safePath) {
try! FileManager.default.createDirectory(at: EmojiHoarder.container, withIntermediateDirectories: true)
}
loadEmojiPacks()
self.emojis = loadLocalDB()
sendChangeNotif(for: .emojis)
self.trie.dict = loadTrieDict()
startLoading(localOnly: localOnly, skipIndex: skipIndex)
}
func startLoading(localOnly: Bool, skipIndex: Bool) {
Task.detached {
print(localOnly)
if !skipIndex { await self.buildTrie() }
if !localOnly {
print("start loading remote db")
await self.loadRemoteDB()
print("end")
}
if !skipIndex {
await self.buildTrie()
await self.saveTrieDict()
}
}
}
func deleteAllStickers() async {
await withTaskGroup { group in
for i in emojis.indices {
group.addTask {
guard self.downloadedStickers.contains(self.emojis[i].name) else { return }
await self.delete(emoji: self.emojis[i], skipStoreIndex: true)
}
}
}
await MainActor.run {
downloadedStickers = []
downloadedStickersArr = []
sendChangeNotif(for: .downloadedEmojis)
}
}
private func storeDB(data: Data) {
try! data.write(to: EmojiHoarder.localEmojiDB)
}
func resetAllIndexes() {
trie.root = TrieNode()
trie.dict = [:]
trie.wordlist = []
try? FileManager.default.removeItem(at: EmojiHoarder.localEmojiDB)
try? FileManager.default.removeItem(at: EmojiHoarder.localTrieDict)
downloadedStickers = []
sendChangeNotif(for: .downloadedEmojis)
letterStats = []
}
nonisolated private func saveTrieDict() async {
guard let dataDict = try? encoder.encode(trie.dict) else {
fatalError("failed to encode trie dict")
}
try! dataDict.write(to: EmojiHoarder.localTrieDict)
}
private func loadTrieDict() -> [String: Emoji] {
guard FileManager.default.fileExists(atPath: EmojiHoarder.localTrieDict.safePath) 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")
}
return decodedDict
}
nonisolated func buildTrie() async {
let start = Date().timeIntervalSince1970
var wordlist = trie.wordlist
var dict = trie.dict
for emoji in emojis {
// trie.insert(word: emoji.name)
wordlist.insert(emoji.name)
dict[emoji.name] = emoji
}
trie.wordlist = wordlist
trie.dict = dict
await buildDownloadedStickers()
print("done building trie in", Date().timeIntervalSince1970-start)
}
nonisolated override func buildDownloadedStickers(for stickerType: String = "Emojis") async {
await super.buildDownloadedStickers(for: stickerType)
await MainActor.run {
downloadedStickersArr = Array(downloadedStickers).sorted()
}
sendChangeNotif(for: .downloadedEmojis)
}
func buildDownloadedStickersSync() {
var newSet: Set<String> = []
if let files = try? FileManager.default.contentsOfDirectory(atPath: EmojiHoarder.container.safePath) {
for file in files {
let name = String(file.split(separator: ".")[0])
newSet.insert(name)
}
}
newSet.remove("DS_Store")
let immutable = newSet
self.downloadedStickers = []
self.downloadedStickers = immutable
downloadedStickersArr = Array(downloadedStickers).sorted()
sendChangeNotif(for: .downloadedEmojis)
return
}
private func loadLocalDB() -> [Emoji] {
do {
let localEmojiDB = try Data(contentsOf: EmojiHoarder.localEmojiDB)
let decoded = try decoder.decode([Emoji].self, from: localEmojiDB)
return decoded
} catch {
print(error)
print(error.localizedDescription)
return []
}
}
nonisolated private func loadRemoteDB() async {
async let fetched = self.fetchRemoteDB()
if let fetched = await fetched,
await fetched != self.emojis {
await MainActor.run {
withAnimation(.snappy) { self.emojis = fetched }
sendChangeNotif(for: .emojis)
}
}
}
nonisolated private func fetchRemoteDB() async -> [Emoji]? {
do {
async let (data, _) = try URLSession.shared.data(from: endpoint)
let decoded: [SlackResponse] = try decoder.decode([SlackResponse].self, from: await data)
try storeDB(data: await data)
return SlackResponse.toEmojis(from: decoded)
} catch {
print(error.localizedDescription)
return nil
}
}
//MARK: emojis
func downloadAllStickers() async {
let start: Date = .now
let cores = ProcessInfo.processInfo.processorCount-1
var ranges: [Range<Int>] = []
for i in 0..<cores {
let onething = emojis.count/cores
ranges.append(onething*i..<onething + (onething*i))
if i == (0..<cores).last {
let last = ranges.last!
ranges.removeLast()
ranges.append(onething*i..<(onething + (onething*i)+emojis.count-last.upperBound))
}
}
await withTaskGroup { group in
for range in ranges {
group.addTask {
for i in range {
await self.download(emoji: self.emojis[i], skipStoreIndex: true)
}
}
}
}
print(Date.now.timeIntervalSince(start))
}
nonisolated func batchDownload(emojis emojisToDownload: [any StickerProtocol]) async {
await withTaskGroup { group in
for emoji in emojisToDownload {
group.addTask {
await self.download(emoji: emoji, skipStoreIndex: true)
}
}
}
await buildDownloadedStickers()
}
override nonisolated func download(emoji: (any StickerProtocol)?, skipStoreIndex: Bool = false) async {
guard let emoji else { return }
guard !downloadedStickers.contains(emoji.name) else { return }
await super.download(emoji: emoji, skipStoreIndex: skipStoreIndex)
await MainActor.run {
if !skipStoreIndex {
let _ = withAnimation(.snappy) {
self.downloadedStickers.insert(emoji.name)
self.downloadedStickersArr.append(emoji.name)
sendChangeNotif(for: .downloadedEmojis)
}
}
}
}
nonisolated func batchDelete(emojis emojisToDelete: [any StickerProtocol]) async {
await withTaskGroup { group in
for emoji in emojisToDelete {
group.addTask {
await self.delete(emoji: emoji, skipStoreIndex: true)
}
}
}
await buildDownloadedStickers()
}
nonisolated override func delete(emoji: (any StickerProtocol)?, skipStoreIndex: Bool = false) async {
guard let emoji else { return }
await super.delete(emoji: emoji, skipStoreIndex: skipStoreIndex)
if !skipStoreIndex {
await MainActor.run {
let _ = withAnimation(.snappy) {
downloadedStickers.remove(emoji.name)
downloadedStickersArr.removeAll(where: { $0 == emoji.name })
sendChangeNotif(for: .downloadedEmojis)
}
}
}
}
func setShowWelcome(to newValue: Bool) {
UserDefaults.standard.set(!newValue, forKey: "showWelcome")
self.showWelcome = newValue
}
//MARK: notifications
func sendChangeNotif(for notifFor: NotifCategory) {
let nc = NotificationCenter.default
nc.post(name: notifFor.name, object: nil)
}
enum NotifCategory {
case emojis
case downloadedEmojis
case packs
var name: Notification.Name {
switch self {
case .emojis:
Notification.Name("EmojiHoarder.notif.emojis")
case .downloadedEmojis:
Notification.Name("EmojiHoarder.notif.downloadedEmojis")
case .packs:
Notification.Name("EmojiHoarder.notif.packs")
}
}
}
}
-17
View File
@@ -1,17 +0,0 @@
//
// CGFloat.swift
// StickerSlack
//
// Created by neon443 on 25/08/2026.
//
import Foundation
extension CGFloat {
func rad() -> CGFloat {
return (self / 180) * Self.pi
}
func deg() -> CGFloat {
return (self / Self.pi) * 180
}
}
@@ -1,169 +0,0 @@
//
// TestStructures.swift
// StickerSlack
//
// Created by neon443 on 21/03/2026.
//
import Foundation
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")!
)
}
//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
//}
extension EmojiPack {
static var test: EmojiPack {
EmojiPack(
id: UUID(),
name: "test pack",
items: [
"pf",
"heavysob",
"yay",
"skulk",
"loll",
"bleh",
"uhh",
"communist"
// "communist",
// "ufahh",
// "uhafh",
// "uhgfh",
// "uoohh",
// "ujyhgghh",
// "uhfgh",
// "ujg3thh",
// "uyhh",
// "ughhhh",
// "uvhh",
// "ujrg3tjthhg",
// "ujherh",
// "uxhggrh",
// "ushgrq3geallh",
// "u hrgqh",
// "ujjjjjyhgh",
// "uherhh",
// "uhhesh",
// "hhreruhgh",
// "u hffh",
// "uh h",
// "uaugerhh",
// "u4h3h",
// "u4hh",
// "ueyhh ",
// "u erthh",
// "uhujh",
// "ujkkkkhh"
]
)
}
}
-20
View File
@@ -1,20 +0,0 @@
//
// UIColor.swift
// StickerSlack
//
// Created by neon443 on 02/08/2026.
//
import Foundation
import UIKit
extension UIColor {
var inverted: UIColor {
var (r, g, b, a): (CGFloat, CGFloat, CGFloat, CGFloat) = (0, 0, 0, 0)
if self.getRed(&r, green: &g, blue: &b, alpha: &a) {
return UIColor(red: 1.0-r, green: 1.0-g, blue: 1.0-b, alpha: a)
} else {
return .clear
}
}
}
-26
View File
@@ -1,26 +0,0 @@
//
// URL.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import Foundation
extension URL {
nonisolated var safePath: String {
if #available(iOS 16, *) {
return self.path()
} else {
return self.path
}
}
nonisolated var safeHost: String? {
if #available(iOS 16, *) {
return self.host()
} else {
return self.host
}
}
}
-190
View File
@@ -1,190 +0,0 @@
//
// ViewModifiers.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import Foundation
import SwiftUI
struct numericTextCompat: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content.contentTransition(.numericText())
} else {
content.transition(.opacity)
}
}
}
struct glassButtonIfAv: ViewModifier {
var enabled: Bool
init(_ enabled: Bool = true) {
self.enabled = enabled
}
func body(content: Content) -> some View {
#if compiler(>=6.2)
if enabled {
if #available(iOS 19, *) {
content.buttonStyle(.glassProminent)
} else {
content.buttonStyle(.borderedProminent)
}
} else {
content
}
#else
if enabled {
content.buttonStyle(.borderedProminent)
} else {
content
}
#endif
}
}
struct NavigationView2<T: View>: View {
@ViewBuilder var contents: T
var body: some View {
if #available(iOS 16, *) {
NavigationStack {
contents
}
} else {
NavigationView {
contents
}
}
}
}
struct presentationHalfAndFullIfAv: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content
.presentationDetents([.medium, .large])
.presentationDragIndicator(.visible)
} else {
content
}
}
}
struct BoldSafe: ViewModifier {
var isEnabled: Bool = true
var style: Font.TextStyle = .body
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content.bold(isEnabled)
} else {
if isEnabled {
content.font(.system(style).bold())
} else {
content.font(.system(style))
}
}
}
}
struct MonospacedSafe: ViewModifier {
var isEnabled: Bool = true
var style: Font.TextStyle = .body
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content.monospaced(isEnabled)
} else {
if isEnabled {
content.font(.system(style).monospaced())
} else {
content.font(.system(style))
}
}
}
}
struct ScrollContentBackgroundHidden: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content.scrollContentBackground(.hidden)
} else {
content
}
}
}
struct TabViewBottomAcceessorySafe<T: View>: ViewModifier {
var isEnabled: Bool
@ViewBuilder var contents: () -> T
func body(content: Content) -> some View where Content: View {
#if compiler(>=6.2.1)
if #available(iOS 26.1, *) {
content
.tabViewBottomAccessory(isEnabled: isEnabled, content: contents)
} else {
content
}
#else
content
#endif
}
}
extension View {
func tabViewBottomAccessorySafe<Content: View>(
isEnabled: Bool = true,
@ViewBuilder content: @escaping () -> Content
) -> some View {
modifier(TabViewBottomAcceessorySafe(isEnabled: isEnabled, contents: content))
}
}
struct fadeIn: ViewModifier {
@State private var enabled: Bool
@State private var isVisible: Bool = false
init(enabled: Bool = true) {
self.enabled = enabled
}
func body(content: Content) -> some View {
if enabled {
content
.opacity(isVisible ? 1 : 0)
.scaleEffect(isVisible ? 1 : 0)
.onAppear {
withAnimation { isVisible = true }
}
.onDisappear {
withAnimation { isVisible = false }
}
} else {
content
}
}
}
//nonisolated func contextMenu<I, M>(forSelectionType itemType: I.Type = I.self, @ViewBuilder menu: @escaping (Set<I>) -> M, primaryAction: ((Set<I>) -> Void)? = nil) -> some View where I : Hashable, M : View
struct ContextMenuSafe<I, M>: ViewModifier where I : Hashable, M : View {
var itemType: I.Type = I.self
@ViewBuilder var menu: (Set<I>) -> M
var primaryAction: ((Set<I>) -> Void)? = nil
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content
.contextMenu(forSelectionType: itemType) { items in
menu(items)
}
} else {
content
}
}
}
+17 -25
View File
@@ -12,30 +12,30 @@ import UniformTypeIdentifiers
struct Gif: StickerProtocol {
var id: String
var name: String
var UIName: String
var typeGlyph: String = "giphy.logo"
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+fileExtension
}
var remoteImageURL: URL
var giphyImages: GiphyImages?
// enum CodingKeys: String, CodingKey {
//
// }
// enum CodingKeys: String, CodingKey {
//
// }
init(
name: String,
UIName: String,
url: URL,
giphyImages: GiphyImages?,
id: String = UUID().uuidString
) {
self.id = id
self.name = name
self.UIName = UIName
self.giphyImages = giphyImages
self.remoteImageURL = url
}
nonisolated func downloadImage() async throws {
func downloadImage() async throws {
if let data = try? Data(contentsOf: localImageURL),
let _ = UIImage(data: data) {
return
@@ -45,25 +45,17 @@ struct Gif: StickerProtocol {
if let uiImage = UIImage(data: data),
let cgImage = uiImage.cgImage,
!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! data.write(to: localImageURL)
return
}
nonisolated func getPreviewData() async -> Data? {
if let giphyImages = self.giphyImages,
let preview_gif = giphyImages.preview_gif,
let url = URL(string: preview_gif.url) {
return try? await URLSession.shared.data(from: url).0
} else { return nil }
}
nonisolated func getPreviewImage() async -> UIImage? {
guard let data = await self.getPreviewData() else { return nil }
return UIImage(data: data)
}
static var test: Gif = Gif(
name: "doesheknow",
url: URL(string: "https://media1.tenor.com/m/FN9udnZmQU8AAAAd/does-he-know-batman.gif")!
)
}
+16 -35
View File
@@ -10,36 +10,36 @@ import SwiftUI
import UniformTypeIdentifiers
import Combine
class GifHoarder: BaseHoarder {
static let container: URL = library.appendingPathComponent("Gifs", conformingTo: .directory)
class GifHoarder: Hoarder, ObservableObject {
static let container: URL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.neon443.StickerSlack")!.appendingPathComponent("Library", conformingTo: .directory)
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> = []
@Published var downloadedStickers: Set<String> = []
func download(emoji: any StickerProtocol, skipStoreIndex: Bool = false) {
// <#code#>
}
func delete(emoji: any StickerProtocol, skipStoreIndex: Bool = false) {
// <#code#>
}
init(localOnly: Bool = false) {
super.init()
if !FileManager.default.fileExists(atPath: GifHoarder.container.safePath) {
try! FileManager.default.createDirectory(at: GifHoarder.container, withIntermediateDirectories: true)
}
startLoadingTrending()
}
func startLoadingTrending() {
var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)
components?.queryItems = [
URLQueryItem(name: "api_key", value: GifHoarder.apiKey),
URLQueryItem(name: "limit", value: "500")
URLQueryItem(name: "limit", value: "100")
]
guard let finalURL = components?.url else { fatalError("invalid URL for request for trending gifs") }
Task {
do {
let (data, _) = try await URLSession.shared.data(from: finalURL)
let object: Trending = try JSONDecoder().decode(Trending.self, from: data)
async let (data, _) = try URLSession.shared.data(from: components!.url!)
let object: Trending = try JSONDecoder().decode(Trending.self, from: await data)
guard object.meta.status == 200 else {
fatalError("non ok status code")
}
@@ -47,25 +47,6 @@ class GifHoarder: BaseHoarder {
} 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) async {
await 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)
}
}
+7 -45
View File
@@ -9,57 +9,19 @@ import Foundation
import SwiftUI
import Combine
import UniformTypeIdentifiers
import Haptics
protocol Hoarder: ObservableObject {
static var library: URL { get }
static var container: URL { get }
var endpoint: URL { get }
var downloadedStickers: Set<String> { get set }
var encoder: JSONEncoder { get }
var decoder: JSONDecoder { get }
nonisolated func download(emoji: any StickerProtocol, skipStoreIndex: Bool) async
nonisolated func delete(emoji: any StickerProtocol, skipStoreIndex: Bool) async
func download(emoji: any StickerProtocol, skipStoreIndex: Bool) async
func delete(emoji: any StickerProtocol, skipStoreIndex: Bool)
}
class BaseHoarder: Hoarder {
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()
nonisolated func download(emoji: any StickerProtocol, skipStoreIndex: Bool) async {
try? await emoji.downloadImage()
if !skipStoreIndex {
await MainActor.run {
Haptic.success.trigger()
}
}
}
nonisolated func delete(emoji: any StickerProtocol, skipStoreIndex: Bool) async {
await emoji.deleteImage()
}
nonisolated func buildDownloadedStickers(for stickerType: String) async {
var newSet: Set<String> = []
let url = BaseHoarder.library.appendingPathComponent(stickerType, conformingTo: .directory)
if let files = try? FileManager.default.contentsOfDirectory(atPath: url.safePath) {
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() {}
extension Hoarder {
var encoder: JSONEncoder { JSONEncoder() }
var decoder: JSONDecoder { JSONDecoder() }
}
-21
View File
@@ -1,21 +0,0 @@
<?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>
-134
View File
@@ -1,134 +0,0 @@
//
// JumboMoji.swift
// StickerSlack
//
// Created by neon443 on 03/05/2026.
//
import Foundation
import CoreGraphics
struct JumboMoji: CustomStringConvertible, Hashable {
var baseName: String
var width: Int
var height: Int
var type: JumboMoji.Style
var items: [String]
var description: String {
self.baseName + " " + "\(width)x\(height)"
}
init?(components: [JumboMoji.Components]) {
guard components.allSatisfy({$0.baseName == components.first?.baseName}) else { return nil }
self.baseName = components.first!.baseName
let coords = components.map { CGPoint(x: $0.x, y: $0.y) }
self.width = Int(coords.map { $0.x }.max() ?? -1)
self.height = Int(coords.map { $0.y }.max() ?? -1)
guard width != -1 && height != -1 else { return nil }
self.type = .grid
guard width*height == components.count else { return nil }
let sorted = components.sorted {
if $0.y != $1.y {
return $0.y < $1.y
} else {
return $0.x < $1.x
}
}
self.items = sorted.map { $0.name }
}
enum Style {
case grid
case btn
}
static nonisolated func from(names input: [String]) -> [JumboMoji] {
guard input.count > 0 else { return [] }
let input = input.sorted()
var jumboMojiComponents: [String: [JumboMoji.Components]] = [:]
for i in input.indices {
guard let currentComponents = splitIntoComponents(string: input[i]) else { continue }
if jumboMojiComponents.isEmpty || jumboMojiComponents[currentComponents.baseName] == nil {
jumboMojiComponents[currentComponents.baseName] = [currentComponents]
} else {
jumboMojiComponents[currentComponents.baseName]?.append(currentComponents)
}
}
print(jumboMojiComponents.mapValues({JumboMoji(components: $0)}).count)
var result: [JumboMoji] = []
for item in jumboMojiComponents {
if let jumbomoji = JumboMoji(components: item.value) {
result.append(jumbomoji)
}
}
return result
}
static nonisolated func splitIntoComponents(string input: String) -> JumboMoji.Components? {
var string = input
var baseNameCount: Int = -1
for char in string {
if Int(String(char)) == nil {
baseNameCount += 1
} else { break }
}
guard baseNameCount > -1 && baseNameCount != input.count else { return nil }
let baseName = String(input.prefix(baseNameCount))
string = String(string.dropFirst(baseName.count+1))
guard input.dropFirst(baseNameCount).first == "-" else { return nil }
var coordCount = 1
var freeSkip = 1
for char in string {
if Int(String(char)) == nil {
guard freeSkip > 0 else { break }
freeSkip -= 1
continue
} else {
coordCount += 1
}
}
let coord = String(string.prefix(coordCount))
let coordSplit = coord.split(separator: "-").map { String($0) }
guard coord.contains("-") &&
Int(coordSplit.first ?? "x") != nil &&
Int(coordSplit.last ?? "x") != nil
else { return nil }
string = String(string.dropFirst(coordCount+1))
let id = string
return JumboMoji.Components(
baseName: baseName,
coordinate: coord,
id: id
)
}
struct Components {
var baseName: String
var coordinate: String
var id: String
var x: Int {
let split = coordinate.split(separator: "-").first ?? "0"
return Int(split) ?? 0
}
var y: Int {
let split = coordinate.split(separator: "-").last ?? "0"
return Int(split) ?? 0
}
var name: String {
return "\(self.baseName)-\(self.coordinate)-\(self.id)"
}
}
}
+1 -7
View File
@@ -31,12 +31,6 @@ struct GifObject: Codable, Identifiable {
var is_low_contrast: Bool
var toGif: Gif {
return Gif(
name: self.slug,
UIName: self.title,
url: URL(string: self.images.original.url)!,
giphyImages: images,
id: self.id
)
return Gif(name: self.title, url: URL(string: self.images.fixed_width.url)!, id: self.id)
}
}
+20 -20
View File
@@ -7,54 +7,54 @@
import Foundation
struct GiphyImages: Codable, Equatable, Hashable {
struct GiphyImages: Codable {
//fixed height of 200px
var fixed_height: motion
//fixed height of 200px still
var fixed_height_still: 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?
var fixed_height_small_still: still
//fixed width of 200px
var fixed_width: motion
//fixed width of 200px
var fixed_width_still: still?
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?
var fixed_width_small_still: still
//under 2mb
var downsized: downsized?
var downsized: downsized
//downsized still
var downsized_still: still?
var downsized_still: still
//under 8mb
var downsized_large: downsized?
var downsized_large: downsized
//under 5mb
var downsized_medium: downsized?
var downsized_medium: downsized
//under 200kb
var downsized_small: video?
var downsized_small: video
var original: motion
var original_still: still?
var original_still: still
//15s looping version
// var looping: looping?
// var looping: looping
//mp4 format 50kb, first 1-2s of the gif
var preview: video?
var preview: video
//50kb first 1-2s of the gif
var preview_gif: still?
var preview_gif: still
struct motion: Codable, Equatable, Hashable {
struct motion: Codable {
var url: String
var width: String
var height: String
@@ -64,12 +64,12 @@ struct GiphyImages: Codable, Equatable, Hashable {
var webp: String
var webp_size: String
}
struct still: Codable, Equatable, Hashable {
struct still: Codable {
var url: String
var width: String
var height: String
}
struct downsampled: Codable, Equatable, Hashable {
struct downsampled: Codable {
var url: String
var width: String
var height: String
@@ -77,16 +77,16 @@ struct GiphyImages: Codable, Equatable, Hashable {
var webp: String
var webp_size: String
}
struct downsized: Codable, Equatable, Hashable {
struct downsized: Codable {
var url: String
var width: String
var height: String
var size: String
}
struct looping: Codable, Equatable, Hashable {
struct looping: Codable {
var mp4: String
}
struct video: Codable, Equatable, Hashable {
struct video: Codable {
var mp4: String
var mp4_size: String
var width: String
-71
View File
@@ -1,71 +0,0 @@
//
// SceneDelegate.swift
// StickerSlack
//
// Created by neon443 on 14/10/2026.
//
import Foundation
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else { return }
window = UIWindow(windowScene: windowScene)
window?.rootViewController = TabbedContentView()
(window?.rootViewController! as! TabbedContentView).setupTabs(with: StickerSlackApp.emojiHoarder)
window?.makeKeyAndVisible()
if StickerSlackApp.emojiHoarder.showWelcome {
let welcomeView = UIHostingController(rootView: WelcomeView(emojiHoarder: StickerSlackApp.emojiHoarder))
if welcomeView.sheetPresentationController != nil {
self.window?.rootViewController?.present(welcomeView, animated: true)
}
}
}
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
guard let context = URLContexts.first else { return }
guard UIApplication.shared.canOpenURL(context.url) else { return }
guard let rootViewController = window?.rootViewController else { return }
guard var imported = EmojiPack(fromShareLink: context.url) else { return }
let importView = EmojiPackImporterViewController(emojiHoarder: StickerSlackApp.emojiHoarder, pack: imported)
if let sheet = importView.sheetPresentationController {
sheet.detents = [.large()]
sheet.prefersScrollingExpandsWhenScrolledToEdge = false
sheet.prefersEdgeAttachedInCompactHeight = true
sheet.widthFollowsPreferredContentSizeWhenEdgeAttached = true
sheet.prefersGrabberVisible = true
}
rootViewController.present(importView, animated: true)
}
func sceneDidDisconnect(_ scene: UIScene) {
// <#code#>
}
func sceneDidBecomeActive(_ scene: UIScene) {
// <#code#>
}
func sceneWillResignActive(_ scene: UIScene) {
// <#code#>
}
func sceneWillEnterForeground(_ scene: UIScene) {
// <#code#>
}
func sceneDidEnterBackground(_ scene: UIScene) {
// <#code#>
}
}
-5
View File
@@ -2,11 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:stickerslack.neon443.xyz</string>
<string>applinks:nihaals.me</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.neon443.StickerSlack</string>
+6 -23
View File
@@ -5,30 +5,13 @@
// Created by neon443 on 15/10/2025.
//
import UIKit
import SwiftUI
@main
class StickerSlackApp: UIResponder, UIApplicationDelegate {
static var emojiHoarder: EmojiHoarder = .init()
var window: UIWindow?
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?
) -> Bool {
return true
}
func application(
_ application: UIApplication,
configurationForConnecting connectingSceneSession: UISceneSession,
options: UIScene.ConnectionOptions
) -> UISceneConfiguration {
let config = UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
config.delegateClass = SceneDelegate.self
return config
}
struct StickerSlackApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
+3 -12
View File
@@ -9,7 +9,7 @@ import Foundation
enum StickerType: CustomStringConvertible, CaseIterable, Identifiable {
case slackEmoji
// case giphyGifs
case giphyGifs
var id: String { self.description }
@@ -17,17 +17,8 @@ enum StickerType: CustomStringConvertible, CaseIterable, Identifiable {
switch self {
case .slackEmoji:
return "Slack Emoji"
// case .giphyGifs:
// return "Giphy GIFs"
}
}
var fromAppName: String {
switch self {
case .slackEmoji:
return "Slack"
// case .giphyGifs:
// return "Giphy"
case .giphyGifs:
return "Giphy GIFs"
}
}
}
+43 -69
View File
@@ -9,52 +9,23 @@ import Foundation
import Messages
extension StickerProtocol {
var localImageURLString: String {
let containerPath = EmojiHoarder.container.safePath
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last!)"
return containerPath+name+"."+id+fileExtension
var localImageURL: URL {
return URL(string: localImageURLString)!
}
var localImageURL: URL {
if #available(iOS 16, *) {
return URL(filePath: localImageURLString)
} else {
return URL(fileURLWithPath: localImageURLString)
}
var isLocal: Bool {
return (try? Data(contentsOf: localImageURL)) != nil
}
var msSticker: MSSticker? {
guard FileManager.default.fileExists(atPath: localImageURLString) else {
guard isLocal else {
return nil
}
return try? MSSticker(contentsOfFileURL: localImageURL, localizedDescription: name)
}
nonisolated var isLocal: Bool {
return FileManager.default.fileExists(atPath: localImageURLString)
}
nonisolated func data() async -> Data? {
var result: (data: Data, response: URLResponse)
do {
result = try await URLSession.shared.data(from: isLocal ? localImageURL : remoteImageURL)
} catch {
print(error.localizedDescription)
return nil
}
return result.data
}
nonisolated func image() async -> UIImage? {
guard let data = await data() else { return nil }
return UIImage(data: data)
}
var image: UIImage? {
if FileManager.default.fileExists(atPath: localImageURLString),
let data = try? Data(contentsOf: localImageURL),
if let data = try? Data(contentsOf: localImageURL),
let img = UIImage(data: data) {
return img
} else {
@@ -62,25 +33,23 @@ extension StickerProtocol {
}
}
nonisolated var type: StickerType {
return .slackEmoji
}
nonisolated func downloadImage() async throws {
if let data = try? Data(contentsOf: localImageURL),
nonisolated
func downloadImage() async throws {
if let data = try? await Data(contentsOf: localImageURL),
let _ = UIImage(data: data) {
return
}
var (data, _) = try await URLSession.shared.data(from: remoteImageURL)
let targetSize = CGSize(width: 100, height: 100)
if let uiImage = UIImage(data: data),
localImageURLString.suffix(4) != ".gif" {
data = await resize(image: uiImage, to: targetSize).pngData()!
let cgImage = uiImage.cgImage,
await !self.localImageURLString.contains(".gif"),
cgImage.width < 300 || cgImage.height < 300 {
data = await resize(image: uiImage, to: CGSize(width: 300, height: 300)).pngData()!
}
try! data.write(to: localImageURL)
try! await data.write(to: localImageURL)
return
}
func deleteImage() {
@@ -88,29 +57,34 @@ extension StickerProtocol {
return
}
nonisolated func resize(image: UIImage, to targetSize: CGSize) async -> UIImage {
let renderer = UIGraphicsImageRenderer(size: targetSize)
let resizedImage = renderer.image { _ in
image.draw(in: CGRect(origin: .zero, size: targetSize))
}
return resizedImage
}
nonisolated func resize(cgImage: CGImage, to targetSize: CGSize) -> CGImage? {
let width = Int(targetSize.width)
let height = Int(targetSize.height)
guard let context = CGContext(
data: nil,
width: width,
height: height,
bitsPerComponent: cgImage.bitsPerComponent,
bytesPerRow: cgImage.bytesPerRow,
space: cgImage.colorSpace ?? CGColorSpaceCreateDeviceRGB(),
bitmapInfo: cgImage.bitmapInfo.rawValue
) else { fatalError() }
func resize(image: UIImage, to targetSize: CGSize) -> UIImage {
let oldSize = image.size
let ratio: (x: CGFloat, y: CGFloat)
ratio.x = targetSize.width / oldSize.width
ratio.y = targetSize.height / oldSize.height
context.interpolationQuality = .default
context.draw(cgImage, in: CGRect(origin: .zero, size: targetSize))
return context.makeImage()
var newSize: CGSize
if ratio.x > ratio.y {
newSize = CGSize(width: oldSize.width * ratio.y, height: oldSize.height * ratio.y)
} else {
newSize = CGSize(width: oldSize.width * ratio.x, height: oldSize.height * ratio.x)
}
let rect = CGRect(origin: .zero, size: newSize)
if let frames = image.images {
var result: [UIImage] = []
for frame in frames {
UIGraphicsBeginImageContextWithOptions(newSize, false, 1.0)
frame.draw(in: rect)
result.append(UIGraphicsGetImageFromCurrentImageContext() ?? UIImage())
UIGraphicsEndImageContext()
}
return UIImage.animatedImage(with: result, duration: image.duration) ?? UIImage()
}
UIGraphicsBeginImageContextWithOptions(newSize, false, 1.0)
image.draw(in: rect)
return UIGraphicsGetImageFromCurrentImageContext() ?? UIImage()
}
}
+5 -6
View File
@@ -11,19 +11,18 @@ import Messages
protocol StickerProtocol: Codable, Identifiable, Hashable {
var id: String { get set }
var name: String { get set }
var UIName: String { get set }
var typeGlyph: String { get }
var localImageURL: URL { get }
var localImageURLString: String { get }
var remoteImageURL: URL { get set }
var isLocal: Bool { get }
var msSticker: MSSticker? { get }
var image: UIImage? { get }
nonisolated func downloadImage() async throws
nonisolated func deleteImage() async
nonisolated func resize(image: UIImage, to targetSize: CGSize) async -> UIImage
func downloadImage() async throws
func deleteImage()
func resize(image: UIImage, to targetSize: CGSize) -> UIImage
static var test: Self { get }
}
@@ -1,49 +0,0 @@
//
// AddToPackMenuView.swift
// StickerSlack
//
// Created by neon443 on 01/05/2026.
//
import SwiftUI
struct AddToPackMenuView: View {
@ObservedObject var emojiHoarder: EmojiHoarder
@State var sticker: Emoji
var body: some View {
Menu {
if emojiHoarder.emojiPacks.isEmpty {
Label("No Packs", systemImage: "questionmark.app.dashed")
} else {
Label("Add to Pack", systemImage: "square.stack.3d.up.fill")
}
ForEach($emojiHoarder.emojiPacks) { $pack in
Button() {
pack.addRemove(sticker.name)
emojiHoarder.saveEmojiPacks()
} label: {
if pack.items.contains(sticker.name) {
Image(systemName: "checkmark")
}
Text(pack.name)
Text("\(pack.items.count) item"+pack.items.count.plural)
}
}
Divider()
Button("Create New", systemImage: "plus") {
emojiHoarder.newEmojiPack(withItems: [sticker.name])
}
} label: {
Image(systemName: "plus")
.resizable().scaledToFit()
}
}
}
#Preview {
AddToPackMenuView(
emojiHoarder: EmojiHoarder(localOnly: true, skipIndex: true),
sticker: .test
)
}
+26 -10
View File
@@ -6,22 +6,38 @@
//
import SwiftUI
import Haptics
struct BrowseView: View {
@State private var browseWhat: StickerType = .slackEmoji
@ObservedObject var emojiHoarder: EmojiHoarder
@ObservedObject var gifHoarder: GifHoarder
var body: some View {
VStack {
EmojiTableViewRepresentable(
hoarder: emojiHoarder,
items: emojiHoarder.emojis.map { $0.name }
)
.padding(.bottom, 10)
var body: some View {
List {
Picker("", selection: $browseWhat) {
ForEach(StickerType.allCases, id: \.self) { type in
Text(type.description)
}
}
.pickerStyle(.segmented)
switch browseWhat {
case .slackEmoji:
ForEach(emojiHoarder.emojis, id: \.self) { emoji in
StickerRow(hoarder: emojiHoarder, emoji: emoji)
.listRowSeparator(.hidden)
}
case .giphyGifs:
ForEach(gifHoarder.trendingGifs) { gif in
StickerRow(hoarder: emojiHoarder, emoji: gif)
}
}
}
}
}
}
#Preview {
BrowseView(emojiHoarder: EmojiHoarder(localOnly: true))
BrowseView(
emojiHoarder: EmojiHoarder(localOnly: true),
gifHoarder: GifHoarder(localOnly: true)
)
}
+23 -44
View File
@@ -9,77 +9,56 @@ import SwiftUI
import Haptics
struct ContentView: View {
@ObservedObject var emojiHoarder: EmojiHoarder
@State var tabSelection: AppTab = .browse
@State var searchTerm: String = ""
enum AppTab {
case browse
case packs
case downloaded
case settings
case search
}
@ObservedObject var emojiHoarder: EmojiHoarder = EmojiHoarder()
@ObservedObject var gifhoarder: GifHoarder = GifHoarder()
var body: some View {
Group {
if #available(iOS 18, *) {
TabView(selection: $tabSelection) {
Tab("Browse", systemImage: "square.grid.2x2.fill", value: AppTab.browse) {
BrowseView(emojiHoarder: emojiHoarder)
TabView {
Tab("Browse", systemImage: "square.grid.2x2.fill") {
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
}
Tab("Packs", systemImage: "square.stack.3d.up.fill", value: AppTab.packs) {
EmojiPackManager(hoarder: emojiHoarder)
Tab("Downloaded", systemImage: "arrow.down.circle.fill") {
DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
}
Tab("Downloaded", systemImage: "arrow.down.circle.fill", value: AppTab.downloaded) {
DownloadedView(emojiHoarder: emojiHoarder)
}
Tab("Settings", systemImage: "gear", value: AppTab.settings) {
Tab("Settings", systemImage: "gear") {
SettingsView(hoarder: emojiHoarder)
}
Tab(value: AppTab.search, role: .search) {
NavigationStack {
SearchView(hoarder: emojiHoarder)
}
Tab(role: .search) {
SearchView(hoarder: emojiHoarder)
}
}
} else {
TabView(selection: $tabSelection) {
BrowseView(emojiHoarder: emojiHoarder)
.tag(AppTab.browse)
TabView {
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
.tabItem {
Label("Browse", systemImage: "square.grid.2x2.fill")
}
EmojiPackManager(hoarder: emojiHoarder)
.tag(AppTab.packs)
.tabItem {
Label("Packs", systemImage: "square.stack.3d.up.fill")
}
DownloadedView(emojiHoarder: emojiHoarder)
.tag(AppTab.downloaded)
DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
.tabItem {
Label("Downloaded", systemImage: "arrow.down.circle.fill")
}
SettingsView(hoarder: emojiHoarder)
.tag(AppTab.settings)
.tabItem {
Label("Setings", systemImage: "gear")
}
NavigationView2 {
SearchView(hoarder: emojiHoarder)
}
.tag(AppTab.search)
.tabItem {
Label("Search", systemImage: "magnifyingglass")
}
SearchView(hoarder: emojiHoarder)
.tabItem {
Label("Search", systemImage: "magnifyingglass")
}
}
}
}
.sheet(isPresented: $emojiHoarder.showWelcome) {
emojiHoarder.setShowWelcome(to: false)
} content: {
WelcomeView()
}
}
}
+54 -12
View File
@@ -9,23 +9,65 @@ import SwiftUI
struct DownloadedView: View {
@ObservedObject var emojiHoarder: EmojiHoarder
@ObservedObject var gifHoarder: GifHoarder
@Environment(\.colorScheme) var colorScheme
var isDark: Bool { colorScheme == .dark }
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 5 }
var col: GridItem {
GridItem(
.flexible(minimum: minColWidth, maximum: 100),
spacing: spacing,
alignment: .center
)
}
var body: some View {
if emojiHoarder.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(emojiHoarder.downloadedEmojisArr, id: \.self) { name in
if let emoji = emojiHoarder.trie.dict[name] {
ZStack {
Rectangle()
.foregroundStyle(isDark ? .black : .white)
StickerPreview(emoji: emoji)
RoundedRectangle(cornerRadius: 15)
.stroke(.gray, lineWidth: 1)
}
.aspectRatio(1, contentMode: .fit)
.clipShape(RoundedRectangle(cornerRadius: 15))
.contextMenu {
Text(emoji.name)
Button("Copy Name", systemImage: "doc.on.clipboard") {
UIPasteboard.general.string = emoji.name
}
Button("Copy Image", systemImage: "photo.fill.on.rectangle.fill") {
UIPasteboard.general.image = emoji.image
}
Divider()
ShareLink("Share", item: emoji.remoteImageURL, subject: nil, message: nil)
Divider()
Button("Delete", systemImage: "trash.fill", role: .destructive) {
emojiHoarder.delete(emoji: emoji)
}
}
}
}
}
.padding(.horizontal, spacing)
}
}
EmojiCollectionViewRepresentable(
hoarder: emojiHoarder,
items: emojiHoarder.downloadedStickersArr,
width: 75,
style: .plainWithMenu,
edit: false
)
}
}
#Preview {
DownloadedView(emojiHoarder: EmojiHoarder(localOnly: true))
DownloadedView(
emojiHoarder: EmojiHoarder(localOnly: true),
gifHoarder: GifHoarder(localOnly: true)
)
}
@@ -0,0 +1,30 @@
//
// 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
StickerPreview(emoji: hoarder.trie.dict[name] ?? .test)
}
}
}
#Preview {
EmojiPackView(
hoarder: EmojiHoarder(localOnly: true, skipIndex: true),
pack: .test
)
}
@@ -9,16 +9,15 @@ import SwiftUI
import Haptics
struct StickerPreview: View {
@State var sticker: any StickerProtocol
@State var gifImage: Image?
@State var emoji: any StickerProtocol
@State var gifImage: Image?
var body: some View {
if sticker.isLocal {
//local
GifView(url: sticker.localImageURL)
if let image = emoji.image {
GifView(url: emoji.localImageURL)
} else {
//remote
GifView(url: sticker.remoteImageURL)
GifView(url: emoji.remoteImageURL)
}
}
}
@@ -34,9 +33,7 @@ struct ImageErrorView: View {
}
#Preview {
VStack {
StickerPreview(
sticker: Emoji.test
)
}
StickerPreview(
emoji: Emoji.test
)
}
+107
View File
@@ -0,0 +1,107 @@
//
// 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 emoji: any StickerProtocol
@State var showTooltip: Bool = false
var isLocal: Bool {
return hoarder.downloadedStickers.contains(emoji.name)
}
var body: some View {
HStack {
StickerPreview(emoji: emoji)
.frame(width: 100, height: 100)
.transition(.scale)
VStack(alignment: .leading, spacing: 5) {
Text(emoji.name)
.font(.caption)
.bold(isLocal)
.foregroundColor(isLocal ? .green : .primary)
.lineLimit(nil)
.multilineTextAlignment(.leading)
HStack(spacing: 5) {
Button {
showTooltip.toggle()
} label: {
Image("slack.logo")
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.foregroundStyle(.gray)
}
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
Button("Done") {}
}
if isLocal {
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.1))
.shadow(radius: 2)
)
Spacer()
if isLocal {
Button("", systemImage: "trash") {
hoarder.delete(emoji: emoji, skipStoreIndex: false)
}
.buttonStyle(.plain)
.transition(.scale)
} else {
Button("", systemImage: "arrow.down.circle") {
Task.detached {
await hoarder.download(emoji: emoji, 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, emoji: Emoji.test)
StickerRow(hoarder: hoarder, emoji: Emoji.testLongName)
StickerRow(hoarder: hoarder, emoji: Gif.test)
StickerRow(hoarder: hoarder, emoji: Emoji(name: "a", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "ab", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abc", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abcd", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abcde", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abcdef", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abcdefg", url: Emoji.test.remoteImageURL))
StickerRow(hoarder: hoarder, emoji: Emoji(name: "abcdefgh", url: Emoji.test.remoteImageURL))
ForEach(hoarder.downloadedEmojisArr, id: \.self) { name in
if let emoji = hoarder.trie.dict[name] {
StickerRow(hoarder: hoarder, emoji: emoji)
}
}
}
}
@@ -1,183 +0,0 @@
//
// EmojiPackView.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
import Haptics
struct EmojiPackDetailView: View {
@ObservedObject var hoarder: EmojiHoarder
@Binding var pack: EmojiPack
@State var edit: Bool = false
@State var editName: Bool = false
@State var downloading: Bool = false
@State var showAdder: Bool = false
@State var showShare: Bool = false
@State var useSwiftUIGrid: Bool = false
var allDownloaded: Bool {
pack.allDownloaded(in: hoarder)
}
var downloadedFraction: Double {
pack.downloadedFraction(in: hoarder)
}
var body: some View {
NavigationView2 {
VStack {
Button() {
editName.toggle()
} label: {
Text(pack.name.isEmpty ? "Name" : pack.name)
.bold()
.foregroundStyle(edit ? Color.accentColor : .primary)
.font(.title)
}
.disabled(!edit)
.alert("Edit Name", isPresented: $editName) {
TextField("", text: $pack.name)
}
if pack.items.isEmpty {
EmptyCollectionView(
title: "No Emoji",
details: "Add emojis to this pack by editing it using the pencil button in the toolbar.",
systemImage: "exclamationmark.triangle.fill"
)
}
if useSwiftUIGrid {
EmojiPackGridView(
hoarder: hoarder,
pack: $pack,
edit: $edit
)
} else {
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: pack.items,
width: 75,
style: .full,
edit: edit,
onRemoveSUI: { pack.remove($0) }
)
}
if !pack.items.isEmpty {
Text(pack.description)
.bold()
.multilineTextAlignment(.center)
.shadow(radius: 5)
.padding(.bottom)
}
}
.transition(.scale)
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.onDisappear {
hoarder.saveEmojiPacks()
}
.toolbar {
ToolbarItem(placement: .topBarLeading) {
Button(
"",
systemImage: edit ? "checkmark" : "pencil"
) {
withAnimation(.spring) { edit.toggle() }
}
.tint(edit ? Color.accentColor : .primary)
}
ToolbarItem(placement: .topBarLeading) {
if edit {
Button("", systemImage: "plus") {
showAdder.toggle()
}
.sheet(isPresented: $showAdder) {
NavigationView2 {
SearchView(
hoarder: hoarder,
fromPackEditor: true,
callback: {
pack.add($0)
Haptic.success.trigger()
showAdder.toggle()
}
)
.navigationTitle("Search Emojis")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
Button("", systemImage: "checkmark") {
showAdder.toggle()
}
}
}
.modifier(presentationHalfAndFullIfAv())
}
}
}
ToolbarItem(placement: .topBarTrailing) {
if downloading {
ProgressView()
.onChange(of: allDownloaded) { newValue in
if newValue == true {
downloading = false
}
}
} else {
Button(
"",
systemImage: allDownloaded ? "checkmark" : "arrow.down"
) {
if !allDownloaded {
downloading = true
}
Task {
if allDownloaded {
await pack.deleteAll(hoarder: hoarder)
} else {
await pack.downloadAll(hoarder: hoarder)
}
}
}
.disabled(pack.items.isEmpty)
.tint(allDownloaded ? .red : .accentColor)
}
}
ToolbarItem(placement: .topBarTrailing) {
if #available(iOS 16, *) {
ShareLink(item: pack.shareLink()) {
Image(systemName: "square.and.arrow.up")
}
.disabled(pack.items.isEmpty)
} else {
Button("", systemImage: "square.and.arrow.up") {
showShare.toggle()
}
.disabled(pack.items.isEmpty)
.sheet(isPresented: $showShare) {
ShareSheet(activityItems: [pack.shareLink()])
}
}
}
}
}
}
}
@available(iOS 17, *)
#Preview {
@Previewable @State var hoarder = EmojiHoarder(localOnly: true, skipIndex: false)
@Previewable @State var pack: EmojiPack = .test
EmojiPackDetailView(
hoarder: hoarder,
pack: $pack
)
}
@@ -1,141 +0,0 @@
//
// EmojiPackGridView.swift
// StickerSlack
//
// Created by neon443 on 30/04/2026.
//
import SwiftUI
struct EmojiPackGridView: View {
@ObservedObject var hoarder: EmojiHoarder
@Binding var pack: EmojiPack
@Binding var edit: Bool
@State var initDate: Date = .now
@State var showAdder: Bool = false
@State var showNotFoundAlert: 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 {
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(pack.items, id: \.self) { name in
TimelineView(.animation) { tl in
Group {
VStack {
if let emoji = hoarder.trie.dict[name] {
StickerPreview(sticker: emoji)
Text(emoji.UIName)
.multilineTextAlignment(.center)
.font(.caption)
} else {
Image(systemName: "questionmark.circle.dashed")
.resizable().scaledToFit()
.foregroundStyle(.gray.opacity(0.5))
.overlay(alignment: .topTrailing) {
Button {
showNotFoundAlert.toggle()
} label: {
Image(systemName: "info")
.font(.title3.bold())
}
}
Text(name)
.multilineTextAlignment(.center)
.font(.caption)
}
Spacer()
}
.alert("This emoji was not found", isPresented: $showNotFoundAlert) {
Button("OK") {
showNotFoundAlert.toggle()
}
} message: {
Text("Try reopening the app with an Internet connection to refresh the emoji database.")
}
}
.overlay(alignment: .topLeading) {
if edit {
Button(role: .destructive) {
withAnimation(.spring) {
pack.remove(name)
}
} label: {
Image(systemName: "minus.circle.fill")
.resizable().scaledToFit()
}
.frame(maxWidth: 25)
.padding(-10)
}
}
.rotationEffect(
.degrees(
edit ? sin(initDate.timeIntervalSinceNow*20)*4 : 0
)
)
}
}
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) {
NavigationView2 {
SearchView(hoarder: hoarder, fromPackEditor: true) { selection in
withAnimation(.spring) {
pack.add(selection)
}
}
.navigationTitle("Search Emojis")
.navigationBarTitleDisplayMode(.inline)
.modifier(presentationHalfAndFullIfAv())
.toolbar {
Button("", systemImage: "xmark") {
showAdder.toggle()
}
}
}
}
}
}
.animation(.spring, value: pack.items)
.padding()
}
}
}
}
#Preview {
EmojiPackGridView(
hoarder: EmojiHoarder(),
pack: .constant(.test),
edit: .constant(Bool.random())
)
}
@@ -1,60 +0,0 @@
//
// EmojiPackImporterView.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import SwiftUI
struct EmojiPackImporterView: View {
@ObservedObject var emojiHoarder: EmojiHoarder
@Binding var pack: EmojiPack
@Environment(\.dismiss) var dismiss
var isiPhone: Bool {
return UIDevice().userInterfaceIdiom == .phone
}
var body: some View {
EmojiPackDetailView(hoarder: emojiHoarder, pack: $pack)
.overlay(alignment: .bottomLeading) {
Button {
dismiss()
} label: {
Text("Cancel")
.font(.title3)
.padding(5)
}
.modifier(glassButtonIfAv())
.padding(.leading)
.padding(.bottom, isiPhone ? 0 : 16)
.tint(.gray)
}
.overlay(alignment: .bottomTrailing) {
Button {
emojiHoarder.addEmojiPack(pack)
dismiss()
} label: {
Text("Add")
.font(.title3)
.bold()
.padding(5)
}
.modifier(glassButtonIfAv())
.padding(.trailing)
.padding(.bottom, isiPhone ? 0 : 16)
.tint(.accentColor)
}
}
}
#Preview {
Color.orange
.ignoresSafeArea(.all)
.sheet(isPresented: .constant(true)) {
EmojiPackImporterView(
emojiHoarder: EmojiHoarder(localOnly: true, skipIndex: true),
pack: .constant(.test)
)
}
}
@@ -1,119 +0,0 @@
//
// EmojiPackManager.swift
// StickerSlack
//
// Created by neon443 on 01/12/2025.
//
import SwiftUI
struct EmojiPackManager: View {
@ObservedObject var hoarder: EmojiHoarder
@State var useSwiftUIGrid: Bool = false
@Environment(\.editMode) var editMode
@State var selection: Set<EmojiPack> = []
@State var showDeleteAlert: Bool = false
var body: some View {
NavigationView2 {
VStack {
if hoarder.emojiPacks.isEmpty {
EmptyCollectionView(
title: "No Emoji Packs",
details: "Create one using the button in the toolbar.",
systemImage: "square.stack.3d.up.slash"
)
Spacer()
} else {
List(selection: $selection) {
ForEach($hoarder.emojiPacks, id: \.self) { $pack in
NavigationLink {
EmojiPackDetailView(hoarder: hoarder, pack: $pack, useSwiftUIGrid: useSwiftUIGrid)
// EmojiPackDetailViewRepresentable(hoarder: hoarder, pack: pack)
} label: {
Text(pack.name)
}
.swipeActions(edge: .trailing) {
EmojiPackActionButtons(hoarder: hoarder, pack: pack, showLabelText: false)
}
}
.onMove { indexSet, offset in
hoarder.moveEmojiPacks(fromOffsets: indexSet, toOffset: offset)
}
.onDelete { indexSet in
hoarder.removeEmojiPack(atOffsets: indexSet)
}
}
.modifier(ContextMenuSafe(itemType: EmojiPack.self, menu: { items in
if items.count == 1 {
EmojiPackActionButtons(hoarder: hoarder, pack: items.first ?? .test, showLabelText: true)
} else {
Button("Delete \(items.count) pack\(items.count.plural)", systemImage: "trash", role: .destructive) {
for item in items {
hoarder.removeEmojiPack(item)
}
}
}
}))
}
}
.navigationTitle("Emoji Packs")
.navigationBarTitleDisplayMode(.inline)
.animation(nil, value: editMode?.wrappedValue)
.toolbar {
ToolbarItem(placement: .topBarLeading) {
Button("", systemImage: "plus") {
hoarder.newEmojiPack()
}
.modifier(glassButtonIfAv())
}
ToolbarItem(placement: .topBarTrailing) {
EditButton()
}
}
}
}
struct EmojiPackActionButtons: View {
@ObservedObject var hoarder: EmojiHoarder
@State var pack: EmojiPack
@State var showLabelText: Bool = true
@State private var showShareSheet: Bool = false
var body: some View {
Button(showLabelText ? "Delete" : "", systemImage: "trash", role: .destructive) {
hoarder.removeEmojiPack(pack)
}
.tint(.red)
Button(showLabelText ? "Duplicate" : "", systemImage: "plus.square.fill.on.square.fill") {
hoarder.addEmojiPack(pack)
}
if #available(iOS 16, *) {
if showLabelText {
ShareLink(item: pack.shareLink())
} else {
ShareLink(item: pack.shareLink())
.labelStyle(.iconOnly)
}
} else {
Button {
showShareSheet.toggle()
} label: {
Label(showLabelText ? "Delete" : "", systemImage: "square.and.arrow.up")
}
.sheet(isPresented: $showShareSheet) {
ShareSheet(activityItems: [pack.shareLink()])
}
}
}
}
}
#Preview {
EmojiPackManager(
hoarder: EmojiHoarder(localOnly: true, skipIndex: true)
)
}
@@ -1,61 +0,0 @@
//
// EmojiPackPreview.swift
// StickerSlack
//
// Created by neon443 on 01/07/2026.
//
import SwiftUI
struct EmojiPackPreview: View {
@ObservedObject var hoarder: EmojiHoarder
@State var pack: EmojiPack
var allDownloaded: Bool {
pack.allDownloaded(in: hoarder)
}
var body: some View {
NavigationView2 {
VStack {
Text(pack.name.isEmpty ? "Name" : pack.name)
.bold()
.foregroundStyle(.primary)
.font(.title)
if pack.items.isEmpty {
EmptyCollectionView(
title: "No Emoji",
details: "Add emojis to this pack",
systemImage: "exclamationmark.triangle.fill"
)
}
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: pack.items,
width: 75,
style: .full,
onRemoveSUI: { pack.remove($0) }
)
if !pack.items.isEmpty {
Text(pack.description)
.bold()
.multilineTextAlignment(.center)
.shadow(radius: 5)
.padding(.bottom)
}
}
.transition(.scale)
.navigationTitle("Pack Details")
.navigationBarTitleDisplayMode(.inline)
.onDisappear {
hoarder.saveEmojiPacks()
}
}
}
}
#Preview {
EmojiPackPreview(hoarder: EmojiHoarder(), pack: .test)
}
@@ -1,15 +0,0 @@
//
// Wiggle.metal
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
#include <metal_stdlib>
#include <SwiftUI/SwiftUI_Metal.h>
using namespace metal;
[[stitchable]] float2 wiggle(float2 pos, half4 color, float time) {
// pos.x
return pos;
}
@@ -1,50 +0,0 @@
//
// JumboMojiTestView.swift
// StickerSlack
//
// Created by neon443 on 04/05/2026.
//
import SwiftUI
struct JumboMojiTestView: View {
@State var hoarder: EmojiHoarder
@State var searchTerm: String = ""
@State var searchResult: [String] = []
@State var jumboMoji: [JumboMoji] = []
var body: some View {
List {
TextField("search", text: $searchTerm)
.autocorrectionDisabled()
.onChange(of: searchTerm) { term in
Task.detached {
let res = await hoarder.trie.search(for: term, previousQuery: nil, previousResult: nil)
let moji = JumboMoji.from(names: res)
await MainActor.run {
self.jumboMoji = moji
}
}
}
ForEach(jumboMoji, id: \.self) { jumboMoji in
HStack {
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: jumboMoji.items,
width: CGFloat(jumboMoji.width),
style: .jumboMoji
)
.frame(width: 100, height: 100)
VStack(alignment: .leading) {
Text(jumboMoji.baseName)
Text("\(jumboMoji.width) x \(jumboMoji.height)")
}
}
}
}
}
}
#Preview {
JumboMojiTestView(hoarder: EmojiHoarder())
}
+26
View File
@@ -0,0 +1,26 @@
//
// ListRow.swift
// StickerSlack
//
// Created by neon443 on 21/11/2025.
//
import SwiftUI
struct ListRow: View {
@State var number: Int
@State var text: String
var body: some View {
HStack {
Text("\(number)")
.padding(.trailing, 10)
.foregroundStyle(.gray)
Text(text)
}
}
}
#Preview {
ListRow(number: 1, text: "hi!")
}
@@ -1,56 +0,0 @@
//
// EmptyCollectionView.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import SwiftUI
struct EmptyCollectionView: View {
@State var title: String
@State var details: String?
@State var systemImage: String
var body: some View {
VStack {
HStack {
Image(systemName: systemImage)
.resizable()
.scaledToFit()
.frame(width: 25)
.padding(.horizontal, 5)
Text(title)
.bold()
.font(.title3)
}
if details != nil {
HStack {
Spacer()
Text(details!)
.multilineTextAlignment(.center)
.foregroundStyle(.gray)
Spacer()
}
}
}
.listRowSeparator(.hidden)
.transition(.scale)
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
.background {
Color.accentColor.opacity(0.2)
.clipShape(RoundedRectangle(cornerRadius: 10))
.blur(radius: 5)
.shadow(color: .accentColor, radius: 5)
}
.padding()
}
}
#Preview {
List {
EmptyCollectionView(title: "details.title", details: "details.body", systemImage: "gear")
}
}
@@ -1,28 +0,0 @@
//
// 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()
}
+28 -66
View File
@@ -11,79 +11,41 @@ struct SearchView: View {
@ObservedObject var hoarder: EmojiHoarder
@State private var currentSearch: Task<Void, Never>?
@State private var searchTerm: String = ""
@State var previousSearches: [String] = []
@State private var searchResult: [String] = []
@State var searchTerm: String = ""
@State var searchResult: [String] = []
@State var fromPackEditor: Bool = false
@State var callback: ((String) -> Void) = { _ in }
@Environment(\.dismiss) var dismiss
func runSearch(with: String) {
if currentSearch != nil { currentSearch?.cancel() }
guard !searchTerm.isEmpty else {
currentSearch?.cancel()
searchResult = []
previousSearches = []
return
var body: some View {
NavigationStack {
List() {
Text("\(searchResult.count) Result\(searchResult.count.plural)")
ForEach(searchResult, id: \.self) { name in
StickerRow(hoarder: hoarder, emoji: hoarder.trie.dict[name]!)
}
}
}
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: $searchTerm)
.onChange(of: searchTerm) { _ in
if searchTerm.isEmpty { searchResult = [] }
}
.onSubmit(of: .search) {
guard !searchTerm.isEmpty else {
currentSearch?.cancel()
searchResult = []
return
}
if currentSearch != nil { currentSearch?.cancel() }
currentSearch = Task.detached {
let result = await hoarder.trie.search(for: searchTerm)
await MainActor.run {
withAnimation(.snappy) {
searchResult = result
}
}
}
}
}
var body: some View {
VStack {
if searchTerm.isEmpty {
EmptyCollectionView(title: "Start a Search", details: nil, systemImage: "magnifyingglass")
.frame(maxHeight: 100)
Spacer()
} else if searchResult.isEmpty {
EmptyCollectionView(title: "No Results", details: "Try a new search", systemImage: "exclamationmark.magnifyingglass")
.frame(maxHeight: 100)
Spacer()
} else if fromPackEditor {
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: searchResult,
width: 75,
style: .plainWithLabel,
onTapCallback: { callback($0)
})
} else {
EmojiTableViewRepresentable(hoarder: hoarder, items: searchResult)
}
}
.searchable(text: $searchTerm)
.onChange(of: searchTerm) { new in
runSearch(with: new)
}
.onAppear {
guard !searchTerm.isEmpty else { return }
runSearch(with: searchTerm)
}
}
}
@available(iOS 17, *)
#Preview {
@Previewable @State var searchTerm: String = ""
SearchView(
hoarder: EmojiHoarder(localOnly: true),
fromPackEditor: true
) {
print($0)
}
SearchView(hoarder: EmojiHoarder(localOnly: true))
}
+45 -114
View File
@@ -6,7 +6,6 @@
//
import SwiftUI
import Haptics
struct SettingsView: View {
@ObservedObject var hoarder: EmojiHoarder
@@ -16,21 +15,23 @@ struct SettingsView: View {
return colorScheme == .dark
}
var body: some View {
NavigationView2 {
NavigationStack {
List {
Section {
HStack {
Image("icon")
Image(isDark ? "icon-dark" : "icon")
.resizable().scaledToFit()
.frame(width: 100, height: 100)
.clipShape(RoundedRectangle(cornerRadius: 24))
.foregroundStyle(Color.accentColor)
.shadow(color: isDark ? .black : .accentColor, radius: 5)
.foregroundStyle(.purple)
.shadow(color: isDark ? .black : .purple, radius: 5)
.padding(.leading, -1)
.padding(.trailing, 10)
VStack(alignment: .leading) {
Text("StickerSlack")
.font(.title2.monospaced().bold())
.font(.title2)
.monospaced()
.bold()
HStack(alignment: .center, spacing: 5) {
Text(Bundle.main.appVersion)
.bold()
@@ -49,57 +50,45 @@ struct SettingsView: View {
if hoarder.downloadedStickers.count == hoarder.emojis.count {
Text("🎉")
.font(.largeTitle)
.onTapGesture {
Haptic.rigid.trigger()
}
}
// 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")
// }
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)")
}
}
}
} label: {
Label("Letter Stats", systemImage: "textformat")
}
}
Button("Show Welcome", systemImage: "arrow.trianglehead.clockwise") {
let welcomeVC = UIHostingController(rootView: WelcomeView(emojiHoarder: hoarder))
guard let appDelegate = UIApplication.shared.delegate,
let window = appDelegate.window,
let rootVC = window?.rootViewController,
welcomeVC.sheetPresentationController != nil else { return }
rootVC.present(welcomeVC, animated: true)
hoarder.setShowWelcome(to: true)
}
Section("Use with Caution") {
@@ -110,63 +99,12 @@ struct SettingsView: View {
}
.foregroundStyle(.red)
Button("Delete all", systemImage: "trash.circle", role: .destructive) {
Task {
await hoarder.deleteAllStickers()
}
hoarder.deleteAllStickers()
}
.foregroundStyle(.red)
}
Section("Debug") {
NavigationLink {
JumboMojiTestView(hoarder: hoarder)
} label: {
Label("jumbomoji search", systemImage: "text.page.badge.magnifyingglass")
}
NavigationLink {
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: [
"btn-3kh0-1",
"btn-3kh0-2",
"btn-3kh0-3",
"btn-antinft-1",
"btn-antinft-2",
"btn-antinft-3",
"btn-bsky-1",
"btn-bsky-2",
"btn-bsky-3",
"btn-gideon-1",
"btn-gideon-2",
"btn-gideon-3",
"btn-macos-1",
"btn-macos-2",
"btn-macos-3",
"btn-microhate-1",
"btn-microhate-2",
"btn-microhate-3"
],
width: 3,
style: .jumboMoji
)
} label: {
Label("jumbomoji", systemImage: "square.split.2x2")
}
NavigationLink {
EmojiCollectionViewRepresentable(
hoarder: hoarder,
items: hoarder.emojis.prefix(10000).map { $0.name },
width: 10,
style: .jumboMoji
)
} label: {
Label("grid view", systemImage: "square.grid.2x2.fill")
}
Button("Refresh", systemImage: "arrow.clockwise", role: .destructive) {
hoarder.startLoading(localOnly: false, skipIndex: false)
}
NavigationLink {
TrieTestingView(hoarder: hoarder)
} label: {
@@ -174,26 +112,19 @@ struct SettingsView: View {
}
NavigationLink {
Text("<SwiftUI Grids>")
.foregroundStyle(.red)
.font(.title)
EmojiPackManager(hoarder: hoarder, useSwiftUIGrid: true)
EmojiPackManager(hoarder: hoarder)
} label: {
Label("packs wip", systemImage: "square.stack")
}
Button("Reindex", systemImage: "list.bullet.clipboard", role: .destructive) {
hoarder.resetAllIndexes()
Task {
await hoarder.buildTrie()
}
hoarder.buildTrie()
}
.foregroundStyle(.red)
}
// Section(content: <#T##() -> View#>, header: <#T##() -> View#>, footer: <#T##() -> View#>)
}
.navigationTitle("Settings")
.navigationBarTitleDisplayMode(.inline)
}
}
}
@@ -1,138 +0,0 @@
//
// 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
@State var downloading: 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.UIName)
.font(.caption.bold())
.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)
}
.tint(isDownloaded ? .red : .accent)
.buttonStyle(.borderless)
.alert("From \(sticker.type.fromAppName)", 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()
Group {
if sticker.type == .slackEmoji {
AddToPackMenuView(
emojiHoarder: hoarder as! EmojiHoarder,
sticker: sticker as! Emoji
)
.padding(.trailing, -8)
}
if isDownloaded {
Button {
Task {
await hoarder.delete(emoji: sticker, skipStoreIndex: false)
downloading = false
}
} label: {
Image(systemName: "trash")
.resizable().scaledToFit()
}
.transition(.scale)
.onAppear {
downloading = false
}
} else if downloading {
ProgressView()
.transition(.scale)
.padding(.trailing)
} else {
Button {
withAnimation(.snappy) {
downloading = true
}
Task.detached {
await hoarder.download(emoji: sticker, skipStoreIndex: false)
}
} label: {
Image(systemName: "arrow.down.circle")
.resizable().scaledToFit()
}
.transition(.scale)
}
}
.frame(width: 24, height: 24)
.padding(.trailing)
}
}
}
@available(iOS 17, *)
#Preview {
@Previewable var hoarder = EmojiHoarder()
List {
ForEach(hoarder.emojis.prefix(10)) { emoji in
StickerRow(hoarder: hoarder, sticker: emoji)
}
// EmojiTableView(
// hoarder: hoarder,
// items: hoarder.emojis.prefix(10).map({ <#Emoji#> in
// <#code#>
// })
// )
// 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))
}
}
+29
View File
@@ -0,0 +1,29 @@
//
// ViewModifiers.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import Foundation
import SwiftUI
struct numericTextCompat: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 16, *) {
content.contentTransition(.numericText())
} else {
content.transition(.opacity)
}
}
}
struct tabViewActivationSearchActivation: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 26, *) {
content.tabViewSearchActivation(.searchTabSelection)
} else {
content
}
}
}
+35 -88
View File
@@ -8,109 +8,56 @@
import SwiftUI
struct WelcomeView: View {
@ObservedObject var emojiHoarder: EmojiHoarder
@Environment(\.dismiss) var dismiss
@Environment(\.colorScheme) var colourScheme
var isDark: Bool {
return colourScheme == .dark
}
var body: some View {
VStack(spacing: 0) {
HStack {
Image("icon")
.resizable().scaledToFit()
.frame(maxWidth: 75)
Spacer()
Text("StickerSlack")
.bold()
.font(.largeTitle.monospaced())
Spacer()
VStack {
Text("StickerSlack")
.bold()
.font(.largeTitle)
.monospaced()
.padding()
List {
Section("How to use") {
ListRow(number: 1, text: "Browse or search for an emoji")
ListRow(number: 2, text: "Download it")
ListRow(number: 3, text: "Open iMessage")
ListRow(number: 4, text: "Press the +")
ListRow(number: 5, text: "Choose StickerSlack")
ListRow(number: 6, text: "Tap an emoji to use it!")
}
}
.padding(.vertical, 16)
.padding(.leading, 16)
LazyVGrid(
columns: Array(
repeating: GridItem(.flexible(minimum: 50, maximum: 1000)),
count: UIScreen.main.bounds.width < UIScreen.main.bounds.height ? 2 : 4
)
) {
ListRow(number: 1, text: "Browse or Search", image: Image("1-browseOrSearch"))
ListRow(number: 2, text: "Download", image: Image(systemName: "arrow.down.circle"))
ListRow(number: 3, text: "Open iMessage", image: Image(systemName: "message.fill"))
ListRow(number: 4, text: "Tap the +", image: Image(systemName: "plus.circle.fill"))
ListRow(number: 5, text: "Choose Stickers", image: Image("stickersIcon"))
ListRow(number: 6, text: "Find StickerSlack", image: Image("iMessageAppIcon"))
ListRow(number: 7, text: "Tap a sticker!", image: Image(systemName: "arrow.up.circle.fill"))
}
.padding()
.modifier(ScrollContentBackgroundHidden())
.scrollContentBackground(.hidden)
Spacer()
Group {
if #available(iOS 19, *) {
Button() {
dismiss()
} label: {
ContinueButtonView()
}
.modifier(glassButtonIfAv())
} else {
Button() {
dismiss()
} label: {
ContinueButtonView()
}
.buttonStyle(.borderedProminent)
if #available(iOS 19, *) {
Button() {
dismiss()
} label: {
Text("Continue")
.font(.title)
.bold()
}
}
.padding(.bottom)
.tint(.accentColor)
.interactiveDismissDisabled()
}
.onDisappear {
emojiHoarder.setShowWelcome(to: false)
}
}
private struct ListRow: View {
@State var number: Int
@State var text: String
@State var image: Image?
var body: some View {
VStack(alignment: .center) {
HStack {
Spacer()
.overlay(alignment: .leading) {
Text("\(number)")
.font(.headline)
.bold()
.foregroundStyle(.gray)
}
Text(text)
.lineLimit(nil)
Spacer()
.buttonStyle(.glassProminent)
.padding(.bottom)
} else {
Button() {
dismiss()
} label: {
Text("Continue")
.font(.title)
.bold()
}
image?.resizable().scaledToFit()
.frame(maxHeight: 40)
.buttonStyle(.borderedProminent)
.padding(.bottom)
}
.padding(.bottom)
}
}
}
fileprivate struct ContinueButtonView: View {
var body: some View {
Text("Continue")
.font(.title)
.bold()
}
}
#Preview {
Color.gray.opacity(0.5)
.ignoresSafeArea(.all)
.sheet(isPresented: .constant(true)) {
WelcomeView(emojiHoarder: EmojiHoarder())
WelcomeView()
}
}
+5 -18
View File
@@ -9,23 +9,20 @@ 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
var wordlist: [String] = []
func insert(word: String) {
let word = word.lowercased()
wordlist.insert(word)
wordlist.append(word)
var currentNode = root
let indices = word.indices
let last = indices.last
@@ -44,22 +41,12 @@ class Trie: ObservableObject {
}
}
nonisolated func allNames() -> [String] {
return Array(self.dict.keys)
}
nonisolated func search(for query: String, previousQuery: String?, previousResult: Set<String>?) -> [String] {
guard !query.isEmpty else { return [] }
var result: Set<String> = wordlist
if let previousQuery,
let previousResult,
query.hasPrefix(previousQuery) {
result = previousResult
}
func search(for query: String) -> [String] {
var result: Set<String> = Set(wordlist)
for word in query.split(separator: " ") {
result = result.filter { $0.localizedCaseInsensitiveContains(word) }
}
return Array(result).sorted()
return Array(result)
}
func search(exactly query: String) -> Bool {
+5 -7
View File
@@ -37,7 +37,7 @@ struct TrieTestingView: View {
case .contains:
if searchTask != nil { searchTask?.cancel() }
searchTask = Task.detached {
let result = await hoarder.trie.search(for: searchTerm, previousQuery: nil, previousResult: nil)
let result = await hoarder.trie.search(for: searchTerm)
await MainActor.run {
withAnimation(.snappy) { searchResults = result }
print("testing: contains search complete")
@@ -62,9 +62,7 @@ struct TrieTestingView: View {
}
Spacer()
Button("add emojis!") {
Task {
await hoarder.buildTrie()
}
hoarder.buildTrie()
}
.buttonStyle(.borderedProminent)
}
@@ -116,11 +114,11 @@ struct TrieTestingView: View {
}
if uikit {
EmojiTableViewRepresentable(hoarder: hoarder, items: searchResults)
EmojiCollectionView(hoarder: hoarder, items: searchResults)
.animation(.snappy, value: searchResults)
} else {
List(searchResults, id: \.self) { item in
StickerRow(hoarder: hoarder, sticker: hoarder.trie.dict[item]!)
StickerRow(hoarder: hoarder, emoji: hoarder.trie.dict[item]!)
}
.animation(.snappy, value: searchResults)
}
@@ -142,7 +140,7 @@ struct TrieNodeView: View {
.foregroundStyle(node.isEndOfWord ? .red : .primary)
.frame(width: 20, height: 20)
TrieNodeView(trie: trie, trieNode: node)
.padding(.leading, 16)
.padding(.leading, 20)
}
}
}
@@ -1,73 +0,0 @@
//
// BrowseViewController.swift
// StickerSlack
//
// Created by neon443 on 07/07/2026.
//
import Foundation
import UIKit
class BrowseViewController: UINavigationController {
var emojiHoarder: EmojiHoarder
var tableView: EmojiTableView
init(emojiHoarder: EmojiHoarder) {
self.emojiHoarder = emojiHoarder
self.tableView = EmojiTableView(hoarder: emojiHoarder, items: [])
super.init(rootViewController: self.tableView)
NotificationCenter.default.addObserver(
self,
selector: #selector(emojisChanged),
name: EmojiHoarder.NotifCategory.emojis.name,
object: nil
)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
tableView.navigationItem.title = "Browse"
tableView.navigationItem.rightBarButtonItem = UIBarButtonItem(
image: UIImage(systemName: "shuffle"),
style: .plain,
target: self,
action: #selector(shuffle)
)
refreshUI()
}
@objc func emojisChanged() {
self.refreshUI()
}
func getItems() -> [String] {
return emojiHoarder.emojis.map { $0.name }
}
@objc func refreshUI(withItems items: [String]? = nil) {
if let items,
!items.isEmpty {
tableView.refreshUI(with: items)
} else {
tableView.refreshUI(with: getItems())
}
}
@objc func shuffle() {
guard let tableView = self.tableView.tableView else { return }
self.refreshUI(withItems: [])
let safeAreaInsets = tableView.safeAreaInsets
tableView.setContentOffset(
CGPoint(
x: CGFloat(-safeAreaInsets.left),
y: CGFloat(-safeAreaInsets.top)
),
animated: false
)
self.refreshUI(withItems: getItems().shuffled())
}
}
@@ -1,58 +0,0 @@
//
// DragAndDropDelegate.swift
// StickerSlack
//
// Created by neon443 on 30/08/2026.
//
import Foundation
import UIKit
import UniformTypeIdentifiers
extension EmojiCollectionView: UICollectionViewDragDelegate {
func collectionView(
_ collectionView: UICollectionView,
itemsForBeginning session: any UIDragSession,
at indexPath: IndexPath
) -> [UIDragItem] {
let emojiName = items[indexPath.row]
let item = NSItemProvider(item: emojiName as NSSecureCoding, typeIdentifier: UTType.utf8PlainText.identifier)
let dragItem = UIDragItem(itemProvider: item)
return [dragItem]
}
}
extension EmojiCollectionView: UICollectionViewDropDelegate {
func collectionView(_ collectionView: UICollectionView, canHandle session: any UIDropSession) -> Bool {
return true
}
func collectionView(_ collectionView: UICollectionView, performDropWith coordinator: any UICollectionViewDropCoordinator) {
guard let destinationIndexPath = coordinator.destinationIndexPath else { return }
coordinator.items.forEach { dropItem in
guard let sourceIndexPath = dropItem.sourceIndexPath else { return }
collectionView.performBatchUpdates({
moveItem(from: sourceIndexPath, to: destinationIndexPath)
refreshUI(with: items)
}, completion: { _ in
coordinator.drop(dropItem.dragItem, toItemAt: destinationIndexPath)
})
}
onInternalMove?()
}
func moveItem(from: IndexPath, to: IndexPath) {
let removed = self.items.remove(at: from.row)
self.items.insert(removed, at: to.row)
}
func collectionView(_ collectionView: UICollectionView, dropSessionDidUpdate session: any UIDropSession, withDestinationIndexPath destinationIndexPath: IndexPath?) -> UICollectionViewDropProposal {
return UICollectionViewDropProposal(operation: .move, intent: .insertAtDestinationIndexPath)
}
}
@@ -1,269 +0,0 @@
//
// EmojiCollectionView.swift
// StickerSlack
//
// Created by neon443 on 24/04/2026.
//
import Foundation
import UIKit
import Haptics
@MainActor
final class EmojiCollectionView: UICollectionViewController, UICollectionViewDelegateFlowLayout {
var hoarder: EmojiHoarder
var items: [String]
var width: CGFloat
var style: EmojiCollectionView.Style
var onRemove: ((String) -> Void)?
var onTap: ((String) -> Void)?
var onEditChange: (() -> Void)?
var onInternalMove: (() -> Void)?
var dataSource: UICollectionViewDiffableDataSource<Int, String>!
// [width: [label: height]]
static var labelSizeDict: [CGFloat: [String: CGFloat]] = [:]
let initDate = Date.now
var layout = UICollectionViewFlowLayout()
var displayLink: CADisplayLink!
init(
hoarder: EmojiHoarder,
items: [String],
width: CGFloat,
style: EmojiCollectionView.Style,
) {
self.hoarder = hoarder
self.items = items
self.width = width
self.style = style
super.init(collectionViewLayout: layout)
collectionView.register(PlainEmojiCollectionViewCell.self, forCellWithReuseIdentifier: "plain")
collectionView.register(EmojiCollectionViewCell.self, forCellWithReuseIdentifier: "full")
collectionView.delegate = self
collectionView.dragInteractionEnabled = true
collectionView.dragDelegate = self
collectionView.dropDelegate = self
self.dataSource = UICollectionViewDiffableDataSource<Int, String>(collectionView: collectionView) { (
collectionView: UICollectionView,
indexPath: IndexPath,
itemIdentifier: String
) -> UICollectionViewCell? in
self.cellForItemInAt(collectionView, indexPath: indexPath, itemIdentifier: itemIdentifier)
}
collectionView.dataSource = dataSource
if self.style == .jumboMoji {
self.layout.minimumInteritemSpacing = 0
self.layout.minimumLineSpacing = 0
collectionView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
} else {
self.layout.minimumInteritemSpacing = 8
collectionView.contentInset = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
}
layout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize
refreshUI(with: items)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
enum Style {
case plain
case plainWithLabel
case plainWithMenu
case full
case jumboMoji
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.refreshUI(with: items)
}
func refreshUI(with items: [String]) {
guard !items.isEmpty else {
self.items = []
Task.detached {
await self.instantApplySnapshot()
}
return
}
let itemsBefore = self.items
let itemsAfter = items
self.items = items
Task.detached {
//if its being cleared or adding 10k+
guard !itemsAfter.isEmpty && itemsAfter.count-itemsBefore.count < 10_000 else {
await self.instantApplySnapshot()
return
}
await self.applySnapshot(animated: true)
}
}
func makeSnapshot() -> NSDiffableDataSourceSnapshot<Int, String> {
var snapshot = NSDiffableDataSourceSnapshot<Int, String>()
snapshot.appendSections([0])
snapshot.appendItems(items, toSection: 0)
return snapshot
}
func applySnapshot(animated: Bool) async {
let snapshot = makeSnapshot()
await (self.collectionView.dataSource as! UICollectionViewDiffableDataSource).apply(snapshot, animatingDifferences: animated)
}
func instantApplySnapshot() async {
let snapshot = makeSnapshot()
await (self.collectionView.dataSource as! UICollectionViewDiffableDataSource).applySnapshotUsingReloadData(snapshot)
}
func cellForItemInAt(
_ collectionView: UICollectionView,
indexPath: IndexPath,
itemIdentifier: String
) -> UICollectionViewCell {
let cell: PlainEmojiCollectionViewCell
let emojiName = itemIdentifier
switch style {
case .plain, .plainWithMenu, .jumboMoji:
cell = collectionView.dequeueReusableCell(withReuseIdentifier: "plain", for: indexPath) as! PlainEmojiCollectionViewCell
case .full, .plainWithLabel:
cell = collectionView.dequeueReusableCell(withReuseIdentifier: "full", for: indexPath) as! EmojiCollectionViewCell
(cell as! EmojiCollectionViewCell).setEdit(to: parent?.isEditing ?? false)
(cell as! EmojiCollectionViewCell).onRemove = {
guard let index = self.items.firstIndex(of: $0) else { return }
self.items.remove(at: index)
Task.detached { @MainActor in
await self.applySnapshot(animated: true)
}
self.onRemove?($0)
}
}
guard let emoji = hoarder.trie.dict[emojiName] else { return cell }
cell.width = width
cell.style = style
cell.onTap = { self.onTap?(emojiName) }
cell.configure(with: hoarder, emoji: emoji)
return cell
}
func startAnimating() {
displayLink = CADisplayLink(target: self, selector: #selector(updateAnimation))
displayLink.add(to: .main, forMode: .common)
}
func stopAnimating() {
displayLink?.remove(from: .main, forMode: .common)
displayLink?.invalidate()
UIView.animate(withDuration: 0.2) {
for cell in self.collectionView.visibleCells {
cell.transform = CGAffineTransform.identity
}
}
}
@objc
func updateAnimation() {
let t = Date().timeIntervalSince(initDate)
let animFrac = sin(t*20)
let mult = 6.0
for cell in collectionView.visibleCells {
guard let index = collectionView.indexPath(for: cell)?.row else { continue }
if index % 2 == 0 {
cell.transform = CGAffineTransform(rotationAngle: CGFloat(0 + (0.5 * animFrac)).rad() * mult)
} else {
cell.transform = CGAffineTransform(rotationAngle: CGFloat(0 - (0.5 * animFrac)).rad() * mult)
}
}
}
func edit(_ editing: Bool, animated: Bool) {
onEditChange?()
for cell in collectionView.visibleCells {
if let cell = cell as? EmojiCollectionViewCell {
cell.setEdit(to: editing)
}
}
if editing {
self.startAnimating()
} else {
self.stopAnimating()
}
}
override func collectionView(
_ collectionView: UICollectionView,
contextMenuConfigurationForItemAt indexPath: IndexPath,
point: CGPoint
) -> UIContextMenuConfiguration? {
guard self.style == .plainWithMenu else { return nil }
var menuChildrem: [UIMenuElement] = []
let emojiName = self.items[indexPath.row]
let packMenuItem: (EmojiHoarder, Int) -> UIAction = { hoarder, packIndex in
let pack = hoarder.emojiPacks[packIndex]
return UIAction(
title: pack.name,
subtitle: pack.description,
image: pack.items.contains(emojiName) ? UIImage(systemName: "checkmark") : nil
) { action in
hoarder.emojiPacks[packIndex].addRemove(emojiName)
hoarder.saveEmojiPacks()
}
}
var packMenuItems: [UIMenuElement] = []
for i in self.hoarder.emojiPacks.indices {
packMenuItems.append(packMenuItem(self.hoarder, i))
}
let createNewPackMenu = UIMenu(
options: .displayInline,
children: [
UIAction(title: "Create New", image: UIImage(systemName: "plus")) { action in
self.hoarder.newEmojiPack(withItems: [emojiName])
}
]
)
packMenuItems.append(createNewPackMenu)
menuChildrem.append(UIMenu(title: "Add to Pack", image: UIImage(systemName: "square.stack.3d.up.fill"), children: packMenuItems))
let copyName = UIAction(title: "Copy Name", image: UIImage(systemName: "doc.on.clipboard")) { action in
UIPasteboard.general.string = emojiName
Haptic.success.trigger()
}
let copyImage = UIAction(title: "Copy Image", image: UIImage(systemName: "photo.fill.on.rectangle.fill")) { action in
UIPasteboard.general.image = self.hoarder.trie.dict[emojiName]?.image
Haptic.success.trigger()
}
let share = UIAction(title: "Share", image: UIImage(systemName: "square.and.arrow.up")) { action in
}
menuChildrem.append(UIMenu(options: .displayInline, children: [copyName, copyImage, share]))
let delete = UIAction(title: "Delete", image: UIImage(systemName: "trash")) { action in
Task.detached { @MainActor in
await self.hoarder.delete(emoji: self.hoarder.trie.dict[emojiName])
self.items.remove(at: indexPath.row)
await self.applySnapshot(animated: true)
}
}
delete.attributes.update(with: .destructive)
menuChildrem.append(UIMenu(options: .displayInline, children: [delete]))
let menu = UIMenu(title: emojiName, children: menuChildrem)
return UIContextMenuConfiguration(
identifier: nil,
previewProvider: nil) { suggestedActions in
return menu
}
}
}
@@ -1,133 +0,0 @@
//
// EmojiCollectionViewCell.swift
// StickerSlack
//
// Created by neon443 on 26/04/2026.
//
import Foundation
import UIKit
import SwiftUI
class EmojiCollectionViewCell: PlainEmojiCollectionViewCell {
let label = UILabel()
let button = UIButton(type: .custom)
var edit: Bool = false
var onRemove: ((String) -> Void)?
override init(frame: CGRect) {
super.init(frame: frame)
label.font = .preferredFont(forTextStyle: .caption1)
label.textAlignment = .center
label.numberOfLines = 0
label.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(label)
button.alpha = 0
button.isEnabled = false
button.setImage(UIImage(systemName: "minus.circle.fill"), for: .normal)
button.imageView?.contentMode = .scaleAspectFit
button.contentHorizontalAlignment = .fill
button.contentVerticalAlignment = .fill
button.addTarget(self, action: #selector(deleteTapped), for: .touchUpInside)
button.tintColor = .systemRed
button.clipsToBounds = false
button.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(button)
NSLayoutConstraint.activate([
label.topAnchor.constraint(equalTo: self.view.bottomAnchor),
label.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
label.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
label.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
button.topAnchor.constraint(equalTo: contentView.topAnchor, constant: -12),
button.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: -12),
button.heightAnchor.constraint(equalToConstant: 24),
button.widthAnchor.constraint(equalToConstant: 24)
])
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func configureSkeleton() {
super.configureSkeleton()
}
override func configure(with: EmojiHoarder, emoji: Emoji) {
super.configure(with: with, emoji: emoji)
label.text = emoji.UIName
contentView.bringSubviewToFront(button)
}
func setEdit(to editing: Bool, animated: Bool = true) {
self.edit = editing
button.isEnabled = editing
button.isUserInteractionEnabled = editing
let changes = {
self.button.alpha = editing ? 1 : 0
}
if animated {
UIView.animate(withDuration: 0.2, animations: changes)
} else {
changes()
}
}
@objc
func deleteTapped() {
if let emojiName = label.text {
onRemove?(emojiName)
}
}
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let expandedBounds = bounds.insetBy(
dx: -button.bounds.width/2,
dy: -button.bounds.height/2,
)
if expandedBounds.contains(point) {
let buttonPoint = convert(point, to: button)
if button.bounds.contains(buttonPoint) {
return button
}
}
return super.hitTest(point, with: event)
}
override func preferredItemSize(for width: CGFloat) -> CGSize {
guard label.text != nil else { return super.preferredItemSize(for: width) }
let labelHeight = label.sizeThatFits(CGSize(width: width, height: .infinity)).height
return CGSize(width: width, height: width + 4 + labelHeight)
}
override func prepareForReuse() {
super.prepareForReuse()
label.text = nil
onRemove = nil
button.alpha = 0
button.isEnabled = false
button.isUserInteractionEnabled = false
edit = false
}
override func dragStateDidChange(_ dragState: UICollectionViewCell.DragState) {
self.transform = .identity
switch dragState {
case .none:
self.setEdit(to: edit, animated: false)
case .lifting:
button.alpha = 0
case .dragging:
button.alpha = 0
@unknown default:
fatalError()
}
}
}
@@ -1,45 +0,0 @@
//
// EmojiCollectionViewRepresentable.swift
// StickerSlack
//
// Created by neon443 on 30/06/2026.
//
import Foundation
import UIKit
import SwiftUI
import Haptics
struct EmojiCollectionViewRepresentable: UIViewRepresentable {
let hoarder: EmojiHoarder
let items: [String]
let width: CGFloat
let style: EmojiCollectionView.Style
var edit: Bool?
var onRemoveSUI: ((String) -> Void)?
var onTapCallback: ((String) -> Void)?
func makeUIView(context: Context) -> UICollectionView {
let collectionView = context.coordinator as UICollectionViewController
return collectionView.collectionView
}
func updateUIView(_ uiView: UICollectionView, context: Context) {
context.coordinator.hoarder = hoarder
context.coordinator.items = items
context.coordinator.onRemove = onRemoveSUI
context.coordinator.onTap = onTapCallback
context.coordinator.setEditing(edit ?? false, animated: true)
uiView.setNeedsLayout()
context.coordinator.refreshUI(with: items)
}
func makeCoordinator() -> EmojiCollectionView {
EmojiCollectionView(
hoarder: hoarder,
items: items,
width: width,
style: style
)
}
}
@@ -1,105 +0,0 @@
//
// PlainEmojiCollectionViewCell.swift
// StickerSlack
//
// Created by neon443 on 24/04/2026.
//
import Foundation
import UIKit
import SwiftUI
class PlainEmojiCollectionViewCell: UICollectionViewCell {
var view: UIKitGifView = UIKitGifView(image: nil)
var hostingController: UIHostingController<StickerPreview>?
var imageLoadTask: Task<Void, Never>?
var width: CGFloat = 0
var style: EmojiCollectionView.Style = .plain
var onTap: (() -> Void)?
override init(frame: CGRect) {
super.init(frame: frame)
view.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(view)
NSLayoutConstraint.activate([
view.topAnchor.constraint(equalTo: contentView.topAnchor),
view.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
view.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
view.heightAnchor.constraint(equalTo: view.widthAnchor),
])
let gestureRecogniser = UITapGestureRecognizer(target: self, action: #selector(handleTap))
addGestureRecognizer(gestureRecogniser)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func configureSkeleton() {
}
func configure(with: EmojiHoarder, emoji: Emoji) {
imageLoadTask?.cancel()
view.image = nil
imageLoadTask = Task { [weak self] in
await self?.view.configure(with: emoji)
}
// hostingController?.view.removeFromSuperview()
// let swiftUIView = StickerPreview(sticker: emoji)
//
// let hostingController = UIHostingController(rootView: swiftUIView)
// self.hostingController = hostingController
// contentView.addSubview(hostingController.view)
//
// hostingController.view.translatesAutoresizingMaskIntoConstraints = false
// NSLayoutConstraint.activate([
// hostingController.view.topAnchor.constraint(equalTo: contentView.topAnchor),
// hostingController.view.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
// hostingController.view.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
// hostingController.view.heightAnchor.constraint(equalTo: hostingController.view.widthAnchor),
// ])
}
@objc func handleTap(sender: UITapGestureRecognizer) {
guard sender.state == .ended else { return }
onTap?()
print("tap")
}
func preferredItemSize(for width: CGFloat) -> CGSize {
CGSize(width: width, height: width)
}
override func preferredLayoutAttributesFitting(_ layoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributes {
super.preferredLayoutAttributesFitting(layoutAttributes)
guard let superview,
let collectionView = superview as? UICollectionView else { return layoutAttributes }
let totalWidth = collectionView.bounds.width
let availWidth = totalWidth-collectionView.contentInset.left-collectionView.contentInset.right
var cols: CGFloat
if style == .jumboMoji {
cols = width
} else {
cols = max(1, floor(availWidth/width))
}
if cols == 0 || cols == .infinity { cols = 4 }
let totalSpacing = ((collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumInteritemSpacing ?? 0) * (cols-1)
let itemWidth = ((availWidth-totalSpacing)/cols).rounded(.down)
layoutAttributes.size = preferredItemSize(for: itemWidth)
return layoutAttributes
}
override func prepareForReuse() {
super.prepareForReuse()
imageLoadTask?.cancel()
imageLoadTask = nil
self.view.image = nil
hostingController?.view.removeFromSuperview()
hostingController = nil
configureSkeleton()
}
}
@@ -1,48 +0,0 @@
//
// DownloadedViewController.swift
// StickerSlack
//
// Created by neon443 on 02/07/2026.
//
import Foundation
import UIKit
class DownloadedViewController: UINavigationController, UINavigationControllerDelegate {
let downloadedView: EmojiCollectionView
var emojiHoarder: EmojiHoarder
init(emojiHoarder: EmojiHoarder) {
self.emojiHoarder = emojiHoarder
downloadedView = EmojiCollectionView(
hoarder: emojiHoarder,
items: emojiHoarder.downloadedStickersArr,
width: 75,
style: .plainWithMenu
)
downloadedView.navigationItem.title = "Downloaded"
downloadedView.collectionView.dragInteractionEnabled = false
super.init(rootViewController: downloadedView)
refreshUI()
NotificationCenter.default.addObserver(
self,
selector: #selector(refreshUI),
name: EmojiHoarder.NotifCategory.downloadedEmojis.name,
object: nil
)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
@objc func refreshUI() {
downloadedView.refreshUI(with: emojiHoarder.downloadedStickersArr)
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
}
}
@@ -0,0 +1,71 @@
//
// 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 {
StickerRow(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")
// }
//}
@@ -1,282 +0,0 @@
//
// EmojiPackDetailViewController.swift
// StickerSlack
//
// Created by neon443 on 03/07/2026.
//
import Foundation
import UIKit
import SwiftUI
import UniformTypeIdentifiers
import Haptics
class EmojiPackDetailViewController: UIViewController {
var hoarder: EmojiHoarder
var pack: EmojiPack
let collectionView: EmojiCollectionView
let emptyCollectionView: UIViewController
var effectView: UIVisualEffectView!
var countLabel: UILabel!
var adderSheetButton: UIBarButtonItem!
var downloadButton: UIAction!
var renameButton: UIAction!
var shareButton: UIAction!
var searchView: SearchViewController
var importing: Bool = false
init(with hoarder: EmojiHoarder, andPack pack: EmojiPack) {
self.hoarder = hoarder
self.pack = pack
self.collectionView = EmojiCollectionView(
hoarder: hoarder,
items: pack.items,
width: 75,
style: .full
)
self.searchView = SearchViewController(emojiHoarder: hoarder, gridLayout: true)
let suiView = EmptyCollectionView(
title: "No Emoji",
details: "Add emojis to this pack by editing it using the edit button in the toolbar.",
systemImage: "exclamationmark.triangle.fill"
)
self.emptyCollectionView = UIHostingController(rootView: suiView)
super.init(nibName: nil, bundle: nil)
self.addChild(collectionView)
self.view.addSubview(collectionView.view)
collectionView.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
collectionView.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
collectionView.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
collectionView.view.topAnchor.constraint(equalTo: self.view.topAnchor),
collectionView.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor)
])
collectionView.didMove(toParent: self)
collectionView.onRemove = { removedItem in
self.pack.items = self.collectionView.items
self.refreshUI()
self.hoarder.updateEmojiPack(self.pack)
}
collectionView.onInternalMove = {
self.pack.items = self.collectionView.items
self.refreshUI()
self.hoarder.updateEmojiPack(self.pack)
}
collectionView.addChild(emptyCollectionView)
self.view.addSubview(emptyCollectionView.view)
emptyCollectionView.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
emptyCollectionView.view.topAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.topAnchor),
emptyCollectionView.view.leadingAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.leadingAnchor),
emptyCollectionView.view.trailingAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.trailingAnchor),
])
emptyCollectionView.didMove(toParent: collectionView)
checkForEmptyPack()
self.searchView.setOnTapCallback { selection in
guard !self.pack.items.contains(selection) else {
Haptic.error.trigger()
return
}
Haptic.heavy.trigger()
self.pack.items.append(selection)
self.collectionView.items = pack.items
self.refreshUI()
}
self.countLabel = UILabel()
countLabel.text = "hello default"
countLabel.font = UIFont.preferredFont(forTextStyle: .subheadline)
countLabel.textAlignment = .center
self.effectView = UIVisualEffectView(effect: nil)
self.view.addSubview(effectView)
var effect: UIVisualEffect
if #available(iOS 19, *) {
let glassEffect = UIGlassEffect()
glassEffect.isInteractive = true
effect = glassEffect
} else {
effect = UIBlurEffect(style: .systemThinMaterial)
}
effectView.effect = effect
effectView.layer.masksToBounds = true
effectView.clipsToBounds = true
effectView.contentView.addSubview(countLabel)
effectView.translatesAutoresizingMaskIntoConstraints = false
countLabel.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
effectView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
effectView.heightAnchor.constraint(equalTo: countLabel.heightAnchor, constant: 12),
effectView.widthAnchor.constraint(equalTo: countLabel.widthAnchor, constant: 24),
effectView.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor, constant: -8),
countLabel.centerXAnchor.constraint(equalTo: effectView.centerXAnchor),
countLabel.centerYAnchor.constraint(equalTo: effectView.centerYAnchor)
])
self.adderSheetButton = UIBarButtonItem(image: UIImage(systemName: "plus"), style: .plain, target: self, action: #selector(showSheet))
let doneButton = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(hideSheet))
searchView.resultsView.navigationItem.rightBarButtonItem = doneButton
self.shareButton = UIAction(title: "Share...", image: UIImage(systemName: "square.and.arrow.up")) { action in
self.share()
}
self.renameButton = UIAction(title: "Rename", image: UIImage(systemName: "pencil")!, handler: { action in
self.renamePack()
})
self.downloadButton = UIAction(title: "", image: UIImage(systemName: "")) { action in
self.downloadButtonAction()
}
updateDownloadButton()
self.navigationItem.title = pack.name
self.setToolbar()
collectionView.onEditChange = { self.setToolbar() }
refreshUI()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func refreshUI() {
self.navigationItem.title = pack.name
self.countLabel.text = pack.description
// self.navigationItem.documentProperties
checkForEmptyPack()
updateDownloadButton()
setToolbar()
collectionView.refreshUI(with: pack.items)
}
func renamePack() {
let alert = UIAlertController(title: "Rename", message: "", preferredStyle: .alert)
alert.addTextField { textField in
textField.text = self.pack.name
textField.placeholder = self.pack.name
}
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
guard let textField = alert.textFields?.first,
let text = textField.text else { return }
self.pack.name = text
self.hoarder.updateEmojiPack(self.pack)
self.refreshUI()
}))
alert.preferredAction = alert.actions.last
self.present(alert, animated: true)
}
func checkForEmptyPack() {
self.emptyCollectionView.view.isHidden = !self.pack.items.isEmpty
if self.pack.items.isEmpty {
} else {
}
}
@objc func showSheet() {
if let sheet = searchView.sheetPresentationController {
sheet.detents = [.medium(), .large()]
sheet.prefersScrollingExpandsWhenScrolledToEdge = false
sheet.prefersEdgeAttachedInCompactHeight = true
sheet.widthFollowsPreferredContentSizeWhenEdgeAttached = true
sheet.prefersGrabberVisible = true
}
self.present(self.searchView, animated: true)
}
@objc func hideSheet() {
self.searchView.dismiss(animated: true)
}
@objc func downloadButtonAction() {
if !pack.allDownloaded(in: hoarder) {
// downloading = true
}
Task {
if pack.allDownloaded(in: hoarder) {
await pack.deleteAll(hoarder: hoarder)
} else {
await pack.downloadAll(hoarder: hoarder)
}
self.setToolbar()
refreshUI()
}
}
func updateDownloadButton() {
if pack.allDownloaded(in: hoarder) {
self.downloadButton.image = UIImage(systemName: "trash")
self.downloadButton.title = "Remove Download"
} else {
self.downloadButton.image = UIImage(systemName: "arrow.down")
self.downloadButton.title = "Download"
}
}
@objc func share() {
let itemProvider = NSItemProvider(item: pack.shareLink() as NSURL, typeIdentifier: UTType.url.identifier)
let config = UIActivityItemsConfiguration(itemProviders: [itemProvider])
let shareSheet = UIActivityViewController(activityItemsConfiguration: config)
present(shareSheet, animated: true)
}
override func setEditing(_ editing: Bool, animated: Bool) {
super.setEditing(editing, animated: animated)
collectionView.edit(editing, animated: animated)
}
func setToolbar() {
var items: [UIBarButtonItem] = [self.editButtonItem]
if self.isEditing {
if #available(iOS 26, *) {
items.append(.fixedSpace(0))
}
items.append(self.adderSheetButton)
} else {
let shareMenu = UIMenu(options: .displayInline, children: [shareButton])
let menu = UIMenu(children: [downloadButton, renameButton, shareMenu])
let dotdotdotButton = UIBarButtonItem(
title: "menu",
image: UIImage(systemName: "ellipsis"),
primaryAction: nil,
menu: menu
)
items = [self.editButtonItem, dotdotdotButton]
}
self.navigationItem.setRightBarButtonItems(items, animated: true)
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if !importing {
guard let updatedPack = hoarder.emojiPacks.first(where: { $0.id == pack.id }) else { return }
self.pack = updatedPack
}
refreshUI()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
effectView.layer.cornerRadius = effectView.bounds.height/2
collectionView.collectionView.contentInset.bottom = 8 + effectView.frame.height
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
hoarder.updateEmojiPack(pack)
}
}
@@ -1,24 +0,0 @@
//
// EmojiPackDetailViewRepresentable.swift
// StickerSlack
//
// Created by neon443 on 03/07/2026.
//
import Foundation
import UIKit
import SwiftUI
struct EmojiPackDetailViewRepresentable: UIViewControllerRepresentable {
var hoarder: EmojiHoarder
var pack: EmojiPack
func makeUIViewController(context: Context) -> UIViewController {
let view = EmojiPackDetailViewController(with: hoarder, andPack: pack)
return view
}
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {
}
}
@@ -1,79 +0,0 @@
//
// EmojiPackImporterViewController.swift
// StickerSlack
//
// Created by neon443 on 02/08/2026.
//
import Foundation
import UIKit
class EmojiPackImporterViewController: UINavigationController {
var emojiHoarder: EmojiHoarder
var packView: EmojiPackDetailViewController
var addButton: UIButton
var cancelButton: UIButton
init(emojiHoarder: EmojiHoarder, pack: EmojiPack) {
self.emojiHoarder = emojiHoarder
self.packView = EmojiPackDetailViewController(with: emojiHoarder, andPack: pack)
var config: UIButton.Configuration
if #available(iOS 19, *) {
config = .prominentClearGlass()
} else {
config = .filled()
}
config.title = "Add"
config.cornerStyle = .capsule
config.baseBackgroundColor = .accent
config.buttonSize = .large
self.addButton = UIButton(configuration: config)
if #available(iOS 19, *) {
config = .glass()
} else {
config = .filled()
config.baseBackgroundColor = .primary.inverted
}
config.title = "Cancel"
config.cornerStyle = .capsule
config.buttonSize = .large
self.cancelButton = UIButton(configuration: config)
super.init(rootViewController: packView)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
super.viewDidLoad()
addButton.addTarget(self, action: #selector(add), for: .touchUpInside)
cancelButton.addTarget(self, action: #selector(cancel), for: .touchUpInside)
packView.view.addSubview(addButton)
packView.view.addSubview(cancelButton)
addButton.translatesAutoresizingMaskIntoConstraints = false
cancelButton.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
cancelButton.leadingAnchor.constraint(equalTo: packView.view.leadingAnchor, constant: 32),
cancelButton.bottomAnchor.constraint(equalTo: packView.view.bottomAnchor, constant: -32),
addButton.trailingAnchor.constraint(equalTo: packView.view.trailingAnchor, constant: -32),
addButton.bottomAnchor.constraint(equalTo: packView.view.bottomAnchor, constant: -32),
])
}
@objc func add() {
emojiHoarder.addEmojiPack(packView.pack)
emojiHoarder.sendChangeNotif(for: .packs)
dismiss(animated: true)
}
@objc func cancel() {
dismiss(animated: true)
}
}
@@ -1,316 +0,0 @@
//
// EmojiPackListView.swift
// StickerSlack
//
// Created by neon443 on 05/07/2026.
//
import Foundation
import UIKit
import UniformTypeIdentifiers
class EmojiPackListView: UITableViewController {
var emojiHoarder: EmojiHoarder
var multiDeleteButton: UIBarButtonItem!
var selectCountButton: UIBarButtonItem!
init(emojiHoarder: EmojiHoarder) {
self.emojiHoarder = emojiHoarder
super.init(style: .insetGrouped)
NotificationCenter.default.addObserver(
self,
selector: #selector(refresh),
name: EmojiHoarder.NotifCategory.packs.name,
object: nil
)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func showRenamer(for indexPath: IndexPath) {
guard let pack = packFor(indexPath: indexPath) else { return }
let alert = UIAlertController(title: "Rename Pack", message: nil, preferredStyle: .alert)
alert.addTextField { textField in
textField.text = pack.name
textField.placeholder = pack.name
}
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { _ in
self.dismiss(animated: true)
}))
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
defer { self.dismiss(animated: true) }
var editedPack = pack
guard let textField = alert.textFields?.first,
let text = textField.text else { return }
editedPack.name = text
self.emojiHoarder.updateEmojiPack(editedPack)
self.setEditing(false, animated: true)
self.refresh()
}))
alert.preferredAction = alert.actions.last
self.present(alert, animated: true)
}
@objc func addPack() {
emojiHoarder.newEmojiPack()
self.tableView.insertRows(
at: [IndexPath(row: tableView(self.tableView, numberOfRowsInSection: 0)-1, section: 0)],
with: .automatic
)
}
func delete(_ indexPath: IndexPath) {
guard let pack = packFor(indexPath: indexPath) else { return }
self.emojiHoarder.removeEmojiPack(pack)
self.tableView.deleteRows(at: [indexPath], with: .automatic)
}
@objc func multiDelete() {
guard let selectedRows = self.tableView.indexPathsForSelectedRows else { return }
var packs: [EmojiPack] = []
for indexPath in selectedRows {
guard let pack = packFor(indexPath: indexPath) else { return }
packs.append(pack)
}
guard !packs.isEmpty else { return }
for pack in packs {
self.emojiHoarder.removeEmojiPack(pack)
}
self.tableView.deleteRows(at: selectedRows, with: .automatic)
setEditing(false, animated: true)
}
func dup(_ indexPath: IndexPath) {
guard let pack = packFor(indexPath: indexPath) else { return }
self.emojiHoarder.addEmojiPack(pack)
self.tableView.insertRows(
at: [IndexPath(row: self.emojiHoarder.emojiPacks.count-1, section: 0)],
with: .automatic
)
}
func share(_ indexPath: IndexPath) {
guard let pack = packFor(indexPath: indexPath) else { return }
let itemProvider = NSItemProvider(item: pack.shareLink() as NSURL, typeIdentifier: UTType.url.identifier)
let config = UIActivityItemsConfiguration(itemProviders: [itemProvider])
let shareSheet = UIActivityViewController(activityItemsConfiguration: config)
self.present(shareSheet, animated: true)
}
func packFor(indexPath: IndexPath) -> EmojiPack? {
guard emojiHoarder.emojiPacks.indices.contains(indexPath.row) else { return nil }
return emojiHoarder.emojiPacks[indexPath.row]
}
func updateMultiDeleteButton() {
if let selectedRows = self.tableView.indexPathsForSelectedRows,
!selectedRows.isEmpty {
self.multiDeleteButton.isEnabled = true
self.selectCountButton.title = "\(selectedRows.count)"
} else {
self.multiDeleteButton.isEnabled = false
self.selectCountButton.title = "0"
}
}
@objc func refresh() {
self.tableView.reloadData()
}
func refreshDownloadIndicator(forCell cell: UITableViewCell, withPack pack: EmojiPack) {
if pack.allDownloaded(in: emojiHoarder) {
var dlImage = UIImage(systemName: "arrow.down.circle.fill")
dlImage = dlImage!.applyingSymbolConfiguration(.init(hierarchicalColor: .systemGray))
cell.accessoryView = UIImageView(image: dlImage)
} else {
cell.accessoryView = nil
}
}
override func viewDidLoad() {
self.tableView.allowsMultipleSelectionDuringEditing = true
self.navigationItem.title = "Packs"
self.navigationItem.leftBarButtonItem = UIBarButtonItem(
image: UIImage(systemName: "plus"),
style: .plain,
target: self,
action: #selector(addPack)
)
self.navigationItem.rightBarButtonItem = self.editButtonItem
self.selectCountButton = UIBarButtonItem(title: "X", style: .plain, target: self, action: nil)
if #unavailable(iOS 26) {
self.selectCountButton.tintColor = .systemRed
}
self.multiDeleteButton = UIBarButtonItem(
image: UIImage(systemName: "trash"),
style: .plain,
target: self,
action: #selector(multiDelete)
)
self.multiDeleteButton.tintColor = .systemRed
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
refresh()
}
override func setEditing(_ editing: Bool, animated: Bool) {
super.setEditing(editing, animated: animated)
updateMultiDeleteButton()
var items: [UIBarButtonItem] = [self.editButtonItem]
if editing {
if #unavailable(iOS 26) {
items.append(.fixedSpace(20))
}
items.append(contentsOf: [selectCountButton, multiDeleteButton])
}
self.navigationItem.setRightBarButtonItems(items, animated: true)
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return emojiHoarder.emojiPacks.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = UITableViewCell()
var content = cell.defaultContentConfiguration()
guard let pack = packFor(indexPath: indexPath) else { return cell }
content.text = pack.name
content.secondaryText = pack.description
cell.contentConfiguration = content
refreshDownloadIndicator(forCell: cell, withPack: pack)
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
guard let pack = packFor(indexPath: indexPath) else { return }
if !self.isEditing {
let detailView = EmojiPackDetailViewController(with: emojiHoarder, andPack: pack)
self.navigationController?.pushViewController(detailView, animated: true)
return
}
updateMultiDeleteButton()
}
override func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
updateMultiDeleteButton()
}
override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {
return true
}
override func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) {
self.emojiHoarder.moveEmojiPack(from: sourceIndexPath, to: destinationIndexPath)
}
override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
guard let cell = tableView.cellForRow(at: indexPath) else { return nil }
guard let pack = self.packFor(indexPath: indexPath) else { return nil }
if let selectedRows = self.tableView.indexPathsForSelectedRows,
selectedRows.contains(indexPath) {
let multiDelete = UIAction(
title: "Delete \(selectedRows.count) pack\(selectedRows.count.plural)",
image: UIImage(systemName: "trash"),
attributes: .destructive
) { action in
self.multiDelete()
}
return UIContextMenuConfiguration(identifier: nil) {
return nil
} actionProvider: { suggestedActions in
return UIMenu(children: [multiDelete])
}
} else {
let delete = UIAction(title: "Delete", image: UIImage(systemName: "trash"), attributes: .destructive) { action in
self.delete(indexPath)
}
let rename = UIAction(title: "Rename", image: UIImage(systemName: "pencil")) { action in
self.showRenamer(for: indexPath)
}
let duplicate = UIAction(title: "Duplicate", image: UIImage(systemName: "plus.square.fill.on.square.fill")) { action in
self.dup(indexPath)
}
let share = UIAction(title: "Share...", image: UIImage(systemName: "square.and.arrow.up")) { action in
self.share(indexPath)
}
let isDownloaded = pack.allDownloaded(in: emojiHoarder)
let download = UIAction(
title: "\(isDownloaded ? "Remove " : "")Download",
image: UIImage(systemName: isDownloaded ? "trash" : "arrow.down")
) { action in
Task {
if isDownloaded {
await pack.deleteAll(hoarder: self.emojiHoarder)
} else {
await pack.downloadAll(hoarder: self.emojiHoarder)
}
self.refreshDownloadIndicator(forCell: cell, withPack: pack)
}
}
let submenu = UIMenu(options: .displayInline, children: [rename, duplicate, share])
let menu = UIMenu(children: [download, submenu, delete])
return UIContextMenuConfiguration(identifier: nil) {
let grid = EmojiCollectionView(hoarder: self.emojiHoarder, items: pack.items, width: 50, style: .plain)
let vc = UINavigationController(rootViewController: grid)
let title = UILabel()
title.text = pack.name
title.font = .boldSystemFont(ofSize: title.font.pointSize)
let subtitle = UILabel()
subtitle.text = pack.description
subtitle.textColor = .gray
let stackView = UIStackView(arrangedSubviews: [title, subtitle])
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing -= 2
grid.navigationItem.titleView = stackView
return vc
} actionProvider: { suggestedActions in
return menu
}
}
}
override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
guard packFor(indexPath: indexPath) != nil else { return nil }
let delete = UIContextualAction(style: .destructive, title: "Delete") { _, _, _ in
self.delete(indexPath)
}
delete.image = UIImage(systemName: "trash")
let rename = UIContextualAction(style: .normal, title: "Rename") { _, _, _ in
self.showRenamer(for: indexPath)
}
rename.image = UIImage(systemName: "pencil")
let share = UIContextualAction(style: .normal, title: "Share") { _, _, _ in
self.share(indexPath)
}
share.image = UIImage(systemName: "square.and.arrow.up")
return UISwipeActionsConfiguration(actions: [delete, rename, share])
}
}
@@ -1,25 +0,0 @@
//
// EmojiPackManagerController.swift
// StickerSlack
//
// Created by neon443 on 05/07/2026.
//
import Foundation
import UIKit
class EmojiPackManagerController: UINavigationController, UINavigationControllerDelegate {
var emojiHoarder: EmojiHoarder
var tableView: UITableViewController
init(emojiHoarder: EmojiHoarder) {
self.emojiHoarder = emojiHoarder
self.tableView = EmojiPackListView(emojiHoarder: emojiHoarder)
super.init(rootViewController: tableView)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
@@ -1,154 +0,0 @@
//
// SearchViewController.swift
// StickerSlack
//
// Created by neon443 on 04/07/2026.
//
import Foundation
import UIKit
import SwiftUI
class SearchViewController: UINavigationController, UISearchControllerDelegate, UISearchResultsUpdating, UISearchBarDelegate {
var emojiHoarder: EmojiHoarder
var gridLayout = false
var resultsView: UIViewController
var searchController: UISearchController
var previousQueries: [String] = []
var noResultsView = UIHostingController(
rootView: EmptyCollectionView(
title: "No Results",
details: "Try searching for something else",
systemImage: "magnifyingglass"
)
)
init(emojiHoarder: EmojiHoarder, gridLayout: Bool = false) {
self.emojiHoarder = emojiHoarder
self.gridLayout = gridLayout
if gridLayout {
self.resultsView = EmojiCollectionView(
hoarder: emojiHoarder,
items: [],
width: 75,
style: .plainWithLabel
)
(self.resultsView as! EmojiCollectionView).collectionView.dragInteractionEnabled = false
} else {
self.resultsView = EmojiTableView(hoarder: emojiHoarder, items: [])
}
self.searchController = UISearchController(searchResultsController: nil)
super.init(nibName: nil, bundle: nil)
// self.searchController.obscuresBackgroundDuringPresentation = false
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
super.viewDidLoad()
setViewControllers([resultsView], animated: true)
resultsView.navigationItem.title = "Search"
searchController.delegate = self
searchController.searchResultsUpdater = self
searchController.searchBar.autocapitalizationType = .none
searchController.searchBar.delegate = self
searchController.hidesNavigationBarDuringPresentation = false
resultsView.navigationItem.hidesSearchBarWhenScrolling = false
resultsView.navigationItem.searchController = searchController
resultsView.navigationItem.hidesBackButton = false
definesPresentationContext = true
// noResultsView.view.transform = CGAffineTransform(scaleX: 0, y: 0)
// resultsView.addChild(noResultsView)
// resultsView.view.addSubview(noResultsView.view)
// noResultsView.view.translatesAutoresizingMaskIntoConstraints = false
// NSLayoutConstraint.activate([
// resultsView.view.leadingAnchor.constraint(equalTo: noResultsView.view.leadingAnchor),
// resultsView.view.trailingAnchor.constraint(equalTo: noResultsView.view.trailingAnchor),
// resultsView.view.topAnchor.constraint(equalTo: noResultsView.view.topAnchor),
// resultsView.view.bottomAnchor.constraint(equalTo: noResultsView.view.topAnchor, constant: 100)
// ])
// noResultsView.didMove(toParent: self)
}
func setOnTapCallback(to newCallback: @escaping ((String) -> Void)) {
guard let collectionView = self.resultsView as? EmojiCollectionView else { return }
collectionView.onTap = newCallback
}
func reset() {
previousQueries = []
refreshResults(with: [])
self.noResultsView.view.transform = CGAffineTransform(scaleX: 0, y: 0)
}
func refreshResults(with results: [String]) {
if gridLayout {
guard let resultsView = self.resultsView as? EmojiCollectionView else { fatalError() }
resultsView.refreshUI(with: results)
} else {
guard let resultsView = self.resultsView as? EmojiTableView else { fatalError() }
resultsView.refreshUI(with: results)
}
}
func getItems() -> [String] {
if gridLayout {
guard let resultsView = self.resultsView as? EmojiCollectionView else { fatalError() }
return resultsView.items
} else {
guard let resultsView = self.resultsView as? EmojiTableView else { fatalError() }
return resultsView.items
}
}
func updateSearchResults(for searchController: UISearchController) {
guard let text = searchController.searchBar.text else { return }
guard !text.isEmpty else { return }
let previousQuery: String?
if previousQueries.count > 1 {
previousQuery = previousQueries[previousQueries.count-2]
} else { previousQuery = nil }
let results = emojiHoarder.trie.search(
for: text,
previousQuery: previousQuery,
previousResult: Set(getItems())
)
if results.isEmpty {
UIView.animate(withDuration: 0.2, delay: 0, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.1) {
self.noResultsView.view.transform = .identity
}
} else {
UIView.animate(withDuration: 0.2, delay: 0, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.1) {
self.noResultsView.view.transform = CGAffineTransform(scaleX: 0, y: 0)
}
}
refreshResults(with: results)
}
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
guard !searchText.isEmpty else {
reset()
return
}
previousQueries.append(searchText)
print(previousQueries)
}
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
reset()
}
}
-27
View File
@@ -1,27 +0,0 @@
//
// ShareSheet.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import Foundation
import UIKit
import SwiftUI
struct ShareSheet: UIViewControllerRepresentable {
let activityItems: [Any]
let applicationActivities: [UIActivity]? = nil
func makeUIViewController(context: Context) -> UIActivityViewController {
let controller = UIActivityViewController(
activityItems: activityItems,
applicationActivities: applicationActivities
)
return controller
}
func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
// <#code#>
}
}
@@ -1,61 +0,0 @@
//
// TabbedContentView.swift
// StickerSlack
//
// Created by neon443 on 26/06/2026.
//
import Foundation
import UIKit
import SwiftUI
final class TabbedContentView: UITabBarController, UITabBarControllerDelegate {
func setupTabs(with emojiHoarder: EmojiHoarder) {
self.delegate = self
let browse = BrowseViewController(emojiHoarder: emojiHoarder)
browse.tabBarItem = UITabBarItem(title: "Browse", image: UIImage(systemName: "square.grid.2x2.fill"), tag: 0)
// let packsView = EmojiPackManager(hoarder: emojiHoarder)
// let packs = UIHostingController(rootView: packsView)
let packs = EmojiPackManagerController(emojiHoarder: emojiHoarder)
// let packs = EmojiPackDetailViewController(with: emojiHoarder, andPack: .test)
packs.tabBarItem = UITabBarItem(title: "Packs", image: UIImage(systemName: "square.stack.3d.up.fill"), tag: 1)
let downloaded = DownloadedViewController(emojiHoarder: emojiHoarder)
downloaded.tabBarItem = UITabBarItem(title: "Downloaded", image: UIImage(systemName: "arrow.down.circle.fill"), tag: 2)
// let searchView = SearchView(hoarder: emojiHoarder)
// let search = UIHostingController(rootView: searchView)
let search = SearchViewController(emojiHoarder: emojiHoarder)
search.tabBarItem = UITabBarItem(tabBarSystemItem: .search, tag: 3)
let settingsView = SettingsView(hoarder: emojiHoarder)
let settings = UIHostingController(rootView: settingsView)
settings.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(systemName: "gear"), tag: 4)
self.setViewControllers([browse, packs, downloaded, search, settings], animated: false)
}
func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
guard let selectedVc = selectedViewController else { return true }
if viewController.tabBarItem.tag == selectedVc.tabBarItem.tag {
guard let navController = viewController as? UINavigationController else { return true }
navController.popToRootViewController(animated: true)
return true
}
return true
}
// override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
// item
// }/
// func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {
// let navController = viewController as! UINavigationController
// navController.popViewController(animated: true)
// }
}
@@ -1,102 +0,0 @@
//
// EmojiTableView.swift
// StickerSlack
//
// Created by neon443 on 03/11/2025.
//
import Foundation
import UIKit
final class EmojiTableView: UITableViewController {
var dataSource: UITableViewDiffableDataSource<Int, String>!
var hoarder: EmojiHoarder
var items: [String]
init(hoarder: EmojiHoarder, items: [String]) {
self.hoarder = hoarder
self.items = items
super.init(style: .plain)
self.dataSource = UITableViewDiffableDataSource<Int, String>(tableView: tableView) { (tableView: UITableView, indexPath: IndexPath, itemIdentifier: String) -> UITableViewCell? in
return self.cell(tableView, indexPath: indexPath, forItemIdentifier: itemIdentifier)
}
tableView.dataSource = dataSource
tableView.register(EmojiTableViewCell.self, forCellReuseIdentifier: "cell")
self.refreshUI(with: items)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func refreshUI(with newItems: [String]) {
let itemsBefore = self.items
let itemsAfter = newItems
self.items = newItems
Task.detached {
//if its being cleared or removign 10k+
if itemsAfter.isEmpty {
await self.instantApplySnapshot()
return
}
if itemsAfter.count > 10_000 {
await self.instantApplySnapshot()
return
}
// guard !itemsAfter.isEmpty && itemsBefore.count-itemsAfter.count < 10_000 else {
// await self.instantApplySnapshot()
// return
// }
await self.applySnapshot(animated: true)
}
}
func makeSnapshot() -> NSDiffableDataSourceSnapshot<Int, String> {
var snapshot = NSDiffableDataSourceSnapshot<Int, String>()
snapshot.appendSections([0])
snapshot.appendItems(items, toSection: 0)
return snapshot
}
func applySnapshot(animated: Bool) async {
let snapshot = makeSnapshot()
await (self.tableView.dataSource as! UITableViewDiffableDataSource).apply(snapshot, animatingDifferences: animated)
}
func instantApplySnapshot() async {
let snapshot = makeSnapshot()
await (self.tableView.dataSource as! UITableViewDiffableDataSource).applySnapshotUsingReloadData(snapshot)
}
func cell(
_ tableView: UITableView,
indexPath: IndexPath,
forItemIdentifier itemIdentifier: String
) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! EmojiTableViewCell
cell.selectionStyle = .none
guard !hoarder.trie.dict.isEmpty else { return cell }
guard let emoji = hoarder.trie.dict[itemIdentifier] else { return cell }
cell.configure(with: hoarder, emoji: emoji)
tableView.separatorInset = UIEdgeInsets(top: 0, left: cell.bounds.height + 8, bottom: 0, right: 16)
return cell
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return items.count
}
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
}
}
@@ -1,56 +0,0 @@
//
// EmojiCell.swift
// StickerSlack
//
// Created by neon443 on 11/04/2026.
//
import Foundation
import UIKit
import SwiftUI
class EmojiTableViewCell: UITableViewCell {
private var hostingController: UIHostingController<StickerRow<EmojiHoarder>>?
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
backgroundColor = .systemGroupedBackground
contentView.backgroundColor = .clear
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func configureSkeleton() {
}
func configure(with hoarder: EmojiHoarder, emoji: Emoji) {
let swiftUIView = StickerRow(hoarder: hoarder, sticker: emoji)
if let hostingController {
hostingController.rootView = swiftUIView
} else {
let controller = UIHostingController(rootView: swiftUIView)
hostingController = controller
contentView.addSubview(controller.view)
controller.view.backgroundColor = .clear
controller.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
controller.view.topAnchor.constraint(equalTo: contentView.topAnchor),
controller.view.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
controller.view.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
controller.view.trailingAnchor.constraint(equalTo: contentView.trailingAnchor)
])
}
}
override func prepareForReuse() {
super.prepareForReuse()
hostingController?.view.removeFromSuperview()
hostingController = nil
}
}
@@ -1,30 +0,0 @@
//
// EmojiTableViewRepresentable.swift
// StickerSlack
//
// Created by neon443 on 30/06/2026.
//
import Foundation
import UIKit
import SwiftUI
import Haptics
struct EmojiTableViewRepresentable: UIViewRepresentable {
let hoarder: EmojiHoarder
let items: [String]
func makeUIView(context: Context) -> UITableView {
let tableView = context.coordinator as UITableViewController
return tableView.tableView
}
func updateUIView(_ uiView: UITableView, context: Context) {
context.coordinator.hoarder = hoarder
context.coordinator.refreshUI(with: items)
}
func makeCoordinator() -> EmojiTableView {
return EmojiTableView(hoarder: hoarder, items: items)
}
}
-45
View File
@@ -1,45 +0,0 @@
//
// UIKitGifView.swift
// StickerSlack
//
// Created by neon443 on 03/05/2026.
//
import Foundation
import UIKit
class UIKitGifView: UIImageView {
override init(image: UIImage?) {
super.init(image: image)
self.contentMode = .scaleAspectFit
if #available(iOS 17, *) {
self.preferredImageDynamicRange = .high
}
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func configure(with sticker: any StickerProtocol) async {
let image = await prepareImage(for: sticker)
await MainActor.run {
UIView.transition(with: self, duration: 0.2, options: .transitionCrossDissolve) {
self.image = image
}
}
}
nonisolated func prepareImage(for sticker: any StickerProtocol) async -> UIImage? {
let raw: Data?
raw = await sticker.data()
guard let raw else { return nil }
return await render(data: raw)
}
nonisolated func render(data: Data) async -> UIImage {
return await Task.detached(priority: .userInitiated) {
return GifManager.uiImageFrom(data: data) ?? UIImage(systemName: "xmark")!
}.value
}
}
Loaded 100 of 121 files, more files were not shown because too many files have changed in this diff.
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.