This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct SkeletonGradientAnimationView: View { | |
@State var offset: CGFloat = 0 | |
public var body: some View { | |
ZStack { | |
GeometryReader { reader in | |
let largestSide = reader.size.width > reader.size.height ? reader.size.width : reader.size.height | |
LinearGradient( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ExampleTabbedView : View { | |
@State private var selection = 1 | |
var body: some View { | |
TabbedView(selection: $selection) { | |
Text("Tab 1") | |
.tabItem({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PR is a work in progress and shouldn't be merged yet | |
warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]" | |
# Warn when there is a big PR | |
warn "Big PR, consider splitting into smaller" if git.lines_of_code > 500 | |
# Ensure a clean commits history | |
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ } | |
fail "Please rebase to get rid of the merge commits in this PR" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class NativeBridge : MonoBehaviour { | |
[SerializeField] | |
private MeuComponente meucomponente; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView.animate(withDuration: 1.0, delay: 1.0, | |
usingSpringWithDamping: 0.6, | |
initialSpringVelocity: 0.8, | |
options: [], animations: { | |
self.viewNotBlur.center.y -= self.view.bounds.height | |
}, completion: nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileprivate func roundMask() -> CAShapeLayer { | |
let px = avatarView.bounds.midX | |
let py = avatarView.bounds.midY | |
let frame = CGRect(x: -px, y: -py, width: avatarView.bounds.width, height: avatarView.bounds.height) | |
let path = UIBezierPath(ovalIn: frame) | |
let rm = CAShapeLayer() | |
rm.path = path.cgPath | |
rm.fillColor = UIColor.red.cgColor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
public enum Tamanho: String { | |
case individual = "INDIVIDUAL" | |
case pequeno = "PEQUENO" | |
case medio = "MEDIO" | |
case grande = "GRANDE" | |
case gigante = "GIGANTE" | |
case unico = "UNICO" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TamanhoObject.swift | |
// ConceptApp | |
// | |
// Created by douglas taquary on 06/11/2017. | |
// Copyright © 2017 Douglas Taquary. All rights reserved. | |
// | |
import SwiftyJSON | |
import RealmSwift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// StatusViewModel.swift | |
import Foundation | |
import RxSwift | |
public protocol StatusViewModelProtocol { | |
var titleOfButton: String { get } | |
NewerOlder