Creating PDFs with Swift
How to create a PDF with Swift. I was able to create a PDF easily with PDFKit, which is nice. Reference: Creating a PDF in Swift with PDFKit Read more
How to create a PDF with Swift. I was able to create a PDF easily with PDFKit, which is nice. Reference: Creating a PDF in Swift with PDFKit Read more
How to display a WebView in SwiftUI. I hope they come out with a WebView that doesn't have to use UIViewRepresentable as soon as possible. Read more
It is a way to add and delete contents in List in SwiftUI. It seems bad to pass a delete function in closure. Please let me know if there is a better way. Read more
It is a way to hide the keyboard with a button in SwiftUI. It is realized by extending UIApplication. How to lower (hide) the keyboard in SwiftUI Read more
It is a way to detect keyboard height and appearance with SwiftUI. It is implemented using Combine Frame Work.
It is a way to input a multi-line string with SwiftUI. It is implemented using TextView of UIKit. I want Apple to release something like UITextView. Read more
It is a way to show picker from bottom with SwiftUI. Picker shows from bottom like a modal. Importing an image into SwiftUI using UIImagePickerController Read more
It is a way to Using UIImagePickerController with SwiftUI. I can choose any image. Importing an image into SwiftUI using UIImagePickerController
It is a way to do not change the color of the Image in the Button with SwiftUI. If you keep the default, the color will change to blue as in the following image. Read more
I tried all the ModalPresentationStyle of iOS 13. Our department calls the PopPage modal a “fashionable modal”.
It is a way to detect video end with Swift. The video is from this site. Hybrid Creative Movies SAKURA I referred to this site. Read more
This is a sample to play a video with Swift. The video was borrowed from this site. Hybrid Creative Movies SAKURA I used this site as a reference. Read more
Sample to display the side menu (hamburger menu) in SwiftUI. I made a few compromises, such as where I could drag it out. I'll post it again when I put on a better side menu. Read more
This is a sample to change the color of Section of List in SwiftUI. There are some articles that use Appearance to change the background color, but I was able to do it in the following way. Read more
Here's a sample of tapping a check mark into a section-delimited ListView. Tap on it to change the state and draw ✔︎.
Here's a sample of tapping to check the ListView. Tap on it to change the state and draw ✔︎.
How to aggregate CSV in Swift. First, we need to convert the CSV file to utf8 as a preprocessor. On a Mac, I opened it with Numbers and saved it as a CSV file. Read more
Here's how to make the UIView background a grid or a dot. This time, I created a subclass of UIView called GridView so that the dots can be switched by pressing a button. Read more
You can use ReplayKit to record your screen. It's very easy to use, and it's also very easy to use it on the mic. and so on. Read more
How to make it look like a UICollectionView in SwiftUI. It's easy to use a library called Q-Mobile/QGrid . I wrote this with reference to QGrid. Read more
How to display a Firestore image in SwiftUI. UIImage can be easily displayed using SDWebImage, but SwiftUI can't do that. I used SDWebImage/SDWebImageSwiftUI to write Read more
Detects changes to the SwiftUI toggle and executes a print statement. Reference: How can I trigger an action when a swiftUI toggle() is toggled?
This is a way to create a multi-line picker like UIPickerView. The usability is quite different from UIPickerView and I was puzzled. Reference: Multi-Component Picker (UIPickerView) in SwiftUI Read more
How not to display the Label in the SwiftUI Picker. It is possible to do so by setting labelsHidden. 参考: How to hide Read more
This is a sample to display the picker in SwiftUI. In case of multiple lines, click here. Creating a multi-line picker in SwiftUI Reference: Is there a way to call a function when a SwiftUI Picker selection changes? Read more
This is a sample that calls the transition source method from the view of the screen transition destination in SwiftUI. I used delegate, but it might be better to write in Combine. Read more
Here's how to create a sequential numbered array in Swift. It's hard to remember how to write.
This is a sample application using MVP architecture. I've also written unit tests and UI tests. It's an app that adds up numbers like the following Read more
Create a file with Swift & Storyboard. Removes Main.storyboard. Delete the term Main storyboard file base name. Application Scene Manifest -> Application Session Role -> Read more
When I updated the version of Hugo, I no longer see the following Gist page. <script src="https://gist.github.com/takoikatakotako/5aba51305d74c009a2c878897837e006.js"></script> It worked by rewriting it as follows. Reference: Shortcodes Read more
There are times when you want to go inside a Docker container and use a shell. Normally, you would use the following command to enter Read more
How to display an alert in SwiftUI. It is written quite differently from UIAlertController. The @State of the Property Wrapper is still unfamiliar.
This is how to create a Struct using the FunctionBuilder added in Swift 5.1. It's also active in SwiftUI.
How to get an alert when you tap a cell in a list in SwiftUI. I still haven't gotten used to SwiftUI yet.
Here's how to edit a list in SwiftUI. I was able to write shorter code than UITableView. Reference: How to enable editing on a list using EditButton Read more
postgres-Docker Hub The following command allows you to set up postgres11 on the local 5432 port and log in as a user named kabigon. (password Read more
Here's a sample of how to switch screens using TabView. It's pretty easy to write about, isn't it? TabView - SwiftUI | Apple Developer Documentation Read more
It was a bit of a hassle to transition from one ListView to another like the configuration screen. I feel like there's a better way to do it. Read more
This is a way of tapping お天気Webサービス(Livedoor Read more
This was avoided by regenerating the id with onDisappear. If there is no change in @State, does that mean that you use the cache? I'm going to learn more about it! Read more
Here's how to display a list in SwiftUI. Since this is the screen after the screen transition, there is a NavigationBar.
I put together a list of words I looked up when I started studying infrastructure and didn't understand them. Consolidated Billing A bulk billing feature, Read more
I needed a local mock server, so I made a simple one in PHP. Register a user at signup.php, show a list of users at list. Read more
How to send push notifications to iOS devices with the curl command. Create a PEM file that includes both the certificate and the private key. Read more
How to retrieve a certificate and private key from a .p12 file. I needed it when I was writing AWS SNS with Terraform. $ openssl Read more
How to update the version of cocoapods installed with gem. A rival for cocoapods? I'm concerned about the carthage of gem update cocoapods pod --version
Summary I'm glad I signed up for the Rookies LT slot! It was a lot of fun! Rookies LT I am pleased to announce that Read more
This is how to change the height of a cell in TableView. I was able to achieve this by using .rowHeight for batch return and heightForRowAt for individual changes. Read more
By resetting the password, the account was unlocked. I was able to cancel it without contacting the operation. https://br-campus.jp/password/reset
This is a sample code to display a button using UIButton. I use the rounded corner buttons a lot.
0, 0.5, 1.0, 1.5 ….. The following is a sample code to get the value at regular intervals of 0, 0, 5, 1, 0, 1, 1, 0, 1, 1, 5, and so on with UISlider. Read more
This is the sample code to get the value with UISlider. You can take any value in between by setting a minimum and maximum value. Read more
You can use CallKit to use the UI on incoming calls. I used it to create an app that would call me.
If you are managing multiple servers, you may accidentally log in to a different server. The characters to be displayed at login are written in $/etc/motd. Read more
Then I implemented UITest for that app. Reference: 【Swift】初めてのUITest Read more
How to shuffle a string in Java. It was pretty tedious, so I made an article about it. I want a .suffld kind of thing. Read more
This is a sample code to switch RootViewController with animation. It's supposed to be used after the tutorial and so on.
I get the following error and I can no longer connect to SSH. The problem was solved by restricting the privileges of the private key. Read more
This is a sample code that parses the locally added JSON file and displays it in TableView. It would be better to use SwiftyJson or something like that, but this time I wrote it without using it. Read more
Add the UITest to your project. If you didn't create it when you created the project, you can add it by following the steps in the image below. Read more
UITableView's class hierarchy NSObject ↑ UIResponder ↑ UIView ↑ UIScrollView ↑ UITableView AppleDevelope Read more
This is the sample code for the NavigationContoroller. The NavigationContoroller moves sideways to make screen transitions.
$ tar -zxvf openjdk-11.0.1_linux-x64_bin.tar.gz tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now The problem was solved by including the dependency package gzip. Read more
which java と sudo which java でパスが違ったのでその解決 参考: sud Read more
This is a note when Rails was installed on CentOS7. The final Nginx nginx.conf file can be found here.
# Swift 4.2 Read the Swift3 article here. Selecting images with UIImagePickerController It is a sample program to get an image from the photo library of the iPhone. Read more
Use ListView to display the list. Kotlin and Android are difficult because of the large number of configuration files.
This is how to create a function in Swift. Lately, I've been able to write without even looking at online articles.
#Swift4.2 It's a Swift array. This section describes the creation and calling of arrays. #Swift3の記事は Read more
#Swift4.2 The print statement can be used to output information such as the contents of an array or a string to the console.
#Swift4.2 This is a sample of the combination of UITableView and UISearchBar. Pressing the magnifying glass on the navigation bar will bring up the SearchBar, Read more
#Swift 4.2 This is a sample code to get the latitude and longitude while using the app. The label string is updated when the latitude Read more
#Swift4.2 I tried to recreate the interaction of the registration guide of the app Lifesum because it was very nice. I'm curious about the correlation between the awesomeness of the interaction and the registration dropout rate. Read more
#Swift 4.2 押すとクニュっとするボタンのサンプルコードです Read more
For Ansible practice, I wrote this because I wanted an image that can be entered by SSH. Click here for CentOS7 Click here for CentOS6 Read more
For Ansible practice, I wrote this because I wanted an image that can be entered by SSH. docker build -t ssh_centos7:latest . --no-cache docker run -d -p 2222:22 ssh_centos7:latest ssh-keygen -R [localhost]:2222 ssh -p 2222 kabigon@localhost
I bought a dishwasher at Bic Camera with the cash back campaign. パナソニック 食器洗い機(ホ Read more
Old article (Swift3) is here Getting JSON from the API using Alamofire #Xcode 10.1 #Swift 4.2 This is a sample to get information from the weather API using Alamofire, a famous swift communication library, and SwiftyJSON, a famous swift JSON library. Read more
Open Configure Image Asset in File -> Image Assets Press the … button on the Path and select the image you want to make an icon. Read more
This can be achieved by creating a bottom_navigation_color.xml file under the res/color directory and writing the colors for each state in it.
For Ansible practice, I wrote this because I wanted an image that can be entered by SSH. $ docker build -t docker_ssh:latest . $ docker run -d -p 2222:22 docker_ssh:latest $ ssh -p 2222 kabigon@localhost
The method to confirm the contents of the black circle●●●● in the password input column of the login screen. element and validation, and change the type of the input tag to text. Read more
BottomNavigation is an API similar to iOS's TabBarController. This is a sample code that switches Fragment when selecting a tab in BottomNavigation. The page I Read more
I referred to this article as a reference. Thank you so much! The reference article is more detailed, so if you have any questions, please Read more
Reference: Xcode 10 libfishhook.a cannot be found When I updated Xcode to 10.0, I got the above error and couldn't compile ReactNative. RTCWebSocket.xcodeproject -> RCTWebSocket -> Select Build Phases -> Add libfishhook. Read more
I created a Tab that contains a ListView in Kotlin. This is the web page I used as a reference. It's a very good article, so please see his article from this one. Read more
Sample code to display the group style table view. The settings screen looks like this.
With the arrival of the iPhoneX, I've become more concerned with the layout of the iPhoneX (getting SafeArea). SafeArea can be obtained by referring to the safeAreaInsets property in the viewDidLayoutSubviews method. Read more
This is a sample code to read barcodes with Swift. Reference: Swift 4でQRコードを読み取る A Read more
This is a sample implementation of TouchableOpacity, which turns a view such as an image into a button in ReactNative. Tap on an image of Kabigon to get an alert. Read more
This is a sample of displaying Text with ReactNative. react-native: 0.56.0
This is an important comment note that I use only occasionally in ReactNative. Installing react-native-cli globally with npm npm install -g react-native-cli react-native -v Create a project Read more
This is a sample to display an indicator in ReactNative. react-native: 0.56.0
This is a sample of displaying an image with ReactNative. If you want to retrieve images from the Internet on iOS, you need to set up ATS, so be careful. Read more
This is a sample code to specify the size of the View with FlexBox. react-native: 0.56.0 The purple, ochre, and light blue views are at a height of 1 : 2 : 3. Read more
This is a sample to display FlatList in ReactNative. react-native: 0.56.0
This is a sample of displaying a button in ReactNative. Press the button to display the alarm. react-native: 0.56.0
This is a sample of a search with a search bar and a collection view in the collection view.
It's a minimal HTML, CSS, and javascript template. I look it up every time, so here are my notes.
I'm sometimes asked how to implement the background of an app I'm making called Four Choice Chemistry, so I wrote a sample code for it. Read more
This is an implementation sample of PageViewController, which is often used for tutorial screens and e-book readers.
Here's a sample of how to create and display a custom view in your code. I like to implement it without using xib or storyborad, but what's best? Read more
This is the code to add UINavigationController to UITabBarController. Implemented by including UINavigationBarController in UITabBarController. The implementation of UITabBarController is here. Implementing NavigationController
This is a sample implementation of UITabBarController, which is used to switch views. The icon for UITabBarController is a 30×30 transparent png.
Refer to the following site to set up the certificate and put the following .htaccess as root to complete the process. It's a bit jammed. Read more
Starting with Xcode9 (iOS 11), you can now manage your colors with Assets. I made a UIColor Extension and registered a color and made a function. Read more
My friends often tell me that AppleDeveloper registration fees are too high, but there are many good things in spite of the high fees. One of them is Technical Support Incident (TSI), where Apple engineers can answer questions and consult with you at the code level about bugs or problems that cannot be fixed. Read more
This is a sample code to make the background of UIView gradient. Reference 【Swift x iOSアプ Read more
This is a sample code to create and paste a custom button class that extends UIButton. By separating the look and feel of the ViewController into separate files, you can make the ViewController look neat. Read more
This is a sample code to delete a Cell by editing TableView. You can add an edit button to the NavigationBar and remove the cell by pressing that button. Read more
This is a sample code to delete a Cell by editing TableView. By adding the following functions, you can add the ability to delete a cell by sliding it horizontally. Read more
I tried to find out how to divide the Japanese Yen by 3 digits, as in the Japanese Yen display. It's like 123,456,789 yen or Read more
Sample code to get the current date, day of the week, and current time in Swift4.1. You can get it as a string of the Read more
By creating CustumTableViewCell, you can use cells of your favorite layout in TableView. And the TableViewCell accessory view can be equipped with accessories such as Read more
This is a sample code for using buttons in Arduino. It's not well known, but when you use a pull-up, you can easily use the buttons with no pull-up resistance. Read more
Because I touched the Cloud Function of Google, it is the note. This is the output and get in HelloWorld and Json.
This is a sample of adding a TextField to UIAlertController.
This is the sample code for the NavigationContoroller. The NavigationContoroller moves sideways to make screen transitions.
I tried to use the RTC module with ESP32 and got a little stuck, so I wrote about it. To conclude, I solved the problem Read more
This is a sample code to generate a QR code from a character string or URL. Reference: CIImageを Read more
Here is a sample of how to issue alerts using UIAlertController. If you set UIAlertControllerStyle.alert to UIAlertControllerStyle.actionSheet, it will be an alert that comes out from the bottom. Read more
The alerts that come out from below are implemented using UIAlertController. A long time ago, there was a time when alerts coming out of the bottom were called UIActionSheets, but they have been integrated into UIAlertController. Read more
This is a sample code of how to write enum and enum. Here, we created a class called “person” and registered Kabigon's name and hometown using enum. Read more
What do I have to learn to make an iPhone app from? My friends often ask me, “What's the best way to study?", so I've put together some recommendations. Read more
UserDefaults are used to store data that you want to keep even if you drop the app. It's very simple to use. In the sample code, the initial value is set with userDefaults. Read more
Hi there! This is the sample code for retrieving the value using UIPickerView. PIPickerView is often used to select elements from a selection. This time, I created an app that allows you to choose between food, drink and food. Read more
Repeat every three seconds using Time. I used it to create an app that functions like a clock.
I decided to create a design with nested images in the app I'm working on, so I looked into how to implement it. I used Read more
This is a note to communicate with UDP in Swift. I installed SwiftSocket via cocoapods and wrote it like this. I used it to communicate with the WOOM-02. Read more
When I switch from Xcode8 to Xcode9 and convert to Swift4, I get the following error. Here's how to make it disappear. The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Read more
This is a sample of how to zoom in and out on an image in a UIScrollView. Pinch to make the image larger or smaller. Read more
Removes the text of the back button in UINavigationController. Change “< back” to “<”. let backButton = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil) self. Read more
Here's a sample that runs every second, after a few seconds in Swift. It is output to the console every second.
This is a sample of setting a header in UITableView. The footer can be set up in the same way.
I tried to add a custumCollection cell to UICollectionView. The NSStringFromClass(CustumCollectionViewCell.self), which converts class names to strings, is very useful when using UITableView or UICollectionView. Read more
This is a sample of UICollectionView. This is a reference to the This site is easy to look at and I highly recommend it to Read more
This is a sample of reading and writing a text file saved in an SD card with ESP32. I couldn't find much simple sample code Read more
YMF825 sample code to change the pin. Because of the shield, the pins No9 and No10 could not be used, so I changed the pins. Read more
When you submit your app to TestFlight or something like that, you're asked if it includes encryption. It makes me want to skip it every time I hear it. Read more
I used it when I wanted to check the response header when sending JSON in post with curl. If you add --include at the end, the response header is also shown. Read more
How to post json from Mac terminal with curl command. I often use it when I'm developing locally and want to check the APIs. curl http://localhost:3000/api/url -X POST -H "Content-Type: application/json" -d '{"email":"kabigon@swiswiswift. Read more
New article (Swift4) is here. Using Alamofire to get JSON from the API (Swift4.2) This is a sample of retrieving information from the weather API Read more
This is a sample of a delegate that executes functions, etc. from one View to another ViewController. In this case, I changed the background color of the original view from a modal view using a delegate. Read more
Get the current time with Kotlin. I'm making an app that has an alarm function. This is different from Swift.
We can't move in here! The debugging will be quicker if you write it in a part of the The class name and line number, retrieved can be displayed. Read more
It is a sample program to get an image from the photo library of the iPhone. In order to select images from the photo library, you have to specify that the photo library is used in the info. Read more
Here's a note to ban root login, which is the first thing you do after renting a VPS. Log in to the server as root and enter your password. Read more
I made the personal computer of Windows by myself and put in texworks, but I made a shortcut wrong and erased it, and I was Read more
This is a sample code to play music easily with Swift. Repeat playback was easy to do. It's not in the sample code, but it should handle errors properly. Read more
I was able to do this by right-clicking in the graph -> Colors -> both background -> choose white. It's amazingly useful for analyzing data, but it's hard to read the senior macros. Read more
This is a sample code for JavaScript web tests. I like that you can do it if you have a browser. However, it's hard to do the competition programming because I'm not used to it. Read more
Shadow the action bar in the Android app. Apps are hard to remember because there are so many new things going on.
Here's how to change the Android app's status bar. It's not a good idea to specify the color directly, write it in Color.xml.
I solved the FizzBuzz with a C. It's interesting to see the differences between different languages when creating FizzBuzz.
I tried to solve FizzBuzz with Ruby. It's interesting to see the differences between different languages when creating FizzBuzz.
This is a sample code for web testing. When I'm looking for a job, I often see competition programming in web tests, so I put it together. Read more
It's about Ruby arrays. Recently, I've been doing some competition programming in Ruby. I'm worried about when to migrate to C++.
How to make UIStatusBar white, part 1 How to make UIStatusBar white, part 1. This is how to whiten a particular ViewController. Write it to the UIViewController that you want to make white. Read more
This is a sample of the combination of UITableView and UISearchBar. Pressing the magnifying glass on the navigation bar will bring up the SearchBar, and typing a character there will bring up the search results. Read more
UserNotification is used to issue a notification to a user. There are two main types of UserNotifications, RemoteNotification (notifications like Line and Twitter) and LocalNotification (notifications that are issued internally, like clock apps). Read more
iOS10からSpeech Frameworkが登場 Read more
A UITextField is used to enter a character. Class Hierarchy of UITextField NSObject ↑upside down UIResponder. ↑upside down UIView. ↑upside down UIControl ↑upside down UITextField Read more
.caf file is an audio file format used by iOS. The following command outputs a wav file with the same name. afconvert -f caff -d Read more
The UINavigationBar is the most commonly used UINavigationBar at the top of iOS app screens. Class hierarchy of UINavigationBar. NSObject ↑upside down UIResponder. ↑upside down Read more
Get the current time. AppleDeveloperリファレンスN Read more
UITableView is a class that displays text in the form of a list. It is useful for displaying a list of data and so on. Read more
UIBarButtonItem used to add or customize elements in UINavigationBar. Class hierarchy of UIBarButtonItem NSObject ↑ UIBarItem ↑ UIBarButtonItem AppleDe Read more
A Swift dictionary array. Describes how to create and call a dictionary array. I like that different people use different ways of saying things like dictionary arrays, hashes, maps, etc. Read more