View SlidingSheetModifier.swift
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
// | |
// SheetBase.swift | |
// PopoverSheet_Tests | |
// | |
// Created by Jean-Marc Boullianne on 9/13/20. | |
// Copyright © 2020 TrailingClosure. All rights reserved. | |
// | |
import SwiftUI |
View AlignmentControl.swift
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
// | |
// AlignmentControl.swift | |
// MicroAnimations_Test | |
// | |
// Created by Jean-Marc Boullianne on 8/18/20. | |
// | |
import SwiftUI | |
struct AlignmentControl: View { |
View ImageToggleStyle.swift
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 ImageToggleStyle: ToggleStyle { | |
var onImageName: String | |
var offImageName: String | |
func makeBody(configuration: Configuration) -> some View { | |
HStack { | |
configuration.label |
View PowerToggleStyle.swift
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 PowerToggleStyle: ToggleStyle { | |
func makeBody(configuration: Configuration) -> some View { | |
HStack { | |
configuration.label | |
Spacer() | |
Rectangle() | |
.foregroundColor(configuration.isOn ? .green : .gray) |
View CheckmarkToggleStyle.swift
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 CheckmarkToggleStyle: ToggleStyle { | |
func makeBody(configuration: Configuration) -> some View { | |
HStack { | |
configuration.label | |
Spacer() | |
Rectangle() | |
.foregroundColor(configuration.isOn ? .green : .gray) |
View ScrollingHStackModifier_Example.swift
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
// | |
// ContentView.swift | |
// ScrollView_Tests | |
// | |
// Created by Jean-Marc Boullianne on 7/30/20. | |
// | |
import SwiftUI | |
struct ContentView: View { |
View ScrollingHStackModifier.swift
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
/ | |
// ScrollingStackModifier.swift | |
// ScrollView_Tests | |
// | |
// Created by Jean-Marc Boullianne on 8/7/20. | |
// | |
import SwiftUI | |
struct ScrollingHStackModifier: ViewModifier { |
NewerOlder