Skip to content

Swift Package Support, switch to ARC - #21

Merged
hannesa2 merged 5 commits into
masterfrom
SwiftPackageSupport
Sep 21, 2026
Merged

hannesa2 merged 5 commits into
masterfrom
SwiftPackageSupport

Conversation

@hannesa2

@hannesa2 hannesa2 commented Dec 20, 2023 •

Copy link
Copy Markdown

It's the last change from upstream

@hannesa2
hannesa2 force-pushed the SwiftPackageSupport branch from b8e9520 to d8a83c2 Compare December 20, 2023 08:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

ARC is not enabled for the existing Xcode target, and the package includes an unsupported deployment contract and an unbuildable demo resource.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Adds Swift Package Manager support and updates Objective-C ownership code for ARC-based builds.

Changes:

  • Adds Package.swift, package resources, public headers, and tests.
  • Removes manual memory-management calls.
  • Adds README documentation and demo resources.
File Description
Package.swift Defines the library, resources, platform, and tests.
Sources/​MGScopeBar/​MGScopeBar.m Updates ownership handling for ARC.
Sources/​MGScopeBar/​MGScopeBar.h Marks the delegate as unsafe unretained.
Sources/​MGScopeBar/​MGRecessedPopUpButtonCell.m Removes manual deallocation.
Sources/​MGScopeBar/​MGRecessedPopUpButtonCell.h Adds the cell declaration.
Sources/​MGScopeBar/​include/​MGScopeBar.h Adds the public umbrella header.
Sources/​MGScopeBar/​include/​MGScopeBarDelegateProtocol.h Adds the public delegate protocol.
Sources/​MGScopeBar/​Resources/​Base.lproj/​MainMenu.xib Adds the demo interface resource.
Sources/​MGScopeBar/​Resources/​en.lproj/​InfoPlist.strings Adds localized resource metadata.
Tests/​MGScopeBarTests/​MGScopeBarTests.swift Adds the package test target scaffold.
README.md Documents usage, licensing, and platform support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Package.swift
Comment thread Package.swift
Comment thread Sources/MGScopeBar/include/MGScopeBar.h Outdated
Co-authored-by: hannesa2 <3314607+hannesa2@users.noreply.github.com>
hannesa2 and others added 2 commits September 21, 2026 07:51
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: hannesa2 <3314607+hannesa2@users.noreply.github.com>
@hannesa2
hannesa2 merged commit 130f13a into master Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants