Skip to content

Instantly share code, notes, and snippets.

View analogcode's full-sized avatar

Matthew Fecher analogcode

View GitHub Profile
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}
日付 カンファレンス 会場 トーク応募 主な講演者
1/27(金) dotSwift フランス・パリ Closed
2/7(火)〜8(水) Mac Admin & Developer Conference UK イギリス・ロンドン
2/23(木)〜24(金) Playgrounds オーストラリア・メルボルン Closed
3/2(木) Forward Swift アメリカ・カリフォルニア州・サンフランシスコ
3/2(木)〜4(土) try! Swift Tokyo 2017 ベルサール新宿セントラルパーク/ベルサール神田 Closed Yusuke Ito, Kazuaki Matsuo
3/16(木)〜17(金) Appdevcon 2017 オランダ・アムステルダム Closed Yoichi Tagaya
3/20(月)〜23(木) Yosemite, by CocoaConf アメリカ・カリフォルニア州・ヨセミテ国立公園
3/30(木)〜31(金) iOSCon 2017 イギリス・ロンドン Closed Yusuke Kita, [Yoichi Tagaya](https
//
// ContentView.swift
// BreatheUI WatchKit Extension
//
// Created by Joel Bernstein on 6/24/19.
// Copyright © 2019 Joel Bernstein. All rights reserved.
//
import SwiftUI
//
// WaveformView.swift
// WaveformSwiftUI
//
// Created by Adam Bell on 9/4/19.
// Copyright © 2019 Adam Bell. All rights reserved.
//
import SwiftUI
@dkun7944
dkun7944 / UIView+3DFloatingEffect.swift
Last active February 9, 2021 20:19
Extension to add a cool 3D floating effect to any UIView.
extension UIView {
func add3DFloatingEffect(withDepth depth: Double = 1 / 12, duration: Double = 5) {
let depthAngle = depth * .pi
let rotationAnimationY = CABasicAnimation(keyPath: "transform.rotation.y")
rotationAnimationY.fromValue = NSNumber(floatLiteral: -1 * depthAngle)
rotationAnimationY.toValue = NSNumber(floatLiteral: depthAngle)
rotationAnimationY.duration = duration
rotationAnimationY.repeatCount = Float(Int.max)
rotationAnimationY.autoreverses = true
rotationAnimationY.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut)