Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
Hello UTS
提交
caa6a2b1
H
Hello UTS
项目概览
DCloud
/
Hello UTS
通知
1669
Star
30
Fork
9
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
2
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
Hello UTS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
2
Issue
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
caa6a2b1
编写于
11月 25, 2022
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of gitcode.net:dcloud/hello-uts into dev
上级
c8431303
a972eeef
变更
19
展开全部
隐藏空白更改
内联
并排
Showing
19 changed file
with
8074 addition
and
9 deletion
+8074
-9
uni_modules/uts-alert/utssdk/app-ios/index.uts
uni_modules/uts-alert/utssdk/app-ios/index.uts
+4
-4
uni_modules/uts-tencentgeolocation/utssdk/app-ios/info.plist
uni_modules/uts-tencentgeolocation/utssdk/app-ios/info.plist
+4
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Headers/ToastSwiftFramework-Swift.h
...ftFramework.framework/Headers/ToastSwiftFramework-Swift.h
+1
-1
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Info.plist
...p-ios/Frameworks/ToastSwiftFramework.framework/Info.plist
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
...ework.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
...module/Project/x86_64-apple-ios-simulator.swiftsourceinfo
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.abi.json
.../ToastSwiftFramework.swiftmodule/arm64-apple-ios.abi.json
+3863
-1
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
...mework.swiftmodule/arm64-apple-ios.private.swiftinterface
+80
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftdoc
.../ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftdoc
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftinterface
...SwiftFramework.swiftmodule/arm64-apple-ios.swiftinterface
+80
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftmodule
...astSwiftFramework.swiftmodule/arm64-apple-ios.swiftmodule
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
...Framework.swiftmodule/x86_64-apple-ios-simulator.abi.json
+3871
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
...tmodule/x86_64-apple-ios-simulator.private.swiftinterface
+80
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
...Framework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
...ork.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
+80
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
...mework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
+0
-0
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/ToastSwiftFramework
...meworks/ToastSwiftFramework.framework/ToastSwiftFramework
+0
-0
uni_modules/uts-toast/utssdk/app-ios/config.json
uni_modules/uts-toast/utssdk/app-ios/config.json
+7
-0
uni_modules/uts-toast/utssdk/app-ios/index.uts
uni_modules/uts-toast/utssdk/app-ios/index.uts
+4
-3
未找到文件。
uni_modules/uts-alert/utssdk/app-ios/index.uts
浏览文件 @
caa6a2b1
import { UIAlertController , UIAlertAction , UITextField } from "UIKit"
import {
DCUTS } from "DC
UTSFoundation"
import {
UTSiOS } from "DCloud
UTSFoundation"
import { DispatchQueue } from 'Dispatch';
export function showAlert(title: string|null, message: string|null, result: (index: Number) => void) {
export function showAlert(title: string|null, message: string|null, result: (index: Number) => void) {
// uts方法默认会在子线程中执行,涉及 UI 操作必须在主线程中运行,通过 DispatchQueue.main.async 方法可将代码在主线程中运行
DispatchQueue.main.async(execute=():void => {
...
...
@@ -26,7 +26,7 @@ export function showAlert(title: string|null, message: string|null, result: (ind
alert.addAction(cancelAction)
// 打开 alert 弹窗
DCUT
S.getCurrentViewController().present(alert, animated= true)
UTSiO
S.getCurrentViewController().present(alert, animated= true)
})
}
...
...
@@ -58,6 +58,6 @@ export function showPrompt(title: string|null, message: string|null,placeholder:
alert.addAction(okAction)
// 打开 alert 弹窗
DCUT
S.getCurrentViewController().present(alert, animated= true)
UTSiO
S.getCurrentViewController().present(alert, animated= true)
})
}
\ No newline at end of file
uni_modules/uts-tencentgeolocation/utssdk/app-ios/info.plist
浏览文件 @
caa6a2b1
...
...
@@ -4,5 +4,9 @@
<dict>
<key>
TencentLBSAPIKey
</key>
<string>
您申请的Key
</string>
<key>
UIBackgroundModes
</key>
<array>
<string>
location
</string>
</array>
</dict>
</plist>
\ No newline at end of file
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Headers/ToastSwiftFramework-Swift.h
浏览文件 @
caa6a2b1
#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
...
...
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Info.plist
浏览文件 @
caa6a2b1
无法预览此类型文件
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
浏览文件 @
caa6a2b1
无法预览此类型文件
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
0 → 100644
浏览文件 @
caa6a2b1
文件已添加
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.abi.json
浏览文件 @
caa6a2b1
此差异已折叠。
点击以展开。
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
0 → 100644
浏览文件 @
caa6a2b1
// 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 {}
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftdoc
浏览文件 @
caa6a2b1
无法预览此类型文件
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftinterface
0 → 100644
浏览文件 @
caa6a2b1
// 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 {}
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/arm64-apple-ios.swiftmodule
浏览文件 @
caa6a2b1
无法预览此类型文件
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
0 → 100644
浏览文件 @
caa6a2b1
此差异已折叠。
点击以展开。
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
0 → 100644
浏览文件 @
caa6a2b1
// 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 {}
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
0 → 100644
浏览文件 @
caa6a2b1
文件已添加
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
0 → 100644
浏览文件 @
caa6a2b1
// 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 {}
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/Modules/ToastSwiftFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
0 → 100644
浏览文件 @
caa6a2b1
文件已添加
uni_modules/uts-toast/utssdk/app-ios/Frameworks/ToastSwiftFramework.framework/ToastSwiftFramework
浏览文件 @
caa6a2b1
无法预览此类型文件
uni_modules/uts-toast/utssdk/app-ios/config.json
0 → 100644
浏览文件 @
caa6a2b1
{
"deploymentTarget"
:
"9.0"
,
"validArchitectures"
:
[
"arm64"
,
"x86_64"
]
}
uni_modules/uts-toast/utssdk/app-ios/index.uts
浏览文件 @
caa6a2b1
import {
DCUTS } from "DC
UTSFoundation"
import {
UTSiOS } from "DCloud
UTSFoundation"
import "ToastSwiftFramework"
import { DispatchQueue } from 'Dispatch';
export function showToast():boolean{
// uts方法默认会在子线程中执行,涉及 UI 操作必须在主线程中运行,通过 DispatchQueue.main.async 方法可将代码在主线程中运行
DispatchQueue.main.async(execute=():void => {
DCUTS.getCurrentViewController().view.makeToast("这是一条提示信息")
// 在当前显示的控制器view上显示 toast 弹窗
UTSiOS.getCurrentViewController().view.makeToast("这是一条提示信息")
})
return true
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录