https://github.com/sophieclark/pulsatingmagnifierview
A view which magnifies the view behind and pulsates
https://github.com/sophieclark/pulsatingmagnifierview
cocoapod cocoapods ios swift swift-4 swift-framework swift-language swift-library swift4
Last synced: about 1 month ago
JSON representation
A view which magnifies the view behind and pulsates
- Host: GitHub
- URL: https://github.com/sophieclark/pulsatingmagnifierview
- Owner: sophieclark
- Created: 2018-06-08T12:29:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T15:11:54.000Z (about 7 years ago)
- Last Synced: 2025-04-19T03:37:33.232Z (about 2 months ago)
- Topics: cocoapod, cocoapods, ios, swift, swift-4, swift-framework, swift-language, swift-library, swift4
- Language: Swift
- Size: 1.7 MB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PulsatingingMagnifierView
A view which magnifies the view behind and pulsates.
## 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```swift
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.
```swift
pulsatingMagnifierView.size = 150
pulsatingMagnifierView.outlineColor = .red
pulsatingMagnifierView.outlineWidth = 3
```