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 SegmentedItem: Identifiable, Hashable { | |
var id: UUID = UUID() | |
var name: String | |
var description: String { | |
name.capitalized | |
} | |
init(_ name: String) { self.name = name } | |
} |
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
// | |
// ContentView.swift | |
// CwC - Code With Costantino | |
// | |
// https://youtu.be/3uTIvdVY78A | |
// Created by Costantino Pistagna on 15/08/25. | |
// | |
import SwiftUI | |
struct Wallpaper: Hashable, Identifiable, Equatable { |
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 BorderLineLoadingView: View { | |
@State private var rotation: Double = 0 | |
var animate = false | |
var cornerRadius: Double = 20 | |
var speed: Double = 2 | |
var strokeWidth: Double = 3 | |
var startColor: Color = .red |
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
// | |
// CacheAsyncImage.swift | |
// | |
// Created by Costantino Pistagna on 08/02/23. | |
// | |
// Updated on 31/08/2025: This gist is really old. If you still need | |
// an easy drop-in replacement for AsyncImage, please check out my | |
// current SPM at: | |
// | |
// https://github.com/valvoline/CachedAsyncImage |
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
// | |
// ContentView.swift | |
// Shared | |
// | |
// Created by Costantino Pistagna on 25/03/21. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// CustomSlider.swift | |
// Custom SliderView using SwiftUI | |
// | |
// Created by Costantino Pistagna on 02/07/2020. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// ContentView.swift | |
// neumorph | |
// | |
// Created by Costantino Pistagna on 28/06/2020. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// FakeBeacon.h | |
// | |
// Created by Costantino Pistagna on 02/05/2020. | |
// Copyright © 2020 Sofapps. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@import CoreLocation; |
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
// | |
// SAWKWebView.swift | |
// | |
// Created by Costantino Pistagna on 24/01/2020. | |
// Copyright © 2020 Sofapps. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
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
// | |
// ContentView.swift | |
// TestSwiftUI | |
// | |
// Created by valv0 on 05/06/2019. | |
// Copyright © 2019 Costantino Pistagna. All rights reserved. | |
// | |
import SwiftUI |
NewerOlder