[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6748":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":15,"starSnapshotCount":15,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},6748,"SwiftUIX","SwiftUIX\u002FSwiftUIX","An exhaustive expansion of the standard SwiftUI library.","",null,"Swift",8060,497,70,26,0,1,6,31,5,72.19,"MIT License",false,"master",true,[26,27,28,29,30,31,32,33,34,35,36,37,38,39],"attributedstring","backwards-compatibility","collection-view","framework","ios","library","macos","performance","scroll","swift","swift-package-manager","swiftui","textview","visionos","2026-06-12 04:00:30","# \u003Cimg align=top src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSwiftUIX\u002FSwiftUIX\u002Fmaster\u002FAssets\u002Flogo.png\" width=\"36\" height=\"36\"> SwiftUIX\n\nSwiftUIX attempts to fill the gaps of SwiftUI, providing an extensive suite of components, extensions and utilities to complement the standard library. This project is **by far** the most complete port of missing UIKit\u002FAppKit functionality, striving to deliver it in the most Apple-like fashion possible.\n\n- [Why](#why)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Contents](#contents)\n- [Contributing](#contributing)\n- [License](#license)\n- [Support](#support)\n- [Credits](#credits)\n\n\n# Why\n\nThe goal of this project is to **complement** the SwiftUI standard library, offering hundreds of extensions and views that empower you, the developer, to build applications with the ease promised by the revolution that is SwiftUI.\n\n\n# Requirements\n\n> [!Note]\n> Swift 5.10 is the minimum Swift version required to build SwiftUIX, Swift 5.9 is no longer supported.\n\n- Deployment targets: iOS 13, macOS 10.15, tvOS 13, watchOS 6 and visionOS 1\n- Xcode 15.4+ \n\n\n# Installation\n\nThe preferred way of installing SwiftUIX is via the [Swift Package Manager](https:\u002F\u002Fswift.org\u002Fpackage-manager\u002F).\n\n```swift\n\u002F\u002F\u002F Package.swift\n\u002F\u002F\u002F ...\ndependencies: [\n    .package(url: \"https:\u002F\u002Fgithub.com\u002FSwiftUIX\u002FSwiftUIX.git\", branch: \"master\"),\n]\n\u002F\u002F\u002F ...\n```\n\n> Xcode 15 integrates with libSwiftPM to provide support for iOS, watchOS, macOS and tvOS platforms.\n\n1. In Xcode, open your project and navigate to **File** → **Swift Packages** → **Add Package Dependency...**\n2. Paste the repository URL (`https:\u002F\u002Fgithub.com\u002FSwiftUIX\u002FSwiftUIX`) and click **Next**.\n3. For **Rules**, select **Branch** (with branch set to `master`).\n4. Click **Finish**.\n5. Open the Project settings, add **SwiftUIX.framework** to the **Linked Frameworks and Libraries**, set **Status** to **Optional**.\n\n\n# Documentation\n\nThe SwiftUIX documentation can be found at:\n\nhttps:\u002F\u002Fswiftuix.github.io\u002FSwiftUIX\u002Fdocumentation\u002Fswiftuix\u002F\n\nAll documentation that hasn't been migrated here is available via the [repository wiki](https:\u002F\u002Fgithub.com\u002FSwiftUIX\u002FSwiftUIX\u002Fwiki).\n\n\n# Contents\n\nWhile the project itself is stable and heavily being used in production, its documentation is **work-in-progress**. Contributions are encouraged and welcomed.\n\n### UIKit → SwiftUI\n\n| UIKit                                   | SwiftUI      | SwiftUIX                                   |\n| --------------------------------------- | ------------ | ------------------------------------------ |\n| `LPLinkView`                            | -            | `LinkPresentationView`                     |\n| `UIActivityIndicatorView`               | -            | `ActivityIndicator`                        |\n| `UIActivityViewController`              | -            | `AppActivityView`                          |\n| `UIBlurEffect`                          | -            | `BlurEffectView`                           |\n| `UICollectionView`                      | -            | `CollectionView`                           |\n| `UIDeviceOrientation`                   | -            | `DeviceLayoutOrientation`                  |\n| `UIImagePickerController`               | -            | `ImagePicker`                              |\n| `UIPageViewController`                  | -            | `PaginationView`                           |\n| `UIScreen`                              | -            | `Screen`                                   |\n| `UISearchBar`                           | -            | `SearchBar`                                |\n| `UIScrollView`                          | `ScrollView` | `CocoaScrollView`                          |\n| `UISwipeGestureRecognizer`              | -            | `SwipeGestureOverlay`                      |\n| `UITableView`                           | `List`       | `CocoaList`                                |\n| `UITextField`                           | `TextField`  | `CocoaTextField`                           |\n| `UIModalPresentationStyle`              | -            | `ModalPresentationStyle`                   |\n| `UIViewControllerTransitioningDelegate` | -            | `UIHostingControllerTransitioningDelegate` |\n| `UIVisualEffectView`                    | -            | `VisualEffectView`                         |\n| `UIWindow`                              | -            | `WindowOverlay`                            |\n\n### **Activity**\n\n- `ActivityIndicator`\n\n  ```\n  ActivityIndicator()\n      .animated(true)\n      .style(.large)\n  ```\n\n- `AppActivityView` - a SwiftUI port for `UIActivityViewController`.\n\n  ```swift\n  AppActivityView(activityItems: [...])\n      .excludeActivityTypes([...])\n      .onCancel { }\n      .onComplete { result in\n          foo(result)\n      }\n  ```\n\n### Appearance\n\n- `View\u002Fvisible(_:)` - Sets a view's visibility.\n\n### CollectionView\n\nUse `CollectionView` within your SwiftUI view, providing it with a data source and a way to build cells.\n\n```swift\nimport SwiftUIX\n\nstruct MyCollectionView: View {\n    let data: [MyModel] \u002F\u002F Your data source\n\n    var body: some View {\n        CollectionView(data, id: \\.self) { item in\n            \u002F\u002F Build your cell view\n            Text(item.title)\n        }\n    }\n}\n```\n\n### Error Handling\n\n- `TryButton` - A button capable of performing throwing functions.\n\n### Geometry\n\n- `flip3D(_:axis:reverse:)` - Flips this view.\n- `RectangleCorner` - A corner of a Rectangle.\n- `ZeroSizeView` - A zero-size view for when `EmptyView` just doesn't work.\n\n### Keyboard\n\n- `Keyboard` - An object representing the keyboard.\n- `View\u002Fpadding(.keyboard) `- Pads this view with the active system height of the keyboard.\n\n### Link Presentation:\n\nUse `LinkPresentationView` to display a link preview for a given URL.\n\n```swift\nLinkPresentationView(url: url)\n    .frame(height: 192)\n```\n\n### Navigation Bar\n\n- `View\u002FnavigationBarColor(_:)` - Configures the color of the navigation bar for this view.\n- `View\u002FnavigationBarTranslucent(_:)` - Configures the translucency of the navigation bar for this view.\n- `View\u002FnavigationBarTransparent(_:)` - Configures the transparency of the navigation bar for this view.\n- `View\u002FnavigationBarLargeTitle(_:)` - Set a custom view for the navigation bar's large view mode.\n\n### Pagination\n\n- `PaginationView`\n\n  ```swift\n  PaginationView(axis: .horizontal) {\n      ForEach(0..\u003C10, id: \\.hashValue) { index in\n          Text(String(index))\n      }\n  }\n  .currentPageIndex($...)\n  .pageIndicatorAlignment(...)\n  .pageIndicatorTintColor(...)\n  .currentPageIndicatorTintColor(...)\n  ```\n\n### Scrolling\n\n- `View\u002FisScrollEnabled(_:)` - Adds a condition that controls whether users can scroll within this view. Works with:\n\n  - `CocoaList`\n  - `CocoaScrollView`\n  - `CollectionView`\n  - `TextView`\n\n  Does not work with SwiftUI's `ScrollView`.\n\n### Search\n\n- `SearchBar` - A SwiftUI port for `UISearchBar`.\n\n  ```swift\n  struct ContentView: View {\n      @State var isEditing: Bool = false\n      @State var searchText: String = \"\"\n\n      var body: some View {\n          SearchBar(\"Search...\", text: $searchText, isEditing: $isEditing)\n              .showsCancelButton(isEditing)\n              .onCancel { print(\"Canceled!\") }\n      }\n  }\n  ```\n\n- `View\u002FnavigationSearchBar(_:)` - Sets the navigation search bar for this view.\n\n  ```swift\n  Text(\"Hello, world!\")\n      .navigationSearchBar {\n          SearchBar(\"Placeholder\", text: $text)\n      }\n  ```\n\n- `View\u002FnavigationSearchBarHiddenWhenScrolling(_:)` - Hides the integrated search bar when scrolling any underlying content.\n\n### Screen\n\n- `Screen` - A representation of the device's screen.\n- `UserInterfaceIdiom` - A SwiftUI port for `UIUserInterfaceIdiom`.\n- `UserInterfaceOrientation` - A SwiftUI port for `UserInterfaceOrientation`.\n\n### Scroll\n\n- `ScrollIndicatorStyle` - A type that specifies the appearance and interaction of all scroll indicators within a view hierarchy\n  - `HiddenScrollViewIndicatorStyle` - A scroll indicator style that hides all scroll view indicators within a view hierarchy.\n\n### Status Bar\n\n- `View\u002FstatusItem(id:image:`) - Adds a status bar item configured to present a popover when clicked\n\n  ```swift\n  Text(\"Hello, world!\")\n      .statusItem(id: \"foo\", image: .system(.exclamationmark)) {\n          Text(\"Popover!\")\n              .padding()\n      }\n  ```\n\n### Text\n\n- `TextView`\n\n  ```swift\n  TextView(\"placeholder text\", text: $text, onEditingChanged: { editing in\n      print(editing)\n  })\n  ```\n\n### Visual Effects\n\n- `VisualEffectBlurView` - A blur effect view that expands to fill.\n\n  ```swift\n  VisualEffectBlurView(blurStyle: .dark)\n      .edgesIgnoringSafeArea(.all)\n  ```\n\n### Window\n\n- `View\u002FwindowOverlay(isKeyAndVisible:content:)` - Makes a window key and visible when a given condition is true.\n\n### Edit Menu\n\n- `View\u002FeditMenu(isVisible:content:)` - Adds an edit menu to the view.\n\n  ```swift\n  Text(\"Hello, world!\")\n      .editMenu(isVisible: $isEditMenuVisible) {\n          EditMenuItem(\"Copy\") {\n              \u002F\u002F Perform copy action\n          }\n          EditMenuItem(\"Paste\") {\n              \u002F\u002F Perform paste action\n          }\n      }\n  ```\n\n\n# Contributing\n\nSwiftUIX welcomes contributions in the form of GitHub issues and pull-requests. Please refer the [projects](https:\u002F\u002Fgithub.com\u002FSwiftUIX\u002FSwiftUIX\u002Fprojects) section before raising a bug or feature request, as it may already be under progress.\n\nTo create an Xcode project for SwiftUIX run `bundle install; bundle exec fastlane generate_xcodeproj`.\nTo check the automated builds for SwiftUIX run `bundle install; bundle exec fastlane build`.\n\n\n# License\n\nSwiftUIX is licensed under the [MIT License](https:\u002F\u002Fvmanot.mit-license.org).\n\n\n# Support\n\nSwiftUIX is and will always remain free and open-source.\n\nMaintaining SwiftUIX is a massively time-consuming endeavour. If you're reliant on SwiftUIX for your app\u002Fproject and would like to see it grow, consider either:\n\n- [Contributing](#contributing)\n- [Donating via Patreon](http:\u002F\u002Fpatreon.com\u002Fvmanot)\n\n\n# Credits\n\nSwiftUIX is led and maintained by [@vatsal_manot](http:\u002F\u002Ftwitter.com\u002Fvatsal_manot).\n\nSpecial thanks to [Brett Best](https:\u002F\u002Fgithub.com\u002FBrett-Best), [Nathan Tanner](https:\u002F\u002Fgithub.com\u002Fnathantannar4), [Kabir Oberai](https:\u002F\u002Fgithub.com\u002Fkabiroberai) and many more.\n\n\n[Documentation]: https:\u002F\u002Fswiftuix.github.io\u002FSwiftUIX\n","SwiftUIX 是一个旨在扩展标准 SwiftUI 库的项目，提供了大量组件、扩展和实用工具。它致力于填补 SwiftUI 与 UIKit\u002FAppKit 之间的功能差距，为开发者提供更加丰富且易于使用的界面构建元素，如 `LinkPresentationView` 和 `BlurEffectView` 等，并且特别注重性能优化与跨平台兼容性（支持 iOS 13+、macOS 10.15+、tvOS 13+、watchOS 6+ 及 visionOS 1+）。通过采用 Swift Package Manager 方式集成，SwiftUIX 非常适合需要利用更多高级 UI 组件来提升应用体验的 Swift 开发者使用。",2,"2026-06-11 03:08:42","top_language"]