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()) } }
Aug ’23
Reply to Change localization of UIDatePicker in iOS 14
I make double check and it's worked correctly) thanks a lot for your answer) For future who will have the same issue - please check this Apple likn - https://developer.apple.com/news/?id=u2cfuj88 (this is the new way to change the language on the fly in your application, but only for iOS 13 and higher) @Claude31 please, attach this link https://developer.apple.com/news/?id=u2cfuj88 to your first message and add restriction for iOS 13 and higher and I will mark it like answer.
May ’21