Web Analytics

PartitionKit

⭐ 242 stars Korean by kieranb662

Partition Kit

partition kit logo

최근 10월 인기 Android 및 iOS 라이브러리 TOP 10앱을 향상시키는 5가지 iOS 라이브러리에 소개되었습니다!

grid

PartitionKit이란?

PartitionKit이 아닌 것은?

요구 사항

PartitionKit은 기본적으로 SwiftUI 프레임워크가 작동 중이어야 하므로, 다음 플랫폼만 지원합니다:

프로젝트에 추가하는 방법

2분 미만 튜토리얼 비디오

튜토리얼 비디오: PartitionKit 사용법

사용 방법

수직 분할

`` Swift VPart(top: { MyTopView() }, bottom: { MyBottomView() }) { MyHandle() }
### 수평 분할

  • 왼쪽에 표시할 뷰, 오른쪽에 표시할 뷰, 그리고 선택적으로 분할 크기를 조절할 때 사용할 핸들을 결정합니다.
  • 이렇게 하세요
Swift HPart(left: { MyLeftView() }, right: { MyRightView() }) { MyHandle() }

GridPartition

  • 각 코너에 들어갈 뷰를 결정합니다: TopLeft, TopRight, BottomLeft, BottomRight 그리고 선택적으로 사용자가 뷰를 드래그하고 크기를 조정할 수 있는 Handle을 설정합니다.
  • 이렇게 합니다
Swift GridPart(topLeft: { MyTopLeftView() }, topRight: { MyTopRightView() }, bottomLeft: { MyBottomLeftView() }, bottomRight: { MyBottomRightView() }) { MyHandle() }
## 예제

복사하여 붙여넣기 하세요. 뷰가 어떻게 보여야 하는지에 대해 명명된 그림을 추가했습니다. 저는 다크 모드를 사용 중이므로 라이트 모드 색상은 다르게 보일 수 있습니다.

| HPart | VPart | GridPart | NestGrids | Mixed | |-------------------------|-------------------------|-------------------------------|----------------------------------------|-----------------------------| | HPart | VPart | GridPart | Nested Grid | Mixed |

Swift import SwiftUI import PartitionKit

struct ContentView: View { var vExample: some View { VPart(top: { RoundedRectangle(cornerRadius: 25).foregroundColor(.purple) }) { Circle().foregroundColor(.yellow) } } var hExample: some View { HPart(left: { RoundedRectangle(cornerRadius: 10).foregroundColor(.blue) }) { Circle().foregroundColor(.orange) } } var nestedExample: some View { VPart(top: { hExample }) { vExample } } var gridExample: some View { GridPart(topLeft: { RoundedRectangle(cornerRadius: 25).foregroundColor(.purple) }, topRight: { Circle().foregroundColor(.yellow) }, bottomLeft: { Circle().foregroundColor(.green) }) { RoundedRectangle(cornerRadius: 25).foregroundColor(.blue) } } var nestedGridsExample: some View { GridPart(topLeft: { gridExample }, topRight: { gridExample }, bottomLeft: { gridExample }) { gridExample } } var body: some View { nestedExample } }

struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } `

할 일

--- Tranlated By Open Ai Tx | Last indexed: 2026-05-11 ---