Skip to content

Instantly share code, notes, and snippets.

View douglastaquary's full-sized avatar

Douglas Taquary douglastaquary

View GitHub Profile
@douglastaquary
douglastaquary / SkeletonView
Created August 14, 2023 15:29 — forked from ArchieGoodwin/SkeletonView
Basic skeleton view for usage in SwiftUI app.
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(
@douglastaquary
douglastaquary / ExampleTabbedView.swift
Created April 2, 2020 01:37 — forked from amelnychuck/ExampleTabbedView.swift
Example SwiftUI TabbedView Implementation (Xcode Beta 3)
import SwiftUI
struct ExampleTabbedView : View {
@State private var selection = 1
var body: some View {
TabbedView(selection: $selection) {
Text("Tab 1")
.tabItem({
@douglastaquary
douglastaquary / Dangerfile
Created May 11, 2019 23:37 — forked from candostdagdeviren/Dangerfile
Sample Dangerfile for iOS Project
# 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
@douglastaquary
douglastaquary / NativeBridge.cs
Created May 29, 2018 16:46
C# file - NativeBridge - BoomExample
using System.Runtime.InteropServices;
using UnityEngine;
using UnityEngine.UI;
public class NativeBridge : MonoBehaviour {
[SerializeField]
private MeuComponente meucomponente;
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)
@douglastaquary
douglastaquary / iterm2-solarized.md
Created April 3, 2018 17:20 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

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
import Foundation
public enum Tamanho: String {
case individual = "INDIVIDUAL"
case pequeno = "PEQUENO"
case medio = "MEDIO"
case grande = "GRANDE"
case gigante = "GIGANTE"
case unico = "UNICO"
//
// TamanhoObject.swift
// ConceptApp
//
// Created by douglas taquary on 06/11/2017.
// Copyright © 2017 Douglas Taquary. All rights reserved.
//
import SwiftyJSON
import RealmSwift
//
// StatusViewModel.swift
import Foundation
import RxSwift
public protocol StatusViewModelProtocol {
var titleOfButton: String { get }