Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2456592
WIP on style updates for iOS 26
nighthawk Jul 29, 2025
d13e5e8
WIP on edge padding unless in extended position
nighthawk Jul 31, 2025
9f3e411
Xcode 16 compile fix and warnings
nighthawk Aug 6, 2025
9f9536e
Fix for dragging by content on iOS 26
nighthawk Aug 6, 2025
3900a4a
Update paddings, remove status bar blur on iOS 26
nighthawk Aug 6, 2025
b9c13e6
Allow setting tracking colour, tweak button styles
nighthawk Aug 6, 2025
bd9a172
Fix leading padding getting stuck at 0
nighthawk Aug 6, 2025
31c6523
Page header styling
nighthawk Aug 7, 2025
8e4ca69
Proper fix for "drag content down to drag card down" handling on iOS 26
nighthawk Aug 22, 2025
8d3c00f
Better transition animations on iOS 26
nighthawk Aug 25, 2025
15660eb
Fix for page card dragging and paging on iOS 26
nighthawk Sep 4, 2025
b1ebd41
Fix bad use of x vs y
nighthawk Sep 4, 2025
d5aa41e
Force hide separator if card is in collapsed mode
nighthawk Sep 4, 2025
41e48bc
Maintain iOS 26 padding across backgrounding/foregrounding
nighthawk Sep 4, 2025
db03df8
Fix dragging regression for pre-iOS 26 paging cards
nighthawk Sep 5, 2025
9558063
Fix sizing of hosting card's content, and add proper `didBuild` methods
nighthawk Sep 9, 2025
f88bcac
Fix iPad regression, making sure card stays next to map
nighthawk Sep 10, 2025
6c40b58
Fixes for TGHostingView's content size
nighthawk Sep 17, 2025
8ff2494
Fix invalid size of UIHostingController's content
nighthawk Sep 17, 2025
39edd20
Make TGPlainCardView also work with other plain cards, not just TGPla…
nighthawk Sep 29, 2025
72c8c66
Remove host view's default background colours
nighthawk Sep 29, 2025
af683e6
New helper for configuring close button
nighthawk Sep 29, 2025
26f10dd
Bump macOS and Xcode versions to Tahoe/Sequoia
nighthawk Oct 9, 2025
1f07c63
Generic names for GHAs. Bump iPhones.
nighthawk Oct 9, 2025
f680226
Tahoe can test against iPhone 17
nighthawk Oct 9, 2025
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
56 changes: 28 additions & 28 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@ name: Swift

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build_xcode_sonoma:
runs-on: macos-14
build_xcode_latest:
runs-on: macos-26

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3 # latest-stable
- uses: actions/checkout@v4
- name: Build TGCardVC
run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 14'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build TGCardVC
run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 17'

build_xcode_ventura:
runs-on: macos-13
build_xcode_previous:
runs-on: macos-15
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build TGCardVC
run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 14'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build TGCardVC
run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 16'

examples:
runs-on: macos-14
runs-on: macos-15

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3 # latest-stable
- uses: actions/checkout@v4
- name: Build Example
run: |
cd Example
xcodebuild build -scheme 'Example' -destination 'platform=iOS Simulator,name=iPhone 14'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build Example
run: |
cd Example
xcodebuild build -scheme 'Example' -destination 'platform=iOS Simulator,name=iPhone 16'
8 changes: 6 additions & 2 deletions Sources/TGCardViewController/TGButtonPosition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public enum TGButtonPosition {

public struct TGButtonStyle {
/// Default style is rounded rect, no special tint colour and translucent
public init(shape: TGButtonStyle.Shape = .roundedRect, tintColor: UIColor? = nil, isTranslucent: Bool = true) {
public init(shape: TGButtonStyle.Shape = .roundedRect, tintColor: UIColor? = nil, trackingColor: UIColor? = nil, isTranslucent: Bool = true) {
self.shape = shape
self.tintColor = tintColor
self.trackingColor = trackingColor
self.isTranslucent = isTranslucent
}

Expand All @@ -42,6 +43,9 @@ public struct TGButtonStyle {

/// Custom tint colour. Uses default tint colour if set to `nil`
public let tintColor: UIColor?


/// Prominent colour to pass to tracking button. Uses default tint colour if set to `nil`
public let trackingColor: UIColor?

public let isTranslucent: Bool
}
Loading