Replies: 1 comment 2 replies
-
https://blog.naver.com/sqlpro/221045533395 해당 블로그 보시면 디버그로 뷰 계층을 구조를 봐야 합니다. 그리고 나서 작성하신 로티 배경을 가장 아래로 놓아져 있는지 확인하시고 로티 배경을 가장 아래로 놓으면 되지 않을 가 싶네요 우선 제 코드를 예시로 드릴게요 저는 이미지를 배경으로 사용했습니다. ZStack(alignment: .topLeading){
Image("VendingMachine") // 뒷 배경으로 사용한 이미지
.resizable()
LazyVGrid(columns: columns, spacing: 20) {
ForEach(missions.prefix(16)) { item in
Button(action: {
selectedMission = item
showModal = true
}) {
// 버튼 라벨에 사용한 이미지
}
.contextMenu{
Button(role: .destructive) {
deleteMission(item)
} label: {
Label("삭제", systemImage: "trash")
}
}
}
}.padding(.trailing, 60)
.padding(.top, 16)
} 도음이 되시길 :) 그래도 안되면 gus 찾아오세요 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
lottie를 배경으로 넣어보려고 하는데 애니메이션 뷰가 버튼 두개를 가려버리네요ㅠㅠ
Zstack으로 넣고
전부 적용해봤는데도 해결이 안됩니당..
혹시 관련해서 알고 계시는 분 댓글 부탁드립니다🙇♂️
Beta Was this translation helpful? Give feedback.
All reactions