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?
Post
Replies
Boosts
Views
Activity
Although, didn't they just release MacBook Airs with M2 chip in July, 2022?
Yep
Do you think another one is coming soon?
Nope
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).
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.
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.
Did you read this, before posting?
https://developer.apple.com/forums/thread/711899
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.
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())
I want to add a button with "Toolbaritem"
Your code does not seem to use ToolbarItem.
Try using ToolbarItem(placement: .navigationBarTrailing)
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.
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.
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.
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
}
How about "dust" then?
Blowing dust or sandstorm!
https://developer.apple.com/documentation/weatherkit/weathercondition/blowingdust
Crikey, what have they done with our good old English Sleet?!