
더 나아진 SwiftUI의 ScrollView에 대해 알아보기 https://developer.apple.com/videos/play/wwdc2023/10159/?time=17 스크롤뷰 더 편하게 쓸 수 있다고 해서 정리해보고자 합니다!! 대강 봐도 유용한게 되게 많으니 같이 보고 참고하시면 좋을 것 같습니다!! safeAreaPadding 다음과 같은 화면과 코드에서 콘텐츠 여백을 주려고 .padding(.horizontal, hMargin) 코드를 추가하면 오른쪽처럼 스크롤되는 부분도 짤려보일 것임 import SwiftUI struct BeyondScrollView: View { let hSpacing: CGFloat = 16 let hMargin: CGFloat = 16 let palettes =..

오늘은 드디어 3번째 사용자 입력을 다루는 튜토리얼을 해볼 예정입니다. 랜드마크 앱에서 유저가 즐겨찾기 장소를 표시할 수 있고 좋아하는 즐겨찾기만 모아 볼 수 있습니다. 이 기능을 만들기 위해서, 목록에 사용자가 즐겨찾기에만 볼 수 있는 스위치를 추가한 다음 사용자가 랜드마크를 즐겨찾기로 표시하기 위해 탭하는 별 모양의 버튼을 추가합니다. 즉 오늘 해 볼 내용은 1. 즐겨찾기 보기 on/off용 스위치 만들기 2. 각 랜드마크목록에 즐겨찾기를 누를 수 있는 별 모양의 버튼 추가해주기 입니다!! 필요한 리소스는 아래에 들어가셔서 다운 받으시면 됩니다. https://developer.apple.com/tutorials/swiftui/handling-user-input Handling User Input |..

https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation Building Lists and Navigation | Apple Developer Documentation With the basic landmark detail view set up, you need to provide a way for users to see the full list of landmarks, and to view the details about each location. developer.apple.com 튜토리얼 두 번째, 리스트를 만들고 네비게이션을 지정하는 것을 해볼 것 같습니다. 시작하기 전에 이미지 파일은 위 링크 들어가셔서 Project..

배포한 개인앱에 위젯을 넣기 위해서 공부하려고 했으나 미루고 미루다가 이제는 SwiftUI를 시작해보려고 합니다!! 일단 경험해봐야 이론도 쉽게 익힐 수 있다고 생각하기 때문에 공식홈페이지에 있는 튜토리얼을 먼저 진행해보겠습니다! https://developer.apple.com/tutorials/swiftui/creating-and-combining-views Creating and Combining Views | Apple Developer Documentation This tutorial guides you through building Landmarks — an app for discovering and sharing the places you love. You’ll start by buildin..