Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 94 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,100 @@
Carthage/
Docs/
## ---------------------------------------------
## Xcode / Swift / Apple Platforms – Recommended
## ---------------------------------------------

# Build output
build/
DerivedData/
DerivedSources/

# SwiftPM
.swiftpm/
.build/
Package.resolved

# Xcode workspace settings (local-only)
xcuserdata/
*.xccheckout
*.xcuserstate
*.moved-aside

# User-specific settings
*.xcconfig.dynamic
*.xcsettings
*.swp
*.swo

# Logs and debugging
*.log
*.diag
*.crash
*.dsym
*.dSYM/
*.dSYM.zip

# Index / metadata
.index/
*.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
*.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

# iOS device support (from debugging)
DeviceSupport/
DeviceLogs/

# Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager artifacts
.swiftpm/xcode/package.xcworkspace
.swiftpm/indices
.swiftpm/manifest-db

# Bundler / Ruby artifacts (Fastlane, CocoaPods, etc.)
.bundle/
vendor/

# General macOS files
.DS_Store
.build
.swiftpm
.AppleDouble
.LSOverride
Docs/
#*.xcscmblueprint
#*.hmap
#*.ipa

# macOS resource forks
._*
*.resolved
*.zip
build
.claude
.TemporaryItems
.Trashes
.VolumeIcon.icns

## Xcode Patch
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
!*.xcodeproj/project.xcworkspace/contents.xcworkspacedata
!*.xcodeproj/project.xcworkspace/xcshareddata
# macOS temporary files
*.swp
*.tmp
*.temp
*~.nib

## User-specific Xcode files
*.xcodeproj/project.xcworkspace/xcuserdata/
*.xcodeproj/xcuserdata/
**/xcuserdata/
# Archives
*.xcarchive
*.zip

# Code coverage
*.profdata
*.gcda
*.gcno

# Swift testing artifacts
*.xctestrun
.xcresult/

# Firebase / Google services (dependendo do fluxo)
# Descomente se o GoogleService-Info.plist é gerado via script CI:
# GoogleService-Info.plist

# Env files (se você usa)
.env
.env.*

Package.resolved
!*.xcodeproj/**/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import SwiftUI

public enum CardDensity {
case compact
case regular
case spacious

public static func from(width: CGFloat) -> CardDensity {
switch width {
case ..<260: return .compact
case ..<340: return .regular
default: return .spacious
}
}

public var titleFont: Font {
switch self {
case .compact:
return .subheadline
case .regular, .spacious:
return .headline
}
}

public var isVisible: Bool {
self != .compact
}

public var titleLineLimit: Int {
switch self {
case .compact, .regular:
return 1
case .spacious:
return 2
}
}
}
Loading
Loading