|
Scanner oddity
Anybody uses the Scanner class?
I’m using an instance to extract some data from a string received from a web server.
If I have a string that is “45\nBlah”, read the “45”, the scanner
Anybody uses the Scanner class?
I’m using an instance to extract some data from a string received from a web server.
If I have a string that is “45\nBlah”, read the “45”, the scanner
|
By
Laurent Daudelin
·
#1425
·
|
|
How to embed Swift Package executable into macOS app
I have a macOS app I’d like to embed an executable from a swift package. However, while I can add the swift package under the app target’s “Frameworks, Libraries, and Embedded Content”
I have a macOS app I’d like to embed an executable from a swift package. However, while I can add the swift package under the app target’s “Frameworks, Libraries, and Embedded Content”
|
By
Jim
·
#1424
·
|
|
Re: Async/Await and Model Dialogs
also you can enlargen your screen resolution:
apple->system prefs->displays->display
resolution: scaled, click "more space" on the far right
-dave
also you can enlargen your screen resolution:
apple->system prefs->displays->display
resolution: scaled, click "more space" on the far right
-dave
|
By
David M. Cotter
·
#1423
·
|
|
Async/Await and Model Dialogs
In a UIKit context, has anyone had experience/success in using async/await to synchronize a modal dialog with other logic? I've tried it a bit without success.
I.e, given a presented dialog, I want to
In a UIKit context, has anyone had experience/success in using async/await to synchronize a modal dialog with other logic? I've tried it a bit without success.
I.e, given a presented dialog, I want to
|
By
Rick Aurbach
·
#1422
·
|
|
Re: Just a little sharing - it's nice when your product finally hits the market.
I don’t know. I was at MorphoTrust in 2014 when we worked on what would become the Apple Drivers’ Licence app. I did the first iOS working prototype with Dan, Ted and Clayton. Our PM was Steve
I don’t know. I was at MorphoTrust in 2014 when we worked on what would become the Apple Drivers’ Licence app. I did the first iOS working prototype with Dan, Ted and Clayton. Our PM was Steve
|
By
Alex Zavatone
·
#1421
·
|
|
Re: Just a little sharing - it's nice when your product finally hits the market.
Louisiana has had a driver’s license app for several years. Is that your work, Alex?
Jack
Louisiana has had a driver’s license app for several years. Is that your work, Alex?
Jack
|
By
Jack Brindle
·
#1420
·
|
|
Just a little sharing - it's nice when your product finally hits the market.
My olden app has finally hit the market.
https://www.macrumors.com/2021/09/01/apple-shares-us-states-adopting-wallet-ids/
It’s only taken 7 years since I worked on it. : )
Cheers to everyone
My olden app has finally hit the market.
https://www.macrumors.com/2021/09/01/apple-shares-us-states-adopting-wallet-ids/
It’s only taken 7 years since I worked on it. : )
Cheers to everyone
|
By
Alex Zavatone
·
#1419
·
|
|
WKWebKit and iOS 13 in Xcode 12
Has anyone found a workaround for the crash of WKWebKit under the above configuration? Xcode reposts “Error acquiring assertion” trying to display any webpage.
A workaround to prevent the screen
Has anyone found a workaround for the crash of WKWebKit under the above configuration? Xcode reposts “Error acquiring assertion” trying to display any webpage.
A workaround to prevent the screen
|
By
Alex Zavatone
·
#1418
·
|
|
Re: New syntax in Xcode 12.5.
I found out what the issue was. The programmer didn’t add a self in front of variables that had the same name as the local that he was creating. Xcode 12.4 reports an error until you add self in
I found out what the issue was. The programmer didn’t add a self in front of variables that had the same name as the local that he was creating. Xcode 12.4 reports an error until you add self in
|
By
Alex Zavatone
·
#1417
·
|
|
Re: New syntax in Xcode 12.5.
1. myVar != someValue is the condition.
2. It determines whether the ternary expression evaluates to resultOne or resultTwo
3. resultOne or resultTwo is what is assigned in let myVar =
This seems
1. myVar != someValue is the condition.
2. It determines whether the ternary expression evaluates to resultOne or resultTwo
3. resultOne or resultTwo is what is assigned in let myVar =
This seems
|
By
Jeremy Hughes
·
#1416
·
|
|
Re: New syntax in Xcode 12.5.
The first half. Ternary has been there since time began. I’ve never seen this part be legitimate before.
The first half. Ternary has been there since time began. I’ve never seen this part be legitimate before.
|
By
Alex Zavatone
·
#1415
·
|
|
Re: New syntax in Xcode 12.5.
Are you referring to the ternary conditional operator, which has existed in Swift since the beginning, or to the fact that it creates a local variable with the same name (myVar) as a parameter or
Are you referring to the ternary conditional operator, which has existed in Swift since the beginning, or to the fact that it creates a local variable with the same name (myVar) as a parameter or
|
By
Jeremy Hughes
·
#1414
·
|
|
New syntax in Xcode 12.5.
I just saw someone use this syntax in a project and haven’t see it before. It compiles in Xcode 12.5, but not in Xcode 12.4. Does anyone have any more details on it?
let myVar = myVar != someValue
I just saw someone use this syntax in a project and haven’t see it before. It compiles in Xcode 12.5, but not in Xcode 12.4. Does anyone have any more details on it?
let myVar = myVar != someValue
|
By
Alex Zavatone
·
#1413
·
|
|
Re: Help with iOS 15-style UIButton?
Just to finish up this discussion, below is the code I ended up with for my button that is compatible with both pre-15 and post-15 code.
I think that if you subclass UIButton in your current code,
Just to finish up this discussion, below is the code I ended up with for my button that is compatible with both pre-15 and post-15 code.
I think that if you subclass UIButton in your current code,
|
By
Rick Aurbach
·
#1412
·
|
|
Re: CGContext always creating a black rect.
I initially felt that way too, several years ago, when first coming from Obj-C. However, I learned to embrace the tools (which make it easy to find the declaration) and also be mindful of writing
I initially felt that way too, several years ago, when first coming from Obj-C. However, I learned to embrace the tools (which make it easy to find the declaration) and also be mindful of writing
|
By
Ben Kennedy
·
#1411
·
|
|
Re: CGContext always creating a black rect.
Thanks.
I know I don’t need the self, but I want the context. A variable just sitting around tells me nothing about the context in which it exists. I want to see the context and want to see the
Thanks.
I know I don’t need the self, but I want the context. A variable just sitting around tells me nothing about the context in which it exists. I want to see the context and want to see the
|
By
Alex Zavatone
·
#1410
·
|
|
Re: CGContext always creating a black rect.
Move your `backgroundColor` and `isOpaque` calls to the init method(s). I set up a test project with your code, and that solves the problem.
I was going to make that suggestion before I even tested
Move your `backgroundColor` and `isOpaque` calls to the init method(s). I set up a test project with your code, and that solves the problem.
I was going to make that suggestion before I even tested
|
By
Ben Kennedy
·
#1409
·
|
|
CGContext always creating a black rect.
Hi. I’m trying to draw a bezier shape in CGContext on a UIView in Swift with a transparent background and the background is always black. Nothing online helps.
Any ideas? I’ve checked
Hi. I’m trying to draw a bezier shape in CGContext on a UIView in Swift with a transparent background and the background is always black. Nothing online helps.
Any ideas? I’ve checked
|
By
Alex Zavatone
·
#1408
·
|
|
Re: Help with iOS 15-style UIButton?
Hi, Alex.
The work-around was to force the button width to be "expectedWidth" (which is the width of the [unwrapped] text + image padding + image width + 8 points of slop (to account for button
Hi, Alex.
The work-around was to force the button width to be "expectedWidth" (which is the width of the [unwrapped] text + image padding + image width + 8 points of slop (to account for button
|
By
Rick Aurbach
·
#1407
·
Edited
|
|
Re: Help with iOS 15-style UIButton?
And what is, "mirrow above bounds code”?
And what is, "mirrow above bounds code”?
|
By
Alex Zavatone
·
#1406
·
|