diff --git a/Package.swift b/Package.swift
index ec6de8e..df4a640 100644
--- a/Package.swift
+++ b/Package.swift
@@ -1,4 +1,4 @@
-// swift-tools-version:5.2
+// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
@@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "SSToastMessage",
platforms: [
- .iOS(.v13),
+ .iOS(.v14),
.macOS(.v10_15)
],
products: [
diff --git a/README.md b/README.md
index 22f14c6..ef0f5c7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+![SSToastMessage Banner](banner.png)
SSToastMessage
=============
@@ -11,8 +11,15 @@ SSToastMessage
[![PRs Welcome][PR-image]][PR-url]
[![Twitter](https://img.shields.io/badge/Twitter-@simform-blue.svg?style=flat)](https://twitter.com/simform)
+Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and floating messages to any view on both iPhone and macOS. With SSToastMessage, you can display left and right toast views over any top-level view, making it incredibly versatile and powerful. Designed to be simple, lightweight, and user-friendly, SSToastMessage allows you to show popups with a single line of code. Enhance your app's user experience with seamless and stylish notifications.
+
+## Features
+
+- [x] Customisable toast view
+- [x] Multiple options for show toast view
+- [x] Cross-Platform (iOS & macOS)
+- [x] Flexible Positioning
-SSToastMessage is written in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.
Screenshots
---------
@@ -25,7 +32,7 @@ Setup Instructions
------------------
To integrate Toast-Swift into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
-pod 'SSToastMessage', '~> 1.0.0'
+pod 'SSToastMessage'
```
and in your code add `import SSToastMessage`.
@@ -33,14 +40,18 @@ and in your code add `import SSToastMessage`.
------------------
When using Xcode 11 or later, you can install `SSToastMessage` by going to your Project settings > `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` > `Swift Packages` > `Add Package Dependencies...`
+ dependencies: [
+ .package(url: "https://github.com/SimformSolutionsPvtLtd/SSToastMessage.git", from: "1.0.0")
+ ]
## Manually
-1. Add `MessageView.swift`, `DispatchWorkHolder.swift` and `View+Extension.swift` to your project.
+1. Add `MessageView.swift`, `DispatchWorkHolder.swift`, `ViewModel.swift` and `View+Extension.swift` to your project.
2. Grab yourself a cold 🍺.
## Requirements
-* iOS 13+
+* iOS 14+
+* macos 13+
* Xcode 11+
# Usage
@@ -98,7 +109,7 @@ struct ContentView: View {
}
}.padding(15)
}
- .frame(width: UIScreen.main.bounds.width, height: 110)
+ .frame(height: 110)
.background(Color(red: 0.85, green: 0.65, blue: 0.56))
}
}
@@ -120,41 +131,37 @@ Way easy to customize!
Element | Declaration | Description
--------|-----------|-----
-type | `type: MessageType` | set type of view alert, toast and float.
+type | `type: MessageType` | set type of view alert, toast and floater, left toast view and right toast view.
position | `position: Position` | top or bottom (for default case it just determines animation direction).
animation | `animation: Animation` | custom animation for message view sliding onto screen.
-autohideDuration | `autohideDuration: Double?` | time after which message view should disappear.
+horizontalPadding | `horizontalPadding: Double?` | for adding horizontalPadding in toast view.
+duration | `duration: Double?` | time after which message view should disappear.
closeOnTap | `closeOnTap: Bool` | on message view tap it should disappear.
-onTap | `onTap: () -> Void` | on message view tap perform any action or navigation.
closeOnTapOutside | `closeOnTapOutside: Bool` | on outside tap message view should disappear.
+onTap | `onTap: () -> Void` | on message view tap perform any action or navigation.
+onToastHide | `onToastHide: () -> Void` | on toast hide perform any action.
See the demo project for more examples.
-
+## 🤝 How to Contribute
+
+Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! :muscle:
+
+Check out our [**Contributing Guide**](CONTRIBUTING.md) for ideas on contributing.
+
+## Find this example useful? ❤️
+
+Give a ⭐️ if this project helped you!
+
+## Check out our other Libraries
+
+
## MIT License
-Copyright (c) 2020 Simform Solutions
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat
[PR-url]:http://makeapullrequest.com
diff --git a/SSToastMessage.podspec b/SSToastMessage.podspec
new file mode 100644
index 0000000..36e9f72
--- /dev/null
+++ b/SSToastMessage.podspec
@@ -0,0 +1,36 @@
+#
+# Be sure to run `pod lib lint SSToastMessage.podspec' to ensure this is a
+# valid spec before submitting.
+#
+# Any lines starting with a # are optional, but their use is encouraged
+# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
+#
+
+Pod::Spec.new do |s|
+ s.name = 'SSToastMessage'
+ s.version = '2.0.0'
+ s.platform = :ios
+ s.platform = :osx
+ s.swift_versions = '5.0'
+ s.summary = 'Simple popup view build in SwiftUI.'
+ s.description = <<-DESC
+ Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage.SSToastMessage enables you to effortlessly add toast
+ notifications, alerts, and floating messages to any view on both iPhone and macOS. With SSToastMessage, you can display left and
+ right toast views over any top-level view, making it incredibly versatile and powerful. Designed to be simple, lightweight, and
+ user-friendly, SSToastMessage allows you to show popups with a single line of code. Enhance your app's user experience with seamless
+ and stylish notifications.
+ DESC
+
+ s.homepage = 'https://github.com/SimformSolutionsPvtLtd/SSToastMessage'
+ s.license = { :type => 'MIT', :file => 'LICENSE' }
+ s.author = { 'Ankit Panchal' => 'ankit.p@simformsolutions.com' }
+ s.source = { :git => 'https://github.com/SimformSolutionsPvtLtd/SSToastMessage.git', :tag => s.version.to_s }
+ s.social_media_url = 'https://www.simform.com'
+
+ s.ios.deployment_target = '14.0'
+ s.osx.deployment_target = '13.0'
+
+ s.source_files = '**/Sources/Classes/*.swift'
+ s.frameworks = ['SwiftUI']
+
+end
diff --git a/SSToastMessage/Example/Podfile b/SSToastMessage/Example/Podfile
deleted file mode 100644
index 8a9d0a4..0000000
--- a/SSToastMessage/Example/Podfile
+++ /dev/null
@@ -1,12 +0,0 @@
-platform :ios, '13.0'
-use_frameworks!
-
-target 'SSToastMessage_Example' do
- pod 'SSToastMessage', :path => '../'
-
- target 'SSToastMessage_Tests' do
- inherit! :search_paths
-
-
- end
-end
diff --git a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.pbxproj b/SSToastMessage/Example/SSToastMessage.xcodeproj/project.pbxproj
deleted file mode 100644
index c7689f1..0000000
--- a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,583 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 51;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3DEC9B71978C5ACB7BD68433 /* Pods_SSToastMessage_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE119A8B6170242AF489112C /* Pods_SSToastMessage_Example.framework */; };
- A05A73DA25075B6E00E86576 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A05A73D925075B6E00E86576 /* AppDelegate.swift */; };
- A05A73DC25075B6E00E86576 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A05A73DB25075B6E00E86576 /* SceneDelegate.swift */; };
- A05A73DE25075B6E00E86576 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A05A73DD25075B6E00E86576 /* ContentView.swift */; };
- A05A73E025075B6F00E86576 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A05A73DF25075B6F00E86576 /* Assets.xcassets */; };
- A05A73E325075B6F00E86576 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A05A73E225075B6F00E86576 /* Preview Assets.xcassets */; };
- A05A73E625075B6F00E86576 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A05A73E425075B6F00E86576 /* LaunchScreen.storyboard */; };
- A05A73F125075B6F00E86576 /* SSToastMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A05A73F025075B6F00E86576 /* SSToastMessageTests.swift */; };
- B11B1FEAEB2E46F3F7BF6D41 /* Pods_SSToastMessage_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78DA2174724B55D863AEB50D /* Pods_SSToastMessage_Tests.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- A05A73ED25075B6F00E86576 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = A05A73CE25075B6E00E86576 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = A05A73D525075B6E00E86576;
- remoteInfo = SSToastMessage;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 055FE7D23C0C2ED455D09BD4 /* Pods-SSToastMessage_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessage_Example.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessage_Example/Pods-SSToastMessage_Example.debug.xcconfig"; sourceTree = ""; };
- 77D03C12ECF8A03B74B576BA /* Pods-SSToastMessage_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessage_Example.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessage_Example/Pods-SSToastMessage_Example.release.xcconfig"; sourceTree = ""; };
- 78DA2174724B55D863AEB50D /* Pods_SSToastMessage_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSToastMessage_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- A05A73D625075B6E00E86576 /* SSToastMessage_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSToastMessage_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
- A05A73D925075B6E00E86576 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- A05A73DB25075B6E00E86576 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
- A05A73DD25075B6E00E86576 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
- A05A73DF25075B6F00E86576 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- A05A73E225075B6F00E86576 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
- A05A73E525075B6F00E86576 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- A05A73E725075B6F00E86576 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- A05A73EC25075B6F00E86576 /* SSToastMessage_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SSToastMessage_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
- A05A73F025075B6F00E86576 /* SSToastMessageTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSToastMessageTests.swift; sourceTree = ""; };
- A05A73F225075B6F00E86576 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- E9DFC8524F58C2B42FE99917 /* Pods-SSToastMessage_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessage_Tests.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessage_Tests/Pods-SSToastMessage_Tests.release.xcconfig"; sourceTree = ""; };
- F26FD9698CE3B4240B061EC1 /* Pods-SSToastMessage_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessage_Tests.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessage_Tests/Pods-SSToastMessage_Tests.debug.xcconfig"; sourceTree = ""; };
- FE119A8B6170242AF489112C /* Pods_SSToastMessage_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSToastMessage_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- A05A73D325075B6E00E86576 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3DEC9B71978C5ACB7BD68433 /* Pods_SSToastMessage_Example.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- A05A73E925075B6F00E86576 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- B11B1FEAEB2E46F3F7BF6D41 /* Pods_SSToastMessage_Tests.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- A05A73CD25075B6E00E86576 = {
- isa = PBXGroup;
- children = (
- A05A73D825075B6E00E86576 /* SSToastMessage */,
- A05A73EF25075B6F00E86576 /* SSToastMessageTests */,
- A05A73D725075B6E00E86576 /* Products */,
- A1C3F5572CF924D10FBE1FDA /* Pods */,
- BAAD6AD4CAE8400321F736EC /* Frameworks */,
- );
- sourceTree = "";
- };
- A05A73D725075B6E00E86576 /* Products */ = {
- isa = PBXGroup;
- children = (
- A05A73D625075B6E00E86576 /* SSToastMessage_Example.app */,
- A05A73EC25075B6F00E86576 /* SSToastMessage_Tests.xctest */,
- );
- name = Products;
- sourceTree = "";
- };
- A05A73D825075B6E00E86576 /* SSToastMessage */ = {
- isa = PBXGroup;
- children = (
- A05A73D925075B6E00E86576 /* AppDelegate.swift */,
- A05A73DB25075B6E00E86576 /* SceneDelegate.swift */,
- A05A73DD25075B6E00E86576 /* ContentView.swift */,
- A05A73DF25075B6F00E86576 /* Assets.xcassets */,
- A05A73E425075B6F00E86576 /* LaunchScreen.storyboard */,
- A05A73E725075B6F00E86576 /* Info.plist */,
- A05A73E125075B6F00E86576 /* Preview Content */,
- );
- path = SSToastMessage;
- sourceTree = "";
- };
- A05A73E125075B6F00E86576 /* Preview Content */ = {
- isa = PBXGroup;
- children = (
- A05A73E225075B6F00E86576 /* Preview Assets.xcassets */,
- );
- path = "Preview Content";
- sourceTree = "";
- };
- A05A73EF25075B6F00E86576 /* SSToastMessageTests */ = {
- isa = PBXGroup;
- children = (
- A05A73F025075B6F00E86576 /* SSToastMessageTests.swift */,
- A05A73F225075B6F00E86576 /* Info.plist */,
- );
- path = SSToastMessageTests;
- sourceTree = "";
- };
- A1C3F5572CF924D10FBE1FDA /* Pods */ = {
- isa = PBXGroup;
- children = (
- 055FE7D23C0C2ED455D09BD4 /* Pods-SSToastMessage_Example.debug.xcconfig */,
- 77D03C12ECF8A03B74B576BA /* Pods-SSToastMessage_Example.release.xcconfig */,
- F26FD9698CE3B4240B061EC1 /* Pods-SSToastMessage_Tests.debug.xcconfig */,
- E9DFC8524F58C2B42FE99917 /* Pods-SSToastMessage_Tests.release.xcconfig */,
- );
- path = Pods;
- sourceTree = "";
- };
- BAAD6AD4CAE8400321F736EC /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- FE119A8B6170242AF489112C /* Pods_SSToastMessage_Example.framework */,
- 78DA2174724B55D863AEB50D /* Pods_SSToastMessage_Tests.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- A05A73D525075B6E00E86576 /* SSToastMessage_Example */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = A05A73F525075B6F00E86576 /* Build configuration list for PBXNativeTarget "SSToastMessage_Example" */;
- buildPhases = (
- F7F9F70D46DEA2CB8585895C /* [CP] Check Pods Manifest.lock */,
- A05A73D225075B6E00E86576 /* Sources */,
- A05A73D325075B6E00E86576 /* Frameworks */,
- A05A73D425075B6E00E86576 /* Resources */,
- 38D5440687998939E8918DCF /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = SSToastMessage_Example;
- productName = SSToastMessage;
- productReference = A05A73D625075B6E00E86576 /* SSToastMessage_Example.app */;
- productType = "com.apple.product-type.application";
- };
- A05A73EB25075B6F00E86576 /* SSToastMessage_Tests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = A05A73F825075B6F00E86576 /* Build configuration list for PBXNativeTarget "SSToastMessage_Tests" */;
- buildPhases = (
- 45C3B47346BCF89152EF5F5C /* [CP] Check Pods Manifest.lock */,
- A05A73E825075B6F00E86576 /* Sources */,
- A05A73E925075B6F00E86576 /* Frameworks */,
- A05A73EA25075B6F00E86576 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- A05A73EE25075B6F00E86576 /* PBXTargetDependency */,
- );
- name = SSToastMessage_Tests;
- productName = SSToastMessageTests;
- productReference = A05A73EC25075B6F00E86576 /* SSToastMessage_Tests.xctest */;
- productType = "com.apple.product-type.bundle.unit-test";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- A05A73CE25075B6E00E86576 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastSwiftUpdateCheck = 1160;
- LastUpgradeCheck = 1160;
- ORGANIZATIONNAME = "Simform Solution Pvt. Ltd.";
- TargetAttributes = {
- A05A73D525075B6E00E86576 = {
- CreatedOnToolsVersion = 11.6;
- };
- A05A73EB25075B6F00E86576 = {
- CreatedOnToolsVersion = 11.6;
- TestTargetID = A05A73D525075B6E00E86576;
- };
- };
- };
- buildConfigurationList = A05A73D125075B6E00E86576 /* Build configuration list for PBXProject "SSToastMessage" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = A05A73CD25075B6E00E86576;
- productRefGroup = A05A73D725075B6E00E86576 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- A05A73D525075B6E00E86576 /* SSToastMessage_Example */,
- A05A73EB25075B6F00E86576 /* SSToastMessage_Tests */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- A05A73D425075B6E00E86576 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- A05A73E625075B6F00E86576 /* LaunchScreen.storyboard in Resources */,
- A05A73E325075B6F00E86576 /* Preview Assets.xcassets in Resources */,
- A05A73E025075B6F00E86576 /* Assets.xcassets in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- A05A73EA25075B6F00E86576 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 38D5440687998939E8918DCF /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-SSToastMessage_Example/Pods-SSToastMessage_Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
- );
- name = "[CP] Embed Pods Frameworks";
- outputFileListPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-SSToastMessage_Example/Pods-SSToastMessage_Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SSToastMessage_Example/Pods-SSToastMessage_Example-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- 45C3B47346BCF89152EF5F5C /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-SSToastMessage_Tests-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
- F7F9F70D46DEA2CB8585895C /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-SSToastMessage_Example-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- A05A73D225075B6E00E86576 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- A05A73DA25075B6E00E86576 /* AppDelegate.swift in Sources */,
- A05A73DC25075B6E00E86576 /* SceneDelegate.swift in Sources */,
- A05A73DE25075B6E00E86576 /* ContentView.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- A05A73E825075B6F00E86576 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- A05A73F125075B6F00E86576 /* SSToastMessageTests.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- A05A73EE25075B6F00E86576 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = A05A73D525075B6E00E86576 /* SSToastMessage_Example */;
- targetProxy = A05A73ED25075B6F00E86576 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- A05A73E425075B6F00E86576 /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- A05A73E525075B6F00E86576 /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- A05A73F325075B6F00E86576 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
- MTL_FAST_MATH = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- };
- name = Debug;
- };
- A05A73F425075B6F00E86576 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- MTL_FAST_MATH = YES;
- SDKROOT = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- A05A73F625075B6F00E86576 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 055FE7D23C0C2ED455D09BD4 /* Pods-SSToastMessage_Example.debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_ASSET_PATHS = "\"SSToastMessage/Preview Content\"";
- DEVELOPMENT_TEAM = Y98X8JAPH6;
- ENABLE_PREVIEWS = YES;
- INFOPLIST_FILE = SSToastMessage/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- A05A73F725075B6F00E86576 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 77D03C12ECF8A03B74B576BA /* Pods-SSToastMessage_Example.release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_ASSET_PATHS = "\"SSToastMessage/Preview Content\"";
- DEVELOPMENT_TEAM = Y98X8JAPH6;
- ENABLE_PREVIEWS = YES;
- INFOPLIST_FILE = SSToastMessage/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Release;
- };
- A05A73F925075B6F00E86576 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = F26FD9698CE3B4240B061EC1 /* Pods-SSToastMessage_Tests.debug.xcconfig */;
- buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = Y98X8JAPH6;
- INFOPLIST_FILE = SSToastMessageTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.simform.SSToastMessageTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSToastMessage_Example.app/SSToastMessage_Example";
- };
- name = Debug;
- };
- A05A73FA25075B6F00E86576 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = E9DFC8524F58C2B42FE99917 /* Pods-SSToastMessage_Tests.release.xcconfig */;
- buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
- BUNDLE_LOADER = "$(TEST_HOST)";
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = Y98X8JAPH6;
- INFOPLIST_FILE = SSToastMessageTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.simform.SSToastMessageTests;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSToastMessage_Example.app/SSToastMessage_Example";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- A05A73D125075B6E00E86576 /* Build configuration list for PBXProject "SSToastMessage" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- A05A73F325075B6F00E86576 /* Debug */,
- A05A73F425075B6F00E86576 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- A05A73F525075B6F00E86576 /* Build configuration list for PBXNativeTarget "SSToastMessage_Example" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- A05A73F625075B6F00E86576 /* Debug */,
- A05A73F725075B6F00E86576 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- A05A73F825075B6F00E86576 /* Build configuration list for PBXNativeTarget "SSToastMessage_Tests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- A05A73F925075B6F00E86576 /* Debug */,
- A05A73FA25075B6F00E86576 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = A05A73CE25075B6E00E86576 /* Project object */;
-}
diff --git a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d9810..0000000
--- a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/SSToastMessage/Example/SSToastMessage.xcworkspace/contents.xcworkspacedata b/SSToastMessage/Example/SSToastMessage.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 59bfcf4..0000000
--- a/SSToastMessage/Example/SSToastMessage.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/SSToastMessage/Example/SSToastMessage/AppDelegate.swift b/SSToastMessage/Example/SSToastMessage/AppDelegate.swift
deleted file mode 100644
index 270de30..0000000
--- a/SSToastMessage/Example/SSToastMessage/AppDelegate.swift
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// AppDelegate.swift
-// SSToastMessage
-//
-// Created by Ankit Panchal on 08/09/20.
-// Copyright © 2020 Simform Solution Pvt. Ltd. All rights reserved.
-//
-
-import UIKit
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate {
-
-
-
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- // Override point for customization after application launch.
- self.configureAppearance()
- return true
- }
-
- // MARK: UISceneSession Lifecycle
-
- func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
- // Called when a new scene session is being created.
- // Use this method to select a configuration to create the new scene with.
- return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
- }
-
- func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
- // Called when the user discards a scene session.
- // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
- // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
- }
-
- /// Setup Controls appearance
- private func configureAppearance() {
- UINavigationBar.appearance().barTintColor = UIColor.init(named: "navigation")
- UINavigationBar.appearance().tintColor = UIColor.init(named: "navigation")
- UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font: UIFont.systemFont(ofSize: 18, weight: .bold)]
- UINavigationBar.appearance().shadowImage = UIImage()
- UINavigationBar.appearance().isTranslucent = true
- }
-
-
-}
-
diff --git a/SSToastMessage/Example/SSToastMessage/Base.lproj/LaunchScreen.storyboard b/SSToastMessage/Example/SSToastMessage/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index 5c22ebc..0000000
--- a/SSToastMessage/Example/SSToastMessage/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SSToastMessage/Example/SSToastMessage/Info.plist b/SSToastMessage/Example/SSToastMessage/Info.plist
deleted file mode 100644
index b32b992..0000000
--- a/SSToastMessage/Example/SSToastMessage/Info.plist
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- $(PRODUCT_BUNDLE_PACKAGE_TYPE)
- CFBundleShortVersionString
- 1.0
- CFBundleVersion
- 1
- LSRequiresIPhoneOS
-
- UIApplicationSceneManifest
-
- UIApplicationSupportsMultipleScenes
-
- UISceneConfigurations
-
- UIWindowSceneSessionRoleApplication
-
-
- UISceneConfigurationName
- Default Configuration
- UISceneDelegateClassName
- $(PRODUCT_MODULE_NAME).SceneDelegate
-
-
-
-
- UILaunchStoryboardName
- LaunchScreen
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIUserInterfaceStyle
- Light
-
-
diff --git a/SSToastMessage/Example/SSToastMessage/SceneDelegate.swift b/SSToastMessage/Example/SSToastMessage/SceneDelegate.swift
deleted file mode 100644
index cf99b4c..0000000
--- a/SSToastMessage/Example/SSToastMessage/SceneDelegate.swift
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// SceneDelegate.swift
-// SSToastMessage
-//
-// Created by Ankit Panchal on 08/09/20.
-// Copyright © 2020 Simform Solution Pvt. Ltd. All rights reserved.
-//
-
-import UIKit
-import SwiftUI
-
-class SceneDelegate: UIResponder, UIWindowSceneDelegate {
-
- var window: UIWindow?
-
-
- func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
- // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
- // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
- // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
-
- // Create the SwiftUI view that provides the window contents.
- let contentView = ContentView()
-
- // Use a UIHostingController as window root view controller.
- if let windowScene = scene as? UIWindowScene {
- let window = UIWindow(windowScene: windowScene)
- window.rootViewController = UIHostingController(rootView: contentView)
- self.window = window
- window.makeKeyAndVisible()
- }
- }
-
- func sceneDidDisconnect(_ scene: UIScene) {
- // Called as the scene is being released by the system.
- // This occurs shortly after the scene enters the background, or when its session is discarded.
- // Release any resources associated with this scene that can be re-created the next time the scene connects.
- // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
- }
-
- func sceneDidBecomeActive(_ scene: UIScene) {
- // Called when the scene has moved from an inactive state to an active state.
- // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
- }
-
- func sceneWillResignActive(_ scene: UIScene) {
- // Called when the scene will move from an active state to an inactive state.
- // This may occur due to temporary interruptions (ex. an incoming phone call).
- }
-
- func sceneWillEnterForeground(_ scene: UIScene) {
- // Called as the scene transitions from the background to the foreground.
- // Use this method to undo the changes made on entering the background.
- }
-
- func sceneDidEnterBackground(_ scene: UIScene) {
- // Called as the scene transitions from the foreground to the background.
- // Use this method to save data, release shared resources, and store enough scene-specific state information
- // to restore the scene back to its current state.
- }
-
-
-}
-
diff --git a/SSToastMessage/Example/SSToastMessageExample/Podfile b/SSToastMessage/Example/SSToastMessageExample/Podfile
new file mode 100644
index 0000000..5c5ae15
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/Podfile
@@ -0,0 +1,24 @@
+# Uncomment the next line to define a global platform for your project
+# platform :ios, '9.0'
+
+target 'SSToastMessageExample' do
+ # Comment the next line if you don't want to use dynamic frameworks
+ use_frameworks!
+ pod 'SSToastMessage'
+
+ # Pods for SSToastMessageExample
+
+ target 'SSToastMessageExampleTests' do
+ inherit! :search_paths
+ # Pods for testing
+ end
+
+ target 'SSToastMessageExampleUITests' do
+ # Pods for testing
+ end
+
+end
+
+target 'SSToastMessageExampleMacOS' do
+ pod 'SSToastMessage'
+end
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.pbxproj b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..8847225
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.pbxproj
@@ -0,0 +1,934 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 56;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 006E5FD2F2FDDA376BBC15F6 /* libPods-SSToastMessageExampleMacOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 30A97E8877E354EE8CFDAA2B /* libPods-SSToastMessageExampleMacOS.a */; };
+ 02DE619212C68BA4AEB03F76 /* Pods_SSToastMessageExampleTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA53279914F194753647E305 /* Pods_SSToastMessageExampleTests.framework */; };
+ 0B6BD07E300E5BE5041EC9C8 /* Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AAC7981ACB51801A2FE5DF8 /* Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework */; };
+ 1267D7902BE38A1E00A7DB50 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B5D2BE24DFC00BFC12B /* ContentView.swift */; };
+ 1267D7912BE38A1E00A7DB50 /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B852BE24ED200BFC12B /* DemoView.swift */; };
+ 1267D7922BE38A1E00A7DB50 /* SSToastMessageExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B5B2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift */; };
+ 1267D7932BE38A1E00A7DB50 /* SplashScreenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B8B2BE26E8B00BFC12B /* SplashScreenView.swift */; };
+ 1267D7972BE38A1E00A7DB50 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 12E59B622BE24DFE00BFC12B /* Preview Assets.xcassets */; };
+ 1267D7982BE38A1E00A7DB50 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 12E59B5F2BE24DFE00BFC12B /* Assets.xcassets */; };
+ 12E59B5C2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B5B2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift */; };
+ 12E59B5E2BE24DFC00BFC12B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B5D2BE24DFC00BFC12B /* ContentView.swift */; };
+ 12E59B602BE24DFE00BFC12B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 12E59B5F2BE24DFE00BFC12B /* Assets.xcassets */; };
+ 12E59B632BE24DFE00BFC12B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 12E59B622BE24DFE00BFC12B /* Preview Assets.xcassets */; };
+ 12E59B6D2BE24DFE00BFC12B /* SSToastMessageExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B6C2BE24DFE00BFC12B /* SSToastMessageExampleTests.swift */; };
+ 12E59B772BE24DFE00BFC12B /* SSToastMessageExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B762BE24DFE00BFC12B /* SSToastMessageExampleUITests.swift */; };
+ 12E59B792BE24DFE00BFC12B /* SSToastMessageExampleUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B782BE24DFE00BFC12B /* SSToastMessageExampleUITestsLaunchTests.swift */; };
+ 12E59B862BE24ED200BFC12B /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B852BE24ED200BFC12B /* DemoView.swift */; };
+ 12E59B882BE257FF00BFC12B /* (null) in Frameworks */ = {isa = PBXBuildFile; };
+ 12E59B8C2BE26E8B00BFC12B /* SplashScreenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12E59B8B2BE26E8B00BFC12B /* SplashScreenView.swift */; };
+ C4AA75940C2F4FFDC8FD4AA4 /* Pods_SSToastMessageExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E930824E13A17FF5B2B6EB0F /* Pods_SSToastMessageExample.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 12E59B692BE24DFE00BFC12B /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 12E59B502BE24DFC00BFC12B /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 12E59B572BE24DFC00BFC12B;
+ remoteInfo = SSToastMessageExample;
+ };
+ 12E59B732BE24DFE00BFC12B /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 12E59B502BE24DFC00BFC12B /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 12E59B572BE24DFC00BFC12B;
+ remoteInfo = SSToastMessageExample;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ 0AAC7981ACB51801A2FE5DF8 /* Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1267D79D2BE38A1E00A7DB50 /* SSToastMessageExampleMacOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSToastMessageExampleMacOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 12E59B582BE24DFC00BFC12B /* SSToastMessageExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSToastMessageExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 12E59B5B2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSToastMessageExampleApp.swift; sourceTree = ""; };
+ 12E59B5D2BE24DFC00BFC12B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
+ 12E59B5F2BE24DFE00BFC12B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 12E59B622BE24DFE00BFC12B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
+ 12E59B682BE24DFE00BFC12B /* SSToastMessageExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SSToastMessageExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 12E59B6C2BE24DFE00BFC12B /* SSToastMessageExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSToastMessageExampleTests.swift; sourceTree = ""; };
+ 12E59B722BE24DFE00BFC12B /* SSToastMessageExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SSToastMessageExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 12E59B762BE24DFE00BFC12B /* SSToastMessageExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSToastMessageExampleUITests.swift; sourceTree = ""; };
+ 12E59B782BE24DFE00BFC12B /* SSToastMessageExampleUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSToastMessageExampleUITestsLaunchTests.swift; sourceTree = ""; };
+ 12E59B852BE24ED200BFC12B /* DemoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoView.swift; sourceTree = ""; };
+ 12E59B872BE24FB000BFC12B /* SSToastMessageExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SSToastMessageExample.entitlements; sourceTree = ""; };
+ 12E59B8B2BE26E8B00BFC12B /* SplashScreenView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SplashScreenView.swift; sourceTree = ""; };
+ 249C4E9265DEBFDE2BC66291 /* Pods-SSToastMessageExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExampleTests.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExampleTests/Pods-SSToastMessageExampleTests.release.xcconfig"; sourceTree = ""; };
+ 30A97E8877E354EE8CFDAA2B /* libPods-SSToastMessageExampleMacOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SSToastMessageExampleMacOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 5672B353129E690E575AF0F3 /* Pods-SSToastMessageExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExample.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExample/Pods-SSToastMessageExample.debug.xcconfig"; sourceTree = ""; };
+ 8A65D8C2A288EAF52D933917 /* Pods-SSToastMessageExampleMacOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExampleMacOS.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExampleMacOS/Pods-SSToastMessageExampleMacOS.release.xcconfig"; sourceTree = ""; };
+ 8DB1E15BF0FC9E05E5946419 /* Pods-SSToastMessageExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExampleTests/Pods-SSToastMessageExampleTests.debug.xcconfig"; sourceTree = ""; };
+ 9441F75358A29BCB4DA102F6 /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExample-SSToastMessageExampleUITests.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExample-SSToastMessageExampleUITests/Pods-SSToastMessageExample-SSToastMessageExampleUITests.debug.xcconfig"; sourceTree = ""; };
+ AE8303007D0BBD81BE3F9172 /* Pods-SSToastMessageExampleMacOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExampleMacOS.debug.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExampleMacOS/Pods-SSToastMessageExampleMacOS.debug.xcconfig"; sourceTree = ""; };
+ CA53279914F194753647E305 /* Pods_SSToastMessageExampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSToastMessageExampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ E0DC43514D390C3D2B353A91 /* Pods-SSToastMessageExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExample.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExample/Pods-SSToastMessageExample.release.xcconfig"; sourceTree = ""; };
+ E2DCA6DE2B17718B45CC82CA /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SSToastMessageExample-SSToastMessageExampleUITests.release.xcconfig"; path = "Target Support Files/Pods-SSToastMessageExample-SSToastMessageExampleUITests/Pods-SSToastMessageExample-SSToastMessageExampleUITests.release.xcconfig"; sourceTree = ""; };
+ E930824E13A17FF5B2B6EB0F /* Pods_SSToastMessageExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SSToastMessageExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 1267D7942BE38A1E00A7DB50 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 006E5FD2F2FDDA376BBC15F6 /* libPods-SSToastMessageExampleMacOS.a in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B552BE24DFC00BFC12B /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 12E59B882BE257FF00BFC12B /* (null) in Frameworks */,
+ C4AA75940C2F4FFDC8FD4AA4 /* Pods_SSToastMessageExample.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B652BE24DFE00BFC12B /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 02DE619212C68BA4AEB03F76 /* Pods_SSToastMessageExampleTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B6F2BE24DFE00BFC12B /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 0B6BD07E300E5BE5041EC9C8 /* Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 12E59B4F2BE24DFC00BFC12B = {
+ isa = PBXGroup;
+ children = (
+ 12E59B5A2BE24DFC00BFC12B /* SSToastMessageExample */,
+ 12E59B6B2BE24DFE00BFC12B /* SSToastMessageExampleTests */,
+ 12E59B752BE24DFE00BFC12B /* SSToastMessageExampleUITests */,
+ 12E59B592BE24DFC00BFC12B /* Products */,
+ 222F31A07D54419DB0368A34 /* Pods */,
+ 58713A3E3D3F21F9A610A1AF /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 12E59B592BE24DFC00BFC12B /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 12E59B582BE24DFC00BFC12B /* SSToastMessageExample.app */,
+ 12E59B682BE24DFE00BFC12B /* SSToastMessageExampleTests.xctest */,
+ 12E59B722BE24DFE00BFC12B /* SSToastMessageExampleUITests.xctest */,
+ 1267D79D2BE38A1E00A7DB50 /* SSToastMessageExampleMacOS.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 12E59B5A2BE24DFC00BFC12B /* SSToastMessageExample */ = {
+ isa = PBXGroup;
+ children = (
+ 12E59B872BE24FB000BFC12B /* SSToastMessageExample.entitlements */,
+ 12E59B5B2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift */,
+ 12E59B5D2BE24DFC00BFC12B /* ContentView.swift */,
+ 12E59B852BE24ED200BFC12B /* DemoView.swift */,
+ 12E59B8B2BE26E8B00BFC12B /* SplashScreenView.swift */,
+ 12E59B5F2BE24DFE00BFC12B /* Assets.xcassets */,
+ 12E59B612BE24DFE00BFC12B /* Preview Content */,
+ );
+ path = SSToastMessageExample;
+ sourceTree = "";
+ };
+ 12E59B612BE24DFE00BFC12B /* Preview Content */ = {
+ isa = PBXGroup;
+ children = (
+ 12E59B622BE24DFE00BFC12B /* Preview Assets.xcassets */,
+ );
+ path = "Preview Content";
+ sourceTree = "";
+ };
+ 12E59B6B2BE24DFE00BFC12B /* SSToastMessageExampleTests */ = {
+ isa = PBXGroup;
+ children = (
+ 12E59B6C2BE24DFE00BFC12B /* SSToastMessageExampleTests.swift */,
+ );
+ path = SSToastMessageExampleTests;
+ sourceTree = "";
+ };
+ 12E59B752BE24DFE00BFC12B /* SSToastMessageExampleUITests */ = {
+ isa = PBXGroup;
+ children = (
+ 12E59B762BE24DFE00BFC12B /* SSToastMessageExampleUITests.swift */,
+ 12E59B782BE24DFE00BFC12B /* SSToastMessageExampleUITestsLaunchTests.swift */,
+ );
+ path = SSToastMessageExampleUITests;
+ sourceTree = "";
+ };
+ 222F31A07D54419DB0368A34 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 5672B353129E690E575AF0F3 /* Pods-SSToastMessageExample.debug.xcconfig */,
+ E0DC43514D390C3D2B353A91 /* Pods-SSToastMessageExample.release.xcconfig */,
+ 9441F75358A29BCB4DA102F6 /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.debug.xcconfig */,
+ E2DCA6DE2B17718B45CC82CA /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.release.xcconfig */,
+ 8DB1E15BF0FC9E05E5946419 /* Pods-SSToastMessageExampleTests.debug.xcconfig */,
+ 249C4E9265DEBFDE2BC66291 /* Pods-SSToastMessageExampleTests.release.xcconfig */,
+ AE8303007D0BBD81BE3F9172 /* Pods-SSToastMessageExampleMacOS.debug.xcconfig */,
+ 8A65D8C2A288EAF52D933917 /* Pods-SSToastMessageExampleMacOS.release.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+ 58713A3E3D3F21F9A610A1AF /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 0AAC7981ACB51801A2FE5DF8 /* Pods_SSToastMessageExample_SSToastMessageExampleUITests.framework */,
+ CA53279914F194753647E305 /* Pods_SSToastMessageExampleTests.framework */,
+ 30A97E8877E354EE8CFDAA2B /* libPods-SSToastMessageExampleMacOS.a */,
+ E930824E13A17FF5B2B6EB0F /* Pods_SSToastMessageExample.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 1267D78D2BE38A1E00A7DB50 /* SSToastMessageExampleMacOS */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1267D79A2BE38A1E00A7DB50 /* Build configuration list for PBXNativeTarget "SSToastMessageExampleMacOS" */;
+ buildPhases = (
+ 1267D78E2BE38A1E00A7DB50 /* [CP] Check Pods Manifest.lock */,
+ 1267D78F2BE38A1E00A7DB50 /* Sources */,
+ 1267D7942BE38A1E00A7DB50 /* Frameworks */,
+ 1267D7962BE38A1E00A7DB50 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = SSToastMessageExampleMacOS;
+ productName = SSToastMessageExample;
+ productReference = 1267D79D2BE38A1E00A7DB50 /* SSToastMessageExampleMacOS.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 12E59B572BE24DFC00BFC12B /* SSToastMessageExample */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 12E59B7C2BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExample" */;
+ buildPhases = (
+ 54F5A47AF9881A566229FC1E /* [CP] Check Pods Manifest.lock */,
+ 12E59B542BE24DFC00BFC12B /* Sources */,
+ 12E59B552BE24DFC00BFC12B /* Frameworks */,
+ 12E59B562BE24DFC00BFC12B /* Resources */,
+ D60349A67463D70EBD0129DB /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = SSToastMessageExample;
+ productName = SSToastMessageExample;
+ productReference = 12E59B582BE24DFC00BFC12B /* SSToastMessageExample.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 12E59B672BE24DFE00BFC12B /* SSToastMessageExampleTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 12E59B7F2BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExampleTests" */;
+ buildPhases = (
+ 1B2DDF85DAD4907DD41F123D /* [CP] Check Pods Manifest.lock */,
+ 12E59B642BE24DFE00BFC12B /* Sources */,
+ 12E59B652BE24DFE00BFC12B /* Frameworks */,
+ 12E59B662BE24DFE00BFC12B /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 12E59B6A2BE24DFE00BFC12B /* PBXTargetDependency */,
+ );
+ name = SSToastMessageExampleTests;
+ productName = SSToastMessageExampleTests;
+ productReference = 12E59B682BE24DFE00BFC12B /* SSToastMessageExampleTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 12E59B712BE24DFE00BFC12B /* SSToastMessageExampleUITests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 12E59B822BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExampleUITests" */;
+ buildPhases = (
+ 2C3681246E8DEFBBF740D2B1 /* [CP] Check Pods Manifest.lock */,
+ 12E59B6E2BE24DFE00BFC12B /* Sources */,
+ 12E59B6F2BE24DFE00BFC12B /* Frameworks */,
+ 12E59B702BE24DFE00BFC12B /* Resources */,
+ D559E6706E60C4693987DE37 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 12E59B742BE24DFE00BFC12B /* PBXTargetDependency */,
+ );
+ name = SSToastMessageExampleUITests;
+ productName = SSToastMessageExampleUITests;
+ productReference = 12E59B722BE24DFE00BFC12B /* SSToastMessageExampleUITests.xctest */;
+ productType = "com.apple.product-type.bundle.ui-testing";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 12E59B502BE24DFC00BFC12B /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = 1;
+ LastSwiftUpdateCheck = 1520;
+ LastUpgradeCheck = 1520;
+ TargetAttributes = {
+ 12E59B572BE24DFC00BFC12B = {
+ CreatedOnToolsVersion = 15.2;
+ };
+ 12E59B672BE24DFE00BFC12B = {
+ CreatedOnToolsVersion = 15.2;
+ TestTargetID = 12E59B572BE24DFC00BFC12B;
+ };
+ 12E59B712BE24DFE00BFC12B = {
+ CreatedOnToolsVersion = 15.2;
+ TestTargetID = 12E59B572BE24DFC00BFC12B;
+ };
+ };
+ };
+ buildConfigurationList = 12E59B532BE24DFC00BFC12B /* Build configuration list for PBXProject "SSToastMessageExample" */;
+ compatibilityVersion = "Xcode 14.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 12E59B4F2BE24DFC00BFC12B;
+ productRefGroup = 12E59B592BE24DFC00BFC12B /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 12E59B572BE24DFC00BFC12B /* SSToastMessageExample */,
+ 12E59B672BE24DFE00BFC12B /* SSToastMessageExampleTests */,
+ 12E59B712BE24DFE00BFC12B /* SSToastMessageExampleUITests */,
+ 1267D78D2BE38A1E00A7DB50 /* SSToastMessageExampleMacOS */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 1267D7962BE38A1E00A7DB50 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1267D7972BE38A1E00A7DB50 /* Preview Assets.xcassets in Resources */,
+ 1267D7982BE38A1E00A7DB50 /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B562BE24DFC00BFC12B /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 12E59B632BE24DFE00BFC12B /* Preview Assets.xcassets in Resources */,
+ 12E59B602BE24DFE00BFC12B /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B662BE24DFE00BFC12B /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B702BE24DFE00BFC12B /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 1267D78E2BE38A1E00A7DB50 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-SSToastMessageExampleMacOS-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 1B2DDF85DAD4907DD41F123D /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-SSToastMessageExampleTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 2C3681246E8DEFBBF740D2B1 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-SSToastMessageExample-SSToastMessageExampleUITests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 54F5A47AF9881A566229FC1E /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-SSToastMessageExample-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ D559E6706E60C4693987DE37 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample-SSToastMessageExampleUITests/Pods-SSToastMessageExample-SSToastMessageExampleUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample-SSToastMessageExampleUITests/Pods-SSToastMessageExample-SSToastMessageExampleUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample-SSToastMessageExampleUITests/Pods-SSToastMessageExample-SSToastMessageExampleUITests-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ D60349A67463D70EBD0129DB /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample/Pods-SSToastMessageExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample/Pods-SSToastMessageExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SSToastMessageExample/Pods-SSToastMessageExample-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 1267D78F2BE38A1E00A7DB50 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1267D7902BE38A1E00A7DB50 /* ContentView.swift in Sources */,
+ 1267D7912BE38A1E00A7DB50 /* DemoView.swift in Sources */,
+ 1267D7922BE38A1E00A7DB50 /* SSToastMessageExampleApp.swift in Sources */,
+ 1267D7932BE38A1E00A7DB50 /* SplashScreenView.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B542BE24DFC00BFC12B /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 12E59B5E2BE24DFC00BFC12B /* ContentView.swift in Sources */,
+ 12E59B862BE24ED200BFC12B /* DemoView.swift in Sources */,
+ 12E59B5C2BE24DFC00BFC12B /* SSToastMessageExampleApp.swift in Sources */,
+ 12E59B8C2BE26E8B00BFC12B /* SplashScreenView.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B642BE24DFE00BFC12B /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 12E59B6D2BE24DFE00BFC12B /* SSToastMessageExampleTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 12E59B6E2BE24DFE00BFC12B /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 12E59B772BE24DFE00BFC12B /* SSToastMessageExampleUITests.swift in Sources */,
+ 12E59B792BE24DFE00BFC12B /* SSToastMessageExampleUITestsLaunchTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 12E59B6A2BE24DFE00BFC12B /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 12E59B572BE24DFC00BFC12B /* SSToastMessageExample */;
+ targetProxy = 12E59B692BE24DFE00BFC12B /* PBXContainerItemProxy */;
+ };
+ 12E59B742BE24DFE00BFC12B /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 12E59B572BE24DFC00BFC12B /* SSToastMessageExample */;
+ targetProxy = 12E59B732BE24DFE00BFC12B /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+ 1267D79B2BE38A1E00A7DB50 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = AE8303007D0BBD81BE3F9172 /* Pods-SSToastMessageExampleMacOS.debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = SSToastMessageExample/SSToastMessageExample.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"SSToastMessageExample/Preview Content\"";
+ DEVELOPMENT_TEAM = K7XJG666ZW;
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = macosx;
+ SUPPORTED_PLATFORMS = macosx;
+ SUPPORTS_MACCATALYST = NO;
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 1267D79C2BE38A1E00A7DB50 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 8A65D8C2A288EAF52D933917 /* Pods-SSToastMessageExampleMacOS.release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = SSToastMessageExample/SSToastMessageExample.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"SSToastMessageExample/Preview Content\"";
+ DEVELOPMENT_TEAM = C367XQY55B;
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = macosx;
+ SUPPORTED_PLATFORMS = macosx;
+ SUPPORTS_MACCATALYST = NO;
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 12E59B7A2BE24DFE00BFC12B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.2;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 12E59B7B2BE24DFE00BFC12B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.2;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 12E59B7D2BE24DFE00BFC12B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 5672B353129E690E575AF0F3 /* Pods-SSToastMessageExample.debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = SSToastMessageExample/SSToastMessageExample.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"SSToastMessageExample/Preview Content\"";
+ DEVELOPMENT_TEAM = K7XJG666ZW;
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
+ SUPPORTS_MACCATALYST = NO;
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 12E59B7E2BE24DFE00BFC12B /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = E0DC43514D390C3D2B353A91 /* Pods-SSToastMessageExample.release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = SSToastMessageExample/SSToastMessageExample.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"SSToastMessageExample/Preview Content\"";
+ DEVELOPMENT_TEAM = C367XQY55B;
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
+ SUPPORTS_MACCATALYST = NO;
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+ 12E59B802BE24DFE00BFC12B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 8DB1E15BF0FC9E05E5946419 /* Pods-SSToastMessageExampleTests.debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = C367XQY55B;
+ GENERATE_INFOPLIST_FILE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.2;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSToastMessageExample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SSToastMessageExample";
+ };
+ name = Debug;
+ };
+ 12E59B812BE24DFE00BFC12B /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 249C4E9265DEBFDE2BC66291 /* Pods-SSToastMessageExampleTests.release.xcconfig */;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = C367XQY55B;
+ GENERATE_INFOPLIST_FILE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 17.2;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SSToastMessageExample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SSToastMessageExample";
+ };
+ name = Release;
+ };
+ 12E59B832BE24DFE00BFC12B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9441F75358A29BCB4DA102F6 /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = C367XQY55B;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = SSToastMessageExample;
+ };
+ name = Debug;
+ };
+ 12E59B842BE24DFE00BFC12B /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = E2DCA6DE2B17718B45CC82CA /* Pods-SSToastMessageExample-SSToastMessageExampleUITests.release.xcconfig */;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = C367XQY55B;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.simform.SSToastMessage-Example";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = SSToastMessageExample;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 1267D79A2BE38A1E00A7DB50 /* Build configuration list for PBXNativeTarget "SSToastMessageExampleMacOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1267D79B2BE38A1E00A7DB50 /* Debug */,
+ 1267D79C2BE38A1E00A7DB50 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 12E59B532BE24DFC00BFC12B /* Build configuration list for PBXProject "SSToastMessageExample" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 12E59B7A2BE24DFE00BFC12B /* Debug */,
+ 12E59B7B2BE24DFE00BFC12B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 12E59B7C2BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExample" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 12E59B7D2BE24DFE00BFC12B /* Debug */,
+ 12E59B7E2BE24DFE00BFC12B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 12E59B7F2BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExampleTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 12E59B802BE24DFE00BFC12B /* Debug */,
+ 12E59B812BE24DFE00BFC12B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 12E59B822BE24DFE00BFC12B /* Build configuration list for PBXNativeTarget "SSToastMessageExampleUITests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 12E59B832BE24DFE00BFC12B /* Debug */,
+ 12E59B842BE24DFE00BFC12B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 12E59B502BE24DFC00BFC12B /* Project object */;
+}
diff --git a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
similarity index 68%
rename from SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/contents.xcworkspacedata
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index eb7a2d8..919434a 100644
--- a/SSToastMessage/Example/SSToastMessage.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:">
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/AccentColor.colorset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 0000000..eb87897
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,11 @@
+{
+ "colors" : [
+ {
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/AppIcon.appiconset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/AppIcon.appiconset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/AppIcon.appiconset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/corona.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/corona.imageset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/corona.imageset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/corona.imageset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/corona.imageset/icons8-protection-mask-100.png b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/corona.imageset/icons8-protection-mask-100.png
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/corona.imageset/icons8-protection-mask-100.png
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/corona.imageset/icons8-protection-mask-100.png
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/Contents.json
new file mode 100644
index 0000000..e0e0852
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "leftToastViewImage.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/leftToastViewImage.png b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/leftToastViewImage.png
new file mode 100644
index 0000000..7a703be
Binary files /dev/null and b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/leftToastImage.imageset/leftToastViewImage.png differ
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/mike.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/mike.imageset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/mike.imageset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/mike.imageset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/mike.imageset/p-monsters-inc-mike-wazowsk.jpg b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/mike.imageset/p-monsters-inc-mike-wazowsk.jpg
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/mike.imageset/p-monsters-inc-mike-wazowsk.jpg
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/mike.imageset/p-monsters-inc-mike-wazowsk.jpg
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/navigation.colorset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/navigation.colorset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/navigation.colorset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/navigation.colorset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/pizza.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/pizza.imageset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/pizza.imageset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/pizza.imageset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/pizza.imageset/icons8-kawaii-pizza-80.png b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/pizza.imageset/icons8-kawaii-pizza-80.png
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/pizza.imageset/icons8-kawaii-pizza-80.png
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/pizza.imageset/icons8-kawaii-pizza-80.png
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/Contents.json
new file mode 100644
index 0000000..245d507
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "rightToastViewImage.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/rightToastViewImage.png b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/rightToastViewImage.png
new file mode 100644
index 0000000..efc64a1
Binary files /dev/null and b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/rightToastImage.imageset/rightToastViewImage.png differ
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/travel.imageset/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/travel.imageset/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/travel.imageset/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/travel.imageset/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage/Assets.xcassets/travel.imageset/bean-point-bike-ride.jpg b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/travel.imageset/bean-point-bike-ride.jpg
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Assets.xcassets/travel.imageset/bean-point-bike-ride.jpg
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Assets.xcassets/travel.imageset/bean-point-bike-ride.jpg
diff --git a/SSToastMessage/Example/SSToastMessage/ContentView.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/ContentView.swift
similarity index 69%
rename from SSToastMessage/Example/SSToastMessage/ContentView.swift
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/ContentView.swift
index dcf6888..4659c61 100644
--- a/SSToastMessage/Example/SSToastMessage/ContentView.swift
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/ContentView.swift
@@ -1,9 +1,8 @@
//
// ContentView.swift
-// SSToastMessage
+// SSToastMessageExample
//
-// Created by Ankit Panchal on 08/09/20.
-// Copyright © 2020 Simform Solution Pvt. Ltd. All rights reserved.
+// Created by Yagnik Bavishi on 01/05/24.
//
import SwiftUI
@@ -35,12 +34,16 @@ struct ContentView: View {
let bottomToastColor = Color(hex: "bfdcae")
let topFloatColor = Color(hex: "61A117")
let bottomFloatColor = Color(hex: "3d5a80")
+ let leftRightToastColor = Color(hex: "85adad")
@State var showAlert = false
@State var showTopToast = false
@State var showBottomToast = false
@State var showTopFloater = false
@State var showBottomFloater = false
+ @State var showDemoView = false
+ @State var showLeftToastView = false
+ @State var showRightToastView = false
func dismissAll() {
self.showAlert = false
@@ -48,9 +51,27 @@ struct ContentView: View {
self.showBottomToast = false
self.showTopFloater = false
self.showBottomFloater = false
+ self.showLeftToastView = false
+ self.showRightToastView = false
}
var body: some View {
+
+ if #available(iOS 16.0, *, macOS 13.0) {
+ NavigationStack {
+ content
+ .navigationDestination(isPresented: $showDemoView, destination: {
+ DemoView()
+ })
+ }
+ } else {
+ NavigationView {
+ content
+ }
+ }
+ }
+
+ private var content: some View {
GeometryReader { geometryProxy in
VStack {
VStack(spacing: 30) {
@@ -59,35 +80,60 @@ struct ContentView: View {
MyButtonView(showing: self.$showBottomToast, title: "Bottom Toast", hideAll: self.dismissAll)
MyButtonView(showing: self.$showTopFloater, title: "Top Floater", hideAll: self.dismissAll)
MyButtonView(showing: self.$showBottomFloater, title: "Bottom Floater", hideAll: self.dismissAll)
+ MyButtonView(showing: self.$showLeftToastView, title: "Left Toast", hideAll: self.dismissAll)
+ MyButtonView(showing: self.$showRightToastView, title: "Right Toast", hideAll: self.dismissAll)
}
- .present(isPresented: self.$showAlert, type: .alert, animation: Animation.interactiveSpring(), autohideDuration: nil, closeOnTap: false) {
+ .present(isPresented: self.$showAlert, type: .alert, animation: Animation.interactiveSpring(), duration: nil, closeOnTap: false) {
self.createAlertView()
}
- .present(isPresented: self.$showTopToast, type: .toast, position: .top, onTap: {print("on toast tap")}) {
+ .present(isPresented: self.$showTopToast, type: .toast, position: .top, duration: 6.0, onTap: {
+ showDemoView = true
+ }, onToastDismiss: {
+ print("on toast hide")
+ }) {
self.createTopToastView()
}
- .present(isPresented: self.$showBottomToast, type: .toast, position: .bottom, onTap: {print("on toast tap")}) {
+ .present(isPresented: self.$showBottomToast, type: .toast, position: .bottom, onTap: {
+ showDemoView = true
+ }) {
self.createBottomToastView()
}
- .present(isPresented: self.$showTopFloater, type: .floater(), position: .top, animation: Animation.spring(), onTap: {print("on toast tap")}) {
+ .present(isPresented: self.$showTopFloater, type: .floater(), position: .top, animation: Animation.spring(), horizontalPadding: 60, onTap: {
+ showDemoView = true
+ }) {
self.createTopFloaterView()
}
- .present(isPresented: self.$showBottomFloater, type: .floater(), position: .bottom,animation: Animation.spring(), autohideDuration: nil, onTap: {print("on toast tap")}) {
+ .present(isPresented: self.$showBottomFloater, type: .floater(), position: .bottom,animation: Animation.spring(), duration: 3, onTap: {
+ showDemoView = true
+ }) {
self.createBottomFloaterView()
}
-
+ .present(isPresented: $showLeftToastView, type: .leftToastView, position: .bottom, duration: 3, onTap: {
+ showDemoView = true
+ }) {
+ self.createLeftToastView()
}
+
+ .present(isPresented: $showRightToastView, type: .rightToastView, position: .top, duration: 3, onTap: {
+ showDemoView = true
+ }) {
+ self.createRightToastView()
+ }
+
+ }
+ NavigationLink(destination: DemoView(), isActive: $showDemoView) {
+ EmptyView()
+ }
.frame(width: geometryProxy.size.width, height: geometryProxy.size.height)
-
}
+ .ignoresSafeArea()
+ .navigationViewStyle(.automatic)
.background(self.bgColor)
- .edgesIgnoringSafeArea(.all)
-
-
-
+ .buttonStyle(.plain)
+ .ignoresSafeArea()
}
func createAlertView() -> some View {
@@ -157,13 +203,13 @@ struct ContentView: View {
}
}.padding(15)
}
- .frame(width: UIScreen.main.bounds.width, height: 130)
+ .frame(height: 130)
.background(self.topToastColor)
}
func createBottomToastView() -> some View {
VStack {
- HStack() {
+ HStack(alignment: .center) {
Image("pizza")
.resizable()
.aspectRatio(contentMode: ContentMode.fill)
@@ -181,10 +227,9 @@ struct ContentView: View {
.foregroundColor(Color(hex: "206a5d"))
}
}
- Spacer(minLength: 10)
}
.padding(15)
- .frame(width: UIScreen.main.bounds.width, height: 100)
+ .frame(maxWidth: .infinity, maxHeight: 100)
.background(self.bottomToastColor)
}
@@ -217,7 +262,7 @@ struct ContentView: View {
}
}.padding(15)
}
- .frame(width: UIScreen.main.bounds.width - 60, height: 110)
+ .frame(height: 110)
.background(self.topFloatColor)
.cornerRadius(15)
}
@@ -246,13 +291,47 @@ struct ContentView: View {
.background(self.bottomFloatColor)
.cornerRadius(20.0)
}
+
+ func createLeftToastView() -> some View {
+ HStack {
+ Text("Left Toast View!!")
+ .lineLimit(2)
+ .font(.system(size: 18))
+ .foregroundColor(.white)
+ .font(.title)
+ Image("leftToastImage")
+ .resizable()
+ .aspectRatio(contentMode: ContentMode.fill)
+ .frame(width: 60, height: 60)
+ .cornerRadius(10.0)
+ }
+ .frame(width: 200, height: 90)
+ .background(self.leftRightToastColor)
+ .cornerRadius(15)
+ }
+
+ func createRightToastView() -> some View {
+ HStack {
+ Image("rightToastImage")
+ .resizable()
+ .aspectRatio(contentMode: ContentMode.fill)
+ .frame(width: 60, height: 60)
+ .cornerRadius(10.0)
+ Text("Right Toast View!!")
+ .lineLimit(2)
+ .font(.system(size: 18))
+ .foregroundColor(.white)
+ .font(.title)
+ }
+ .frame(width: 200, height: 90)
+ .background(self.leftRightToastColor)
+ .cornerRadius(15)
+ }
}
-struct ContentView_Previews: PreviewProvider {
- static var previews: some View {
- ContentView()
- }
+#Preview {
+ ContentView()
}
extension Color {
@@ -268,5 +347,3 @@ extension Color {
self.init(red: Double(r) / 0xff, green: Double(g) / 0xff, blue: Double(b) / 0xff)
}
}
-
-
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/DemoView.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/DemoView.swift
new file mode 100644
index 0000000..aa4110c
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/DemoView.swift
@@ -0,0 +1,18 @@
+//
+// DemoView.swift
+// SSToastMessageExample
+//
+// Created by Yagnik Bavishi on 01/05/24.
+//
+
+import SwiftUI
+
+struct DemoView: View {
+ var body: some View {
+ Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
+ }
+}
+
+#Preview {
+ DemoView()
+}
diff --git a/SSToastMessage/Example/SSToastMessage/Preview Content/Preview Assets.xcassets/Contents.json b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Preview Content/Preview Assets.xcassets/Contents.json
similarity index 100%
rename from SSToastMessage/Example/SSToastMessage/Preview Content/Preview Assets.xcassets/Contents.json
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/Preview Content/Preview Assets.xcassets/Contents.json
diff --git a/SSToastMessage/Example/SSToastMessage.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExample.entitlements
similarity index 66%
rename from SSToastMessage/Example/SSToastMessage.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExample.entitlements
index 18d9810..ee95ab7 100644
--- a/SSToastMessage/Example/SSToastMessage.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExample.entitlements
@@ -2,7 +2,9 @@
- IDEDidComputeMac32BitWarning
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExampleApp.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExampleApp.swift
new file mode 100644
index 0000000..fd4c8c7
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SSToastMessageExampleApp.swift
@@ -0,0 +1,17 @@
+//
+// SSToastMessageExampleApp.swift
+// SSToastMessageExample
+//
+// Created by Yagnik Bavishi on 01/05/24.
+//
+
+import SwiftUI
+
+@main
+struct SSToastMessageExampleApp: App {
+ var body: some Scene {
+ WindowGroup {
+ SplashScreenView()
+ }
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SplashScreenView.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SplashScreenView.swift
new file mode 100644
index 0000000..dae14e9
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExample/SplashScreenView.swift
@@ -0,0 +1,35 @@
+//
+// SplashScreenView.swift
+// SSToastMessageExample
+//
+// Created by Yagnik Bavishi on 01/05/24.
+//
+
+import SwiftUI
+
+struct SplashScreenView: View {
+
+ @State var lunchHomeView: Bool = false
+
+ var body: some View {
+ if self.lunchHomeView {
+ ContentView()
+ } else {
+ VStack {
+ Text("SSToastMessage")
+ .font(.largeTitle)
+ .bold()
+ }.onAppear {
+ DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
+ withAnimation {
+ self.lunchHomeView = true
+ }
+ }
+ }
+ }
+ }
+}
+
+#Preview {
+ SplashScreenView()
+}
diff --git a/SSToastMessage/Example/SSToastMessageTests/SSToastMessageTests.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleTests/SSToastMessageExampleTests.swift
similarity index 59%
rename from SSToastMessage/Example/SSToastMessageTests/SSToastMessageTests.swift
rename to SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleTests/SSToastMessageExampleTests.swift
index 5305120..f99ea85 100644
--- a/SSToastMessage/Example/SSToastMessageTests/SSToastMessageTests.swift
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleTests/SSToastMessageExampleTests.swift
@@ -1,15 +1,14 @@
//
-// SSToastMessageTests.swift
-// SSToastMessageTests
+// SSToastMessageExampleTests.swift
+// SSToastMessageExampleTests
//
-// Created by Ankit Panchal on 08/09/20.
-// Copyright © 2020 Simform Solution Pvt. Ltd. All rights reserved.
+// Created by Yagnik Bavishi on 01/05/24.
//
import XCTest
-@testable import SSToastMessage
+@testable import SSToastMessageExample
-class SSToastMessageTests: XCTestCase {
+final class SSToastMessageExampleTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
@@ -22,6 +21,9 @@ class SSToastMessageTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
+ // Any test you write for XCTest can be annotated as throws and async.
+ // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
+ // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}
func testPerformanceExample() throws {
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITests.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITests.swift
new file mode 100644
index 0000000..0ca11ab
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITests.swift
@@ -0,0 +1,41 @@
+//
+// SSToastMessageExampleUITests.swift
+// SSToastMessageExampleUITests
+//
+// Created by Yagnik Bavishi on 01/05/24.
+//
+
+import XCTest
+
+final class SSToastMessageExampleUITests: XCTestCase {
+
+ override func setUpWithError() throws {
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+
+ // In UI tests it is usually best to stop immediately when a failure occurs.
+ continueAfterFailure = false
+
+ // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
+ }
+
+ override func tearDownWithError() throws {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+ }
+
+ func testExample() throws {
+ // UI tests must launch the application that they test.
+ let app = XCUIApplication()
+ app.launch()
+
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+ }
+
+ func testLaunchPerformance() throws {
+ if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
+ // This measures how long it takes to launch your application.
+ measure(metrics: [XCTApplicationLaunchMetric()]) {
+ XCUIApplication().launch()
+ }
+ }
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITestsLaunchTests.swift b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITestsLaunchTests.swift
new file mode 100644
index 0000000..1e0657e
--- /dev/null
+++ b/SSToastMessage/Example/SSToastMessageExample/SSToastMessageExampleUITests/SSToastMessageExampleUITestsLaunchTests.swift
@@ -0,0 +1,32 @@
+//
+// SSToastMessageExampleUITestsLaunchTests.swift
+// SSToastMessageExampleUITests
+//
+// Created by Yagnik Bavishi on 01/05/24.
+//
+
+import XCTest
+
+final class SSToastMessageExampleUITestsLaunchTests: XCTestCase {
+
+ override class var runsForEachTargetApplicationUIConfiguration: Bool {
+ true
+ }
+
+ override func setUpWithError() throws {
+ continueAfterFailure = false
+ }
+
+ func testLaunch() throws {
+ let app = XCUIApplication()
+ app.launch()
+
+ // Insert steps here to perform after app launch but before taking a screenshot,
+ // such as logging into a test account or navigating somewhere in the app
+
+ let attachment = XCTAttachment(screenshot: app.screenshot())
+ attachment.name = "Launch Screen"
+ attachment.lifetime = .keepAlways
+ add(attachment)
+ }
+}
diff --git a/SSToastMessage/Example/SSToastMessageTests/Info.plist b/SSToastMessage/Example/SSToastMessageTests/Info.plist
deleted file mode 100644
index 64d65ca..0000000
--- a/SSToastMessage/Example/SSToastMessageTests/Info.plist
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- $(PRODUCT_BUNDLE_PACKAGE_TYPE)
- CFBundleShortVersionString
- 1.0
- CFBundleVersion
- 1
-
-
diff --git a/SSToastMessage/SSToastMessage.podspec b/SSToastMessage/SSToastMessage.podspec
deleted file mode 100644
index f157e27..0000000
--- a/SSToastMessage/SSToastMessage.podspec
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Be sure to run `pod lib lint SSToastMessage.podspec' to ensure this is a
-# valid spec before submitting.
-#
-# Any lines starting with a # are optional, but their use is encouraged
-# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
-#
-
-Pod::Spec.new do |s|
- s.name = 'SSToastMessage'
- s.version = '1.0.0'
- s.platform = :ios
- s.swift_versions = '5.0'
- s.summary = 'Simple popup view build in SwiftUI.'
- s.description = <<-DESC
- SSToastMessage is written purely in SwiftUI. It will add toast, alert,
- and floating message view over the top of any view. It is intended to be simple,
- lightweight, and easy to use. It will be a popup with a single line of code.
- DESC
-
- s.homepage = 'https://github.com/SimformSolutionsPvtLtd/SSToastMessage'
- s.license = { :type => 'MIT', :file => 'LICENSE' }
- s.author = { 'Ankit Panchal' => 'ankit.p@simformsolutions.com' }
- s.source = { :git => 'https://github.com/SimformSolutionsPvtLtd/SSToastMessage.git', :tag => s.version.to_s }
- s.social_media_url = 'https://www.simform.com'
-
- s.ios.deployment_target = '13.0'
-
- s.source_files = '**/Sources/Classes/*.swift'
- s.frameworks = ['SwiftUI']
-
-end
diff --git a/SSToastMessage/Sources/Classes/MessageView.swift b/SSToastMessage/Sources/Classes/MessageView.swift
index b5fc127..8c3183a 100644
--- a/SSToastMessage/Sources/Classes/MessageView.swift
+++ b/SSToastMessage/Sources/Classes/MessageView.swift
@@ -10,11 +10,15 @@ import SwiftUI
public struct MessageView: ViewModifier where MessageContent: View {
- public enum MessageType {
+ @ObservedObject var viewModel = ViewModel()
+
+ public enum MessageType: Equatable {
case alert
case toast
case floater(verticalPadding: CGFloat = 50)
+ case leftToastView
+ case rightToastView
func shouldBeCentered() -> Bool {
switch self {
@@ -42,8 +46,11 @@ public struct MessageView: ViewModifier where MessageContent: Vi
var animation: Animation
- /// If nil - never hides on its own
- var autohideDuration: Double?
+ /// If nil - don't dismiss automatically
+ var duration: Double?
+
+ /// Should Add horizontal padding - default - 0
+ var horizontalPadding: CGFloat?
/// Should close on tap - default is `true`
var closeOnTap: Bool
@@ -51,11 +58,23 @@ public struct MessageView: ViewModifier where MessageContent: Vi
/// Allow to perform action on tap default is
var onTap: () -> Void
+ /// Allow to perform any action when toast dismiss
+ var onToastDismiss: () -> Void
+
/// Should close on tap outside - default is `false`
var closeOnTapOutside: Bool
- var view: () -> MessageContent
+ /// Use to show Left toast view
+ @State var leftToastMessage: Bool = false
+ /// Use to show Right toast view
+ @State var rightToastMessage: Bool = false
+
+ var view: () -> MessageContent
+
+ @State private var viewHeight: CGFloat = .zero
+ @State private var viewWidth: CGFloat = .zero
+
/// holder for autohiding dispatch work (to be able to cancel it when needed)
var dispatchWorkHolder = DispatchWorkHolder()
@@ -67,41 +86,69 @@ public struct MessageView: ViewModifier where MessageContent: Vi
/// The rect of popup content
@State private var sheetContentRect: CGRect = .zero
+ /// offset for setting up left & right toast
+ @State private var offset: CGFloat = 0
+
+ /// Toast message width
+ @State var toastViewWidth: CGFloat = 0
+
+ /// Toast message height
+ @State var toastViewHeight: CGFloat = 0
+
/// The offset when the popup is displayed
private var displayedOffset: CGFloat {
switch type {
- case .alert:
- return -presenterContentRect.midY + screenHeight/2
- case .toast:
- if position == .bottom {
- return screenHeight - presenterContentRect.midY - sheetContentRect.height/2
- } else {
- return -presenterContentRect.midY + sheetContentRect.height/2
+ case .alert:
+ return -presenterContentRect.midY + viewHeight/2
+ case .toast:
+ if position == .bottom {
+ return viewHeight - presenterContentRect.midY - sheetContentRect.height/2
+ } else {
+ return -presenterContentRect.midY + sheetContentRect.height/2
}
- case .floater(let verticalPadding):
- if position == .bottom {
- return screenHeight - presenterContentRect.midY - sheetContentRect.height/2 - verticalPadding
- } else {
- return -presenterContentRect.midY + sheetContentRect.height/2 + verticalPadding
+ case .floater(let verticalPadding):
+ if position == .bottom {
+ return viewHeight - presenterContentRect.midY - sheetContentRect.height/2 - verticalPadding
+ } else {
+ return -presenterContentRect.midY + sheetContentRect.height/2 + verticalPadding
+ }
+ case .leftToastView, .rightToastView:
+ if position == .bottom {
+ return leftRightToastViewPosition - 30
+ } else {
+ return -(leftRightToastViewPosition - 60)
}
}
}
-
+
/// The offset when the popup is hidden
private var hiddenOffset: CGFloat {
if position == .top {
if presenterContentRect.isEmpty {
return -1000
}
+ #if targetEnvironment(macCatalyst)
+ return -presenterContentRect.midY - sheetContentRect.height/2 - 300
+ #else
return -presenterContentRect.midY - sheetContentRect.height/2 - 5
+ #endif
} else {
if presenterContentRect.isEmpty {
return 1000
}
+ #if targetEnvironment(macCatalyst)
+ return screenHeight - presenterContentRect.midY + sheetContentRect.height/2 + 300
+ #else
return screenHeight - presenterContentRect.midY + sheetContentRect.height/2 + 5
+ #endif
}
}
+ /// Set left and and right view toast view position
+ private var leftRightToastViewPosition: CGFloat {
+ viewHeight/2 - toastViewHeight/2
+ }
+
/// The current offset, based on the **presented** property
private var currentOffset: CGFloat {
return isPresented ? displayedOffset : hiddenOffset
@@ -110,90 +157,194 @@ public struct MessageView: ViewModifier where MessageContent: Vi
private var screenHeight: CGFloat {
#if os(watchOS)
return WKInterfaceDevice.current().screenBounds.size.height
- #elseif os(iOS)
- return UIScreen.main.bounds.size.height
#elseif os(macOS)
return NSScreen.main?.frame.height ?? 0
+ #elseif os(iOS)
+ return UIScreen.main.bounds.size.height
#endif
}
private var screenWidth: CGFloat {
#if os(watchOS)
return WKInterfaceDevice.current().screenBounds.size.width
+ #elseif os(macOS)
+ return NSScreen.main?.frame.width ?? 0
#elseif os(iOS)
return UIScreen.main.bounds.size.width
- #elseif os(macOS)
- return NSScreen.main?.frame.width ?? 0
#endif
}
// MARK: - Content Builders
public func body(content: Content) -> some View {
- content
- .applyIf(closeOnTapOutside) {
- $0.simultaneousGesture( TapGesture().onEnded {
- self.isPresented = false
- })
- }
- .background(
- GeometryReader { proxy -> AnyView in
- let rect = proxy.frame(in: .global)
- // This avoids an infinite layout loop
- if rect.integral != self.presenterContentRect.integral {
- DispatchQueue.main.async {
- self.presenterContentRect = rect
- }
+ GeometryReader { proxy in
+ ZStack {
+ content
+ .background(
+ GeometryReader { proxy -> AnyView in
+ let rect = proxy.frame(in: .global)
+ // This avoids an infinite layout loop
+ if rect.integral != self.presenterContentRect.integral {
+ DispatchQueue.main.async {
+ viewModel.updateView = true
+ self.presenterContentRect = rect
+ }
+ }
+ return AnyView(EmptyView())
+ }
+ )
+ .overlay(presentSheet())
+ #if !(os(macOS))
+ .navigationBarHidden(true)
+ #endif
+ if closeOnTapOutside {
+ Color.clear
+ .contentShape(Rectangle())
+ .onTapGesture {
+ self.isPresented = false
+ }
+ .opacity(isPresented ? 0.5 : 0)
}
- return AnyView(EmptyView())
+ }.onReceive(viewModel.$updateView, perform: { _ in
+ viewHeight = proxy.size.height
+ #if os(macOS) || targetEnvironment(macCatalyst)
+ viewWidth = proxy.size.width - (horizontalPadding ?? 0)
+ #elseif os(iOS)
+ viewWidth = screenWidth - (horizontalPadding ?? 0)
+ #endif
+ })
+ .onAppear {
+ if type == .leftToastView {
+ setLeftToastOffset()
+ } else if type == .rightToastView {
+ setRightToastOffset()
+ }
+ }
+ .onChange(of: isPresented) { updatedValue in
+ if !updatedValue {
+ leftToastMessage = false
+ rightToastMessage = false
+ } else {
+ leftToastMessage = type == .leftToastView
+ rightToastMessage = type == .rightToastView
+ }
+ setLeftRightToastOffset()
}
- ).overlay(presentSheet())
+ .frame(width: proxy.size.width, height: proxy.size.height)
+ }
}
/// This is the builder for the sheet content
func presentSheet() -> some View {
- // if needed, dispatch autohide and cancel previous one
- if let autohideDuration = autohideDuration {
+ // if needed, dispatch autoDismiss and cancel previous one
+ if let duration = duration, !(type == .leftToastView || type == .rightToastView) {
dispatchWorkHolder.work?.cancel()
dispatchWorkHolder.work = DispatchWorkItem(block: {
self.isPresented = false
+ self.onToastDismiss()
})
if isPresented, let work = dispatchWorkHolder.work {
- DispatchQueue.main.asyncAfter(deadline: .now() + autohideDuration, execute: work)
+ DispatchQueue.main.asyncAfter(deadline: .now() + duration, execute: work)
}
}
- return ZStack {
- Group {
- VStack {
- VStack {
- self.view()
- .simultaneousGesture(TapGesture().onEnded {
- if self.closeOnTap {
- self.isPresented = false
- self.onTap()
- }
- })
- .background(
- GeometryReader { proxy -> AnyView in
- let rect = proxy.frame(in: .global)
- // This avoids an infinite layout loop
- if rect.integral != self.sheetContentRect.integral {
- DispatchQueue.main.async {
- self.sheetContentRect = rect
- }
- }
- return AnyView(EmptyView())
- }
- )
+ let commonVStack = VStack {
+ self.view()
+ .simultaneousGesture(TapGesture().onEnded {
+ if self.closeOnTap {
+ DispatchQueue.main.async {
+ self.isPresented = false
+ self.onTap()
+ }
+ }
+ })
+ .background(
+ GeometryReader { proxy -> AnyView in
+ let rect = proxy.frame(in: .global)
+ // This avoids an infinite layout loop
+ if rect.integral != self.sheetContentRect.integral {
+ DispatchQueue.main.async {
+ self.sheetContentRect = rect
+ toastViewWidth = proxy.size.width
+ toastViewHeight = proxy.size.height
+ }
+ }
+ return AnyView(EmptyView())
}
+ )
+ .offset(x: (leftToastMessage || rightToastMessage) ? offset : 0, y: (leftToastMessage || rightToastMessage) ? displayedOffset : currentOffset)
+ .onReceive(viewModel.$isLeftRightToastView, perform: { _ in
+
+ if leftToastMessage || rightToastMessage {
+ withAnimation(.easeInOut(duration: 0.5)) {
+ if rightToastMessage {
+ #if os(macOS) || targetEnvironment(macCatalyst)
+ offset = (viewWidth / 2) - toastViewWidth / 2 - 10
+ #elseif os(iOS)
+ offset = (screenWidth / 2) - toastViewWidth / 2 - 10
+ #endif
+ } else if leftToastMessage {
+ #if os(macOS) || targetEnvironment(macCatalyst)
+ offset = -((viewWidth / 2) - toastViewWidth / 2 - 10)
+ #elseif os(iOS)
+ offset = -((screenWidth / 2) - toastViewWidth / 2) + 10
+ #endif
+ }
+ }
+
+ DispatchQueue.main.asyncAfter(deadline: .now() + (duration ?? 0)) {
+ withAnimation(.easeInOut(duration: 0.5)) {
+ setLeftRightToastOffset()
+ }
+ }
+
+ Timer.scheduledTimer(withTimeInterval: ((duration ?? 0) + 0.5), repeats: false) { _ in
+ onToastDismiss()
+ isPresented = false
+ }
+ }
+ })
+ }
+
+ return ZStack() {
+ Group {
+ if !(leftToastMessage || rightToastMessage) {
+ commonVStack
+ .frame(width: viewWidth)
+ .animation(animation, value: isPresented)
+ } else {
+ commonVStack
}
- .frame(width: screenWidth)
- .offset(x: 0, y: currentOffset)
- .animation(animation)
}
}
}
+
+ /// offset is used for showing left and right toast view
+ func setLeftRightToastOffset() {
+ if leftToastMessage {
+ setLeftToastOffset()
+ } else if rightToastMessage {
+ setRightToastOffset()
+ }
+ }
+
+ /// offset is used for showing left view
+ func setLeftToastOffset() {
+ #if os(macOS)
+ offset = -(NSScreen.main?.frame.size.width ?? 0)
+ #elseif os(iOS)
+ offset = -UIScreen.main.bounds.width
+ #endif
+ }
+
+ /// offset is used for showing right toast view
+ func setRightToastOffset() {
+ #if os(macOS)
+ offset = NSScreen.main?.frame.size.width ?? 0
+ #elseif os(iOS)
+ offset = UIScreen.main.bounds.width
+ #endif
+ }
}
diff --git a/SSToastMessage/Sources/Classes/SSToastMessage.swift b/SSToastMessage/Sources/Classes/SSToastMessage.swift
index e447d88..6994edd 100644
--- a/SSToastMessage/Sources/Classes/SSToastMessage.swift
+++ b/SSToastMessage/Sources/Classes/SSToastMessage.swift
@@ -16,9 +16,10 @@ extension View {
/// - type: set type of view alert, toast and float.
/// - position: top or bottom (for default case it just determines animation direction).
/// - animation: custom animation for message view sliding onto screen.
- /// - autohideDuration: time after which message view should disappear.
+ /// - duration: time after which message view should disappear.
/// - closeOnTap: on message view tap it should disappear.
/// - onTap: on message view tap perform any action or navigation.
+ /// - onToastDismiss: on toast dismiss perform any action.
/// - closeOnTapOutside: on outside tap message view should disappear.
/// - view: view you want to display on your message view
/// - Returns: void
@@ -27,10 +28,12 @@ extension View {
type: MessageView.MessageType = .alert,
position: MessageView.Position = .bottom,
animation: Animation = Animation.easeOut(duration: 0.3),
- autohideDuration: Double? = 3.0,
+ horizontalPadding: CGFloat? = 0,
+ duration: Double? = 3.0,
closeOnTap: Bool = true,
- onTap: (() -> Void)? = nil,
closeOnTapOutside: Bool = false,
+ onTap: (() -> Void)? = nil,
+ onToastDismiss: (() -> Void)? = nil,
view: @escaping () -> MessageContent) -> some View {
self.modifier(
MessageView(
@@ -38,19 +41,14 @@ extension View {
type: type,
position: position,
animation: animation,
- autohideDuration: autohideDuration,
+ duration: duration,
+ horizontalPadding: horizontalPadding,
closeOnTap: closeOnTap,
onTap: onTap ?? {},
+ onToastDismiss: onToastDismiss ?? {},
closeOnTapOutside: closeOnTapOutside,
view: view)
)
}
- func applyIf(_ condition: @autoclosure () -> Bool, apply: (Self) -> T) -> AnyView {
- if condition() {
- return AnyView(apply(self))
- } else {
- return AnyView(self)
- }
- }
}
diff --git a/SSToastMessage/Sources/Classes/ViewModel.swift b/SSToastMessage/Sources/Classes/ViewModel.swift
new file mode 100644
index 0000000..9e84a87
--- /dev/null
+++ b/SSToastMessage/Sources/Classes/ViewModel.swift
@@ -0,0 +1,15 @@
+//
+// ViewModel.swift
+// SSToastMessage
+//
+// Created by Yagnik Bavishi on 17/04/24.
+//
+
+import SwiftUI
+
+class ViewModel: ObservableObject {
+
+ @Published var updateView: Bool = false
+ @Published var isLeftRightToastView: Bool = false
+
+}
diff --git a/banner.png b/banner.png
new file mode 100644
index 0000000..43c1d0f
Binary files /dev/null and b/banner.png differ
diff --git a/demo.gif b/demo.gif
index 1f91ece..d2bda4e 100644
Binary files a/demo.gif and b/demo.gif differ
diff --git a/screen_shots.png b/screen_shots.png
index 4884e23..69d44e9 100644
Binary files a/screen_shots.png and b/screen_shots.png differ
diff --git a/simformBanner.png b/simformBanner.png
deleted file mode 100644
index b3eccd9..0000000
Binary files a/simformBanner.png and /dev/null differ