提交 a972eeef 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

更新 iOS toast 示例

上级 3023e472
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7 effective-4.2 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
// Generated by Apple Swift version 5.7.1 effective-4.2 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
#ifndef TOASTSWIFTFRAMEWORK_SWIFT_H
#define TOASTSWIFTFRAMEWORK_SWIFT_H
#pragma clang diagnostic push
......
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.7.1 effective-4.2 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
// swift-module-flags: -target arm64-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 4.2 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
// swift-module-flags-ignorable: -enable-bare-slash-regex
import ObjectiveC
import Swift
import UIKit
import _Concurrency
import _StringProcessing
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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.CGFloat {
get
set
}
public var maxHeightPercentage: CoreFoundation.CGFloat {
get
set
}
public var horizontalPadding: CoreFoundation.CGFloat
public var verticalPadding: CoreFoundation.CGFloat
public var cornerRadius: CoreFoundation.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: CoreFoundation.CGFloat
public var shadowOffset: CoreFoundation.CGSize
public var imageSize: CoreFoundation.CGSize
public var activitySize: CoreFoundation.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.7.1 effective-4.2 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
// swift-module-flags: -target arm64-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 4.2 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
// swift-module-flags-ignorable: -enable-bare-slash-regex
import ObjectiveC
import Swift
import UIKit
import _Concurrency
import _StringProcessing
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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.CGFloat {
get
set
}
public var maxHeightPercentage: CoreFoundation.CGFloat {
get
set
}
public var horizontalPadding: CoreFoundation.CGFloat
public var verticalPadding: CoreFoundation.CGFloat
public var cornerRadius: CoreFoundation.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: CoreFoundation.CGFloat
public var shadowOffset: CoreFoundation.CGSize
public var imageSize: CoreFoundation.CGSize
public var activitySize: CoreFoundation.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.7.1 effective-4.2 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
// swift-module-flags: -target x86_64-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 4.2 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
// swift-module-flags-ignorable: -enable-bare-slash-regex
import ObjectiveC
import Swift
import UIKit
import _Concurrency
import _StringProcessing
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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.CGFloat {
get
set
}
public var maxHeightPercentage: CoreFoundation.CGFloat {
get
set
}
public var horizontalPadding: CoreFoundation.CGFloat
public var verticalPadding: CoreFoundation.CGFloat
public var cornerRadius: CoreFoundation.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: CoreFoundation.CGFloat
public var shadowOffset: CoreFoundation.CGSize
public var imageSize: CoreFoundation.CGSize
public var activitySize: CoreFoundation.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.7.1 effective-4.2 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
// swift-module-flags: -target x86_64-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 4.2 -enforce-exclusivity=checked -O -module-name ToastSwiftFramework
// swift-module-flags-ignorable: -enable-bare-slash-regex
import ObjectiveC
import Swift
import UIKit
import _Concurrency
import _StringProcessing
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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.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: CoreFoundation.CGFloat {
get
set
}
public var maxHeightPercentage: CoreFoundation.CGFloat {
get
set
}
public var horizontalPadding: CoreFoundation.CGFloat
public var verticalPadding: CoreFoundation.CGFloat
public var cornerRadius: CoreFoundation.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: CoreFoundation.CGFloat
public var shadowOffset: CoreFoundation.CGSize
public var imageSize: CoreFoundation.CGSize
public var activitySize: CoreFoundation.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 {}
{
"deploymentTarget": "9.0",
"validArchitectures": [
"arm64",
"x86_64"
]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册