SwiftUI– category –
-
Part 10 Finishing the Color Picker | Create the Color Picker with SwiftUI
This is a series of articles on creating a color picker in SwiftUI. Previously, we have completed the color picker itself. In this article, we will finish up by creating a sample application that actually uses the color picker we created... -
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 separated by channel, and the gradient information and current channel value information were also separated, making it difficult... -
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 will implement the process of displaying a color preview based on the values selected with the sliders for each RGB channel created in the previous a... -
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 is a series of articles about creating a color picker in SwiftUI. I thought the code would be on a smaller scale, so I came here adding code without much organization, and the code became a mess. In this article, I would like to org... -
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 will implement the code to allow tapping on the gradient view of the color picker to set RGB values. 【To support tap gestures in SwiftUI】 To suppor... -
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 have already implemented the placement of the knob, but it is fixed at the location where the value is 0, regardless of the current value. In... -
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. In the previous article, we created a text field to display the current value, and in this article, we will continue the process by implementing the look and feel of the... -
Getting the view size dynamically in SwiftUI
To get the size of the view dynamically while the app is running in SwiftUI, use GeometryReader. This article explains the specific method and code examples. 【Outputs the view size into the console】 To get the view size with GeometryRe... -
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 will create in this series of articles will be displayed as follows. Display labels and values above the gradient view Values...
12