-
Notifications
You must be signed in to change notification settings - Fork 6
Revamp #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Revamp #5
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
df5c96a
Rename TopologyButtonsView to CutoutAccessoryView
Aeastr d4b305a
Add configurable padding to CutoutAccessoryView
Aeastr 6ef7959
Update CutoutAccessoryView.swift
Aeastr 253d041
Revise README
Aeastr 1193512
Update README usage and contact info
Aeastr 27a3b39
Add badges for Swift, iOS, and license to README
Aeastr 25dd14d
Adjust cutout and content padding logic in accessory view
Aeastr bf8652a
Adjust default padding and text style in CutoutAccessoryView
Aeastr 56b602e
Adjust default exclusion width and frame height
Aeastr 2c93fe0
Add GitHub Actions workflow for Swift iOS tests
Aeastr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: Test Swift Package on iOS | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test Swift 6.0 on iOS (${{ matrix.config }}) | ||
| runs-on: macos-latest # iOS testing requires macOS | ||
|
|
||
| strategy: | ||
| matrix: | ||
| config: [debug, release] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Select Xcode (latest) | ||
| uses: maxim-lobanov/setup-xcode@v1 | ||
| with: | ||
| xcode-version: 'latest' | ||
|
|
||
| - name: Setup Swift 6.0 | ||
| uses: SwiftyLab/setup-swift@latest | ||
| with: | ||
| swift-version: '6.0' # Use quotes to ensure correct version parsing | ||
|
|
||
| - name: Check Swift version | ||
| run: swift --version | ||
|
|
||
| - name: Find an iOS Simulator | ||
| id: find_simulator | ||
| run: | | ||
| # Find an available iOS simulator runtime and device | ||
| RUNTIME_ID=$(xcrun simctl list runtimes ios --json | jq -r '.runtimes[0].identifier') | ||
| if [ -z "$RUNTIME_ID" ] || [ "$RUNTIME_ID" == "null" ]; then | ||
| echo "::error::No iOS runtime found." | ||
| exit 1 | ||
| fi | ||
| DEVICE_ID=$(xcrun simctl list devices --json | jq -r --arg RT_ID "$RUNTIME_ID" '.devices[$RT_ID] | map(select(.isAvailable)) | .[0].udid') | ||
| if [ -z "$DEVICE_ID" ] || [ "$DEVICE_ID" == "null" ]; then | ||
| echo "::error::No available iOS simulator device found for runtime $RUNTIME_ID." | ||
| exit 1 | ||
| fi | ||
| echo "Found iOS Simulator Runtime: $RUNTIME_ID" | ||
| echo "Found iOS Simulator Device UDID: $DEVICE_ID" | ||
| echo "SIMULATOR_DESTINATION=platform=iOS Simulator,id=$DEVICE_ID" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Build and Test (${{ matrix.config }}) | ||
| run: | | ||
| echo "Using simulator destination: ${{ steps.find_simulator.outputs.SIMULATOR_DESTINATION }}" | ||
| xcodebuild build -scheme NotchMyProblem -sdk $(xcrun --sdk iphonesimulator --show-sdk-path) -destination "${{ steps.find_simulator.outputs.SIMULATOR_DESTINATION }}" SWIFT_VERSION=6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.