Codync
무료 오픈소스 1:1 대안, Grok Bot과 Muse 대신
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Why · Installation · Quick start · API · Catalog app · Animations · Concurrency and safety · Requirements · Documentation · Contributing · Project health · License
Xcode: File → Add Package Dependencies, then enter
https://github.com/ANSCoder/Swift-Extension
Package.swift:
dependencies: [
.package(url: "https://github.com/ANSCoder/Swift-Extension", from: "2.0.0")
],
targets: [
.target(name: "YourApp", dependencies: ["SwiftExtension"])
]
Then:
import SwiftExtension
Every file in Sources/SwiftExtension works on its own. Copy only what you need, and add public if you share it across modules. ExString uses DateFormatter.posix from ExDate, and the SwiftUI view helpers use FirstAppearModifier and SizePreferenceKey.
import SwiftExtension
import SwiftUI
struct ProfileView: View {
@State private var email = ""
@State private var errorMessage: String?
@State private var isSaving = false
var body: some View {
Form {
TextField("Email", text: $email)
Label(email.isEmail ? "Valid" : "Invalid", systemImage: email.isEmail ? "checkmark.circle" : "xmark.circle")
.hidden(if: email.isEmpty)
}
.loadingOverlay(isSaving)
.errorAlert(message: $errorMessage)
.dismissKeyboardOnTap()
}
}
Foundation helpers build on every platform in the package. UIKit and SwiftUI helpers are compiled where UIKit exists.
| Type | Helpers |
|---|---|
String | isEmail, isMobile, isAlphanumeric, isValidURL, initials, trim, trimLine, removeSpace, firstLetterCapitalized, truncated(to:), changeDate(_:) |
Date | toString(), toTimeString(), isToday, isSameDay(as:), startOfDay, adding(_:value:) |
Array, Collection, Sequence | atIndex(_:), chunked(into:), isNotEmpty, removingDuplicates(on:) |
Comparable | clamped(to:) |
Double | rounded(toPlaces:) |
Optional<String> | orEmpty |
Encodable | asDictionary() |
URL | queryItems, appendingQueryItems(_:) |
Bundle | appVersion, buildNumber |
| Helper | What it does |
|---|---|
if(_:transform:), ifLet(_:transform:) | Apply a modifier only when a condition holds or a value exists |
hidden(if:) | Hide a view and keep its layout space |
onFirstAppear(perform:) | Run once, ignoring later appearances |
onSizeChange(perform:) | Report the rendered size |
loadingOverlay(_:) | Dim, spinner, block taps |
errorAlert(_:message:) | OK alert bound to an optional message |
dismissKeyboardOnTap() | Resign first responder on tap. Unavailable in app extensions |
cardStyle(cornerRadius:), roundedBorder(_:width:cornerRadius:) | Card background and stroke |
shake(trigger:) | Wobble on change. Skipped when Reduce Motion is on |
shimmer(_:), redactedShimmer(_:) | Loading skeleton with a moving highlight |
snapshot(scale:) | Render a view into a UIImage |
Color(hex:) | #RRGGBB, RRGGBB or RRGGBBAA |
| Type | Helpers |
|---|---|
UIColor | init(hex:), hexString |
UIView | addSubviews(_:), pinToEdges(of:insets:) (right-to-left aware) |
UILabel | setLeft(), setRight(), underline(), attribute(_:effect:) |
UIViewController | showAlertView(title:message:), showAlertWithMessage(_:duration:with:) |
UIScrollView | scrollToView(view:animated:), scrollToTop(animated:), scrollToBottom(animated:) |
UINavigationBar | setTitleFont(_:color:), makeTransparent(withTint:), setColors(background:text:) |
UITextField | setBorderAndCorner(color:), setLeftPaddingPoints(_:), setRightPaddingPoints(_:), isValidEmail, isPhoneNumber |
UIImage | toBase64String, resized(by:), halfSizeImage, quarterhalfSizeImage |
UIImageView | setRounded(), setCornerRadius() |
NSMutableAttributedString | bold(_:size:), normal(_:) |
Open Example/Swift-Extension.xcodeproj and run it. It uses the package from the repository root, so it always shows the real code.
| Category | Examples |
|---|---|
| Scroll (6) | scroll to top/bottom, scroll to view, paging, scroll position, pinned headers, scroll transition |
| Keyboard (4) | dismiss on tap, scroll dismisses, focus chain, keyboard toolbar |
| Stacks & Layout (5) | alignment, Grid, adaptive grid, ViewThatFits, custom FlowLayout |
| Text (4) | Markdown & AttributedString, Dynamic Type scaling, numeric transition, date styles |
| Animations (20) | spring, implicit, transitions, matched geometry, PhaseAnimator, KeyframeAnimator, symbol effects, shake, drag spring, TimelineView, shimmer, confetti, radar pulse, draw-on checkmark, liquid wave, progress ring, card stack, aurora gradient, sliding segments, 3D tilt |
| Charts (6) | interactive bars, line & area, donut with selection, stacked bars (absolute / 100%), scrollable time series, KPI cards with sparklines |
| View Modifiers (6) | card style, conditional modifiers, loading overlay, error alert, size & first appear, view to image |
| Foundation (5) | validation, date helpers, string helpers, number helpers, URL & Bundle helpers |
Recorded from the catalog app. Every one is plain SwiftUI. The code is on its example screen.
The package builds in Swift 6 language mode with complete strict concurrency checking, and CI treats warnings as errors.
@unchecked Sendable, nonisolated(unsafe), @preconcurrency, locks or semaphores.Date.toString() and toTimeString() use value-type FormatStyles, so there is no shared DateFormatter.UIViewController.showAlertWithMessage waits with a main-actor Task, not a dispatch timer.try! in library code. Inputs at boundaries return nil, false or an empty value instead of crashing.#if canImport(UIKit), so swift build works on macOS.| Swift | 6.0 or later (Swift 6 language mode) |
| Xcode | 16 or later. CI runs the latest stable Xcode |
| iOS | 17.0+ (all helpers) |
| macOS | 14.0+ (Foundation helpers only) |
| Dependencies | None. The catalog's Charts examples use Apple's Swift Charts |
/// comment with a usage example.swift build # Foundation helpers on the macOS host
swift test # Foundation tests on the macOS host
xcodebuild test -scheme SwiftExtension \
-destination 'platform=iOS Simulator,name=iPhone 17' # everything, on a simulator
xcrun swift-format lint --strict --recursive Sources Tests # style
Example/Swift-Extension/Catalog/Demos/<Category>/MyDemo.swift with a view that takes play: Int and a static let info = ExampleInfo(...).Example/Swift-Extension/Catalog/Core/Example.swift and fill in its three switches: info, playHint and demo.CatalogTests fails if a title, summary, code or hint is missing, or if titles repeat.The catalog has two launch arguments for documentation:
xcrun simctl launch booted anscoder.Swift-Extension -example confetti # bare auto-playing stage
xcrun simctl launch booted anscoder.Swift-Extension -detail barChart # one example screen
Record with xcrun simctl io booted recordVideo, then crop the stage and convert to GIF.
Issues and pull requests are welcome. Read CONTRIBUTING.md first. By taking part you agree to the Code of Conduct. Report security problems privately, see SECURITY.md.
| CI | Format, macOS build and tests, iOS simulator tests with coverage, example app, DocC build. One required check: CI success |
| Security | CodeQL for Swift on every PR and weekly. Dependabot for GitHub Actions and Swift packages |
| Review bots | Danger PR checks, CodeRabbit and GitHub Copilot review (instructions), auto-labeling, release drafting |
| Releases | Semantic versioning. Pushing a tag like 1.0.0 runs the tests and publishes a GitHub release |
changeDate(_:) and UIImage.toBase64String return optionals instead of crashing.UINavigationBar helpers use UINavigationBarAppearance. The default title color is .label.showAleartViewwithTitle and setCornerRadious still work but are deprecated.ExFunction is now an enum namespace. Its static methods are unchanged.MIT. See LICENSE.
Animation topics were inspired by awesome-ios-animation and awesome-swift.