diff --git a/GitHub/Assets/Absolute.png b/Assets/Absolute.png similarity index 100% rename from GitHub/Assets/Absolute.png rename to Assets/Absolute.png diff --git a/GitHub/Assets/Anchors.png b/Assets/Anchors.png similarity index 100% rename from GitHub/Assets/Anchors.png rename to Assets/Anchors.png diff --git a/GitHub/Assets/AnimatingBetweenPopovers.gif b/Assets/AnimatingBetweenPopovers.gif similarity index 100% rename from GitHub/Assets/AnimatingBetweenPopovers.gif rename to Assets/AnimatingBetweenPopovers.gif diff --git a/GitHub/Assets/App Icon.png b/Assets/App Icon.png similarity index 100% rename from GitHub/Assets/App Icon.png rename to Assets/App Icon.png diff --git a/GitHub/Assets/Attributes/BlocksBackgroundTouches.png b/Assets/Attributes/BlocksBackgroundTouches.png similarity index 100% rename from GitHub/Assets/Attributes/BlocksBackgroundTouches.png rename to Assets/Attributes/BlocksBackgroundTouches.png diff --git a/GitHub/Assets/Attributes/Dismissal.png b/Assets/Attributes/Dismissal.png similarity index 100% rename from GitHub/Assets/Attributes/Dismissal.png rename to Assets/Attributes/Dismissal.png diff --git a/GitHub/Assets/Attributes/OnContextChange.png b/Assets/Attributes/OnContextChange.png similarity index 100% rename from GitHub/Assets/Attributes/OnContextChange.png rename to Assets/Attributes/OnContextChange.png diff --git a/GitHub/Assets/Attributes/OnDismiss.png b/Assets/Attributes/OnDismiss.png similarity index 100% rename from GitHub/Assets/Attributes/OnDismiss.png rename to Assets/Attributes/OnDismiss.png diff --git a/GitHub/Assets/Attributes/OnTapOutside.png b/Assets/Attributes/OnTapOutside.png similarity index 100% rename from GitHub/Assets/Attributes/OnTapOutside.png rename to Assets/Attributes/OnTapOutside.png diff --git a/GitHub/Assets/Attributes/Position.png b/Assets/Attributes/Position.png similarity index 100% rename from GitHub/Assets/Attributes/Position.png rename to Assets/Attributes/Position.png diff --git a/GitHub/Assets/Attributes/Presentation.png b/Assets/Attributes/Presentation.png similarity index 100% rename from GitHub/Assets/Attributes/Presentation.png rename to Assets/Attributes/Presentation.png diff --git a/GitHub/Assets/Attributes/RubberBandingMode.png b/Assets/Attributes/RubberBandingMode.png similarity index 100% rename from GitHub/Assets/Attributes/RubberBandingMode.png rename to Assets/Attributes/RubberBandingMode.png diff --git a/GitHub/Assets/Attributes/ScreenEdgePadding.png b/Assets/Attributes/ScreenEdgePadding.png similarity index 100% rename from GitHub/Assets/Attributes/ScreenEdgePadding.png rename to Assets/Attributes/ScreenEdgePadding.png diff --git a/GitHub/Assets/Attributes/SourceFrame.png b/Assets/Attributes/SourceFrame.png similarity index 100% rename from GitHub/Assets/Attributes/SourceFrame.png rename to Assets/Attributes/SourceFrame.png diff --git a/GitHub/Assets/Attributes/SourceFrameInset.png b/Assets/Attributes/SourceFrameInset.png similarity index 100% rename from GitHub/Assets/Attributes/SourceFrameInset.png rename to Assets/Attributes/SourceFrameInset.png diff --git a/GitHub/Assets/Attributes/Tag.png b/Assets/Attributes/Tag.png similarity index 100% rename from GitHub/Assets/Attributes/Tag.png rename to Assets/Attributes/Tag.png diff --git a/GitHub/Assets/BlocksBackgroundTouches.png b/Assets/BlocksBackgroundTouches.png similarity index 100% rename from GitHub/Assets/BlocksBackgroundTouches.png rename to Assets/BlocksBackgroundTouches.png diff --git a/GitHub/Assets/DragDismissalProximity.png b/Assets/DragDismissalProximity.png similarity index 100% rename from GitHub/Assets/DragDismissalProximity.png rename to Assets/DragDismissalProximity.png diff --git a/GitHub/Assets/ExampleApp.png b/Assets/ExampleApp.png similarity index 100% rename from GitHub/Assets/ExampleApp.png rename to Assets/ExampleApp.png diff --git a/GitHub/Assets/GIFs/Alert.gif b/Assets/GIFs/Alert.gif similarity index 100% rename from GitHub/Assets/GIFs/Alert.gif rename to Assets/GIFs/Alert.gif diff --git a/GitHub/Assets/GIFs/Color.gif b/Assets/GIFs/Color.gif similarity index 100% rename from GitHub/Assets/GIFs/Color.gif rename to Assets/GIFs/Color.gif diff --git a/GitHub/Assets/GIFs/Menu.gif b/Assets/GIFs/Menu.gif similarity index 100% rename from GitHub/Assets/GIFs/Menu.gif rename to Assets/GIFs/Menu.gif diff --git a/GitHub/Assets/GIFs/Notification.gif b/Assets/GIFs/Notification.gif similarity index 100% rename from GitHub/Assets/GIFs/Notification.gif rename to Assets/GIFs/Notification.gif diff --git a/GitHub/Assets/GIFs/PIP.gif b/Assets/GIFs/PIP.gif similarity index 100% rename from GitHub/Assets/GIFs/PIP.gif rename to Assets/GIFs/PIP.gif diff --git a/GitHub/Assets/GIFs/Standard.gif b/Assets/GIFs/Standard.gif similarity index 100% rename from GitHub/Assets/GIFs/Standard.gif rename to Assets/GIFs/Standard.gif diff --git a/GitHub/Assets/GIFs/Tip.gif b/Assets/GIFs/Tip.gif similarity index 100% rename from GitHub/Assets/GIFs/Tip.gif rename to Assets/GIFs/Tip.gif diff --git a/GitHub/Assets/GIFs/Tutorial.gif b/Assets/GIFs/Tutorial.gif similarity index 100% rename from GitHub/Assets/GIFs/Tutorial.gif rename to Assets/GIFs/Tutorial.gif diff --git a/GitHub/Assets/Header.png b/Assets/Header.png similarity index 100% rename from GitHub/Assets/Header.png rename to Assets/Header.png diff --git a/GitHub/Assets/Playground.png b/Assets/Playground.png similarity index 100% rename from GitHub/Assets/Playground.png rename to Assets/Playground.png diff --git a/GitHub/Assets/PopoverBackground.png b/Assets/PopoverBackground.png similarity index 100% rename from GitHub/Assets/PopoverBackground.png rename to Assets/PopoverBackground.png diff --git a/GitHub/Assets/PopoverReader.gif b/Assets/PopoverReader.gif similarity index 100% rename from GitHub/Assets/PopoverReader.gif rename to Assets/PopoverReader.gif diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640312709.MP4 b/Assets/Raw Video/RPReplay_Final1640312709.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640312709.MP4 rename to Assets/Raw Video/RPReplay_Final1640312709.MP4 diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640312909.MP4 b/Assets/Raw Video/RPReplay_Final1640312909.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640312909.MP4 rename to Assets/Raw Video/RPReplay_Final1640312909.MP4 diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640312965.MP4 b/Assets/Raw Video/RPReplay_Final1640312965.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640312965.MP4 rename to Assets/Raw Video/RPReplay_Final1640312965.MP4 diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640313037.MP4 b/Assets/Raw Video/RPReplay_Final1640313037.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640313037.MP4 rename to Assets/Raw Video/RPReplay_Final1640313037.MP4 diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640313457.MP4 b/Assets/Raw Video/RPReplay_Final1640313457.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640313457.MP4 rename to Assets/Raw Video/RPReplay_Final1640313457.MP4 diff --git a/GitHub/Assets/Raw Video/RPReplay_Final1640313494.MP4 b/Assets/Raw Video/RPReplay_Final1640313494.MP4 similarity index 100% rename from GitHub/Assets/Raw Video/RPReplay_Final1640313494.MP4 rename to Assets/Raw Video/RPReplay_Final1640313494.MP4 diff --git a/GitHub/Assets/Raw Video/Screen Recording 2021-12-24 at 5.32.18 PM.mov b/Assets/Raw Video/Screen Recording 2021-12-24 at 5.32.18 PM.mov similarity index 100% rename from GitHub/Assets/Raw Video/Screen Recording 2021-12-24 at 5.32.18 PM.mov rename to Assets/Raw Video/Screen Recording 2021-12-24 at 5.32.18 PM.mov diff --git a/GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-23 at 19.46.14.mp4 b/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-23 at 19.46.14.mp4 similarity index 100% rename from GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-23 at 19.46.14.mp4 rename to Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-23 at 19.46.14.mp4 diff --git a/GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mov b/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mov similarity index 100% rename from GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mov rename to Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mov diff --git a/GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mp4 b/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mp4 similarity index 100% rename from GitHub/Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mp4 rename to Assets/Raw Video/Simulator Screen Recording - iPhone 13 Pro Max - 2021-12-24 at 18.24.24.mp4 diff --git a/GitHub/Assets/Raw Video/VideoPIP.mov b/Assets/Raw Video/VideoPIP.mov similarity index 100% rename from GitHub/Assets/Raw Video/VideoPIP.mov rename to Assets/Raw Video/VideoPIP.mov diff --git a/GitHub/Assets/Relative.png b/Assets/Relative.png similarity index 100% rename from GitHub/Assets/Relative.png rename to Assets/Relative.png diff --git a/GitHub/Assets/Showroom.png b/Assets/Showroom.png similarity index 100% rename from GitHub/Assets/Showroom.png rename to Assets/Showroom.png diff --git a/GitHub/Assets/SocialPreview.png b/Assets/SocialPreview.png similarity index 100% rename from GitHub/Assets/SocialPreview.png rename to Assets/SocialPreview.png diff --git a/GitHub/Assets/SourceFrameInsetAbsolute.png b/Assets/SourceFrameInsetAbsolute.png similarity index 100% rename from GitHub/Assets/SourceFrameInsetAbsolute.png rename to Assets/SourceFrameInsetAbsolute.png diff --git a/GitHub/Assets/SourceFrameInsetRelative.png b/Assets/SourceFrameInsetRelative.png similarity index 100% rename from GitHub/Assets/SourceFrameInsetRelative.png rename to Assets/SourceFrameInsetRelative.png diff --git a/GitHub/Assets/UsagePopover.png b/Assets/UsagePopover.png similarity index 100% rename from GitHub/Assets/UsagePopover.png rename to Assets/UsagePopover.png diff --git a/GitHub/Assets/Videos/Alert.m4v b/Assets/Videos/Alert.m4v similarity index 100% rename from GitHub/Assets/Videos/Alert.m4v rename to Assets/Videos/Alert.m4v diff --git a/GitHub/Assets/Videos/Color.m4v b/Assets/Videos/Color.m4v similarity index 100% rename from GitHub/Assets/Videos/Color.m4v rename to Assets/Videos/Color.m4v diff --git a/GitHub/Assets/Videos/Menu.m4v b/Assets/Videos/Menu.m4v similarity index 100% rename from GitHub/Assets/Videos/Menu.m4v rename to Assets/Videos/Menu.m4v diff --git a/GitHub/Assets/Videos/Notification.m4v b/Assets/Videos/Notification.m4v similarity index 100% rename from GitHub/Assets/Videos/Notification.m4v rename to Assets/Videos/Notification.m4v diff --git a/GitHub/Assets/Videos/PIP.m4v b/Assets/Videos/PIP.m4v similarity index 100% rename from GitHub/Assets/Videos/PIP.m4v rename to Assets/Videos/PIP.m4v diff --git a/GitHub/Assets/Videos/Standard.m4v b/Assets/Videos/Standard.m4v similarity index 100% rename from GitHub/Assets/Videos/Standard.m4v rename to Assets/Videos/Standard.m4v diff --git a/GitHub/Assets/Videos/Tip.m4v b/Assets/Videos/Tip.m4v similarity index 100% rename from GitHub/Assets/Videos/Tip.m4v rename to Assets/Videos/Tip.m4v diff --git a/GitHub/Assets/Videos/Tutorial.m4v b/Assets/Videos/Tutorial.m4v similarity index 100% rename from GitHub/Assets/Videos/Tutorial.m4v rename to Assets/Videos/Tutorial.m4v diff --git a/Examples/PopoversPlaygroundApp.swiftpm.zip b/Examples/PopoversPlaygroundApp.swiftpm.zip index 68952b3..f2a47f7 100644 Binary files a/Examples/PopoversPlaygroundApp.swiftpm.zip and b/Examples/PopoversPlaygroundApp.swiftpm.zip differ diff --git a/Examples/PopoversXcodeApp.zip b/Examples/PopoversXcodeApp.zip index 4938d51..9c6e096 100644 Binary files a/Examples/PopoversXcodeApp.zip and b/Examples/PopoversXcodeApp.zip differ diff --git a/README.md b/README.md index 8f065d4..9fde5d6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Header Image](GitHub/Assets/Header.png) +![Header Image](Assets/Header.png) # Popovers @@ -38,19 +38,19 @@ Standard -Alert +Alert -Color +Color -Menu +Menu -Tip +Tip -Standard +Standard @@ -74,13 +74,13 @@ Notification -Tutorial +Tutorial -Picture in Picture +Picture in Picture -Notification +Notification @@ -89,7 +89,7 @@ Notification ## Example I wrote the example app with Swift Playgrounds 4, so you can run it right on your iPad. If you're using a Mac, download the Xcode version. [Download for Swift Playgrounds 4](https://github.com/aheze/Popovers/raw/main/Examples/PopoversPlaygroundApp.swiftpm.zip) • [Download for Xcode](https://github.com/aheze/Popovers/raw/main/Examples/PopoversXcodeApp.zip) -![Example app](GitHub/Assets/ExampleApp.png) +![Example app](Assets/ExampleApp.png) ## Installation Requires iOS 13+. Popovers can be installed through the Swift Package Manager (recommended) or [Cocoapods](https://cocoapods.org/). @@ -186,7 +186,7 @@ struct PopoverView: View { } ``` -Button 'Present popover!' with a popover underneath. +Button 'Present popover!' with a popover underneath.
@@ -269,7 +269,7 @@ The popover's position can either be `.absolute` (attached to a view) or `.relat Anchor Reference | `.absolute(originAnchor: .bottom, popoverAnchor: .topLeft)` | `.relative(popoverAnchors: [.right])` --- | --- | --- -![](GitHub/Assets/Anchors.png) | ![](GitHub/Assets/Absolute.png) | ![](GitHub/Assets/Relative.png) +![](Assets/Anchors.png) | ![](Assets/Absolute.png) | ![](Assets/Relative.png) ### ⬜ Source Frame • `(() -> CGRect)` This is the frame that the popover attaches to or is placed within, depending on its position. This must be in global window coordinates. Because frames are can change so often, this property is a closure. Whenever the device rotates or some other bounds change happens, the closure will be called. @@ -319,7 +319,7 @@ Edge insets to apply to the source frame. Positive values inset the frame, negat Absolute | Relative --- | --- -![Source view has padding around it, so the popover is offset down.](GitHub/Assets/SourceFrameInsetAbsolute.png) | ![Source view is inset, so the popover is brought more towards the center of the screen.](GitHub/Assets/SourceFrameInsetRelative.png) +![Source view has padding around it, so the popover is offset down.](Assets/SourceFrameInsetAbsolute.png) | ![Source view is inset, so the popover is brought more towards the center of the screen.](Assets/SourceFrameInsetRelative.png) ### ⏹ Screen Edge Padding • `UIEdgeInsets` Global insets for all popovers to prevent them from overflowing off the screen. Kind of like a safe area. Default value is `UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)`. @@ -377,7 +377,7 @@ popover2.attributes.dismissal.excludedFrames = { [weak button1] in [ button1.win **Drag Dismissal Proximity:** Only applies when `mode` is `.dragDown` or `.dragUp`. Represents the point on the screen that the drag must reach in order to auto-dismiss. This property is multiplied by the screen's height. -Diagram with the top 25% of the screen highlighted in blue. +Diagram with the top 25% of the screen highlighted in blue. ### 🎾 Rubber Banding Mode • `RubberBandingMode` @@ -390,7 +390,7 @@ Configures which axes the popover can "rubber-band" on when dragged. The default ### 🛑 Blocks Background Touches • `Bool` Set this to true to prevent underlying views from being pressed. -Popover overlaid over some buttons. Tapping on the buttons has no effect. +Popover overlaid over some buttons. Tapping on the buttons has no effect. ### 👉 On Tap Outside • `(() -> Void)?` A closure that's called whenever the user taps outside the popover. @@ -490,7 +490,7 @@ struct ContentView: View { -| Smooth transition between popovers (from blue to green and back. | +| Smooth transition between popovers (from blue to green and back. | | --- | ### 🌃 Background @@ -540,7 +540,7 @@ var popover = Popover { -Green background over the entire screen, but underneath the popover +Green background over the entire screen, but underneath the popover ### 📖 Popover Reader @@ -560,7 +560,7 @@ This reads the popover's context, which contains its frame, attributes, and vari } ``` -| Line connects the bottom of the popover with the bottom of the screen | +| Line connects the bottom of the popover with the bottom of the screen | | --- | ### 🔖 Frame Tags