我在底部工作表视图中有一个日期选择器。
当底部工作表打开时,我第一次选择一天时,日期选择器高度会发生变化。PS:如果我使用 .frame 为选择器设置自定义高度,则日期选择器就会在框架内变得平滑。
var body: some View {
VStack {
HStack {
Text("date_picker_title".ld())
.font(.custom(Font.rRegular, size: 12))
.padding()
Spacer()
}
HStack {
Text(date.prettyDate)
.font(.custom(Font.rMedium, size: 28))
Spacer()
Text(date.prettyHour)
.font(.custom(Font.rMedium, size: 28))
}.padding(.horizontal)
Seperator(cellHeight: 0).frame(height: 2)
Spacer().frame(height: 6)
DatePicker("", selection: $date, in: Date()..., displayedComponents: .date)
.datePickerStyle(.graphical)
.labelsHidden()
.tint(Color.appPurple)
.padding(.horizontal)
.padding(.bottom, -10)
Seperator(cellHeight: 0).frame(height: 2)
HStack {
Text("date_picker_enter_time".ld())
.font(.custom(Font.rRegular, size: 12))
DatePicker("", selection: $date, displayedComponents: .hourAndMinute)
.labelsHidden()
.tint(Color.appPurple)
Spacer()
}.padding()
HStack {
Button {
completion(nil)
} label: {
Text("date_picker_cancel".ld())
.font(.custom(Font.rRegular, size: 14)) …Run Code Online (Sandbox Code Playgroud) 将 Crashlytics 添加到我正在处理的现有项目 (Objective-C) 使我更新了一些 Google pod,直到那一刻一切正常,在我设法集成 Crashlytics 之后,我开始收到此错误:
架构 arm64 的未定义符号:“ OBJC_CLASS $_UIPointerShape”,引用自:GoogleMaps 中的 objc-class-ref “ OBJC_CLASS $_UIPointerStyle”,引用自:GoogleMaps 中的 objc-class-ref ld:找不到架构 arm64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
这是我的 podfile:
这是更改之前的情况: