Posts

Post not yet marked as solved
0 Replies
494 Views
Hi I'm trying to wake up the app (when closed or in background mode) when user answers a CallKit incoming call. I've overloaded the func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) and it is always called but it doesn't start or enter the app. Any idea? Thanks
Posted
by giamma84.
Last updated
.
Post not yet marked as solved
3 Replies
6.9k Views
HiI'm using an iphone x with ios 13.1 to test my app but when I try to call my backend deployed on aws and covered by an aws certificate the app throws this error:2019-10-01 15:29:04.099537+0200 CopApp[2120:565037] [] tcp_input [C2.1:3] flags=[R.] seq=1248880982, ack=548775464, win=28408 state=ESTABLISHED rcv_nxt=1248880982, snd_una=5487754642019-10-01 15:29:04.104758+0200 CopApp[2120:565037] Connection 2: received failure notification2019-10-01 15:29:04.104938+0200 CopApp[2120:565037] Connection 2: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify2019-10-01 15:29:04.105080+0200 CopApp[2120:565037] Connection 2: failed to connect 3:-9816, reason -12019-10-01 15:29:04.105289+0200 CopApp[2120:565037] Connection 2: encountered error(3:-9816)I don't know why this error is returned because I read all new apple's certificates policies but it seems that aws certificates completely fullfill them.Can you help me?Thanks
Posted
by giamma84.
Last updated
.
Post not yet marked as solved
1 Replies
332 Views
Hi I'm here because i need a help to understand how to design ui for both iPhone and iPad. I've designed this simple ui: var body: some View {                  VStack {                              // Vstack with logo and go to site button             VStack {                                  Image("Logo")                     .resizable()                     .frame(minWidth: 250, idealWidth: 250, maxWidth: 250, minHeight: 100, idealHeight: 100, maxHeight: 100, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)                     .offset(y: 50)                                  Button("Vai al sito") {                     goToHomeSite()                 }                 .font(.title)                 .frame(width: 250.0, height: 40.0)                 .foregroundColor(Color("SiteGreen"))                 .background(Color.white)                 .clipShape(Capsule())                 .offset(y: 60)                              }             .frame(maxWidth: .infinity, maxHeight: 225, alignment: .top)             .background(Color("SiteGreen"))             .ignoresSafeArea() } } In iPhone it works fine but in iPad the image and the button remain of the same width. I obviously understand why (I set ideal width and ideal height) but I can't understand how to obtain my result in other ways. Could you please give me some suggestions? Thanks
Posted
by giamma84.
Last updated
.
Post not yet marked as solved
0 Replies
231 Views
Hi I have developed a view that manages three subviews: login, register and confirm code. Now I'm developing a separate view that manages all the subviews after login successful. The idea is that after login with success the new is pushed and the old is popped. I've tried with NavigationLink in the login subview but it seems that it doesn't like the isActive change in the rest response (ie in the completion). Here is the code: NavigationLink(             destination: LoggedView(),             isActive: self.$pushToLogged,             label: {                              }         ).hidden() func login() { let lF = LoginServiceFacade()             lF.loginMember(mobileNumber: mobileNumber, password: password, completion: {                 (response: LoginResponse?, error: ConnectionErrors?) in self.pushToLogged = true }) } Any idea? Thanks in advance
Posted
by giamma84.
Last updated
.
Post not yet marked as solved
0 Replies
378 Views
HiI'm trying to add a simple chat system to my app but I'm encountering problems with the new message view. What I tried is to create a view at the bottom of the screen with a fixed height and inside it I tried to create a button to send the new message and a textview to insert the new message. I want a single line text view that auto increments the height and the lines when the message goes to a new line (like in whatsapp or messages).The problems I encountered are:1) if the keyboard is visible the view area is scrolled up but when I insert the first letter it disappears;2) if i reset the constraints, problem one is resolved but the view is totally unaligned;3) if i reset the constraints and add new lines, the text view increments the size but the view not.So, have you any example to develop a solution like this?Thanks
Posted
by giamma84.
Last updated
.
Post marked as solved
2 Replies
2.6k Views
HiSince I upgraded to ios13 i have a problem running this piece of codelet text = cell.statusTitleLabel.attributedText as! NSMutableAttributedString text.addAttribute(NSAttributedString.Key.strikethroughStyle, value: 1, range: NSMakeRange(0, text.length)) cell.statusTitleLabel.attributedText = text cell.isUserInteractionEnabled = falseThe line 1 throws the error of cast exception:Could not cast value of type 'NSConcreteAttributedString' (0x1ec42a250) to 'NSMutableAttributedString' (0x1ec42a2a0).Until ios12 that code worked without problems. Any idea why this behaviour is changed and how to fix the problem?Thanks
Posted
by giamma84.
Last updated
.