Post

Replies

Boosts

Views

Activity

Reply to Image Renderer not Working
It's easier to answer your question if you share your code, then we know what you are asking about. Also, what platform, iOS or Mac, or other? Also also, what language, Objective-C or Swift, or other? Perhaps you are using Swift on iOS, and you mean UIGraphicsImageRenderer? If so, did you remember to import CoreGraphics?
Oct ’22
Reply to Submit app to Appstore in the name of my client
Your client should take control of their app, and host it on their own developer account. They should add you to their Development Team, with the appropriate permissions. (e.g. to upload the app, create certificates, distribute using TestFlight, etc.) In very rare cases, you might want to host a client app on your own account. (I have only done this once, and I don't recommend it.) Also, bear in mind that transferring apps (e.g. from your account, to a client's account), while possible, can have a long-term effect on your own account. (You will lose the benefits of Apple's Small Business Program, if you are part of that.) If they just want you to send them the app: In this case, you simply send them the app's source (typically as a zipped archive), with all supporting resources and documentation.
Oct ’22
Reply to How To Zoom In Using northeast, southwest and center coordinate In Swiftui Map
Try this: static func getPARCoordinateRegion() -> MKCoordinateRegion { let ph = getPHCountryPlaceMark() let center = CLLocationCoordinate2D(latitude: ph.centerLatitude, longitude: ph.centerLongitude) let latitudeDelta = abs(ph.northEastLatitude - ph.southWestLatitude) let longitudeDelta = abs(ph.northEastLongitude - ph.southWestLongitude) let span = MKCoordinateSpan(latitudeDelta: latitudeDelta, longitudeDelta: longitudeDelta) let region = MKCoordinateRegion(center: center, span: span) return region }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Reply to Image Renderer not Working
It's easier to answer your question if you share your code, then we know what you are asking about. Also, what platform, iOS or Mac, or other? Also also, what language, Objective-C or Swift, or other? Perhaps you are using Swift on iOS, and you mean UIGraphicsImageRenderer? If so, did you remember to import CoreGraphics?
Replies
Boosts
Views
Activity
Oct ’22
Reply to Can I code a macOS daemon+UI for M1, M2 chips on an older Intel Mac?
Although, didn't they just release MacBook Airs with M2 chip in July, 2022? Yep Do you think another one is coming soon? Nope
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Submit app to Appstore in the name of my client
for client that gave me access to the developer.apple.com They must add your Apple Developer ID to their Team (e.g. as "App Manager") That will allow me to use that team in the xcode Yes Can i archive the app and prepare a file (.ipa?) and send that to them Yes, this is possible (I haven't done it myself).
Replies
Boosts
Views
Activity
Oct ’22
Reply to Submit app to Appstore in the name of my client
Your client should take control of their app, and host it on their own developer account. They should add you to their Development Team, with the appropriate permissions. (e.g. to upload the app, create certificates, distribute using TestFlight, etc.) In very rare cases, you might want to host a client app on your own account. (I have only done this once, and I don't recommend it.) Also, bear in mind that transferring apps (e.g. from your account, to a client's account), while possible, can have a long-term effect on your own account. (You will lose the benefits of Apple's Small Business Program, if you are part of that.) If they just want you to send them the app: In this case, you simply send them the app's source (typically as a zipped archive), with all supporting resources and documentation.
Replies
Boosts
Views
Activity
Oct ’22
Reply to Can I code a macOS daemon+UI for M1, M2 chips on an older Intel Mac?
The Mac Mini is also good value, and suitable for app development. A used machine could also be suitable. If you are buying, be aware that new Mac releases may be imminent.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to MapAnnotation SwiftUI Runtime Warnings
Did you read this, before posting? https://developer.apple.com/forums/thread/711899
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Can I code a macOS daemon+UI for M1, M2 chips on an older Intel Mac?
Is such possible? No. Your Xcode v.9.2 does not support Apple Silicon. All you can do is write your daemon, to run on an older Intel Mac, with an old version of macOS (Sierra). You can neither run it (natively), nor even test it, on an Apple Silicon Mac.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to I can't use value inside my UICollectionView from API ( Swift, MVVM, UIKit)
Your json example is a single item (your Pokedex?), which contains an array, called "results" You are trying to decode an array of Results That isn't going to work! Try .decode(type: Pokedex.self, decoder: JSONDecoder()) Alternatively, if your json is actually an array of the sample shown, try: .decode(type: [Pokedex].self, decoder: JSONDecoder())
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to SwiftUI toolbar not showing on a Tabview
I want to add a button with "Toolbaritem" Your code does not seem to use ToolbarItem. Try using ToolbarItem(placement: .navigationBarTrailing)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to How To Create Heatmap From Array CLCoordinate2D In A SwiftUI Map
You should post this as a new question. Since MKMapView doesnt require a binding to region... MKMapView has a property, "region". To recenter (or zoom) the map, you set this property. Your code doesn't currently have any way to do this, except when you first construct your MapView.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to How To Create Heatmap From Array CLCoordinate2D In A SwiftUI Map
There's no need for a ViewController, though you can use one if you want to. I find it bettor to wrap a UIKit MapView in a UIViewRepresentable. Then you need something to act as the MKMapViewDelegate. This can all be reusable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to How To Create Heatmap From Array CLCoordinate2D In A SwiftUI Map
You will find that the SwiftUI map is very limited. I had to wrap a UIKit MKMapView, and use that. Then you can add MKPolygons as map overlays... ... and use the delegate, to style the polygons.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to How To Zoom In Using northeast, southwest and center coordinate In Swiftui Map
Try this: static func getPARCoordinateRegion() -> MKCoordinateRegion { let ph = getPHCountryPlaceMark() let center = CLLocationCoordinate2D(latitude: ph.centerLatitude, longitude: ph.centerLongitude) let latitudeDelta = abs(ph.northEastLatitude - ph.southWestLatitude) let longitudeDelta = abs(ph.northEastLongitude - ph.southWestLongitude) let span = MKCoordinateSpan(latitudeDelta: latitudeDelta, longitudeDelta: longitudeDelta) let region = MKCoordinateRegion(center: center, span: span) return region }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to WeatherKit conditionCode - sleet
How about "dust" then? Blowing dust or sandstorm! https://developer.apple.com/documentation/weatherkit/weathercondition/blowingdust
Replies
Boosts
Views
Activity
Oct ’22
Reply to WeatherKit conditionCode - sleet
Crikey, what have they done with our good old English Sleet?!
Replies
Boosts
Views
Activity
Oct ’22