I am leave of absence.
i don't know my dean, principal, superintendent information.
so, can i write my department office information in supervisor's information when applying?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I finished my playground app, and I filled out my information on the submission page.
Can't find submit button
Any problem?
can i use sf symbols applelogo(Image(systemname:"applelogo") on my swift playgrounds app?
i will make and release my app in appstore.
in this process, i use sfsymbols icons in my app.
Is this legally okay? like copyright
i'm learning about swiftui and machine learning(by python pytorch).
I want to use machine learning in swiftui like coreml or vision.
but, almost reference of coreml or vision are written in uikit.
so, any references(book or lecture or document, yotube) to machine learning with swiftui?
I want to get real time camera frames to apply machine learning in swiftui.
i made camera app with swiftui like this. but, i don't know how to get camera frame and how to apply machine learning techniques to camera frames
struct ImagePicker: UIViewControllerRepresentable {
var sourceType: UIImagePickerController.SourceType = .camera
func makeUIViewController(context: UIViewControllerRepresentableContext) -> UIImagePickerController {
let imagePicker = UIImagePickerController()
imagePicker.allowsEditing = false
imagePicker.sourceType = sourceType
return imagePicker
}
func updateUIViewController(_ uiViewController: UIImagePickerController, context: UIViewControllerRepresentableContext) {
}
}
I'm sorry I don't speak English well, so I use a translator so sentences may be awkward.
I am a Korean college student who likes swift.
Most Korean men go to the military. So next year I will take a leave of absence from university and I will be one of them.
But, I would like to participate in the annual WWDC swift student challenge.
Is it possible for me to participate and win?
If I take a leave of absence and participate as a soldier, is it impossible to receive the award?
Topic:
Community
SubTopic:
Swift Student Challenge
Tags:
WWDC Scholarships
Swift Student Challenge
WWDC22 Challenges
I'm sorry I don't speak English well, so I use a translator so sentences may be awkward.
I am a Korean college student who likes swift.
Most Korean men go to the military. So next year I will take a leave of absence from university and I will be one of them.
But, I would like to participate in the annual WWDC swift student challenge.
Is it possible for me to participate and win?
If I take a leave of absence and participate as a soldier, is it impossible to receive the award?
The professor codes like this in the lecture
var number: Int {
return 3 }
what's different about this?
var number: Int = 3
I wonder how the + function is used directly.
extension CGPoint {
static func add(lhs: Self, rhs: Self) -> CGPoint {
CGPoint(x: lhs.x + rhs.x, y: lhs.y + rhs.y)
}
static func +(lhs: Self, rhs: Self) -> CGPoint {
CGPoint(x: lhs.x + rhs.x, y: lhs.y + rhs.y)
}
}
private func testCGPoint() {
let dummy1 = CGPoint(x: 2, y: 3)
let dummy2 = CGPoint(x: 4, y: 5)
let dummy3: CGPoint = .add(lhs: dummy1, rhs: dummy2)
let dummy4: CGPoint = dummy1 + dummy2
}
in my expectation, I thought that the + function would be used like the add function. i thought this form.
CGPoint.+(lhs: dummy1, rhs: dummy2)
But the + function did not.
How are you doing this?
var name: String? = "name"
if let copyname = name {
print(copyname)
}
In this code, are name and copyname allocated in two different memory?
I am a student studying AR with ARkit.
I want a variety of assets that can be used commercially. (there are limits to what I can do myself...)
Is there any place where I can get assets(like 3Dmodels, usdz file etc.) like Unity's asset store?
The resources on the Apple developer homepage are good but few, and don't know if they are commercially available.
I want to make object capture app in iOS.
I've been looking for object capture examples, but there are only macOS.
how to make object capture app in iOS?
i use this code in my app
// MARK: - Protocol
protocol VideoManagerProtocol: AnyObject {
func didReceive(sampleBuffer: CMSampleBuffer)
}
final class VideoManager: NSObject {
// MARK: -- Properties
/// RequestPermissionCompletionHandler
typealias RequestPermissionCompletionHandler = ((_ accessGranted: Bool) -> Void)
/// delegate of VideoManager
weak var delegate: VideoManagerProtocol?
/// An object that manages capture activity.
let captureSession = AVCaptureSession()
/// A device that provides input (such as audio or video) for capture sessions.
// let videoDevice = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front) // choose deviceType, position is better but don't know ipad camera so choose default saftely
let videoDevice = AVCaptureDevice.default(for: .video)
/// A Core Animation layer that displays the video as it’s captured.
lazy var videoLayer: AVCaptureVideoPreviewLayer = {
return AVCaptureVideoPreviewLayer(session: captureSession)
}()
/// A capture output that records video and provides access to video frames for processing.
lazy var videoOutput: AVCaptureVideoDataOutput = {
let output = AVCaptureVideoDataOutput()
let queue = DispatchQueue(label: "VideoOutput", attributes: DispatchQueue.Attributes.concurrent, autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency.inherit)
output.setSampleBufferDelegate(self, queue: queue)
output.alwaysDiscardsLateVideoFrames = true
return output
}()
// MARK: -- Methods
override init() {
guard let videoDevice = videoDevice, let videoInput = try? AVCaptureDeviceInput(device: videoDevice) else {
fatalError("No `Video Device` detected!")
}
super.init()
captureSession.addInput(videoInput)
captureSession.addOutput(videoOutput)
}
func startVideoCapturing() {
self.captureSession.startRunning() // do not operate in dispatch global background
// DispatchQueue.global(qos: .background).async {
// self.captureSession.startRunning()
// }
}
func stopVideoCapturing() {
captureSession.stopRunning()
}
func requestPermission(completion: @escaping RequestPermissionCompletionHandler) {
AVCaptureDevice.requestAccess(for: .video) { (accessGranted) in
completion(accessGranted)
}
}
}
extension VideoManager {
}
// MARK: - AVCaptureVideoDataOutputSampleBufferDelegate
extension VideoManager: AVCaptureVideoDataOutputSampleBufferDelegate {
func captureOutput(_ output: AVCaptureOutput, didDrop sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
delegate?.didReceive(sampleBuffer: sampleBuffer)
}
}
i tried like this AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back)
The camera uses only the front camera. how to use back camera?