본문 바로가기

seong_hye, the developer

검색하기
seong_hye, the developer
프로필사진 seong_hye

  • My P_Life (119) N
    • JAVA (3)
    • 알고리즘 코드 (3)
    • IOS (100) N
      • SwiftUI (25)
      • UIKit (13)
      • Error (7)
    • Infomation (6)
      • Firebase (1)
      • Git (1)
    • Daily Life (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Tags
  • SWIFTUI
  • Refresh
  • 화면전환
  • IOS
  • CoreImage
  • struct
  • ScrollView
  • mvvm
  • class
  • SWIFT
  • uikit
  • Observer
  • error
  • 글또
  • Git
  • calendar
  • escaping
  • PushNotification
  • apns
  • singleton
  • viewlifecycle
  • segue
  • array
  • Switch
  • self
  • NotificationCenter
  • list
  • 고차함수
  • http
  • Animation
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록path (1)

seong_hye, the developer

SwiftUI) Path에 대해 알아보기

📘 Path벡터 그래픽 기반 2D 도형을 정의하는 구조체직접 좌표를 찍고 연결해서 원하는 도형을 만들 수 있음🔹 기본 정의struct Path { var elements: [Path.Element] // 선, 곡선, 이동 등으로 이루어진 요소}🔹 명령어 🔍 시작 / 닫기함수설명 move(to: CGPoint) 경로의 시작점을 지정 (펜을 들어서 새 좌표로 이동) closeSubpath() 현재 경로를 닫음 (마지막 점 -> 시작점 자동 연결) 🔍 직선함수설명 addLine(to: CGPoint) 현재 위치에서 지정한 점까지 직선 추가addLines(_ points: [CGPoint]) 현재 위치에서 여러 점들을 차례로 직선으로 연결 addRect(CGRect) 사각형 추가 addRects([CG..

IOS/SwiftUI 2025. 7. 21.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바