SwiftUI– tag –
-
Part 10 Finishing the Color Picker | Create the Color Picker with SwiftUI
This article is part of a series focused on creating color picker in SwiftUI. Previously, we completed the color picker itself. This article concludes the series by demonstrating the color picker in a sample application. 【What we make】... -
Part 9 Dynamically Changing Gradients | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. In the previous articles, the model was partitioned by channel, with gradient and current channel value information being distinct entities, thereby complicating the dyn... -
Part 8 Creating a preview of the selected color | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. In this article, we'll implement a color preview, drawing upon the values selected using the RGB channel sliders we built in the previous articles. Moreover, we need to ... -
Part 7 Making it possible to move knobs by dragging (panning) | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. In this article, we will implement a process that allows knobs to be moved with a drag (pan) gesture. 【Use DragGesture in SwiftUI】 In UIKit, the gesture of tracing a f... -
Part 6 Organizing Code | Create the Color Picker with SwiftUI
This series of articles resolves around creating a color picker in SwiftUI. Initially, I envisioned the code to be on a smaller scale and, thus, added code with minimal organization. However, this approach led to a convoluted codebase. S... -
Part 5 Allowing a tap to set a value | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. In this article, we aim to implement the code that enables tapping on the gradient view of the color picker to set RGB values. 【To support tap gestures in SwiftUI】 To ... -
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... -
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... -
Getting the view size dynamically in SwiftUI
To dynamically retrieve the view's size while the app is running in SwiftUI, consider using the GeometryReader. This article explains the specific method and code examples. 【Outputs the view size into the console】 To retrieve the view ... -
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...
12