updated welcome view

added a tabview bottom accessory (defunct now)
This commit is contained in:
neon443 committed 2026-06-19 20:28:48 +01:00
1 parent ef1aa61728
commit bbf22957ba
16 files changed
+327 -49

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

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

After

Width:  |  Height:  |  Size: 709 KiB

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

After

Width:  |  Height:  |  Size: 731 KiB

+8 -1
View File
@@ -23,7 +23,13 @@
}
},
{
"glass" : true,
"blend-mode-specializations" : [
{
"appearance" : "dark",
"value" : "normal"
}
],
"glass" : false,
"image-name" : "Group 7.png",
"name" : "Group 7",
"position" : {
@@ -35,6 +41,7 @@
}
},
{
"glass" : true,
"image-name" : "Group 8.png",
"name" : "Group 8",
"position" : {
Binary file not shown.
+1 -7
View File
@@ -20,8 +20,6 @@
A917BAD22F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
A921C2E22ED071C900E57B1A /* ListRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2E12ED071C900E57B1A /* ListRow.swift */; };
A921C2E32ED071C900E57B1A /* ListRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2E12ED071C900E57B1A /* ListRow.swift */; };
A924C3732EA9127200F20781 /* Emoji.swift in Sources */ = {isa = PBXBuildFile; fileRef = A924C3712EA9127200F20781 /* Emoji.swift */; };
A924C3782EA9225800F20781 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A924C3772EA9225800F20781 /* Haptics */; };
A935437B2EB2A3C800BB80A4 /* FilterCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */; };
@@ -200,7 +198,6 @@
A917BACD2F9B787B008DB31E /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.swift; sourceTree = "<group>"; };
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlainEmojiCollectionViewCell.swift; sourceTree = "<group>"; };
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };
A921C2E12ED071C900E57B1A /* ListRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListRow.swift; sourceTree = "<group>"; };
A924C3712EA9127200F20781 /* Emoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Emoji.swift; sourceTree = "<group>"; };
A924C3742EA9134C00F20781 /* StickerSlack.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = StickerSlack.entitlements; sourceTree = "<group>"; };
A935437A2EB2A3C800BB80A4 /* FilterCategory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterCategory.swift; sourceTree = "<group>"; };
@@ -549,7 +546,6 @@
children = (
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */,
A9BDEADD2F82BC93002798DF /* NoStickersView.swift */,
A921C2E12ED071C900E57B1A /* ListRow.swift */,
A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */,
);
path = Misc;
@@ -628,7 +624,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 2600;
LastSwiftUpdateCheck = 2700;
LastUpgradeCheck = 2600;
TargetAttributes = {
A949B1DE2EA04C0B00215164 = {
@@ -749,7 +745,6 @@
A949B1F82EA04F2300215164 /* EmojiHoarder.swift in Sources */,
A9BBC5182EB8FA4500FFE82F /* ViewModifiers.swift in Sources */,
A9EB72492EB948C400658CEB /* StickerRow.swift in Sources */,
A921C2E22ED071C900E57B1A /* ListRow.swift in Sources */,
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */,
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */,
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */,
@@ -821,7 +816,6 @@
A9EC46AE2F6D9E5800E066E6 /* StickerType.swift in Sources */,
A9B9A82F2EB2CCED004C9245 /* EmojiHoarder.swift in Sources */,
A9CD6C3B2EDDE6B500B7F421 /* EmojiPack.swift in Sources */,
A921C2E32ED071C900E57B1A /* ListRow.swift in Sources */,
A9BE30EF2F5B004800A57668 /* GifHoarder.swift in Sources */,
A9A7A4492F68361200BB84C6 /* Meta.swift in Sources */,
A9EB724A2EB948E000658CEB /* EmojiTableView.swift in Sources */,
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2700"
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 = "A9A6A09C2FE15CC700A25B5C"
BuildableName = "StickerExtension.appex"
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"
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"
queueDebuggingEnabled = "No">
<RemoteRunnable
runnableDebuggingMode = "1"
BundleIdentifier = "com.apple.MobileSMS">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A9A6A09C2FE15CC700A25B5C"
BuildableName = "StickerExtension.appex"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</RemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A949B1DE2EA04C0B00215164"
BuildableName = "StickerSlack.app"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</MacroExpansion>
</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"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2700"
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"
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"
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"
queueDebuggingEnabled = "No">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A949B1DE2EA04C0B00215164"
BuildableName = "StickerSlack.app"
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"
ReferencedContainer = "container:StickerSlack.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
+7
View File
@@ -38,6 +38,13 @@ struct ContentView: View {
}
}
}
.tabViewBottomAccessorySafe {
HStack {
Image(systemName: "magnifyingglass")
TextField("", text: .constant("sa"), prompt: Text("Search"))
}
.padding(.horizontal)
}
} else {
TabView {
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
-26
View File
@@ -1,26 +0,0 @@
//
// ListRow.swift
// StickerSlack
//
// Created by neon443 on 21/11/2025.
//
import SwiftUI
struct ListRow: View {
@State var number: Int
@State var text: String
var body: some View {
HStack {
Text("\(number)")
.padding(.trailing, 10)
.foregroundStyle(.gray)
Text(text)
}
}
}
#Preview {
ListRow(number: 1, text: "hi!")
}
+7 -6
View File
@@ -10,6 +10,7 @@ import SwiftUI
struct SearchView: View {
@ObservedObject var hoarder: EmojiHoarder
@FocusState private var searchFocused: Bool
@State private var currentSearch: Task<Void, Never>?
@State var searchTerm: String = ""
@State var previousSearches: [String] = []
@@ -59,12 +60,6 @@ struct SearchView: View {
onTapCallback: { callback($0)
})
} else {
Picker("", selection: $stickerType) {
ForEach(StickerType.allCases) { type in
Text(type.description).tag(type)
}
}
.pickerStyle(.segmented)
switch stickerType {
case .slackEmoji:
Text("\(searchResult.count)")
@@ -73,6 +68,12 @@ struct SearchView: View {
case .giphyGifs:
Text("uhh")
}
Picker("", selection: $stickerType) {
ForEach(StickerType.allCases) { type in
Text(type.description).tag(type)
}
}
.pickerStyle(.segmented)
}
}
.searchable(text: $searchTerm)
+40 -9
View File
@@ -28,16 +28,21 @@ struct WelcomeView: View {
}
.padding(.vertical, 16)
.padding(.leading, 16)
List {
Section("How to use") {
ListRow(number: 1, text: "Browse or search for an emoji")
ListRow(number: 2, text: "Download it")
ListRow(number: 3, text: "Open iMessage")
ListRow(number: 4, text: "Press the +")
ListRow(number: 5, text: "Choose StickerSlack")
ListRow(number: 6, text: "Tap an emoji to use it!")
}
LazyVGrid(
columns: Array(
repeating: GridItem(.flexible(minimum: 50, maximum: 1000)),
count: UIScreen.main.bounds.width < UIScreen.main.bounds.height ? 2 : 4
)
) {
ListRow(number: 1, text: "Browse or Search", image: Image(uiImage: #imageLiteral(resourceName: "1-browseOrSearch")))
ListRow(number: 2, text: "Download it", image: Image(systemName: "arrow.down.circle"))
ListRow(number: 3, text: "Open iMessage", image: Image(systemName: "message.fill"))
ListRow(number: 4, text: "Tap the +", image: Image(systemName: "plus.circle.fill"))
ListRow(number: 5, text: "Choose Stickers", image: Image(uiImage: #imageLiteral(resourceName: "stickersIcon.png")))
ListRow(number: 6, text: "Find StickerSlack", image: Image(uiImage: #imageLiteral(resourceName: "iMessageAppIcon")))
ListRow(number: 7, text: "Tap a sticker!", image: Image(systemName: "arrow.up.message"))
}
.padding()
.modifier(ScrollContentBackgroundHidden())
Spacer()
Group {
@@ -62,6 +67,32 @@ struct WelcomeView: View {
.interactiveDismissDisabled()
}
}
private struct ListRow: View {
@State var number: Int
@State var text: String
@State var image: Image?
var body: some View {
VStack(alignment: .center) {
HStack {
Spacer()
.overlay(alignment: .leading) {
Text("\(number)")
.font(.headline)
.bold()
.foregroundStyle(.gray)
}
Text(text)
.lineLimit(nil)
Spacer()
}
image?.resizable().scaledToFit()
.frame(maxHeight: 40)
}
.padding(.bottom)
}
}
}
fileprivate struct ContinueButtonView: View {
+4
View File
@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MSSupportedPresentationContexts</key>
<array>
<string>MSMessagesAppPresentationContextMessages</string>
</array>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>
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.