This file contains 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 JunoSlider | |
struct ContentView: View { | |
@State var sliderValue: CGFloat = 0.5 | |
@State var isSliderActive = false | |
var body: some View { | |
VStack { | |
Image(systemName: "globe") |
This file contains 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 BottomSheet: View { | |
@State private var showSheet = false | |
@State private var scrollToId = 0 | |
@State private var listView = true |
This file contains 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 SearchableStudy: View { | |
// !! Searchable searchCompletion() seems to have problem | |
// handling terms with common prefix like "Josh" and "Joshee" | |
// Try enter "Jos" and tap the "Josh" entery, it doesn't show | |
// the "Josh" entry. It show "Joshee" completion. | |
let names = ["Hellen", "Holly", "Josh", "Joshee", "Rhonda", "Ted"] | |
@State private var searchText = "" | |
This file contains 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
// | |
// BricsLogo.swift | |
// iOS17-New-Beginning | |
// | |
// Created by Matthew Young on 10/22/23. | |
// | |
import SwiftUI | |
extension ShapeStyle where Self == LinearGradient { |
This file contains 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
// | |
// AnimatedSpeakerVolumeWaveSlash.swift | |
// iOS17-New-Beginning | |
// | |
// Created by Matthew Young on 10/12/23. | |
// | |
import SwiftUI | |
struct SpeakerVolumeView: View { |
This file contains 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 | |
// had to move this out here due to RubberBandSwitch is now generic | |
enum Const { | |
static let shapeSize: CGSize = .init(width: 90.0, height: 190.0) | |
static let cornerRadius: CGFloat = 26.0 | |
} | |
struct RubberBandSwitch<Icon: View>: View { | |
This file contains 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 Matthew Young on 10/4/23. | |
// | |
import SwiftUI | |
struct MatchedInnerOuterCornerRadius: View { | |
@State private var phase = Double.zero | |
var body: some View { |
This file contains 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 ComposableArchitecture | |
struct CounterFeature: Reducer { | |
struct State: Equatable { | |
var count = 99 | |
var numberFactAlert: String? | |
} | |
enum Action: Equatable { |
This file contains 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 SensoryFeedback: View { | |
@State private var count = 0 | |
var body: some View { | |
VStack { | |
Text(verbatim: "\(count)") | |
.font(.largeTitle) | |
.contentTransition(.numericText(value: Double(count))) |
This file contains 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
// | |
// AnimatedSlashSpeakerDemo.swift | |
// SwiftUITestingProject | |
// | |
// Created by Matthew on 12/25/19. | |
// Copyright © 2019 Matthew. All rights reserved. | |
// | |
// Speaker animated slash and sound waves |
NewerOlder