Development– category –
-
Development
Part 5 Allowing a tap to set a value | Create the Color Picker with SwiftUI
SwiftUIでカラーピッカーを作るという連載記事です。今回はカラーピッカーのグラデーションビュー上をタップして、RGB値を設定できるようにするためのコードを実装します。 This is a series of articles on creating a color picker in SwiftUI. In this ... -
Development
Part 4 Changing the knob position according to its value | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. In the previous article, we implemented the placement of the knob, but it remains fixed at the location where the value is 0, regardless of the current value. This artic... -
Development
About iOS Developer Mode
Developer mode was introduced in iOS 15. When developer mode is turned off, you are unable to develop apps on the actual device, including such as installing and debugging an app under development. This article explains how to turn on de... -
Development
Charging an iPad and its Recognition by Mac Depending on the Connection Method
The connection and power supply method can determine whether the iPad charges or not. It is also essential to power the iPad when working long hours, such as when debugging iPad apps in Xcode. In this article, we investigated different c... -
Development
Part 3 Displaying the Current Value Knob | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. We created a text field in the previous article to display the current value. In this article, we will continue the process by implementing the look and feel of the proc... -
Development
Dynamically Getting the View Size in SwiftUI
In a SwiftUI app, you can use GeometryReader to dynamically get the view size. This article explains how to do it. Output the View Size into the Console Following the code, get the view size using GeometryReader and print it into the con... -
Development
Part 2 Displaying the Current Value | Create the Color Picker with SwiftUI
This is a series of articles about creating a color picker in SwiftUI. The current value of the color picker we're creating in this series will be displayed as follows. Display labels and values above the gradient view Values can be edit... -
Development
Part 1 Displaying Gradients in SwiftUI | Create the Color Picker with SwiftUI
In this multi-part series, we will create a color picker in SwiftUI. This time, we will create the gradient part to be displayed in the color picker. SwiftUIでグラデーションを表示する Displaying gradients in SwiftUI struct PickerGradatio... -
Development
How to use binary representation of floating point numbers in Swift
To store floating-point numbers in binary files or binary data buffers, they are encoded as defined by IEEE 754; in Swift, the BinaryFloatingPoint protocol defines methods, etc., to support IEEE 754. For example, float, Double, and Float... -
Development
How to display the open file dialog in AppKit
AppKit's NSOpenPanel class can display the standard macOS file open dialog. In addition to selecting files to open, the open file dialog gives Sandboxed apps access to specified directories on the file system. This article explains how t... -
Development
Converting Integer Types with Bit Patterns in Swift
To maintain bit patterns while converting integer types in Swift, utilize the provided initializer. init<T>(truncatingIfNeeded source: T) where T : BinaryInteger You can employ this initializer method to convert between unsigned an... -
Development
Change the iOS app lifecycle from UIKit to SwiftUI
Newer versions of iOS and macOS have been released, and the features offered by SwiftUI have also expanded. As a result, it is becoming possible to use SwiftUI for the parts that can be created with SwiftUI and use it in conjunction with... -
Development
Setting up a GitLab account on Xcode
After setting up a GitLab account in Xcode, you can directly access GitLab repositories from Xcode. This article explains how to set up a GitLab account in Xcode. Generate a personal access token To access GitLab from Xcode, you need a p... -
Development
Setting up a GitHub account on Xcode
After setting up a GitHub account in Xcode, you can access GitHub repositories directly from Xcode. This article explains how to set up a GitHub account in Xcode. Generate the access token To access GitHub with Xcode, you'll need an acce... -
Development
How To write C++ callbacks with Swift’s closure
This article provides instructions on how to write a callback function using Swift's closure for interfacing with a library written in C++ from Swift application. Interoperability with C++ is now an official feature in Swift 5.9. This ar... -
Development
How to avoid pod install errors when building Flutter apps
At times, when building a Flutter app on an Apple Silicon Mac, like a MacBook Pro M1, you may encounter failure during pod install. This is when the CocoaPods installation process is executed, for example, by adding a package. This artic... -
Development
How to read/write control values in AppKit (about outlets) | How to Create macOS Apps
In the previous article, we implemented executing an action when clicking a button. Actions with buttons are one of the basic things common to most applications. Similarly, reading and writing controls' values are a common issue in appli... -
Development
How to create buttons in AppKit (about targets and actions) | How to create macOS Apps
Buttons are among the most frequently used elements in applications. In this article, we will add a "Quit" button to the Cocoa Hello World so that the application can also quit from the button. This article will continue from the Cocoa H... -
Development
Resolving iOS Simulator Issues on Apple Silicon Mac (arm64 Binary Error)
Specific frameworks incorporated into an application may lead to an error, preventing the iOS simulator from running on an Apple Silicon Mac. ld: in /Volumes/Data/src/RK/TechGakuWebSite/SampleCodes/OpenCVTest_iOS/common/opencv2.framework... -
Development
Terminate the app when the window is closed | How to create macOS Apps
This article explains how to terminate the app when the window is closed. We add the code to the Cocoa Hello World which was created in the previous article. You can download it from the following article. About the delegate AppKit uses ...