提交 4c7038f8 编写于 作者: lizhongyi_'s avatar lizhongyi_

toast

上级 929f308b
{
"id": "uni-showToast",
"displayName": "uni-showToast",
"version": "1.0.0",
"description": "uni-showToast",
"keywords": [
"uni-showToast"
],
"repository": "",
"engines": {
"HBuilderX": "^3.6.8"
},
"dcloudext": {
"type": "uts",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "",
"data": "",
"permissions": ""
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "u",
"aliyun": "u"
},
"client": {
"Vue": {
"vue2": "u",
"vue3": "u"
},
"App": {
"app-android": "u",
"app-ios": "u"
},
"H5-mobile": {
"Safari": "u",
"Android Browser": "u",
"微信浏览器(Android)": "u",
"QQ浏览器(Android)": "u"
},
"H5-pc": {
"Chrome": "u",
"IE": "u",
"Edge": "u",
"Firefox": "u",
"Safari": "u"
},
"小程序": {
"微信": "u",
"阿里": "u",
"百度": "u",
"字节跳动": "u",
"QQ": "u",
"钉钉": "u",
"快手": "u",
"飞书": "u",
"京东": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}
\ No newline at end of file
# uni-showToast
### 开发文档
[UTS 语法](https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html)
[UTS 原生插件](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html)
[Hello UTS](https://gitcode.net/dcloud/hello-uts/-/tree/dev)
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="io.dcloud.zl">
</manifest>
import Context from 'android.content.Context';
import LayoutInflater from 'android.view.LayoutInflater';
import R from 'io.dcloud.zl.R';
import ViewGroup from 'android.view.ViewGroup';
import LinearLayout from 'android.widget.LinearLayout';
import Activity from 'android.app.Activity';
import TextView from 'android.widget.TextView';
import PopupWindow from 'android.widget.PopupWindow';
import Build from 'android.os.Build';
import Gravity from 'android.view.Gravity';
import Color from 'android.graphics.Color';
import Handler from 'android.os.Handler';
import Looper from 'android.os.Looper';
import string from 'android.R.string';
import View from 'android.view.View';
import MotionEvent from 'android.view.MotionEvent';
import JSONObject from 'com.alibaba.fastjson.JSONObject';
import ProgressBar from 'android.widget.ProgressBar';
import BitmapFactory from 'android.graphics.BitmapFactory';
import bool from 'android.R.bool';
import Bitmap from 'android.graphics.Bitmap';
import ImageView from 'android.widget.ImageView';
import { UTSAndroid } from "io.dcloud.uts";
import FileInputStream from 'java.io.FileInputStream';
import File from 'java.io.File';
import ByteArrayOutputStream from 'java.io.ByteArrayOutputStream';
import InputStream from 'java.io.InputStream';
import array from 'android.R.array';
export class WaitingView {
private context?: Activity
private style: JSONObject
private waitingView: ViewGroup
private waitingRootView: LinearLayout
private textView: TextView
private mProgressBar: ProgressBar
private seaparatorView: View
private mImageView: ImageView
private height: Int = -2
private width: Int = -2
private mask: boolean = false
private title: string = ""
screenWidth: Int
ScreenHeight: Int
density: number = 0
// json数据
private padding: Int = 0
private textSize: Int = 0
private loadingdDisplay = ""
private loadingHeight = 0
private LoadingIcon: string = ""
private mBitmap: Bitmap | null = null;
private mpopWindow?: PopupWindow = null
private currentHandler: Handler
//{"back":"transmit","height":"112px","loading":{"display":"block","height":"55px","icon":"__uniapperror.png","jSONArray":false},"padding":"10px","size":"16px","width":"140px"}
constructor(context?: Activity, style: UTSJSONObject) {
this.context = context;
this.style = style.toJSONObject() as JSONObject
this.screenWidth = context?.getResources()?.getDisplayMetrics()!!.widthPixels
this.ScreenHeight = context?.getResources()?.getDisplayMetrics()!!.heightPixels
this.density = context?.getResources()?.getDisplayMetrics()!!.density
this.waitingView = LayoutInflater.from(context).inflate(R.layout.dcloud_loadingview, null, false) as ViewGroup
this.waitingRootView = this.waitingView.findViewById<LinearLayout>(R.id.dcloud_pd_root)
this.mProgressBar = this.waitingView.findViewById<ProgressBar>(R.id.dcloud_pb_loading)
this.textView = this.waitingView.findViewById<TextView>(R.id.dcloud_tv_loading)
this.seaparatorView = this.waitingView.findViewById<View>(R.id.dcloud_view_seaparator)
this.mImageView = this.waitingView.findViewById<ImageView>(R.id.dcloud_iv_loading)
this.handlerArguments()
let llp = (this.waitingRootView).getLayoutParams() as LinearLayout.LayoutParams
llp.width = this.width > 0 ? (this.width * this.density).toInt() : this.width
llp.height = this.height > 0 ? (this.height * this.density).toInt() : this.height
this.waitingRootView.setLayoutParams(llp)
this.currentHandler = new Handler(Looper.myLooper()!!)
this.initView()
this.makeBitmap()
}
handlerArguments() {
if (this.style["height"] != null) {
this.height = io.dcloud.uts.parseInt(this.style["height"] as string) as Int
}
if (this.style["width"] != null) {
this.width = io.dcloud.uts.parseInt(this.style["width"] as string) as Int
}
if (this.style["modal"] != null) {
this.mask = this.style["modal"] as boolean
}
this.title = this.style.get("name") as string
if (this.style["loading"] != null) {
let loading = this.style["loading"] as JSONObject
this.loadingdDisplay = loading["display"] as string
if (loading["icon"] != null) {
this.LoadingIcon = loading["icon"] as string
}
if (loading["height"] != null) {
this.loadingHeight = io.dcloud.uts.parseInt(loading["height"] as string) as Int
}
}
if ("block" == this.loadingdDisplay) {
this.waitingRootView.setOrientation(LinearLayout.VERTICAL)
} else if ("inline" == this.loadingdDisplay) {
this.waitingRootView.setOrientation(LinearLayout.HORIZONTAL)
} else if ("none" == this.loadingdDisplay) {
this.seaparatorView.setVisibility(View.GONE)
this.mProgressBar.setVisibility(View.GONE)
}
}
initView() {
// 初始化默认参数
// this.textView.setTextColor(0xffffffff)
this.textView.setTextColor(Color.WHITE)
this.textView.setGravity(Gravity.CENTER)
this.textView.setText(this.title)
this.textView.setTextSize(0, (16 * this.density).toFloat())
// 设置textsize
this.waitingRootView.setPadding((10 * this.density).toInt(), (10 * this.density).toInt(), (10 * this.density).toInt(), (10 * this.density).toInt())
let drawable = this.context?.getResources()!!.getDrawable(R.drawable.dcloud_circle_white_progress)
if (this.loadingHeight > 0) {
this.mProgressBar.setLayoutParams(new LinearLayout.LayoutParams((this.loadingHeight * this.density).toInt(), (this.loadingHeight * this.density).toInt()))
} else {
let height = (drawable.getIntrinsicHeight() * 0.3).toInt()
this.mProgressBar.setLayoutParams(new LinearLayout.LayoutParams(height, height))
}
this.mProgressBar.setIndeterminateDrawable(drawable)
this.waitingRootView.setFocusable(true)
}
showWaiting() {
let width = -2;
let height = -2
if (Build.VERSION.SDK_INT >= 23 && this.mask) {
this.mask = false
width = -1
height = -1
}
let mpop = new PopupWindow(this.waitingView, width, height, this.mask)
this.mpopWindow = mpop
mpop.showAtLocation((this.context?.findViewById<ViewGroup>(android.R.id.content))?.getChildAt(0), Gravity.CENTER, 0, 0)
mpop.setOutsideTouchable(true)
mpop.setOnDismissListener(new WaitingDismissListener())
mpop.setTouchInterceptor(new TouchInterceptorListener(this.mask))
}
close() {
if (this.mpopWindow != null && (this.mpopWindow as PopupWindow).isShowing()) {
this.currentHandler.post(new MainThreadRunnable((this.mpopWindow as PopupWindow)))
}
if (this.mBitmap != null) {
this.mBitmap = null;
}
}
makeBitmap() {
if (this.LoadingIcon != null) {
// let mBitmap: Bitmap | null = null;
let imageBytes: ByteArray | null = null
if (this.LoadingIcon == "successIcon") {
imageBytes = this.inputStreamToArray(this.context?.getResources()!!.getAssets().open("uniappsuccess.png"))
} else if (this.LoadingIcon == "errorIcon") {
imageBytes = this.inputStreamToArray(this.context?.getResources()!!.getAssets().open("uniapperror.png"))
} else if (this.LoadingIcon.length > 0) {
let path: string = ""
if (this.LoadingIcon.startsWith("file://")) {
path = this.LoadingIcon.replace("file://", "")
} else {
path = UTSAndroid.getResourcePath(this.LoadingIcon)
}
if (path != null && path.length > 0) {
try {
let fis: FileInputStream = new FileInputStream(new File(path));
imageBytes = this.inputStreamToArray(fis);
fis.close()
} catch (e: Throwable) {
}
}
} else {
return
}
if (imageBytes == null || imageBytes.size == 0) {
return
}
let option = new BitmapFactory.Options()
option.inJustDecodeBounds = true
BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.size, option)
let width = option.outWidth
let height = option.outHeight
option.inSampleSize = this.getBestScale(height)
option.inJustDecodeBounds = false;
this.mBitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.size, option)
this.mProgressBar.setVisibility(View.GONE)
this.mImageView.setVisibility(View.VISIBLE)
this.mImageView.setImageBitmap(this.mBitmap)
if (width % height != 0) {
return
}
var lp: ViewGroup.LayoutParams = this.mImageView.getLayoutParams()
if (lp != null) {
if (this.loadingHeight > 0) {
lp.height = (this.loadingHeight * this.density).toInt()
lp.width = (this.loadingHeight * this.density).toInt()
} else {
lp.width = this.mBitmap!!.getHeight()
lp.height = this.mBitmap!!.getHeight()
}
this.mImageView.setLayoutParams(lp)
}
}
}
getBestScale(height: Int): Int {
let sampleSize: Int = 1;
let maxEdge = Math.min(this.screenWidth, this.ScreenHeight) - 10 * 2 * this.density
if (maxEdge > 0 && height > maxEdge) {
sampleSize = (height / maxEdge).toInt()
}
return sampleSize
}
inputStreamToArray(inputStream: InputStream): ByteArray | null {
try {
let bos: ByteArrayOutputStream = new ByteArrayOutputStream()
let bytes: ByteArray = new ByteArray(1024)
do {
let length = inputStream.read(bytes)
if (length != -1) {
bos.write(bytes, 0, length)
} else {
break
}
} while (true)
bos.close()
return bos.toByteArray()
} catch (e: Throwable) {
return null;
}
}
}
class MainThreadRunnable implements Runnable {
pop: PopupWindow
constructor(pop: PopupWindow) {
this.pop = pop
}
override run() {
this.pop.dismiss()
}
}
class WaitingDismissListener implements PopupWindow.OnDismissListener {
override onDismiss() {
// console.log("打印日志,关闭")
}
}
class TouchInterceptorListener implements View.OnTouchListener {
interceptor: boolean
constructor(interceptor: boolean) {
this.interceptor = interceptor
}
override onTouch(v: View, event: MotionEvent): boolean {
return this.interceptor
}
}
\ No newline at end of file
import { getUniActivity } from "io.dcloud.uts.android";
import Gravity from 'android.view.Gravity';
import Toast from "android.widget.Toast";
import { WaitingView } from "./WaitingView.uts"
type ToastStyle = {
title: string,
icon?: string,
image?: string,
mask?: boolean,
duration?: number,
position?: string,
style?: string,
success?: (res: UTSJSONObject) => void,
fail?: (res: UTSJSONObject) => void,
complete?: (res: UTSJSONObject) => void
}
let timeout: number | null = null
let toast: WaitingView | null = null
let toastType: string | null = null
export function showToast(style: ToastStyle) {
makeToast(style, 'toast', 'showToast')
}
export function hideToast() {
closeToast("toast")
}
export function showLoading(loadingStyle: ToastStyle) {
loadingStyle.icon = "loading"
loadingStyle.image = null
loadingStyle.position = ""
makeToast(loadingStyle, 'loading', 'showLoading')
}
export function hideLoading() {
closeToast("loading")
}
function closeToast(type: string | null) {
if (type != null && type !== toastType) {
return
}
if (timeout != null && (timeout as number) > 0) {
clearTimeout(timeout as number)
timeout = null
}
if (toast != null) {
(toast as WaitingView).close()
toast = null
}
toastType = null
}
function makeToast(style: ToastStyle, type: string, errMsg: string) {
closeToast(null)
if (style.title == null || style.title.length == 0) {
style.fail?.({ errMsg: (errMsg + ':title is null') })
style.complete?.({ errMsg: (errMsg + ':title is null') })
} else {
toastType = type
if (["top", "center", "bottom"].indexOf(style.position) >= 0) {
let toast = Toast.makeText(getUniActivity(), style.title, Toast.LENGTH_SHORT);
switch (style.position) {
case "top": {
toast.setGravity(Gravity.TOP, 0, 0)
break
}
case "center": {
toast.setGravity(Gravity.CENTER, 0, 0)
break
}
case "bottom": {
toast.setGravity(Gravity.BOTTOM, 0, 0)
break
}
}
toast.show()
} else {
let options = {};
let icon = style.icon
if (icon == null || ["success", "loading", "error", "none"].indexOf(icon) < 0) {
icon = "success"
}
options = {
name: style.title,
modal: style.mask,
back: 'transmit',
padding: '10',
size: '16' // 固定字体大小
}
if (style.image == null && icon == "none") {
options["loading"] = {
display: "none"
}
} else {
options["width"] = "140"
options["height"] = "112"
}
if (style.image != null) {
options["loading"] = {
display: "block",
height: "55",
icon: style.image
}
} else {
if (['success', 'error'].indexOf(icon) >= 0) {
options["loading"] = {
display: 'block',
height: '55',
icon: icon === "success" ? "successIcon" : "errorIcon"
}
}
}
console.log(JSON.stringify(options))
const alert = new WaitingView(getUniActivity(), options)
toast = alert
alert.showWaiting()
let duration: number | null = style.duration
if (duration == null || duration <= 0) {
duration = 1500
}
if (type !== "loading") {
timeout = setTimeout(() => {
alert.close()
}, duration)
}
style.success?.({ errMsg: (errMsg + ':ok') })
style.complete?.({ errMsg: (errMsg + ':ok') })
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%"
android:pivotY="50%"
android:fromDegrees="0"
android:toDegrees="360">
<shape
android:shape="ring"
android:innerRadiusRatio="3"
android:thicknessRatio="22"
android:useLevel="false">
<size
android:width="120dip"
android:height="120dip" />
<gradient
android:type="sweep"
android:useLevel="false"
android:startColor="#EDEDED"
android:endColor="#00ffffff"
android:angle="0"/>
</shape>
</rotate>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dip" >
</corners>
<solid android:color="#CC000000" >
</solid>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<LinearLayout
android:id="@+id/dcloud_pd_root"
android:layout_width="wrap_content"
android:background="@drawable/dcloud_longding_bg"
android:gravity="center"
android:orientation="vertical"
android:layout_height="wrap_content">
<ProgressBar
android:id="@+id/dcloud_pb_loading"
android:layout_width="wrap_content"
android:minWidth="3dp"
android:minHeight="3dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:indeterminateDuration="1000"/>
<ImageView
android:id="@+id/dcloud_iv_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
<View
android:id="@+id/dcloud_view_seaparator"
android:layout_width="10dp"
android:layout_height="10dp"/>
<TextView
android:id="@+id/dcloud_tv_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="placement">Configuration</string>
</resources>
\ No newline at end of file
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
#ifndef LOTTIE_SWIFT_H
#define LOTTIE_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wduplicate-method-match"
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#endif
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT noexcept
#endif
#else
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT
#endif
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_CXX_INT_DEFINED)
#define SWIFT_CXX_INT_DEFINED
namespace swift {
using Int = ptrdiff_t;
using UInt = size_t;
}
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreFoundation;
@import Foundation;
@import ObjectiveC;
@import UIKit;
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Lottie",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
@class NSCoder;
@class UITouch;
@class UIEvent;
/// Lottie comes prepacked with a two Animated Controls, <code>AnimatedSwitch</code> and
/// <code>AnimatedButton</code>. Both of these controls are built on top of <code>AnimatedControl</code>
/// <code>AnimatedControl</code> is a subclass of <code>UIControl</code> that provides an interactive
/// mechanism for controlling the visual state of an animation in response to
/// user actions.
/// The <code>AnimatedControl</code> will show and hide layers depending on the current
/// <code>UIControl.State</code> of the control.
/// Users of <code>AnimationControl</code> can set a Layer Name for each <code>UIControl.State</code>.
/// When the state is change the <code>AnimationControl</code> will change the visibility
/// of its layers.
/// NOTE: Do not initialize directly. This is intended to be subclassed.
SWIFT_CLASS("_TtC6Lottie15AnimatedControl")
@interface AnimatedControl : UIControl
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, getter=isEnabled) BOOL enabled;
@property (nonatomic, getter=isSelected) BOOL selected;
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
- (BOOL)beginTrackingWithTouch:(UITouch * _Nonnull)touch withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
- (BOOL)continueTrackingWithTouch:(UITouch * _Nonnull)touch withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
- (void)endTrackingWithTouch:(UITouch * _Nullable)touch withEvent:(UIEvent * _Nullable)event;
- (void)cancelTrackingWithEvent:(UIEvent * _Nullable)event;
@property (nonatomic, readonly) CGSize intrinsicContentSize;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end
/// An interactive button that plays an animation when pressed.
SWIFT_CLASS("_TtC6Lottie14AnimatedButton")
@interface AnimatedButton : AnimatedControl
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (BOOL)beginTrackingWithTouch:(UITouch * _Nonnull)touch withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
- (void)endTrackingWithTouch:(UITouch * _Nullable)touch withEvent:(UIEvent * _Nullable)event;
@end
/// An interactive switch with an ‘On’ and ‘Off’ state. When the user taps on the
/// switch the state is toggled and the appropriate animation is played.
/// Both the ‘On’ and ‘Off’ have an animation play range associated with their state.
SWIFT_CLASS("_TtC6Lottie14AnimatedSwitch")
@interface AnimatedSwitch : AnimatedControl
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (void)endTrackingWithTouch:(UITouch * _Nullable)touch withEvent:(UIEvent * _Nullable)event;
@end
/// A view that can be added to a keypath of an AnimationView
SWIFT_CLASS("_TtC6Lottie16AnimationSubview")
@interface AnimationSubview : UIView
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC6Lottie10LottieView")
@interface LottieView : UIView
- (void)didMoveToWindow;
@property (nonatomic) UIViewContentMode contentMode;
- (void)layoutSubviews;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
IB_DESIGNABLE
SWIFT_CLASS("_TtC6Lottie13AnimationView")
@interface AnimationView : LottieView
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly) CGSize intrinsicContentSize;
@end
@class NSString;
@class NSBundle;
/// An Objective-C compatible wrapper around Lottie’s Animation class.
/// Use in tandem with CompatibleAnimationView when using Lottie in Objective-C
SWIFT_CLASS("_TtC6Lottie19CompatibleAnimation")
@interface CompatibleAnimation : NSObject
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name bundle:(NSBundle * _Nonnull)bundle OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
/// An Objective-C compatible wrapper around Lottie’s AnimationKeypath
SWIFT_CLASS("_TtC6Lottie26CompatibleAnimationKeypath")
@interface CompatibleAnimationKeypath : NSObject
/// Creates a keypath from a dot separated string. The string is separated by “.”
- (nonnull instancetype)initWithKeypath:(NSString * _Nonnull)keypath OBJC_DESIGNATED_INITIALIZER;
/// Creates a keypath from a list of strings.
- (nonnull instancetype)initWithKeys:(NSArray<NSString *> * _Nonnull)keys OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class UIColor;
/// An Objective-C compatible wrapper around Lottie’s AnimationView.
SWIFT_CLASS("_TtC6Lottie23CompatibleAnimationView")
@interface CompatibleAnimationView : UIView
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
@property (nonatomic, strong) CompatibleAnimation * _Nullable compatibleAnimation;
@property (nonatomic) CGFloat loopAnimationCount;
@property (nonatomic) UIViewContentMode contentMode;
@property (nonatomic) BOOL shouldRasterizeWhenIdle;
@property (nonatomic) CGFloat currentProgress;
@property (nonatomic) NSTimeInterval currentTime;
@property (nonatomic) CGFloat currentFrame;
@property (nonatomic, readonly) CGFloat realtimeAnimationFrame;
@property (nonatomic, readonly) CGFloat realtimeAnimationProgress;
@property (nonatomic) CGFloat animationSpeed;
@property (nonatomic) BOOL respectAnimationFrameRate;
- (void)play;
- (void)playWithCompletion:(void (^ _Nullable)(BOOL))completion;
- (void)playFromProgress:(CGFloat)fromProgress toProgress:(CGFloat)toProgress completion:(void (^ _Nullable)(BOOL))completion;
- (void)playFromFrame:(CGFloat)fromFrame toFrame:(CGFloat)toFrame completion:(void (^ _Nullable)(BOOL))completion;
- (void)playFromMarker:(NSString * _Nonnull)fromMarker toMarker:(NSString * _Nonnull)toMarker completion:(void (^ _Nullable)(BOOL))completion;
- (void)stop;
- (void)pause;
- (void)reloadImages;
- (void)forceDisplayUpdate;
- (id _Nullable)getValueFor:(CompatibleAnimationKeypath * _Nonnull)keypath atFrame:(CGFloat)atFrame SWIFT_WARN_UNUSED_RESULT;
- (void)logHierarchyKeypaths;
- (void)setColorValue:(UIColor * _Nonnull)color forKeypath:(CompatibleAnimationKeypath * _Nonnull)keypath;
- (UIColor * _Nullable)getColorValueFor:(CompatibleAnimationKeypath * _Nonnull)keypath atFrame:(CGFloat)atFrame SWIFT_WARN_UNUSED_RESULT;
- (void)addSubview:(AnimationSubview * _Nonnull)subview forLayerAt:(CompatibleAnimationKeypath * _Nonnull)keypath;
- (CGRect)convertWithRect:(CGRect)rect toLayerAt:(CompatibleAnimationKeypath * _Nullable)keypath SWIFT_WARN_UNUSED_RESULT;
- (CGPoint)convertWithPoint:(CGPoint)point toLayerAt:(CompatibleAnimationKeypath * _Nullable)keypath SWIFT_WARN_UNUSED_RESULT;
- (CGFloat)progressTimeForMarker:(NSString * _Nonnull)named SWIFT_WARN_UNUSED_RESULT;
- (CGFloat)frameTimeForMarker:(NSString * _Nonnull)named SWIFT_WARN_UNUSED_RESULT;
@end
#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#else
#error unsupported Swift architecture
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double LottieVersionNumber;
FOUNDATION_EXPORT const unsigned char LottieVersionString[];
{
"ABIRoot": {
"kind": "Root",
"name": "TopLevel",
"printedName": "TopLevel",
"json_format_version": 8
},
"ConstValues": []
}
\ No newline at end of file
framework module Lottie {
umbrella header "lottie-ios-umbrella.h"
export *
module * { export * }
}
module Lottie.Swift {
header "Lottie-Swift.h"
requires objc
}
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
#ifndef MCTOAST_SWIFT_H
#define MCTOAST_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wduplicate-method-match"
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#endif
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT noexcept
#endif
#else
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT
#endif
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_CXX_INT_DEFINED)
#define SWIFT_CXX_INT_DEFINED
namespace swift {
using Int = ptrdiff_t;
using UInt = size_t;
}
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import ObjectiveC;
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MCToast",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
SWIFT_CLASS("_TtC7MCToast7MCToast")
@interface MCToast : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
SWIFT_CLASS("_TtC7MCToast13MCToastConfig")
@interface MCToastConfig : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#else
#error unsupported Swift architecture
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "MCToast.h"
FOUNDATION_EXPORT double MCToastVersionNumber;
FOUNDATION_EXPORT const unsigned char MCToastVersionString[];
//
// MCToast.h
// Pods
//
// Created by Mccc on 2020/6/28.
//
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double MCToastVersionNumber;
FOUNDATION_EXPORT const unsigned char MCToastVersionString[];
{
"ABIRoot": {
"kind": "Root",
"name": "TopLevel",
"printedName": "TopLevel",
"json_format_version": 8
},
"ConstValues": []
}
\ No newline at end of file
framework module MCToast {
umbrella header "MCToast-umbrella.h"
export *
module * { export * }
}
module MCToast.Swift {
header "MCToast-Swift.h"
requires objc
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>toast_failure@2x.png</key>
<data>
zndZZC9W9O69AmMNwx9Q9eG1hJs=
</data>
<key>toast_failure@3x.png</key>
<data>
5DtvCJw4rLFQyiSoGQMMgJ0H3cE=
</data>
<key>toast_success@2x.png</key>
<data>
u+9fn1/2JVdiJ/Oat+vbpH4mEAs=
</data>
<key>toast_success@3x.png</key>
<data>
ZeAmuGcivaQV+x81ySQ68ED4yxc=
</data>
<key>toast_warning@2x.png</key>
<data>
JTEw3xFTwaeYgO3M555D+/OGcfY=
</data>
<key>toast_warning@3x.png</key>
<data>
r3oaIVUa2LRhIfNYOn2OIP2yEGg=
</data>
<key>waiting.json</key>
<data>
Gs0A/3ZZvFQNjrS+mhBOmKrWv70=
</data>
</dict>
<key>files2</key>
<dict>
<key>toast_failure@2x.png</key>
<dict>
<key>hash</key>
<data>
zndZZC9W9O69AmMNwx9Q9eG1hJs=
</data>
<key>hash2</key>
<data>
6EHttOYyqfRfr1lzolG/opuZsRmdofh62gemg1RuBpE=
</data>
</dict>
<key>toast_failure@3x.png</key>
<dict>
<key>hash</key>
<data>
5DtvCJw4rLFQyiSoGQMMgJ0H3cE=
</data>
<key>hash2</key>
<data>
1WCBDT2uUjgyMFe+nxzc4aihzUlCo5zPordLZihlUUo=
</data>
</dict>
<key>toast_success@2x.png</key>
<dict>
<key>hash</key>
<data>
u+9fn1/2JVdiJ/Oat+vbpH4mEAs=
</data>
<key>hash2</key>
<data>
AndMsiK4u4gNU+Sljhr9ujrl/Q7lSNFIVnYT+B3Bruk=
</data>
</dict>
<key>toast_success@3x.png</key>
<dict>
<key>hash</key>
<data>
ZeAmuGcivaQV+x81ySQ68ED4yxc=
</data>
<key>hash2</key>
<data>
B86XEh+FsH1i6LWPjTI5g3iUpPke5qG6I75Sq1w1ETw=
</data>
</dict>
<key>toast_warning@2x.png</key>
<dict>
<key>hash</key>
<data>
JTEw3xFTwaeYgO3M555D+/OGcfY=
</data>
<key>hash2</key>
<data>
oCbXvGKBYoCMrtm9skxDtBYRzl3SSj0YT96SBUPWvwo=
</data>
</dict>
<key>toast_warning@3x.png</key>
<dict>
<key>hash</key>
<data>
r3oaIVUa2LRhIfNYOn2OIP2yEGg=
</data>
<key>hash2</key>
<data>
I1AjnY8FRqs7HIYfd1DKn93bcWDplI608DuS99fn5F8=
</data>
</dict>
<key>waiting.json</key>
<dict>
<key>hash</key>
<data>
Gs0A/3ZZvFQNjrS+mhBOmKrWv70=
</data>
<key>hash2</key>
<data>
fmxSIBDNWRC9s3ttjiDK2PIih1UCp5GR5jhWs7bhfdo=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
{"v":"5.6.1","fr":30,"ip":0,"op":163,"w":300,"h":300,"nm":"combo","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[150,179.75,0],"ix":2},"a":{"a":0,"k":[0,4.75,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"湍流置换","np":16,"mn":"ADBE Turbulent Displace","ix":1,"en":1,"ef":[{"ty":7,"nm":"置换","mn":"ADBE Turbulent Displace-0001","ix":1,"v":{"a":0,"k":3,"ix":1}},{"ty":0,"nm":"数量","mn":"ADBE Turbulent Displace-0002","ix":2,"v":{"a":0,"k":0,"ix":2}},{"ty":0,"nm":"大小","mn":"ADBE Turbulent Displace-0003","ix":3,"v":{"a":0,"k":100,"ix":3}},{"ty":3,"nm":"偏移(湍流)","mn":"ADBE Turbulent Displace-0004","ix":4,"v":{"a":0,"k":[150,175],"ix":4}},{"ty":0,"nm":"复杂度","mn":"ADBE Turbulent Displace-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"演化","mn":"ADBE Turbulent Displace-0006","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":6,"nm":"演化选项","mn":"ADBE Turbulent Displace-0007","ix":7,"v":0},{"ty":7,"nm":"循环演化","mn":"ADBE Turbulent Displace-0008","ix":8,"v":{"a":0,"k":0,"ix":8}},{"ty":0,"nm":"循环(旋转次数)","mn":"ADBE Turbulent Displace-0009","ix":9,"v":{"a":0,"k":1,"ix":9}},{"ty":0,"nm":"随机植入","mn":"ADBE Turbulent Displace-0010","ix":10,"v":{"a":0,"k":0,"ix":10}},{"ty":6,"nm":"随机植入","mn":"ADBE Turbulent Displace-0011","ix":11,"v":0},{"ty":7,"nm":"固定","mn":"ADBE Turbulent Displace-0012","ix":12,"v":{"a":0,"k":3,"ix":12}},{"ty":7,"nm":"调整图层大小","mn":"ADBE Turbulent Displace-0013","ix":13,"v":{"a":0,"k":0,"ix":13}},{"ty":7,"nm":"消除锯齿(最佳品质)","mn":"ADBE Turbulent Displace-0014","ix":14,"v":{"a":0,"k":1,"ix":14}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-38],[0,67]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":10,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Shape 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[1],"y":[1]},"o":{"x":[0.737],"y":[0]},"t":15,"s":[0]},{"t":36,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[1],"y":[1]},"o":{"x":[0.765],"y":[0]},"t":15,"s":[5]},{"t":28,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"big 4","parent":6,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[400,313.938,0],"ix":2},"a":{"a":0,"k":[400,314.5,0],"ix":1},"s":{"a":0,"k":[100,-100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"湍流置换","np":16,"mn":"ADBE Turbulent Displace","ix":1,"en":1,"ef":[{"ty":7,"nm":"置换","mn":"ADBE Turbulent Displace-0001","ix":1,"v":{"a":0,"k":3,"ix":1}},{"ty":0,"nm":"数量","mn":"ADBE Turbulent Displace-0002","ix":2,"v":{"a":0,"k":0,"ix":2}},{"ty":0,"nm":"大小","mn":"ADBE Turbulent Displace-0003","ix":3,"v":{"a":0,"k":21,"ix":3}},{"ty":3,"nm":"偏移(湍流)","mn":"ADBE Turbulent Displace-0004","ix":4,"v":{"a":0,"k":[150,175],"ix":4}},{"ty":0,"nm":"复杂度","mn":"ADBE Turbulent Displace-0005","ix":5,"v":{"a":0,"k":1.26,"ix":5}},{"ty":0,"nm":"演化","mn":"ADBE Turbulent Displace-0006","ix":6,"v":{"a":0,"k":49,"ix":6}},{"ty":6,"nm":"演化选项","mn":"ADBE Turbulent Displace-0007","ix":7,"v":0},{"ty":7,"nm":"循环演化","mn":"ADBE Turbulent Displace-0008","ix":8,"v":{"a":0,"k":0,"ix":8}},{"ty":0,"nm":"循环(旋转次数)","mn":"ADBE Turbulent Displace-0009","ix":9,"v":{"a":0,"k":1,"ix":9}},{"ty":0,"nm":"随机植入","mn":"ADBE Turbulent Displace-0010","ix":10,"v":{"a":0,"k":0,"ix":10}},{"ty":6,"nm":"随机植入","mn":"ADBE Turbulent Displace-0011","ix":11,"v":0},{"ty":7,"nm":"固定","mn":"ADBE Turbulent Displace-0012","ix":12,"v":{"a":0,"k":3,"ix":12}},{"ty":7,"nm":"调整图层大小","mn":"ADBE Turbulent Displace-0013","ix":13,"v":{"a":0,"k":0,"ix":13}},{"ty":7,"nm":"消除锯齿(最佳品质)","mn":"ADBE Turbulent Displace-0014","ix":14,"v":{"a":0,"k":1,"ix":14}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.24,3.218],[0,0],[1.931,-2.773],[0,0],[-3.921,0],[0,0]],"o":[[0,0],[-1.931,-2.773],[0,0],[-2.241,3.218],[0,0],[3.921,0]],"v":[[50.04,30.639],[3.983,-35.494],[-3.983,-35.494],[-50.04,30.639],[-46.057,38.267],[46.057,38.267]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.2,0,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[400,353.045],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"big 3","parent":6,"tt":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,387.139,0],"ix":2},"a":{"a":0,"k":[400,387.389,0],"ix":1},"s":{"a":1,"k":[{"t":23,"s":[0,0,100],"h":1},{"t":29,"s":[100,100,100],"h":1}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":28,"s":[{"i":[[4.179,0.09],[0,0],[2.572,-0.035],[0,0],[-3.921,0],[0,0]],"o":[[0,0],[-3.441,0.043],[0,0],[-4.022,0.266],[0,0],[4.568,-0.242]],"v":[[3.79,30.661],[3.754,31.068],[-4.212,31.068],[-4.415,30.683],[-4.807,38.255],[3.245,38.212]],"c":true}]},{"t":50,"s":[{"i":[[2.24,3.218],[0,0],[1.931,-2.773],[0,0],[-3.921,0],[0,0]],"o":[[0,0],[-1.931,-2.773],[0,0],[-2.241,3.218],[0,0],[3.921,0]],"v":[[50.04,30.639],[3.983,-35.494],[-3.983,-35.494],[-50.04,30.639],[-46.057,38.267],[46.057,38.267]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[400,353.045],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"big 2","parent":6,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[400,286.125,0],"ix":2},"a":{"a":0,"k":[400,314.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.24,3.218],[0,0],[1.931,-2.773],[0,0],[-3.921,0],[0,0]],"o":[[0,0],[-1.931,-2.773],[0,0],[-2.241,3.218],[0,0],[3.921,0]],"v":[[50.04,30.639],[3.983,-35.494],[-3.983,-35.494],[-50.04,30.639],[-46.057,38.267],[46.057,38.267]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.2,0,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[400,353.045],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"big","parent":6,"tt":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.631,"y":0},"t":15,"s":[400,286.125,0],"to":[0,23.854,0],"ti":[0,-23.854,0]},{"t":38,"s":[400,429.25,0]}],"ix":2},"a":{"a":0,"k":[400,314.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"湍流置换","np":16,"mn":"ADBE Turbulent Displace","ix":1,"en":1,"ef":[{"ty":7,"nm":"置换","mn":"ADBE Turbulent Displace-0001","ix":1,"v":{"a":0,"k":3,"ix":1}},{"ty":0,"nm":"数量","mn":"ADBE Turbulent Displace-0002","ix":2,"v":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.739],"y":[0]},"t":15,"s":[0]},{"t":26,"s":[-111]}],"ix":2}},{"ty":0,"nm":"大小","mn":"ADBE Turbulent Displace-0003","ix":3,"v":{"a":0,"k":21,"ix":3}},{"ty":3,"nm":"偏移(湍流)","mn":"ADBE Turbulent Displace-0004","ix":4,"v":{"a":0,"k":[150,175],"ix":4}},{"ty":0,"nm":"复杂度","mn":"ADBE Turbulent Displace-0005","ix":5,"v":{"a":0,"k":1.26,"ix":5}},{"ty":0,"nm":"演化","mn":"ADBE Turbulent Displace-0006","ix":6,"v":{"a":0,"k":49,"ix":6}},{"ty":6,"nm":"演化选项","mn":"ADBE Turbulent Displace-0007","ix":7,"v":0},{"ty":7,"nm":"循环演化","mn":"ADBE Turbulent Displace-0008","ix":8,"v":{"a":0,"k":0,"ix":8}},{"ty":0,"nm":"循环(旋转次数)","mn":"ADBE Turbulent Displace-0009","ix":9,"v":{"a":0,"k":1,"ix":9}},{"ty":0,"nm":"随机植入","mn":"ADBE Turbulent Displace-0010","ix":10,"v":{"a":0,"k":0,"ix":10}},{"ty":6,"nm":"随机植入","mn":"ADBE Turbulent Displace-0011","ix":11,"v":0},{"ty":7,"nm":"固定","mn":"ADBE Turbulent Displace-0012","ix":12,"v":{"a":0,"k":3,"ix":12}},{"ty":7,"nm":"调整图层大小","mn":"ADBE Turbulent Displace-0013","ix":13,"v":{"a":0,"k":0,"ix":13}},{"ty":7,"nm":"消除锯齿(最佳品质)","mn":"ADBE Turbulent Displace-0014","ix":14,"v":{"a":0,"k":1,"ix":14}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.24,3.218],[0,0],[1.931,-2.773],[0,0],[-3.921,0],[0,0]],"o":[[0,0],[-1.931,-2.773],[0,0],[-2.241,3.218],[0,0],[3.921,0]],"v":[[50.04,30.639],[3.983,-35.494],[-3.983,-35.494],[-50.04,30.639],[-46.057,38.267],[46.057,38.267]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[400,353.045],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"body","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.242],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":62.343,"s":[0]},{"t":73,"s":[180]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.315,"y":1},"o":{"x":0.278,"y":0},"t":23,"s":[149.2,261.2,0],"to":[0.017,0,0],"ti":[0,14.867,0]},{"i":{"x":0.236,"y":1},"o":{"x":0.387,"y":0},"t":50,"s":[149.3,261.2,0],"to":[0,-14.867,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":1,"y":0},"t":68,"s":[149.2,172,0],"to":[0,0,0],"ti":[0,-0.544,0]},{"t":85,"s":[150.8,93.2,0]}],"ix":2},"a":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":58,"s":[399,407.75,0],"to":[0,-18.125,0],"ti":[0,1.042,0]},{"i":{"x":0.419,"y":0.351},"o":{"x":0.437,"y":0},"t":68,"s":[399,299,0],"to":[0,-0.868,0],"ti":[0,-29.876,0]},{"i":{"x":0.589,"y":0.593},"o":{"x":0.263,"y":0.179},"t":78,"s":[399,341.901,0],"to":[0,4.731,0],"ti":[0,-14.877,0]},{"i":{"x":0.679,"y":0},"o":{"x":0.323,"y":0.431},"t":83,"s":[399,377.319,0],"to":[0,2.066,0],"ti":[0,-5.724,0]},{"i":{"x":0.657,"y":1},"o":{"x":0.323,"y":0.279},"t":84,"s":[399,382.568,0],"to":[0,5.119,0],"ti":[0,-0.28,0]},{"t":85,"s":[399,401.5,0]}],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.02,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":23,"s":[80,80,100]},{"i":{"x":[0.1,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":40,"s":[80,60,100]},{"i":{"x":[0.079,0.079,0.667],"y":[1,1,1]},"o":{"x":[0.43,0.375,0.333],"y":[0,0,0]},"t":50,"s":[70,80,100]},{"t":85,"s":[80,80,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.191,0],[0,0],[-3.877,-6.058],[0,0],[1.914,-2.992],[0,0],[-7.192,0],[0,0],[3.877,6.058],[0,0],[-1.914,2.99],[0,0]],"o":[[0,0],[-7.192,0],[0,0],[1.914,2.99],[0,0],[-3.877,6.058],[0,0],[7.191,0],[0,0],[-1.914,-2.992],[0,0],[3.877,-6.058]],"v":[[65.885,-106.176],[-65.884,-106.176],[-73.55,-92.169],[-17.701,-4.905],[-17.701,4.907],[-73.55,92.169],[-65.884,106.176],[65.885,106.176],[73.55,92.169],[17.701,4.907],[17.701,-4.905],[73.55,-92.169]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":15,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[400,300],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Hourglass_icon","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[150,150,0],"ix":2},"a":{"a":0,"k":[150,175,0],"ix":1},"s":{"a":0,"k":[54.593,54.593,100],"ix":6}},"ao":0,"w":300,"h":350,"ip":0,"op":88,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Hourglass_icon","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[150,150,0],"ix":2},"a":{"a":0,"k":[150,175,0],"ix":1},"s":{"a":0,"k":[54.593,54.593,100],"ix":6}},"ao":0,"w":300,"h":350,"ip":88,"op":180,"st":73,"bm":0}],"markers":[]}
\ No newline at end of file
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
#ifndef TOASTSWIFTFRAMEWORK_SWIFT_H
#define TOASTSWIFTFRAMEWORK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#include <Foundation/Foundation.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ToastSwiftFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
#ifndef TOASTSWIFTFRAMEWORK_SWIFT_H
#define TOASTSWIFTFRAMEWORK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#include <Foundation/Foundation.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ToastSwiftFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#endif
//
// ToastSwiftFramework.h
// ToastSwiftFramework
//
// Created by DCloud on 2022/11/25.
//
#import <Foundation/Foundation.h>
//! Project version number for ToastSwiftFramework.
FOUNDATION_EXPORT double ToastSwiftFrameworkVersionNumber;
//! Project version string for ToastSwiftFramework.
FOUNDATION_EXPORT const unsigned char ToastSwiftFrameworkVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <ToastSwiftFramework/PublicHeader.h>
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
import ObjectiveC
import Swift
@_exported import ToastSwiftFramework
import UIKit
import _Concurrency
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, title: Swift.String? = nil, image: UIKit.UIImage? = nil, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func makeToast(_ message: Swift.String?, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle = ToastManager.shared.style, completion: ((_ didTap: Swift.Bool) -> Swift.Void)?)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, position: ToastSwiftFramework.ToastPosition = ToastManager.shared.position, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func showToast(_ toast: UIKit.UIView, duration: Foundation.TimeInterval = ToastManager.shared.duration, point: CoreGraphics.CGPoint, completion: ((_ didTap: Swift.Bool) -> Swift.Void)? = nil)
@_Concurrency.MainActor(unsafe) public func hideToast()
@_Concurrency.MainActor(unsafe) public func hideToast(_ toast: UIKit.UIView)
@_Concurrency.MainActor(unsafe) public func hideAllToasts(includeActivity: Swift.Bool = false, clearQueue: Swift.Bool = true)
@_Concurrency.MainActor(unsafe) public func clearToastQueue()
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ position: ToastSwiftFramework.ToastPosition)
@_Concurrency.MainActor(unsafe) public func makeToastActivity(_ point: CoreGraphics.CGPoint)
@_Concurrency.MainActor(unsafe) public func hideToastActivity()
@_Concurrency.MainActor(unsafe) public func toastViewForMessage(_ message: Swift.String?, title: Swift.String?, image: UIKit.UIImage?, style: ToastSwiftFramework.ToastStyle) throws -> UIKit.UIView
}
public struct ToastStyle {
public init()
public var backgroundColor: UIKit.UIColor
public var titleColor: UIKit.UIColor
public var messageColor: UIKit.UIColor
public var maxWidthPercentage: CoreGraphics.CGFloat {
get
set
}
public var maxHeightPercentage: CoreGraphics.CGFloat {
get
set
}
public var horizontalPadding: CoreGraphics.CGFloat
public var verticalPadding: CoreGraphics.CGFloat
public var cornerRadius: CoreGraphics.CGFloat
public var titleFont: UIKit.UIFont
public var messageFont: UIKit.UIFont
public var titleAlignment: UIKit.NSTextAlignment
public var messageAlignment: UIKit.NSTextAlignment
public var titleNumberOfLines: Swift.Int
public var messageNumberOfLines: Swift.Int
public var displayShadow: Swift.Bool
public var shadowColor: UIKit.UIColor
public var shadowOpacity: Swift.Float {
get
set
}
public var shadowRadius: CoreGraphics.CGFloat
public var shadowOffset: CoreGraphics.CGSize
public var imageSize: CoreGraphics.CGSize
public var activitySize: CoreGraphics.CGSize
public var fadeDuration: Swift.Double
public var activityIndicatorColor: UIKit.UIColor
public var activityBackgroundColor: UIKit.UIColor
}
@_hasMissingDesignatedInitializers public class ToastManager {
public static let shared: ToastSwiftFramework.ToastManager
public var style: ToastSwiftFramework.ToastStyle
public var isTapToDismissEnabled: Swift.Bool
public var isQueueEnabled: Swift.Bool
public var duration: Swift.Double
public var position: ToastSwiftFramework.ToastPosition
@objc deinit
}
public enum ToastPosition {
case top
case center
case bottom
public static func == (a: ToastSwiftFramework.ToastPosition, b: ToastSwiftFramework.ToastPosition) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
extension ToastSwiftFramework.ToastPosition : Swift.Equatable {}
extension ToastSwiftFramework.ToastPosition : Swift.Hashable {}
framework module ToastSwiftFramework {
umbrella header "ToastSwiftFramework.h"
export *
module * { export * }
}
module ToastSwiftFramework.Swift {
header "ToastSwiftFramework-Swift.h"
requires objc
}
import { UTSiOS } from "DCloudUTSFoundation"
import { MCToast, MCToastConfig } from "MCToast"
import { UIScreen, UIImage } from 'UIKit'
type ToastResultObject = {
errMsg: string,
}
type ToastOptions = {
title: string,
icon?: string,
image?: string,
mask?: boolean,
duration?: number, //毫秒
position?: string,
success?: (res: ToastResultObject) => void,
fail?: (res: ToastResultObject) => void,
complete?: (res: ToastResultObject) => void
}
export default function showToast(options: ToastOptions) {
if (options.title == null || options.title.length == 0) {
options.fail?.({ errMsg: 'showToast:title is null' })
options.complete?.({ errMsg: 'showToast:title is null' })
} else {
//duration
let duration = 3.0
if (options.duration != null) {
duration = Double(options.duration! / 1000)
}
//mask
let mask = MCToast.MCToastRespond.default
if (options.mask == true) {
mask = MCToast.MCToastRespond.noRespond
}
//position
if (options.position != null) {
const interval = UIScreen.main.bounds.height * 0.25
let centerPoint = 0.0 //正下 负上
if (options.position == "top") {
centerPoint = 0 - interval
} else if (options.position == "center") {
centerPoint = 0.0
} else {
centerPoint = interval
}
MCToast.mc_text(options.title, offset = centerPoint, duration = duration, respond = mask)
} else {
MCToastConfig.shared.icon.successImage = new UIImage(named = "uni_uts_toast_success.png")
MCToastConfig.shared.icon.failureImage = new UIImage(named = "uni_uts_toast_error.png")
if (options.image != null) {
const imagePath = UTSiOS.getResourcePath(options.image!)
const image = new UIImage(contentsOfFile = imagePath)
MCToast.showStatus(MCToast.MCToastType.success, text = options.title, iconImage = image, duration = duration, respond = mask)
} else if (options.icon != null) {
if (options.icon == "success") {
MCToast.mc_success(options.title, duration = duration, respond = mask)
} else if (options.icon == "error") {
MCToast.mc_failure(options.title, duration = duration, respond = mask)
} else if (options.icon == "loading") {
MCToast.mc_loading(text = options.title, duration = duration, respond = mask)
} else {
MCToast.mc_text(options.title, offset = 0, duration = duration, respond = mask)
}
} else {
MCToast.mc_text(options.title, offset = 0, duration = duration, respond = mask)
}
}
options.success?.({ errMsg: 'showToast::ok' })
options.complete?.({ errMsg: 'showToast::ok' })
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册