Pinned Loading
-
-
Swift2垂直旋转+放大动画代码
Swift2垂直旋转+放大动画代码 1//
2// TurnAnimation.swift
3// TurnAnimation
4//
5// Created by 王渊博 on 15/12/2.
-
Swift3二维码界面的阴影view
Swift3二维码界面的阴影view 1// customized rect
2let viewBounds = CGRect()
3let scanRectView = CGRect()
45let bezierPath = UIBezierPath.init(roundedRect: viewBounds, cornerRadius: 0)
-
Swift3顺时针旋转+收缩动画
Swift3顺时针旋转+收缩动画 1func roundAnimation() {
2let animationRotation = CABasicAnimation.init()
3animationRotation.keyPath = "transform.rotation.z"
4animationRotation.toValue = NSNumber.init(value: Float(M_PI) * 5)
5animationRotation.duration = 2
-
line-sdk-ios-swift
line-sdk-ios-swift PublicForked from line/line-sdk-ios-swift
Provides a modern way of implementing LINE APIs
Swift
-
UICollectionViewCell stops in middle...
UICollectionViewCell stops in middle of bounds.width 1override func targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint) -> CGPoint {
23let rectBounds: CGRect = collectionView!.bounds
4let halfWidth: CGFloat = rectBounds.width * CGFloat(0.50)
5let proposedContentOffsetCenterX: CGFloat = proposedContentOffset.x + halfWidth
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.