Post

Replies

Boosts

Views

Activity

Reply to Swiftui performance
try this maybe it will help struct LazyView<Content: View>: View {     let build: () -> Content     init(_ build: @autoclosure @escaping () -> Content) {         self.build = build     }     var body: Content {         build()     } } LazyView(  MapAnnotation(coordinate: CLLocationCoordinate2D(latitude: mark.lat, longitude: mark.long)) { Button {withAnimation {  self.selectedGymUid = Int(mark.uid)  }} label: {RoundedGymIconOnMapView(name:mark.name)  .clipShape(Circle())  .overlay(Circle().stroke(selectedGymUid == Int(mark.uid) ? Color(.green).opacity(0.5) : AppColor.shared.joggingColor.opacity(0.5),lineWidth: 1.4)) .scaleEffect(selectedGymUid == Int(mark.uid) ? 2 : 1)  .shadow(radius: 5) } } )
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to "UI unresponsiveness" warning on @main
im having same issue after updating to the new Xcode Version 16.0
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Swiftui performance
try this maybe it will help struct LazyView<Content: View>: View {     let build: () -> Content     init(_ build: @autoclosure @escaping () -> Content) {         self.build = build     }     var body: Content {         build()     } } LazyView(  MapAnnotation(coordinate: CLLocationCoordinate2D(latitude: mark.lat, longitude: mark.long)) { Button {withAnimation {  self.selectedGymUid = Int(mark.uid)  }} label: {RoundedGymIconOnMapView(name:mark.name)  .clipShape(Circle())  .overlay(Circle().stroke(selectedGymUid == Int(mark.uid) ? Color(.green).opacity(0.5) : AppColor.shared.joggingColor.opacity(0.5),lineWidth: 1.4)) .scaleEffect(selectedGymUid == Int(mark.uid) ? 2 : 1)  .shadow(radius: 5) } } )
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to How to manage view when model the same but different views?
if UIDevice.current.localizedModel == "iPhone" { } else if UIDevice.current.localizedModel == "iPad" { }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to I can't preview my project
try bump down to IOS 15.1 and resume
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Swift Ui canvas not showing up
bump the build down to 15.1 and try and resume
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Swift: How to add 47 Bool filter to json List
I did not delete the post
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Swift: How to add 47 Bool filter to json List
...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode 13.2 - Internal error : Missing Package Description Module
I'm facing same issues and I have 3 apps that need to be pushed to review before Christmas :(
Replies
Boosts
Views
Activity
Dec ’21