|
SwiftUI AttributedString on Watch
3 messages
I have a Watch-App using SwiftUI. let fontSize = 40.0 struct WatchContentView: View { @State var timeAttributedStr = AttributedString("--") let timer = Timer.publish(every: 1, tolerance: 0.1, on: .mai
I have a Watch-App using SwiftUI. let fontSize = 40.0 struct WatchContentView: View { @State var timeAttributedStr = AttributedString("--") let timer = Timer.publish(every: 1, tolerance: 0.1, on: .mai
|
By
Gerriet M. Denkmann
·
|
|
Strange: Rosetta faster than M1
15 messages
I have a simple C command line tool. This takes 16 seconds when I run it in Xcode with “My Mac”. But only 11 seconds when run with “My Mac (Rosetta)” How can this be? I always assumed that emulating I
I have a simple C command line tool. This takes 16 seconds when I run it in Xcode with “My Mac”. But only 11 seconds when run with “My Mac (Rosetta)” How can this be? I always assumed that emulating I
|
By
Gerriet M. Denkmann
·
|
|
Printing and MacCatalyst
My app implements a report-generation function which displays reports in a presented view controller. The view controller includes an Activity Button, which uses UIActivityViewController to present th
My app implements a report-generation function which displays reports in a presented view controller. The view controller includes an Activity Button, which uses UIActivityViewController to present th
|
By
Rick Aurbach
·
|
|
Signin with Apple, the sample iOS Juice app
2 messages
Hi. I’d like to share what I just played with this morning using Apple’s sample code and see if anyone is seeing the same things. The sample app on iOS, Juice, is here and is pretty easy to get up and
Hi. I’d like to share what I just played with this morning using Apple’s sample code and see if anyone is seeing the same things. The sample app on iOS, Juice, is here and is pretty easy to get up and
|
By
Alex Zavatone
·
|
|
library not found: libclang_rt.tsan_osx_dynamic.dylib
3 messages
I have an macOS app, which uses a privileged helper tool: de.mdenkmann.SW-Helper This helper tool crashes with (Console.app): ASI found [dyld] (sensitive) 'Library not loaded: @rpath/libclang_rt.tsan_
I have an macOS app, which uses a privileged helper tool: de.mdenkmann.SW-Helper This helper tool crashes with (Console.app): ASI found [dyld] (sensitive) 'Library not loaded: @rpath/libclang_rt.tsan_
|
By
Gerriet M. Denkmann
·
|
|
I just wanted a refresher - struts versus properties.
2 messages
We’ve all seen so many Swift references about when to use a struct as opposed to a class. But coming from Objective-C like lots of us, does anyone have any resources or guidelines for when and why to
We’ve all seen so many Swift references about when to use a struct as opposed to a class. But coming from Objective-C like lots of us, does anyone have any resources or guidelines for when and why to
|
By
Alex Zavatone
·
|
|
Clicking in SwiftUI - how to get size of ZStack
I have (macOS 12.3.1): struct ContentView: View { var body: some View { GeometryReader { metrics in VStack { ... some HStacks ... ZStack // Curves { ... several Shapes with Path } .frame( maxHeight: m
I have (macOS 12.3.1): struct ContentView: View { var body: some View { GeometryReader { metrics in VStack { ... some HStacks ... ZStack // Curves { ... several Shapes with Path } .frame( maxHeight: m
|
By
Gerriet M. Denkmann
·
|
|
iOS: selectable but not editable text
10 messages
NSTextField can set both isSelectable (true) and isEditable (false). So far so good. But how to do this in iOS? I have a textField which is output only (editing makes no sense at all) but the user mig
NSTextField can set both isSelectable (true) and isEditable (false). So far so good. But how to do this in iOS? I have a textField which is output only (editing makes no sense at all) but the user mig
|
By
Gerriet M. Denkmann
·
|
|
Catalyst UIButton Title
iOS 15.4, macOS 12.3 When UserInterfaceIdiom = pad then UiButton.titleLabel is UILabel with UILabel.text = button title. Ok. But with UserInterfaceIdiom = mac the UiButton.titleLabel is a UIButtonLabe
iOS 15.4, macOS 12.3 When UserInterfaceIdiom = pad then UiButton.titleLabel is UILabel with UILabel.text = button title. Ok. But with UserInterfaceIdiom = mac the UiButton.titleLabel is a UIButtonLabe
|
By
Gerriet M. Denkmann
·
|
|
how to set allowedClasses for UIStateRestorationKeyedUnarchiver
3 messages
class ViewController: UIViewController { override func decodeRestorableState(with coder: NSCoder) { NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing: coder.allowedCla
class ViewController: UIViewController { override func decodeRestorableState(with coder: NSCoder) { NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing: coder.allowedCla
|
By
Gerriet M. Denkmann
·
|
|
TableView behavior in a SplitViewController
Xcode 13.2.1, Simulator running iOS15.2 with 13.0 as a deployment target, UIKit. I have a pretty standard configuration running an iPad in Simulator — SplitView master contains a TableView, secondary
Xcode 13.2.1, Simulator running iOS15.2 with 13.0 as a deployment target, UIKit. I have a pretty standard configuration running an iPad in Simulator — SplitView master contains a TableView, secondary
|
By
Rick Aurbach
·
|
|
Verbose warning splurged to the log with Secure Coding (dearchiving) -- can they be serious?
9 messages
Hi all, I was working on some demo code investigating the use of secure archiving, since I guess we all have to adopt that if we can. I have a simple container class (a linked list) that I decided to
Hi all, I was working on some demo code investigating the use of secure archiving, since I guess we all have to adopt that if we can. I have a simple container class (a linked list) that I decided to
|
By
Graham Cox
·
|
|
UICollectionView with DiffableDataSource
Xcode 13.1, iOS 25 SDK I have a UICollectionView (with a custom UICollectionViewLayout) which I am updating with a DiffableDataSource. This CollectionView displays a particular data object (with a giv
Xcode 13.1, iOS 25 SDK I have a UICollectionView (with a custom UICollectionViewLayout) which I am updating with a DiffableDataSource. This CollectionView displays a particular data object (with a giv
|
By
Rick Aurbach
·
|
|
NSTextView: displaying "virtual" symbols?
[I'd sent this to cocoa-dev@..., but ISTR that list is deprecated. Resending here.] I am working on a document storage format that consists of logical zones that nest. You can think of them sort of li
[I'd sent this to cocoa-dev@..., but ISTR that list is deprecated. Resending here.] I am working on a document storage format that consists of logical zones that nest. You can think of them sort of li
|
By
David Young
·
|
|
Scanner oddity
2 messages
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 location is just
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 location is just
|
By
Laurent Daudelin
·
|
|
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” section, and ad
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” section, and ad
|
By
Jim
·
|
|
Async/Await and Model Dialogs
2 messages
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
·
|
|
Just a little sharing - it's nice when your product finally hits the market.
3 messages
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 else who
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 else who
|
By
Alex Zavatone
·
|
|
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 from
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 from
|
By
Alex Zavatone
·
|
|
New syntax in Xcode 12.5.
5 messages
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 ? r
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 ? r
|
By
Alex Zavatone
·
|