Post

Replies

Boosts

Views

Activity

Reply to SwiftUI's SidebarListStyle breaks color in iOS 14.2 beta 2
I am also seeing some anomalies in Xcode 13.Beta3 // Renders image red struct ListSingleView: View {   var body: some View {     List {       Label("SINGLE", systemImage: "map").listItemTint(.red)     }   } } // Renders image default struct ListRangeView: View {   var body: some View {     List(0 ..< 3) { _ in       Label("RANGE", systemImage: "map").listItemTint(.red)     }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’21
Reply to SwiftUI shadow - spread parameter
Not sure if this is what your after, but it might help ... struct ContentView: View {   var body: some View {     VStack(spacing: 100) {       ShadowView(color: .red)         .shadow(color: .black, radius: 10, x: 0.0, y: -5.0)       ShadowView(color: .green)         .shadow(color: .black, radius: 10, x: 0.0, y: 0.0)         .shadow(color: .black, radius: 10, x: 0.0, y: 0.0)       ShadowView(color: .blue)         .shadow(color: .black, radius: 30, x: 0.0, y: 20.0)     }   } } struct ShadowView: View {   var color: Color   var body: some View {     RoundedRectangle(cornerRadius: 25.0)       .fill(color)       .frame(width: 200, height: 100)   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21
Reply to Value based colors
Hi, LineMark uses a single collar, try PointMark in your example above.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Color literal not displaying as Color Swatch?
Not as of Xcode 13.2 Beta2, color literals display as a swatch in some places, but not others. What I am seeing is this: What I would like to see is this:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Color literal not displaying as Color Swatch?
My question is should the Xcode IDE be displaying a color swatch 🟥 in the View shown, instead of just converting it to text "Color(#colorLiteral(red: 0.292, green: 0.081, blue: 0.6, alpha: 255))"
Replies
Boosts
Views
Activity
Sep ’21
Reply to Color literal not displaying as Color Swatch?
Hiya, when you say "works for me" you mean that it's displaying the literals correctly in the IDE (i.e. showing two color literals as in the example "B" below). Just checking ...
Replies
Boosts
Views
Activity
Sep ’21
Reply to Why is typing in X-Code so sloooooooow??
I have had this issue (lag / delay when typing in Xcode) with my wireless Apple keyboard, the usual off/on cycle seems to fix it for me.
Replies
Boosts
Views
Activity
Jul ’21
Reply to SwiftUI's SidebarListStyle breaks color in iOS 14.2 beta 2
I am also seeing some anomalies in Xcode 13.Beta3 // Renders image red struct ListSingleView: View {   var body: some View {     List {       Label("SINGLE", systemImage: "map").listItemTint(.red)     }   } } // Renders image default struct ListRangeView: View {   var body: some View {     List(0 ..< 3) { _ in       Label("RANGE", systemImage: "map").listItemTint(.red)     }   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to My Favourite DevForums Improvements
Great news, adding pictures is a big one for me, particularly when trying to explain visuals, nice work!
Replies
Boosts
Views
Activity
May ’21
Reply to SwiftUI shadow - spread parameter
Not sure if this is what your after, but it might help ... struct ContentView: View {   var body: some View {     VStack(spacing: 100) {       ShadowView(color: .red)         .shadow(color: .black, radius: 10, x: 0.0, y: -5.0)       ShadowView(color: .green)         .shadow(color: .black, radius: 10, x: 0.0, y: 0.0)         .shadow(color: .black, radius: 10, x: 0.0, y: 0.0)       ShadowView(color: .blue)         .shadow(color: .black, radius: 30, x: 0.0, y: 20.0)     }   } } struct ShadowView: View {   var color: Color   var body: some View {     RoundedRectangle(cornerRadius: 25.0)       .fill(color)       .frame(width: 200, height: 100)   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’21