View GridAccessibilityTest.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
// | |
// GridAccessibilityTest.swift | |
// FrameUpExample | |
// | |
// Created by Ryan Lintott on 2023-10-22. | |
// | |
import FrameUp | |
import SwiftUI |
View WidgetConfiguration+disfavoredLocationsIfAvailable.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
// | |
// WidgetConfiguration+extensions.swift | |
// | |
// | |
// Created by Ryan Lintott on 2023-09-11. | |
// | |
import SwiftUI | |
import WidgetKit |
View Text+joined.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
extension Collection where Element == Text { | |
func joined() -> Text { | |
reduce(into: Text("")) { | |
$0 = $0 + $1 | |
} | |
} | |
func joined(separator: String) -> Text { | |
joined(separator: Text(separator)) | |
} |
View PreviewState.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 PreviewState<each T, Content: View>: View { | |
@State private var value: (repeat each T) | |
var content: (Binding<(repeat each T)>) -> Content | |
init( | |
_ value: repeat each T, | |
@ViewBuilder content: @escaping (Binding<(repeat each T)>) -> Content | |
) { |
View AnimatablePack.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
// | |
// AnimatablePack.swift | |
// ShapeUp | |
// | |
// Created by Ryan Lintott on 2023-08-02. | |
// | |
import Foundation | |
import SwiftUI |
View ListWithMoveUpAction.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
struct ListWithMoveUpAction: View { | |
@AccessibilityFocusState private var focus: String? | |
@State private var users = ["Glenn", "Malcolm", "Nicola", "Terri"] | |
var body: some View { | |
NavigationStack { | |
List(users, id: \.self) { user in | |
Text(user) | |
.accessibilityActions { | |
Button { |
View PagedSelectableView.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
// | |
// PagedSelectableView.swift | |
// FrameUpExample | |
// | |
// Created by Ryan Lintott on 2023-01-12. | |
// | |
import SwiftUI | |
struct PagedSelectableView: View { |
View JustifiedTextExample2.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
// | |
// JustifiedTextExample2.swift | |
// FrameUpExample | |
// | |
// Created by Ryan Lintott on 2022-11-15. | |
// | |
import SwiftUI | |
import WidgetKit |
View DoubleScrollTabView.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
// | |
// DoubleScrollTabView.swift | |
// FrameUpExample | |
// | |
// Created by Ryan Lintott on 2022-11-13. | |
// | |
import FrameUp | |
import SwiftUI |
NewerOlder