问题描述
我正在努力用 PHP 增加 TCPPDF 中水平线的宽度,有人能帮我吗? 实现这一点。 我正在尝试使用以下代码。
import SwiftUI
import AuthenticationServices
struct SignInWithAppleButtonView: View{
var body: some View{
DynamicAppleSignIn(
onRequest: { request in
//Your Code
},onCompletion: { result in
switch result {
case .success (let authResults):
print("Authorization successful.")
// Your Code
case .failure (let error):
print("Authorization Failed: \(error)")
// Your Code
}
}
)
}
}
struct DynamicAppleSignIn : View {
@Environment(\.colorScheme) var colorScheme
var onRequest: (ASAuthorizationAppleIDRequest) -> Void
var onCompletion: ((Result<ASAuthorization,Error>) -> Void)
var body: some View {
switch colorScheme {
case .dark:
SignInWithAppleButton(
onRequest: onRequest,onCompletion: onCompletion
).signInWithAppleButtonStyle(.white)
.frame(minWidth: 140,maxWidth: 240,minHeight: 30,maxHeight: 60,alignment: .center)
case .light:
SignInWithAppleButton(
onRequest: onRequest,onCompletion: onCompletion
).signInWithAppleButtonStyle(.black)
.frame(minWidth: 140,alignment: .center)
@unkNown default:
fatalError("Not Yet Implemented")
}
}
}
结果如下。 getting this result 我想要这样的结果 desired result
解决方法
我在 https://tcpdf.org/examples/example_012/ 上得到了我的问题的答案 并且工作得很好。
谢谢