79535443

Date: 2025-03-26 05:15:14
Score: 2
Natty:
Report link

So i have been having the same problem

 if isCommentViewVisible {
                                VStack(spacing: 0) {
                                    Spacer()
                                    HStack(spacing: 8) {
                                        if owner.profilePicName.isNotEmpty{
                                            let initials = viewModel.getContributorInitials(firstName: owner.firstName, lastName: owner.lastName)
                                            KFImage.url(JCFoundationDataModel().getURLFromQueryItems(URL(string: owner.profilePicName ?? ""), name: "size", value: "l"))
                                                .placeholder({ JDSIcon2(ic: "ic_image", appearance: .Neutral, emphasis: .Subtle, size: .L)
                                                })
                                                .requestModifier(JCFoundationDataModel.requestModifier ?? CustomRequestModifier(headers: [:]))
                                                .onSuccess { result in
                                                }
                                                .onFailure { error in
                                                    JDSIcon2(ic: "ic_image", appearance: .Neutral, emphasis: .Subtle, size: .L)
                                                }
                                                .resizable()
                                                .onTapGesture {}
                                                .frame(width: 28, height: 28)
                                                .cornerRadius(14)
                                                .padding(.leading, 16)
                                                .accessibilityIdentifier(initials ?? "")
                                        } else {
                                            JDSIconButton2(icon: "ic_profile", appearance: .Primary, emphasis: .Medium, size: .S)
                                                .padding(.leading, 16)
                                                .padding(.vertical, 12)
                                                .accessibilityIdentifier("CommentIcon")
                                        }
                                        JDSText2(maxLines: 1, text: viewModel.getValue(sectionData["PlaceholderText"] as? String ?? ""), appearance: .Primary, emphasis: .High, fontWeight: .Medium, size: .Xs, textAlign: .Left, variant: .Body)
                                            .accessibilityIdentifier(viewModel.getValue(sectionData["PlaceholderText"] as? String ?? ""))
                                            .padding(.vertical, 12)
                                            .autocorrectionDisabled(true)
                                        Spacer()
                                    }
                                    .contentShape(RoundedRectangle(cornerRadius: 0))
                                    .onTapGesture {
                                        onCommentTapped?()
                                    }
                                    .frame(width: UIScreen.main.bounds.width - 48, height: 54)
                                    .background(Color(hex: "#FFFFFF"))
                                    .cornerRadius(50)
                                    .shadow(color: .black.opacity(0.16), radius: 8, x: 0, y: 4)
                                    .overlay(
                                        RoundedRectangle(cornerRadius: 50)
                                            .inset(by: 0.5)
                                            .stroke(Color(red: 0.93, green: 0.93, blue: 0.93).opacity(0.5), lineWidth: 1)
                                    )
                                    .accessibilityIdentifier("commentBox")
                                    .padding(.horizontal, 16)
                                    .padding(.bottom, 24)
                                }
                            } 
This is inside a ZStack and I tried adding .ignoresSafeArea(.keyboard) but it still didnt work
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (1):
Posted by: Rishikesh Kimmatkar