Build Information
Failed to build FlutterSwiftUI, reference main (04391d), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 10:29:27 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
16 | public struct AnimatedScale<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:56:31: error: 'View' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:29:25: error: 'State' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
22 | @State private var currentScale: CGFloat
23 |
24 | public init(scale: CGFloat, duration: Double = 1.0, onEnd: (() -> Void)? = nil, @ViewBuilder content: () -> Content) {
| `- note: add @available attribute to enclosing initializer
25 | self.scale = scale
26 | self.duration = duration
27 | self.onEnd = onEnd
28 | self.content = content()
29 | _currentScale = State(initialValue: 1.0) // Start at normal scale
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:34:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
30 | }
31 |
32 | public var body: some View {
| `- note: add @available attribute to enclosing property
33 | content
34 | .scaleEffect(currentScale)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .animation(.easeInOut(duration: duration), value: currentScale)
36 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:35:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
30 | }
31 |
32 | public var body: some View {
| `- note: add @available attribute to enclosing property
33 | content
34 | .scaleEffect(currentScale)
35 | .animation(.easeInOut(duration: duration), value: currentScale)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | animateScale()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:35:25: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
30 | }
31 |
32 | public var body: some View {
| `- note: add @available attribute to enclosing property
33 | content
34 | .scaleEffect(currentScale)
35 | .animation(.easeInOut(duration: duration), value: currentScale)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | animateScale()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:36:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
30 | }
31 |
32 | public var body: some View {
| `- note: add @available attribute to enclosing property
33 | content
34 | .scaleEffect(currentScale)
35 | .animation(.easeInOut(duration: duration), value: currentScale)
36 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | animateScale()
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:39:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
30 | }
31 |
32 | public var body: some View {
| `- note: add @available attribute to enclosing property
33 | content
34 | .scaleEffect(currentScale)
:
37 | animateScale()
38 | }
39 | .onChange(of: scale) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
40 | animateScale(to: newValue)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:45:9: error: 'withAnimation' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
42 | }
43 |
44 | private func animateScale(to newScale: CGFloat? = nil) {
| `- note: add @available attribute to enclosing instance method
45 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | currentScale = newScale ?? scale
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:45:24: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
42 | }
43 |
44 | private func animateScale(to newScale: CGFloat? = nil) {
| `- note: add @available attribute to enclosing instance method
45 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | currentScale = newScale ?? scale
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:46:13: error: setter for 'currentScale' is only available in macOS 10.15 or newer
14 | /// ```
15 |
16 | public struct AnimatedScale<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
17 | let scale: CGFloat
18 | let duration: Double
:
42 | }
43 |
44 | private func animateScale(to newScale: CGFloat? = nil) {
| `- note: add @available attribute to enclosing instance method
45 | withAnimation(.easeInOut(duration: duration)) {
46 | currentScale = newScale ?? scale
| |- error: setter for 'currentScale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:57:9: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | Rectangle()
59 | .fill(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:57:50: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | Rectangle()
59 | .fill(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:58:13: error: 'Rectangle' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .fill(Color.blue)
60 | .frame(width: 100, height: 100)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:59:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
59 | .fill(Color.blue)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
60 | .frame(width: 100, height: 100)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:59:23: error: 'Color' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
59 | .fill(Color.blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: 100, height: 100)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:59:29: error: 'blue' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
59 | .fill(Color.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: 100, height: 100)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedScale.swift:60:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Preview
55 | struct AnimatedScale_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
57 | AnimatedScale(scale: 1.5, duration: 1.0) {
58 | Rectangle()
59 | .fill(Color.blue)
60 | .frame(width: 100, height: 100)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
15 | let targetOffset: CGFloat
16 | let duration: Double
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:20:87: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
18 | let content: Content
19 |
20 | public init(offset: CGFloat, duration: Double = 1.0, onEnd: (() -> Void)? = nil, @ViewBuilder content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
21 | self.targetOffset = offset
22 | self.duration = duration
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:27:27: error: 'View' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:13:38: error: 'View' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:45:20: error: 'View' is only available in macOS 10.15 or newer
42 |
43 | // Example usage
44 | struct AnimatedSlide_Previews: View {
| `- note: add @available attribute to enclosing struct
45 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
46 | AnimatedSlide(offset: 200, onEnd: {
47 | print("Animation ended!")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:29:14: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .onAppear {
31 | // Animate the horizontal slide
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:30:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
30 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | // Animate the horizontal slide
32 | withAnimation(.easeInOut(duration: duration)) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:32:17: error: 'withAnimation' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
30 | .onAppear {
31 | // Animate the horizontal slide
32 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | offsetX = targetOffset
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:32:32: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
30 | .onAppear {
31 | // Animate the horizontal slide
32 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | offsetX = targetOffset
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:33:21: error: setter for 'offsetX' is only available in macOS 10.15 or newer
11 | /// - onEnd: A closure that is called when the animation completes.
12 | /// - content: The content to be animated.
13 | public struct AnimatedSlide<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | @State private var offsetX: CGFloat = 0
15 | let targetOffset: CGFloat
:
25 | }
26 |
27 | public var body: some View {
| `- note: add @available attribute to enclosing property
28 | content
29 | .offset(x: offsetX)
:
31 | // Animate the horizontal slide
32 | withAnimation(.easeInOut(duration: duration)) {
33 | offsetX = targetOffset
| |- error: setter for 'offsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | // Trigger the onEnd callback after the animation duration
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:49:13: error: 'Rectangle' is only available in macOS 10.15 or newer
42 |
43 | // Example usage
44 | struct AnimatedSlide_Previews: View {
| `- note: add @available attribute to enclosing struct
45 | var body: some View {
| `- note: add @available attribute to enclosing property
46 | AnimatedSlide(offset: 200, onEnd: {
47 | print("Animation ended!")
48 | }) {
49 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .frame(width: 100, height: 100)
51 | .foregroundColor(.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:50:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
42 |
43 | // Example usage
44 | struct AnimatedSlide_Previews: View {
| `- note: add @available attribute to enclosing struct
45 | var body: some View {
| `- note: add @available attribute to enclosing property
46 | AnimatedSlide(offset: 200, onEnd: {
47 | print("Animation ended!")
48 | }) {
49 | Rectangle()
50 | .frame(width: 100, height: 100)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .foregroundColor(.blue)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:51:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
42 |
43 | // Example usage
44 | struct AnimatedSlide_Previews: View {
| `- note: add @available attribute to enclosing struct
45 | var body: some View {
| `- note: add @available attribute to enclosing property
46 | AnimatedSlide(offset: 200, onEnd: {
47 | print("Animation ended!")
:
49 | Rectangle()
50 | .frame(width: 100, height: 100)
51 | .foregroundColor(.blue)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AnimatedSlide.swift:51:35: error: 'blue' is only available in macOS 10.15 or newer
42 |
43 | // Example usage
44 | struct AnimatedSlide_Previews: View {
| `- note: add @available attribute to enclosing struct
45 | var body: some View {
| `- note: add @available attribute to enclosing property
46 | AnimatedSlide(offset: 200, onEnd: {
47 | print("Animation ended!")
:
49 | Rectangle()
50 | .frame(width: 100, height: 100)
51 | .foregroundColor(.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:16:16: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
17 | let leading: AnyView?
18 | let actions: [AnyView]
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:17:18: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
18 | let actions: [AnyView]
19 | let backgroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:18:19: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
18 | let actions: [AnyView]
| `- error: 'AnyView' is only available in macOS 10.15 or newer
19 | let backgroundColor: Color
20 | let foregroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:19:26: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
18 | let actions: [AnyView]
19 | let backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | let foregroundColor: Color
21 | let elevation: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:20:26: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
18 | let actions: [AnyView]
19 | let backgroundColor: Color
20 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 | let elevation: CGFloat
22 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:16: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- error: 'AnyView' is only available in macOS 10.15 or newer
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:33:18: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:34:19: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 | backgroundColor: Color = Color.purple,
36 | foregroundColor: Color = Color.white,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:35:26: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
| `- error: 'Color' is only available in macOS 10.15 or newer
36 | foregroundColor: Color = Color.white,
37 | elevation: CGFloat = 4
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:36:26: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
36 | foregroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | elevation: CGFloat = 4
38 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- error: 'AnyView' is only available in macOS 10.15 or newer
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:26: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:34: error: 'Text' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- error: 'Text' is only available in macOS 10.15 or newer
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:43: error: 'font' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- error: 'font' is only available in macOS 10.15 or newer
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:32:49: error: 'headline' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
| `- error: 'headline' is only available in macOS 10.15 or newer
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:35:34: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
| `- error: 'Color' is only available in macOS 10.15 or newer
36 | foregroundColor: Color = Color.white,
37 | elevation: CGFloat = 4
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:35:40: error: 'purple' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
| `- error: 'purple' is only available in macOS 10.15 or newer
36 | foregroundColor: Color = Color.white,
37 | elevation: CGFloat = 4
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:36:34: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
36 | foregroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | elevation: CGFloat = 4
38 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:36:40: error: 'white' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
29 | /// - foregroundColor: The color of the title and icons.
30 | /// - elevation: The elevation (shadow) of the app bar.
31 | public init(
| `- note: add @available attribute to enclosing initializer
32 | title: AnyView = AnyView(Text("").font(.headline)), // Default empty text
33 | leading: AnyView? = nil,
34 | actions: [AnyView] = [],
35 | backgroundColor: Color = Color.purple,
36 | foregroundColor: Color = Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
37 | elevation: CGFloat = 4
38 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:47:27: error: 'View' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:80:31: error: 'View' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:48:9: error: 'HStack' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | // Leading icon/button
50 | if let leading = leading {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:48:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | // Leading icon/button
50 | if let leading = leading {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:52:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
50 | if let leading = leading {
51 | leading
52 | .foregroundColor(foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .padding(.leading, 16)
54 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:53:22: error: 'padding' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
51 | leading
52 | .foregroundColor(foregroundColor)
53 | .padding(.leading, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | } else {
55 | Spacer().frame(width: 40) // Placeholder to align title in center
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:50:38: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
50 | if let leading = leading {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | leading
52 | .foregroundColor(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:55:17: error: 'Spacer' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
53 | .padding(.leading, 16)
54 | } else {
55 | Spacer().frame(width: 40) // Placeholder to align title in center
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:55:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
53 | .padding(.leading, 16)
54 | } else {
55 | Spacer().frame(width: 40) // Placeholder to align title in center
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:54:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
52 | .foregroundColor(foregroundColor)
53 | .padding(.leading, 16)
54 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | Spacer().frame(width: 40) // Placeholder to align title in center
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:60:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
58 | // Title centered
59 | title
60 | .foregroundColor(foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .frame(maxWidth: .infinity, alignment: .center)
62 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:61:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
59 | title
60 | .foregroundColor(foregroundColor)
61 | .frame(maxWidth: .infinity, alignment: .center)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | // Actions (aligned to the right)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:61:57: error: 'center' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
59 | title
60 | .foregroundColor(foregroundColor)
61 | .frame(maxWidth: .infinity, alignment: .center)
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | // Actions (aligned to the right)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:64:13: error: 'HStack' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
62 |
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | ForEach(actions.indices, id: \.self) { index in
66 | actions[index]
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:64:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
62 |
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | ForEach(actions.indices, id: \.self) { index in
66 | actions[index]
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:65:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
65 | ForEach(actions.indices, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | actions[index]
67 | .foregroundColor(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:65:17: error: 'ForEach' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
65 | ForEach(actions.indices, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | actions[index]
67 | .foregroundColor(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:65:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
65 | ForEach(actions.indices, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | actions[index]
67 | .foregroundColor(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:67:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
65 | ForEach(actions.indices, id: \.self) { index in
66 | actions[index]
67 | .foregroundColor(foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:64:33: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
62 |
63 | // Actions (aligned to the right)
64 | HStack(spacing: 10) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | ForEach(actions.indices, id: \.self) { index in
66 | actions[index]
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:70:14: error: 'padding' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
68 | }
69 | }
70 | .padding(.trailing, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }
72 | .frame(height: 56) // Standard app bar height
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:48:16: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | // Leading icon/button
50 | if let leading = leading {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:72:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
70 | .padding(.trailing, 16)
71 | }
72 | .frame(height: 56) // Standard app bar height
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .background(backgroundColor)
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:73:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
71 | }
72 | .frame(height: 56) // Standard app bar height
73 | .background(backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:74:10: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
72 | .frame(height: 56) // Standard app bar height
73 | .background(backgroundColor)
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:74:24: error: 'Color' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
72 | .frame(height: 56) // Standard app bar height
73 | .background(backgroundColor)
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:74:30: error: 'black' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
72 | .frame(height: 56) // Standard app bar height
73 | .background(backgroundColor)
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:74:36: error: 'opacity' is only available in macOS 10.15 or newer
13 | /// - foregroundColor: The color of text and icons (default: white).
14 | /// - elevation: The shadow elevation of the app bar (default: 4).
15 | public struct AppBar: View {
| `- note: add @available attribute to enclosing struct
16 | let title: AnyView
17 | let leading: AnyView?
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | HStack {
49 | // Leading icon/button
:
72 | .frame(height: 56) // Standard app bar height
73 | .background(backgroundColor)
74 | .shadow(color: Color.black.opacity(0.1), radius: elevation, y: elevation) // Shadow effect
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:81:9: error: 'VStack' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | AppBar(
83 | title: AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:83:24: error: 'AnyView' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | HStack {
85 | Image(systemName: "star.fill")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:84:21: error: 'HStack' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Image(systemName: "star.fill")
86 | Text("Custom Title")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:85:25: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
85 | Image(systemName: "star.fill")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
86 | Text("Custom Title")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:85:25: error: 'Image' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
85 | Image(systemName: "star.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | Text("Custom Title")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:85:25: error: 'init(systemName:)' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
85 | Image(systemName: "star.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 | Text("Custom Title")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:86:25: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
84 | HStack {
85 | Image(systemName: "star.fill")
86 | Text("Custom Title")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
87 | }
88 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:86:25: error: 'Text' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
84 | HStack {
85 | Image(systemName: "star.fill")
86 | Text("Custom Title")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:84:28: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
85 | Image(systemName: "star.fill")
86 | Text("Custom Title")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:84:28: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
83 | title: AnyView(
84 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
85 | Image(systemName: "star.fill")
86 | Text("Custom Title")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:88:22: error: 'font' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
86 | Text("Custom Title")
87 | }
88 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | ),
90 | leading: AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:88:28: error: 'headline' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
86 | Text("Custom Title")
87 | }
88 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | ),
90 | leading: AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:90:26: error: 'AnyView' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
88 | .font(.headline)
89 | ),
90 | leading: AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | Button(action: {
92 | print("Back pressed")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:91:21: error: 'Button' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
89 | ),
90 | leading: AnyView(
91 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | print("Back pressed")
93 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:94:25: error: 'Image' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
92 | print("Back pressed")
93 | }) {
94 | Image(systemName: "chevron.left")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .font(.title2)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:94:25: error: 'init(systemName:)' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
92 | print("Back pressed")
93 | }) {
94 | Image(systemName: "chevron.left")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
95 | .font(.title2)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:95:30: error: 'font' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
93 | }) {
94 | Image(systemName: "chevron.left")
95 | .font(.title2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 | ),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:95:36: error: 'title2' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
93 | }) {
94 | Image(systemName: "chevron.left")
95 | .font(.title2)
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 | }
97 | ),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:99:21: error: 'AnyView' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
97 | ),
98 | actions: [
99 | AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | Button(action: {
101 | print("Search pressed")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:100:25: error: 'Button' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
98 | actions: [
99 | AnyView(
100 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | print("Search pressed")
102 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:103:29: error: 'Image' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
101 | print("Search pressed")
102 | }) {
103 | Image(systemName: "magnifyingglass")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | .font(.title2)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:103:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
101 | print("Search pressed")
102 | }) {
103 | Image(systemName: "magnifyingglass")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
104 | .font(.title2)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:104:34: error: 'font' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
102 | }) {
103 | Image(systemName: "magnifyingglass")
104 | .font(.title2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | ),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:104:40: error: 'title2' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
102 | }) {
103 | Image(systemName: "magnifyingglass")
104 | .font(.title2)
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 | ),
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:107:21: error: 'AnyView' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
105 | }
106 | ),
107 | AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | Button(action: {
109 | print("Profile pressed")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:108:25: error: 'Button' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
106 | ),
107 | AnyView(
108 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | print("Profile pressed")
110 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:111:29: error: 'Image' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
109 | print("Profile pressed")
110 | }) {
111 | Image(systemName: "person.circle")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .font(.title2)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:111:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
109 | print("Profile pressed")
110 | }) {
111 | Image(systemName: "person.circle")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
112 | .font(.title2)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:112:34: error: 'font' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
110 | }) {
111 | Image(systemName: "person.circle")
112 | .font(.title2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 | )
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:112:40: error: 'title2' is only available in macOS 11.0 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
110 | }) {
111 | Image(systemName: "person.circle")
112 | .font(.title2)
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
113 | }
114 | )
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:117:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
115 | ]
116 | )
117 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
118 | }
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:117:13: error: 'Spacer' is only available in macOS 10.15 or newer
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
82 | AppBar(
:
115 | ]
116 | )
117 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | }
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AppBar.swift:81:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
77 |
78 | //Example
79 | struct AppBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
80 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
81 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
82 | AppBar(
83 | title: AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:28:40: error: 'ViewBuilder' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
26 | /// - aspectRatio: The width-to-height ratio.
27 | /// - content: The view that should maintain the specified aspect ratio.
28 | public init(aspectRatio: CGFloat, @ViewBuilder content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
29 | self.aspectRatio = aspectRatio
30 | self.content = content()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:33:27: error: 'View' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
31 | }
32 |
33 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
34 | GeometryReader { geometry in
35 | let width = geometry.size.width
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:20:36: error: 'View' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:47:31: error: 'View' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:34:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
31 | }
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | let width = geometry.size.width
36 | let height = width / aspectRatio
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:38:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
31 | }
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 | GeometryReader { geometry in
35 | let width = geometry.size.width
36 | let height = width / aspectRatio
37 | content
38 | .frame(width: width, height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .clipped()
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:39:18: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
31 | }
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 | GeometryReader { geometry in
35 | let width = geometry.size.width
:
37 | content
38 | .frame(width: width, height: height)
39 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | .frame(maxWidth: .infinity) // Ensures full width
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:41:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
18 | /// }
19 | /// ```
20 | public struct AspectRatio<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
21 | let aspectRatio: CGFloat
22 | let content: Content
:
31 | }
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 | GeometryReader { geometry in
35 | let width = geometry.size.width
:
39 | .clipped()
40 | }
41 | .frame(maxWidth: .infinity) // Ensures full width
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:48:9: error: 'VStack' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:48:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:48:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:49:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
50 | Rectangle()
51 | .fill(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:49:44: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
50 | Rectangle()
51 | .fill(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:50:17: error: 'Rectangle' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .fill(Color.blue)
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:51:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:51:27: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:51:33: error: 'blue' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:52:22: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:52:30: error: 'Text' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:52:56: error: 'foregroundColor' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:52:73: error: 'white' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
50 | Rectangle()
51 | .fill(Color.blue)
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:54:14: error: 'padding' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
52 | .overlay(Text("16:9 Aspect Ratio").foregroundColor(.white))
53 | }
54 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 |
56 | AspectRatio(aspectRatio: 1) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:56:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
54 | .padding()
55 |
56 | AspectRatio(aspectRatio: 1) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
57 | Circle()
58 | .fill(Color.green)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:56:41: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
54 | .padding()
55 |
56 | AspectRatio(aspectRatio: 1) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
57 | Circle()
58 | .fill(Color.green)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:57:17: error: 'Circle' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
55 |
56 | AspectRatio(aspectRatio: 1) {
57 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .fill(Color.green)
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:58:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
56 | AspectRatio(aspectRatio: 1) {
57 | Circle()
58 | .fill(Color.green)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:58:27: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
56 | AspectRatio(aspectRatio: 1) {
57 | Circle()
58 | .fill(Color.green)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:58:33: error: 'green' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
56 | AspectRatio(aspectRatio: 1) {
57 | Circle()
58 | .fill(Color.green)
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:59:22: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
57 | Circle()
58 | .fill(Color.green)
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:59:30: error: 'Text' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
57 | Circle()
58 | .fill(Color.green)
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:59:49: error: 'foregroundColor' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
57 | Circle()
58 | .fill(Color.green)
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:59:66: error: 'white' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
57 | Circle()
58 | .fill(Color.green)
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/AspectRatio.swift:61:14: error: 'padding' is only available in macOS 10.15 or newer
44 |
45 | /// Example usage of `AspectRatio`
46 | struct AspectRatio_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
48 | VStack {
49 | AspectRatio(aspectRatio: 16/9) {
:
59 | .overlay(Text("1:1 Square").foregroundColor(.white))
60 | }
61 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:52:24: error: 'Animation' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
50 | let autoPlayInterval: Double
51 | let autoPlayAnimationDuration: Double
52 | let autoPlayCurve: Animation
| `- error: 'Animation' is only available in macOS 10.15 or newer
53 | let enlargeCenterPage: Bool
54 | let enlargeFactor: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:56:26: error: 'Axis' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
54 | let enlargeFactor: CGFloat
55 | let onPageChanged: ((Int) -> Void)?
56 | let scrollDirection: Axis.Set
| `- error: 'Axis' is only available in macOS 10.15 or newer
57 | let viewportFraction: CGFloat
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:60:6: error: 'State' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
58 |
59 | // MARK: - State
60 | @State private var currentIndex: Int
| `- error: 'State' is only available in macOS 10.15 or newer
61 | @State private var isPlaying: Bool
62 | @State private var timer: Timer? = nil
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:61:6: error: 'State' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
59 | // MARK: - State
60 | @State private var currentIndex: Int
61 | @State private var isPlaying: Bool
| `- error: 'State' is only available in macOS 10.15 or newer
62 | @State private var timer: Timer? = nil
63 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:62:6: error: 'State' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
60 | @State private var currentIndex: Int
61 | @State private var isPlaying: Bool
62 | @State private var timer: Timer? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
63 |
64 | // MARK: - Initializer
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:75:24: error: 'Animation' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
63 |
64 | // MARK: - Initializer
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | slides: [Content],
67 | height: CGFloat,
:
73 | autoPlayInterval: Double = 3.0,
74 | autoPlayAnimationDuration: Double = 0.5,
75 | autoPlayCurve: Animation = .easeInOut,
| `- error: 'Animation' is only available in macOS 10.15 or newer
76 | enlargeCenterPage: Bool = false,
77 | enlargeFactor: CGFloat = 1.2,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:79:26: error: 'Axis' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
63 |
64 | // MARK: - Initializer
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | slides: [Content],
67 | height: CGFloat,
:
77 | enlargeFactor: CGFloat = 1.2,
78 | onPageChanged: ((Int) -> Void)? = nil,
79 | scrollDirection: Axis.Set = .horizontal,
| `- error: 'Axis' is only available in macOS 10.15 or newer
80 | viewportFraction: CGFloat = 1.0
81 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:75:37: error: 'easeInOut' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
63 |
64 | // MARK: - Initializer
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | slides: [Content],
67 | height: CGFloat,
:
73 | autoPlayInterval: Double = 3.0,
74 | autoPlayAnimationDuration: Double = 0.5,
75 | autoPlayCurve: Animation = .easeInOut,
| `- error: 'easeInOut' is only available in macOS 10.15 or newer
76 | enlargeCenterPage: Bool = false,
77 | enlargeFactor: CGFloat = 1.2,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:102:27: error: 'View' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
100 |
101 | // MARK: - Body
102 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
103 | GeometryReader { geometry in
104 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:192:57: error: 'GeometryProxy' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:192:80: error: 'View' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:41:33: error: 'View' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:271:31: error: 'View' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:97:25: error: 'State' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
63 |
64 | // MARK: - Initializer
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | slides: [Content],
67 | height: CGFloat,
:
95 | self.scrollDirection = scrollDirection
96 | self.viewportFraction = viewportFraction
97 | _currentIndex = State(initialValue: initialPage)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | _isPlaying = State(initialValue: autoPlay)
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:98:22: error: 'State' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
63 |
64 | // MARK: - Initializer
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | slides: [Content],
67 | height: CGFloat,
:
96 | self.viewportFraction = viewportFraction
97 | _currentIndex = State(initialValue: initialPage)
98 | _isPlaying = State(initialValue: autoPlay)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:102:32: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
100 |
101 | // MARK: - Body
102 | public var body: some View {
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
103 | GeometryReader { geometry in
104 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:193:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | let slideCenter = slideGeometry.frame(in: .global).midX
195 | let screenCenter = geometry.size.width / 2
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:194:45: error: 'frame(in:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | let screenCenter = geometry.size.width / 2
196 | let scale = enlargeCenterPage ?
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:200:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
:
198 | : 1.0
199 | slides[index]
200 | .frame(width: geometry.size.width * viewportFraction, height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | .scaleEffect(scale)
202 | .animation(.easeInOut(duration: autoPlayAnimationDuration), value: scale)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:201:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
:
199 | slides[index]
200 | .frame(width: geometry.size.width * viewportFraction, height: height)
201 | .scaleEffect(scale)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | .animation(.easeInOut(duration: autoPlayAnimationDuration), value: scale)
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:202:18: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
:
200 | .frame(width: geometry.size.width * viewportFraction, height: height)
201 | .scaleEffect(scale)
202 | .animation(.easeInOut(duration: autoPlayAnimationDuration), value: scale)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | }
204 | .frame(width: geometry.size.width * viewportFraction, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:202:29: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
:
200 | .frame(width: geometry.size.width * viewportFraction, height: height)
201 | .scaleEffect(scale)
202 | .animation(.easeInOut(duration: autoPlayAnimationDuration), value: scale)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | }
204 | .frame(width: geometry.size.width * viewportFraction, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:204:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
190 |
191 | /// Returns the view for a single slide.
192 | private func slideView(for index: Int, in geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
193 | GeometryReader { slideGeometry in
194 | let slideCenter = slideGeometry.frame(in: .global).midX
:
202 | .animation(.easeInOut(duration: autoPlayAnimationDuration), value: scale)
203 | }
204 | .frame(width: geometry.size.width * viewportFraction, height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | }
206 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:209:9: error: 'withAnimation' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
206 |
207 | /// Advances to the next slide.
208 | private func nextSlide() {
| `- note: add @available attribute to enclosing instance method
209 | withAnimation(autoPlayCurve) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | currentIndex = reverse ? currentIndex - 1 : currentIndex + 1
211 | if enableInfiniteScroll {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:210:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
206 |
207 | /// Advances to the next slide.
208 | private func nextSlide() {
| `- note: add @available attribute to enclosing instance method
209 | withAnimation(autoPlayCurve) {
210 | currentIndex = reverse ? currentIndex - 1 : currentIndex + 1
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | if enableInfiniteScroll {
212 | currentIndex = (currentIndex + slides.count) % slides.count
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:212:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
206 |
207 | /// Advances to the next slide.
208 | private func nextSlide() {
| `- note: add @available attribute to enclosing instance method
209 | withAnimation(autoPlayCurve) {
210 | currentIndex = reverse ? currentIndex - 1 : currentIndex + 1
211 | if enableInfiniteScroll {
212 | currentIndex = (currentIndex + slides.count) % slides.count
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | } else {
214 | currentIndex = min(max(currentIndex, 0), slides.count - 1)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:214:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
206 |
207 | /// Advances to the next slide.
208 | private func nextSlide() {
| `- note: add @available attribute to enclosing instance method
209 | withAnimation(autoPlayCurve) {
210 | currentIndex = reverse ? currentIndex - 1 : currentIndex + 1
:
212 | currentIndex = (currentIndex + slides.count) % slides.count
213 | } else {
214 | currentIndex = min(max(currentIndex, 0), slides.count - 1)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | }
216 | onPageChanged?(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:222:9: error: 'withAnimation' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
219 |
220 | /// Goes back to the previous slide.
221 | private func prevSlide() {
| `- note: add @available attribute to enclosing instance method
222 | withAnimation(autoPlayCurve) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | currentIndex = reverse ? currentIndex + 1 : currentIndex - 1
224 | if enableInfiniteScroll {
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:223:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
219 |
220 | /// Goes back to the previous slide.
221 | private func prevSlide() {
| `- note: add @available attribute to enclosing instance method
222 | withAnimation(autoPlayCurve) {
223 | currentIndex = reverse ? currentIndex + 1 : currentIndex - 1
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if enableInfiniteScroll {
225 | currentIndex = (currentIndex + slides.count) % slides.count
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:225:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
219 |
220 | /// Goes back to the previous slide.
221 | private func prevSlide() {
| `- note: add @available attribute to enclosing instance method
222 | withAnimation(autoPlayCurve) {
223 | currentIndex = reverse ? currentIndex + 1 : currentIndex - 1
224 | if enableInfiniteScroll {
225 | currentIndex = (currentIndex + slides.count) % slides.count
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | } else {
227 | currentIndex = min(max(currentIndex, 0), slides.count - 1)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:227:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
219 |
220 | /// Goes back to the previous slide.
221 | private func prevSlide() {
| `- note: add @available attribute to enclosing instance method
222 | withAnimation(autoPlayCurve) {
223 | currentIndex = reverse ? currentIndex + 1 : currentIndex - 1
:
225 | currentIndex = (currentIndex + slides.count) % slides.count
226 | } else {
227 | currentIndex = min(max(currentIndex, 0), slides.count - 1)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | }
229 | onPageChanged?(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:235:9: error: 'withAnimation' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
232 |
233 | /// Changes the page to the specified index.
234 | private func changePage(to index: Int) {
| `- note: add @available attribute to enclosing instance method
235 | withAnimation(autoPlayCurve) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | currentIndex = index
237 | onPageChanged?(index)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:236:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
232 |
233 | /// Changes the page to the specified index.
234 | private func changePage(to index: Int) {
| `- note: add @available attribute to enclosing instance method
235 | withAnimation(autoPlayCurve) {
236 | currentIndex = index
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | onPageChanged?(index)
238 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:246:13: error: setter for 'timer' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
242 |
243 | /// Starts the autoplay timer if enabled.
244 | private func startAutoPlay() {
| `- note: add @available attribute to enclosing instance method
245 | if autoPlay {
246 | timer = Timer.scheduledTimer(withTimeInterval: autoPlayInterval, repeats: true) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
247 | nextSlide()
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:247:17: warning: capture of non-sendable type 'Content.Type' in an isolated closure
245 | if autoPlay {
246 | timer = Timer.scheduledTimer(withTimeInterval: autoPlayInterval, repeats: true) { _ in
247 | nextSlide()
| `- warning: capture of non-sendable type 'Content.Type' in an isolated closure
248 | }
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:244:18: warning: capture of non-sendable type 'Content.Type' in an isolated closure
242 |
243 | /// Starts the autoplay timer if enabled.
244 | private func startAutoPlay() {
| `- warning: capture of non-sendable type 'Content.Type' in an isolated closure
245 | if autoPlay {
246 | timer = Timer.scheduledTimer(withTimeInterval: autoPlayInterval, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:255:9: error: setter for 'timer' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
251 |
252 | /// Stops the autoplay timer.
253 | private func stopAutoPlay() {
| `- note: add @available attribute to enclosing instance method
254 | timer?.invalidate()
255 | timer = nil
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
256 | }
257 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:260:9: error: cannot pass as inout because setter for 'isPlaying' is only available in macOS 10.15 or newer
39 | ///
40 | /// - Note: This is a simplified implementation that uses a horizontal ScrollView with paging behavior.
41 | public struct Carousel<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
42 | // MARK: - Properties
43 | let slides: [Content]
:
257 |
258 | /// Toggles autoplay on and off.
259 | private func togglePlay() {
| `- note: add @available attribute to enclosing instance method
260 | isPlaying.toggle()
| |- error: cannot pass as inout because setter for 'isPlaying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | if isPlaying {
262 | startAutoPlay()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:17: error: 'AnyView' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:25: error: 'Rectangle' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:37: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:42: error: 'Color' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:274:48: error: 'red' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:17: error: 'AnyView' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:25: error: 'Rectangle' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:37: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:42: error: 'Color' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:275:48: error: 'green' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | AnyView(Rectangle().fill(Color.blue))
277 | ],
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:17: error: 'AnyView' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:25: error: 'Rectangle' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:37: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:42: error: 'Color' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:276:48: error: 'blue' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
274 | AnyView(Rectangle().fill(Color.red)),
275 | AnyView(Rectangle().fill(Color.green)),
276 | AnyView(Rectangle().fill(Color.blue))
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | ],
278 | height: 400,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:286:29: error: 'easeInOut' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
:
284 | autoPlayInterval: 3.0,
285 | autoPlayAnimationDuration: 0.5,
286 | autoPlayCurve: .easeInOut,
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | enlargeCenterPage: true,
288 | enlargeFactor: 1.2,
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/CarouselSlider.swift:293:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
268 |
269 | // MARK: - Preview
270 | struct Carousel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
271 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
272 | Carousel(
273 | slides: [
:
291 | viewportFraction: 0.8
292 | )
293 | .frame(width: 300, height: 400)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
294 | }
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:25:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
25 | public init(@ViewBuilder content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.content = content()
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | GeometryReader { geometry in
31 | content
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:22:31: error: 'View' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:38:31: error: 'View' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:30:5: error: 'GeometryReader' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | content
32 | .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:32:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | GeometryReader { geometry in
31 | content
32 | .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:32:90: error: 'center' is only available in macOS 10.15 or newer
20 | */
21 |
22 | public struct Center<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | let content: Content
24 |
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | GeometryReader { geometry in
31 | content
32 | .frame(width: geometry.size.width, height: geometry.size.height, alignment: .center)
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:40:13: error: 'Text' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .font(.title)
42 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:41:18: error: 'font' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .padding()
43 | .background(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:41:24: error: 'title' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
| |- error: 'title' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .padding()
43 | .background(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:42:18: error: 'padding' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
42 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .background(Color.blue)
44 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:43:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
42 | .padding()
43 | .background(Color.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:43:29: error: 'Color' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
42 | .padding()
43 | .background(Color.blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:43:35: error: 'blue' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
41 | .font(.title)
42 | .padding()
43 | .background(Color.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:44:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
42 | .padding()
43 | .background(Color.blue)
44 | .foregroundColor(.white)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | } .background(Color.gray.opacity(0.3))
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:44:35: error: 'white' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
42 | .padding()
43 | .background(Color.blue)
44 | .foregroundColor(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | } .background(Color.gray.opacity(0.3))
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:45:12: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
43 | .background(Color.blue)
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:45:23: error: 'Color' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
43 | .background(Color.blue)
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:45:29: error: 'gray' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
43 | .background(Color.blue)
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlutterSwiftUI/Center.swift:45:34: error: 'opacity' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct Center_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | Center {
40 | Text("Centered Content")
:
43 | .background(Color.blue)
44 | .foregroundColor(.white)
45 | } .background(Color.gray.opacity(0.3))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
BUILD FAILURE 6.2 macosSpm