{"id":27173737,"url":"https://github.com/eunchan2815/flexiblekit","last_synced_at":"2026-02-27T03:32:48.287Z","repository":{"id":286289384,"uuid":"960987241","full_name":"eunchan2815/FlexibleKit","owner":"eunchan2815","description":"Lightweight, reusable SwiftUI components for flexible layouts and adaptive UI.","archived":false,"fork":false,"pushed_at":"2025-05-13T06:12:23.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T06:35:19.480Z","etag":null,"topics":["alginment","autopadding","backbutton","cornershape","flexible","ios","stack","swift","swiftui","trigger","webview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eunchan2815.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-05T14:08:07.000Z","updated_at":"2025-05-13T06:12:14.000Z","dependencies_parsed_at":"2025-05-13T06:38:11.510Z","dependency_job_id":null,"html_url":"https://github.com/eunchan2815/FlexibleKit","commit_stats":null,"previous_names":["eunchan2815/flexiblekit"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eunchan2815/FlexibleKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchan2815%2FFlexibleKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchan2815%2FFlexibleKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchan2815%2FFlexibleKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchan2815%2FFlexibleKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eunchan2815","download_url":"https://codeload.github.com/eunchan2815/FlexibleKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchan2815%2FFlexibleKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262766324,"owners_count":23361083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alginment","autopadding","backbutton","cornershape","flexible","ios","stack","swift","swiftui","trigger","webview"],"created_at":"2025-04-09T11:23:13.470Z","updated_at":"2026-02-27T03:32:48.233Z","avatar_url":"https://github.com/eunchan2815.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"leading\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-5.5%205.6%205.7%205.8-green.svg\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Platforms-iOS-lightgrey.svg\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift_Package_Manager-compatible-orange.svg\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" /\u003e\n\u003c/p\u003e\n\n\u003e SwiftUI is great. But layout isn't.\n\n**FlexibleKit** is a SwiftUI utility library that offers flexible layouts, custom back buttons, adaptive corners, triggers, and lightweight webviews. Easily drop into any SwiftUI project to speed up development.\n\n---\n\n## 🖼 Preview\n\n\u003cimg src=\"https://github.com/user-attachments/assets/a3e9fcdf-fdd3-4160-8c44-75027e008186\" width=\"100%\" align=\"leading\" /\u003e\n\n---\n\n## 📦 Installation\n\n### Swift Package Manager\n\n**Xcode:**\n\n\nPaste:\n\n\n**Or use `Package.swift`:**\n\n```swift\n.package(url: \"https://github.com/YourUsername/FlexibleKit.git\", .upToNextMajor(from: \"1.0.1\"))\n```\n\n## ✅ Features\n\n### 📐 Alignment\n\n간단한 정렬 기능을 제공합니다. 좌측, 우측, 중앙 정렬을 HStack 기반으로 구현되어 있습니다.\n\n```swift\nText(\"왼쪽 정렬\")\n    .alignLeft()\n\nText(\"오른쪽 정렬\")\n    .alignRight()\n\nText(\"중앙 정렬\")\n    .alignCenter()\n```\n\n### 🔙 Back Button\n\n유연한 SwiftUI BackButton을 제공합니다. 색상과 설명, 액션을 쉽게 설정할 수 있습니다.\n또한 swipe를 통한 뒤로가기가 가능합니다.\n\n```swift\nstruct TestView: View {\n    @Environment(\\.dismiss) var dismiss\n    var body: some View {\n        NavigationStack {\n            Text(\"hello\")\n        }\n        .backButton(description: \"뒤로가기\", color: .black) {\n            dismiss()\n        }\n    }\n}\n```\n\n### 🎯 Rounded Corners\n\n특정 코너만 라운딩할 수 있도록 도와주는 유틸입니다. .topLeft, .bottomRight 등 선택적으로 적용 가능합니다.\n\n```swift\nstruct TestView: View {\n    var body: some View {\n        VStack {\n            Text(\"hello\")\n                .frame(width: 300, height: 300)\n                .background(.red)\n                .roundedCorners(30, corners: [.topLeft, .bottomLeft, .bottomRight])\n        }\n    }\n}\n```\n\n### 📦 Flexible Stacks\n\nFlexibleHStack, FlexibleVStack을 통해 패딩과 정렬이 포함된 스택을 쉽게 만들 수 있습니다.\n```swift\nFlexibleHStack(spacing: 12, paddingEdges: [.leading, .trailing]) {\n    Text(\"아이템 1\")\n    Text(\"아이템 2\")\n}\n\nFlexibleVStack(alignment: .center, paddingLength: 8) {\n    Text(\"위\")\n    Text(\"아래\")\n}\n\n```\n\n### ⏱ Trigger Delay\n\n일정 시간 후 상태를 바꾸는 트리거 유틸입니다. Binding\u003cBool\u003e을 일정 시간 이후 true로 변경합니다.\n```swift\nstruct LaunchView: View {\n    @State private var isActive = false\n\n    var body: some View {\n        Group {\n            if isActive {\n                TestView2()\n            } else {\n                VStack {\n                    Text(\"🚀 FlexibleKit\")\n                        .font(.largeTitle.bold())\n                    Text(\"Launching...\")\n                        .foregroundColor(.gray)\n                }\n                .frame(maxWidth: .infinity, maxHeight: .infinity)\n                .background(Color.white)\n                .delayedTrigger(to: $isActive, after: 2)\n            }\n        }\n    }\n}\n```\n\n### 🌐 WebView\n\nSwiftUI에서 간단하게 WKWebView를 띄우고 싶을 때 사용합니다. URL만 넘기면 됩니다.\n```swift\nFlexibleWebView(url: \"https://apple.com\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feunchan2815%2Fflexiblekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feunchan2815%2Fflexiblekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feunchan2815%2Fflexiblekit/lists"}