Skip to content

Releases: yysskk/SwipeMenuViewController

5.0.0

Choose a tag to compare

@yysskk yysskk released this 06 Jul 03:56
b45c804

SwipeMenuViewController 5.0.0 is a major modernization release: it moves to Swift 6.2 / Xcode 26 with main-actor isolation, raises the minimum deployment target to iOS 16, ships exclusively through Swift Package Manager, adds a unit test suite and DocC documentation, and fixes a batch of long-standing correctness bugs.

⚠️ This release contains breaking changes — please review them before upgrading. Projects on older toolchains can stay on the 4.x line.

Breaking

  • Distribution is Swift Package Manager only. CocoaPods and Carthage support has been removed (the podspec and the framework Xcode project were deleted).
  • The minimum deployment target was raised from iOS 11 to iOS 16.
  • Requires the Swift 6.2 toolchain (Xcode 26+); the package now builds in Swift 6 language mode with main-actor default isolation.
  • The public delegate and data source protocols are now @MainActor-isolated and use AnyObject instead of class.
  • SwipeMenuViewOptions and its nested types are now Sendable.
  • Removed the deprecated SwipeMenuViewOptions.TabView.AdditionView.margin property; use padding instead.
  • ContentScrollViewDataSource now requires AnyObject and ContentScrollView.dataSource is now a weak reference (fixes a retain cycle that leaked SwipeMenuView).

Added

  • DocC documentation catalog with Getting Started and Customizing Appearance articles, plus documentation comments across the public API.
  • A unit test suite (Swift Testing) that runs on the iOS simulator in CI.

Changed

  • Sources were reorganized into the standard Swift package layout (Sources/SwipeMenuViewController).
  • The example app was rebuilt as a standalone Xcode project (Example/Example.xcodeproj) that consumes the library as a local package dependency.
  • CI now builds the Swift package and the example app and runs the tests on the latest Xcode.

Fixed

  • Fixed a crash and broken tab text-color interpolation when tab colors are defined in a non-RGB color space (for example .white/.black).
  • Fixed duplicate Auto Layout constraints being added on every layout pass in SwipeMenuViewController.
  • Fixed a potential crash in the default data source when numberOfPages(in:) returns more pages than there are child view controllers.
  • Fixed tab underline/text-color artifacts when swiping past the first or last tab.
  • Fixed SwipeMenuView.jump(to:animated:) leaving currentIndex and the delegate change callbacks out of sync with the content when jumping across more than one page, and made it ignore out-of-range indices (a negative index previously crashed).
  • Fixed ContentScrollView requesting nonexistent pages from its data source when built with an out-of-range initial index (for example reloadData(default:) past the last page).
  • Fixed the views rebuilding themselves when removed from their superview (emitting spurious delegate setup callbacks) and duplicating their tab and content subviews when a SwipeMenuView was removed and re-added to a view hierarchy.
  • Fixed the tab bar applying safe-area insets even when isSafeAreaEnabled is false, so a safe-area change (rotation, notch) no longer shifts a tab bar that opted out of safe-area layout.

Full Changelog: 4.1.0...5.0.0

2.1.0

Choose a tag to compare

@yysskk yysskk released this 31 May 02:30
  • TabViewDelegatew was added so that it can be used only with TabView (#40)

2.0.8

Choose a tag to compare

@yysskk yysskk released this 31 May 02:29
  • This fixes the issue that the underline wasn’t correct #37

2.0.7

Choose a tag to compare

@yysskk yysskk released this 04 Jan 05:38
  • Fix crush if item number is equal to zero(#24)

2.0.6

Choose a tag to compare

@yysskk yysskk released this 11 Dec 07:03
  • Improve delegate call timing on jump index change - by @toshi0383 - #23

2.0.5

Choose a tag to compare

@yysskk yysskk released this 06 Dec 10:08
  • Fix status bar margin in SwipeMenuViewController
  • Add clipsToBounds parameters in options

2.0.4

Choose a tag to compare

@yysskk yysskk released this 06 Dec 10:07
  • Fix needsConvertTextColorRatio property

2.0.3

Choose a tag to compare

@yysskk yysskk released this 06 Dec 10:07
  • Add comments
  • Fixed some bugs

2.0.2

Choose a tag to compare

@yysskk yysskk released this 06 Dec 10:06
  • Refactoring

2.0.1

Choose a tag to compare

@yysskk yysskk released this 04 Nov 07:15
  • Fix fatal error case for TabView