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
| // | |
| // View+OpenUrl.swift | |
| // | |
| // Created by James Sedlacek on 11/26/24. | |
| // | |
| /// This file provides a safe way to open URLs in SwiftUI applications. | |
| /// It adds a view modifier that handles URL opening with user confirmation | |
| /// and multiple opening options (browser, in-app, or copy to clipboard). | |
| /// |
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
| // | |
| // KeyboardToolbar.swift | |
| // | |
| // Created by James Sedlacek on 9/20/23. | |
| // | |
| import SwiftUI | |
| import Combine | |
| @Observable |
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 SelectedButton: View { | |
| @State var tabButtons = tabs[0] | |
| @Namespace var animation | |
| var body: some View { | |
| VStack { | |
| HStack { | |
| ScrollView(.horizontal, showsIndicators: false) { |
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
| class PaymentViewModel : ObservableObject{ | |
| @Published var isLoadingRetrieveProducts = false | |
| @Published var yearlySubscriptionPrice = "" | |
| @Published var monthlySubscriptionPrice = "" | |
| @Published var lifetimeSubscriptionPrice = "" | |
| @Published var isLoadingPayment = false | |
| @Published var showAlert = false |
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
| // | |
| // WeatherAPIClient.swift | |
| // WeatherApp | |
| // | |
| // Created by Bahalek on 2021-12-25. | |
| // | |
| import Foundation | |
| import CoreLocation | |
| import SwiftUI |
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 | |
| import GoogleMobileAds | |
| import UIKit | |
| #if DEBUG | |
| let adUnitID = "yourUnitID" | |
| #else | |
| let adUnitID = "yourUnitID" | |
| #endif |
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
| // | |
| // Created by Alexey Bukhtin on 26/03/2021. | |
| // | |
| import SwiftUI | |
| extension View { | |
| /// Reads the view frame and bind it to the reader. | |
| /// - Parameters: |
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 | |
| enum CustomColorScheme: Int, CaseIterable, Identifiable, Codable { | |
| static var defaultKey = "customColorScheme" | |
| static var defaultValue = CustomColorScheme.system | |
| case system = 0 | |
| case light = 1 | |
| case dark = 2 | |
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
| /* | |
| MIT License | |
| Copyright (c) 2024 Maxwell Zeryck | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW |
NewerOlder