> Snips|
Short, complete solutions to common iOS problems.
-
Set a Preview Shape for Views Presenting Context Menus
SwiftUIWhen presenting a context menu, customize the shape of the view presenting it.
-
Create an Interactive Widget Using App Intents
WidgetKitMake a widget that's interactive.
-
Create a Basic Shortcut using App Intents
App IntentsMake a shortcut that repeats a phrase with App Intents.
-
Basic Keyboard Navigation for Collection & Tableview.
UIKitUse the focus system with hardware keyboards.
-
Use Swift Concurrency with Completion Handlers
Swift ConcurrencyConvert a function using a completion handler to use Swift Concurrency.
-
UICollectionView with UIContentConfiguration for Cells, Compositional List Layout and Diffable Datasource.
UIKitCreate a UICollectionView with the new modern APIs.
-
Create Dividers in UIMenu using UIKit
UIKitAdd a divider in UIKit Context Menus.
-
Using UIDragPreview to Customize Drag Items
UIKitLeverage UIDragPreviewParameters with UIDragPreview to change how dragged items appear.
-
Drag to Reorder in UITableView with Diffable Datasource
UIKitSupport drag to reorder in a UITableView using a diffable datasource.
-
Collapsible UICollectionView Sections
UIKitCreate a basic UICollectionView with a collapsing section.
-
Adding Keyboard Shortcuts
UIKitAdd some keyboard shortcuts.
-
Respond to Keyboard Presses
UIKitRespond to keyboard presses.
-
Creating a Siri Shortcut
SiriKitCreate a basic shortcut that will show in the Shortcuts app.
-
Spotlight Search using NSUserActivity
FoundationExpose data from Spotlight search using NSUserActivity.
-
Spotlight search using Core Spotlight
Core SpotlightExpose data from Spotlight search using the Core Spotlight framework.
-
Diffable Datasource with UITableView
UIKitSetup diffable datasource with UITableView.
The Snip | Description | Framework |
---|---|---|
Set a Preview Shape for Views Presenting Context Menus
|
When presenting a context menu, customize the shape of the view presenting it.
|
SwiftUI |
Create an Interactive Widget Using App Intents
|
Make a widget that's interactive.
|
WidgetKit |
Create a Basic Shortcut using App Intents
|
Make a shortcut that repeats a phrase with App Intents.
|
App Intents |
Basic Keyboard Navigation for Collection & Tableview.
|
Use the focus system with hardware keyboards.
|
UIKit |
Use Swift Concurrency with Completion Handlers
|
Convert a function using a completion handler to use Swift Concurrency.
|
Swift Concurrency |
UICollectionView with UIContentConfiguration for Cells, Compositional List Layout and Diffable Datasource.
|
Create a UICollectionView with the new modern APIs.
|
UIKit |
Create Dividers in UIMenu using UIKit
|
Add a divider in UIKit Context Menus.
|
UIKit |
Using UIDragPreview to Customize Drag Items
|
Leverage UIDragPreviewParameters with UIDragPreview to change how dragged items appear.
|
UIKit |
Drag to Reorder in UITableView with Diffable Datasource
|
Support drag to reorder in a UITableView using a diffable datasource.
|
UIKit |
Collapsible UICollectionView Sections
|
Create a basic UICollectionView with a collapsing section.
|
UIKit |
Adding Keyboard Shortcuts
|
Add some keyboard shortcuts.
|
UIKit |
Respond to Keyboard Presses
|
Respond to keyboard presses.
|
UIKit |
Creating a Siri Shortcut
|
Create a basic shortcut that will show in the Shortcuts app.
|
SiriKit |
Spotlight Search using NSUserActivity
|
Expose data from Spotlight search using NSUserActivity.
|
Foundation |
Spotlight search using Core Spotlight
|
Expose data from Spotlight search using the Core Spotlight framework.
|
Core Spotlight |
Diffable Datasource with UITableView
|
Setup diffable datasource with UITableView.
|
UIKit |