Latest 0.1.2
Homepage https://github.com/sophieclark/PulsatingMagnifierView
License Apache License, Version 2.0 Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Platforms ios 9.0
Authors

PulsatingingMagnifierView

A view which magnifies the view behind and pulsates.

PulsatingMagnifierView

Installation

To install via CocoaPods create podfile with the following lines:

target 'MyApp' do
  pod 'PulsatingMagnifierView', '~> 0.1'
end

Alternively clone the project and add the PulsatingMagnifierView.swift into your project.

Using the magnifier view

To use the view in your view or view controller instantiate a PulsatingMagnifierView

var pulsatingMagnifierView: PulsatingMagnifierView!

pulsatingMagnifierView = PulsatingMagnifierView(frame: CGRect(x: view.frame.size.width / 2 - 50, 
                                                              y: view.frame.size.height / 2 - 100,
                                                              width: 100, height: 100), 
                                                              viewToMagnify: view, 
                                                              repeatCount: .infinity, 
                                                              startValue: 1, 
                                                              endValue: 2, 
                                                              duration: 2, 
                                                              scale: 1.5)

Some of the properties can be edited after initialisation. These are size, outline colour, and outline width.

pulsatingMagnifierView.size = 150
pulsatingMagnifierView.outlineColor = .red
pulsatingMagnifierView.outlineWidth = 3

Latest podspec

{
    "name": "PulsatingMagnifierView",
    "version": "0.1.2",
    "summary": "A view which magnifies the view behind and pulsates for a given number of times",
    "description": "A view which displays part of the view behind it and magnifies it to a set amount and then pulsates a given number of times",
    "homepage": "https://github.com/sophieclark/PulsatingMagnifierView",
    "license": {
        "type": "Apache License, Version 2.0",
        "text": "    Licensed under the Apache License, Version 2.0 (the "License");n    you may not use this file except in compliance with the License.n    You may obtain a copy of the License atnn    http://www.apache.org/licenses/LICENSE-2.0nn    Unless required by applicable law or agreed to in writing, softwaren    distributed under the License is distributed on an "AS IS" BASIS,n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.n    See the License for the specific language governing permissions andn    limitations under the License.n"
    },
    "authors": {
        "Sophie Clark": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sophieclark/PulsatingMagnifierView.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "PulsatingMagnifierView/PulsatingMagnifierView/PulsatingMagnifierView.swift"
}

Pin It on Pinterest

Share This