Combine Apple's UIKitDynamics and CoreMotion frameworks to bring this classic anthropomorphic motif to life on iOS
let leftEye = GooglyEye(frame: CGRect(x: 30, y: 300, width: 100, height: 100))
let rightEye = GooglyEye.autolayout()
Make adjustments to the pupil width as a percentage of its respective sclera's diameter.
leftEye.pupilDiameterPercentageWidth = 0.1
To run the example project, clone this repo and run pod install
from the Example directory first.
iOS 12.0
googlyeyes is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "googlyeyes"
googlyeyes is available under the MIT license. See the LICENSE file for more info.