Compare commits

..
0 Commits
58 changed files with 731 additions and 2176 deletions

No files matched your search

-1
View File
@@ -1 +0,0 @@
Resources/giphy_api_key.txt
+1 -1
View File
@@ -5,7 +5,7 @@
// Created by neon443 on 02/11/2025. // Created by neon443 on 02/11/2025.
// //
VERSION = 2.0 VERSION = 1.0
BUILD = 1 BUILD = 1
// Configuration settings file format documentation can be found at: // Configuration settings file format documentation can be found at:
+24
View File
@@ -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)
)
}
+3 -3
View File
@@ -3,7 +3,7 @@
<div align="center"> <div align="center">
<br/> <br/>
<p> <p>
<img src="https://github.com/neon443/StickerSlack/blob/main/Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png?raw=true" title="icon" alt="icon" width="100" /> <img src="https://files.catbox.moe/d8go4n.png" title="icon" alt="icon" width="100" />
</p> </p>
<p> <p>
every slack emoji as an iMessage sticker every slack emoji as an iMessage sticker
@@ -13,8 +13,8 @@
</a> </a>
</p> </p>
<p> <p>
<a href="https://apps.apple.com/us/app/stickerslack/id6754695612"> <a href="https://testflight.apple.com/join/JWTN897S">
appstore testflight
</a> </a>
</p> </p>
<br/> <br/>
@@ -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,12 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"symbols" : [
{
"filename" : "square.and.arrow.up.svg",
"idiom" : "universal"
}
]
}
@@ -1,115 +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 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>

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.
Binary file not shown.
-115
View File
@@ -1,115 +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 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>

Before

Width:  |  Height:  |  Size: 25 KiB

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