Latest 0.1
Homepage https://github.com/armcast/Anchor
License MIT
Platforms ios 11.0
Authors

Version
License
Platform

anchor example gif

Usage

import Anchor

let anchorView = AnchorView(title: "Lorem Ipsum", contentView: contentScrollView, style: .light)

Create an Anchor View.

Required
title: Title of your view.
contentView: A scrollView that houses your content.

Optional
style: Of type UIBlurEffect.Style. Default value is .dark.
parentView: A parent view to place the Anchor View in. If none is provided, UIApplication.shared.keyWindow is used.

anchorView.open()

anchorView.close()

Open and close view.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

This pod is made with Swift 5.

Installation

Anchor is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Anchor'

Author

Armando Castaneda Elguero, [email protected]

License

Anchor is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Anchor",
    "version": "0.1",
    "summary": "Anchor provides gesture controlled expandable views that house scrollable content. This is similiar to the cards in Apple Maps.",
    "description": "This library mimics the functionality of Apple Maps Cards. Each card is anchored to minimized maximizedn                       positions that the user can swipe between. The view contains a scrollView to display content.",
    "homepage": "https://github.com/armcast/Anchor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Armando Castaneda Elguero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/armcast/Anchor.git",
        "tag": "0.1"
    },
    "platforms": {
        "ios": "11.0"
    },
    "swift_versions": "5.0",
    "source_files": "Anchor/Classes/**/*"
}

Pin It on Pinterest

Share This