Post

Replies

Boosts

Views

Activity

Reply to swift ui magic
here is a solution: struct TestView: View { var body: some View { Text("description") .clipShape(getShape(position: .middle)) } } struct TestView_Previews: PreviewProvider { static var previews: some View { ContentView() } } enum ElementPosition { case first case middle } func getShape(position: ElementPosition) -> some Shape { switch position { case .first: return AnyShape(Circle()) case .middle: return AnyShape(Rectangle()) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Reply to iOS13 Wrong UIPasteboard.general.changeCount after UITextField becomes first responder
@myintruder do you have any updates about this?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to iOS13 UIPasteboard.general.changeCount increase 2 after UITextfield become first responder
@Claude31 here is a gist with a sample that you can try, just add a CustomTextFieldsView to your VC and try
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to swift ui magic
here is a solution: struct TestView: View { var body: some View { Text("description") .clipShape(getShape(position: .middle)) } } struct TestView_Previews: PreviewProvider { static var previews: some View { ContentView() } } enum ElementPosition { case first case middle } func getShape(position: ElementPosition) -> some Shape { switch position { case .first: return AnyShape(Circle()) case .middle: return AnyShape(Rectangle()) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23